Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Authenticate to Oracle OCI with Java

User_R5KVKDec 29 2022

Hi,
I want to be able to authenticate with the config file.
Then run Rest API calls (especially Data science related API's)
For example, I managed to run the following examples successfully :
1. https://docs.oracle.com/en-us/iaas/Content/API/Concepts/signingrequests.htm#seven__Java
2. https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ListDBVersionExample.java
3. https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/GetInstancePublicIpExample.java
So my question are:
Can I use the first example to run other API's? like Identity (policies etc.) or Data science?
If not, how can I achive that?
What is 'tenant-base-url' in https://docs.oracle.com/en/cloud/paas/identity-cloud/rest-api/SendRequests.html ?
Thanks!

Comments
Post Details
Added on Dec 29 2022
0 comments
488 views