Retrieve the current credential's policies

GET/credentials/current/policies

Returns the active policy revision of the credential used to authenticate the request. Use this operation to inspect what the calling credential is allowed to do; it cannot be used to read other credentials.

AuthorizationBearer <token>

Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/credentials/current/policies"
{  "data": {    "catalog_version": "string",    "credential_id": "string",    "grants": [      {        "id": "string",        "permissions": [          "string"        ],        "resources": [          {            "ids": [              "string"            ],            "include_future": true,            "selector": "instance",            "type": "instance"          }        ]      }    ],    "object": "credential_policy",    "published_at": "2019-08-24T14:15:22Z",    "version": 0  }}