Refresh an Authentication Token

get

/refresh/

Authentication tokens expire in 30 minutes. This request extends the expiry of the 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.

Request

There are no request parameters for this operation.

Response

Supported Media Types

204 Response

No Content. See Status Codes for information about other possible HTTP status codes.
Headers

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.