Developers can use the API to build interactive clients of VMware Aria Operations. The API follows the REST style and is available to all licensed users.
Procedure
- Generate the API tokens from the Cloud Services toolbar to authenticate yourself when you make authorized API connections. See, Generate API Tokens.
- Call the Cloud Services API using the API token to generate the Cloud Services authentication token.
curl -k -X POST "https://console.cloud.vmware.com/csp/gateway/am/api/auth/api-tokens/authorize" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "refresh_token={CSP API Token}”
This returns a JSON string with the following structure in which
access_token is the
Cloud Services authentication token:
{
"id_token",
"token_type",
"expires_in",
"scope",
"access_token",
"refresh_token”
}
Note: The
Cloud Services authentication token is valid only for 30 minutes after it is generated.