Generate a new authentication token and invalidate the prior token
post
/api/token/new
Use this endpoint to cancel an existing bearer token and receive a new bearer token in the response.
Request
There are no request parameters for this operation.
Security
-
Authorization: apiKey
Type:
apiKey
Response
Supported Media Types
- application/json
200 Response
200 Response
Default Response
Error Payload
Examples
The following example shows how to invalidate an existing bearer token and request a new bearer token, by submitting a POST 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 -X "POST" -H "Authorizatio n: Bearer adec7efcc71e9979" "https://rest_server_url/api/token/new"
Example of Response Header
{ "token": "7723686471ba0cb1" }