Refresh an Authentication Token
/refresh/
Request
There are no request parameters for this operation.
Back to TopResponse
- application/oracle-compute-v3+json
204 Response
-
set-cookie: string
The cookie value is returned if the session is extended
Examples
cURL Command
The following example shows how to refresh a valid authentication token by submitting a GET
request on the REST resource using cURL. For more information about cURL, see Use cURL.
Enter the command on a single line. Line breaks are used in this example for readability.
curl -X GET -H "Cookie: $COMPUTE_COOKIE" https://api-z999.compute.us0.oraclecloud.com/refresh/
-
COMPUTE_COOKIE
is the name of the variable in which you stored the authentication cookie earlier. For information about retrieving the authentication cookie and storing it in a variable, see Authentication. -
api-z999.compute.us0.oraclecloud.com
is an example REST endpoint URL. Change this value to the REST endpoint URL of your Compute Classic site. For information about finding out REST endpoint URL for your site, see Send Requests.
Authentication tokens expire in 30 minutes. This request extends the expiry of a valid authentication token by 30 minutes from the time you run the command. It extends the expiry of the current authentication token, but not beyond the session expiry time, which is 3 hours.