Get an bearer token to be passed in the header for all API transactions.

post

/api/token

Use this endpoint and a session token to receive a bearer token, which can be used to authenticate all subsequent calls to the Oracle Container Cloud service.

Request

There are no request parameters for this operation.

Security
Back to Top

Response

Supported Media Types

200 Response

200 Response
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : items
Type: object
Show Source

Default Response

Error Payload
Body ()
Root Schema : schema
Type: array
Show Source
Back to Top

Examples

The following example shows how to request a bearer authorization token by submitting a session token in a <tt>/token</tt> request to the REST resource using cURL. For more information about cURL, see Use cURL.

Note: The command in this example uses the URL structure https://rest_server_url/resource-path, where rest_server_url is the manager node for the Oracle Cloud Container instance. See Send Requests for the appropriate URL structure to use for Oracle Public Cloud.

cURL Command

curl -k
     -H 'Authorization: Session 3b290bcaf21d2578f3b0fcd444552ddd144c4d4d7841243f3dd1c06ae147eb09'
     "https://rest_server_url/api/token"

Example of Response Header

{
  "token": "739efc3316921bbc"
}
Back to Top