Retrieve Authentication Token - Autonomous AI Database Deployments
post
[host-url]/odi/broker/pdbcs/public/v1/token
Steps to authenticate:
- Send a
POSTrequest with the required JSON payload to the endpoint. - Save the access_token and use it as your Bearer token.
- The token expires after the amount of seconds indicated by 'expires_in'.
- After the token expires, request a new token.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
objectJSON containing authentication information.
Show Source
-
cloud_database_name(required): string
-
database_name(required): string
-
grant_type(required): string
-
password(required): string
-
tenant_name(required): string
-
username(required): string
Example:
{
"username":"your_username",
"password":"your_pwd",
"database_name":"your_database_name",
"tenant_name":"your_tenant_ocid",
"cloud_database_name":"your_cloud_database_ocid",
"grant_type":"password"
}Response
Supported Media Types
- application/json
200 Response
Successful response
Root Schema : TokenDTO
Type:
objectJSON containing access token, refresh token, and other relevant information.
Show Source