My Oracle Support Banner

How to Expand OAC REST API Expiration of Token (Doc ID 2939167.1)

Last updated on NOVEMBER 03, 2023

Applies to:

Oracle Analytics Cloud - Version March 2023 and later
Information in this document applies to any platform.

Goal

Trying to get the list of snapshots created with REST API, "401 Unauthorized" returned.

curl -i --header "Authorization: Bearer eyJ4NXQjUz xxxxskippedxxxxx" --request GET https://OAC URL .analytics.ocp.oraclecloud.com/api/20210901/snapshots
HTTP/1.1 401 Unauthorized
Date: Thu, 09 Mar 2023 12:38:38 GMT
Content-Type: text/html
Content-Length: 172
Connection: keep-alive
www-authenticate: Bearer error="invalid_token", error_description="Token Expired"
vary: origin

<html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx</center>
</body>
</html>

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.