Exchange Access Token

Exchange Access Token

Creates an access token for monitoring the provided external resource entities. This is a privileged API that takes an existing VCF access token (JWT) and a set of external resource entities to monitor, and generates a new token that asserts the right to access those entities.

Request
URI
POST
https://{api_host}/cloudapi/vcf/metrics/monitoringToken
COPY
Request Body
MonitoringTokenExchangeRequest of type(s) application/json
Required
{
    "access_token": "string",
    "entitled_entities": [
        {
            "id": "string",
            "object_ref": "string"
        }
    ]
}
string
access_token
Optional

This contains the valid Tenant Manager access token (JWT) that is being used for exchange.

array of object
entitled_entities
Optional
Constraints: maxItems: 1024

This contains the external resource entities that are being requested for monitoring.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns MonitoringToken of type(s) application/json;version=40.0
"MonitoringToken Object"
string
access_token
Optional

Monitoring access tokens are JWTs similar to access token credentials but aren't used for authorization to VCF. Instead, they are used to validate that a user has been granted access to particular resources.


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/cloudapi/vcf/metrics/monitoringToken