ActiveGate tokens API - GET a token
Gets metadata of the ActiveGate token by its ID.
The request produces an application/json
payload.
GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/activeGateTokens/{activeGateTokenIdentifier} |
Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/activeGateTokens/{activeGateTokenIdentifier} |
Authentication
To execute this request, you need an access token with activeGateTokenManagement.read
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
The ActiveGate token identifier, consisting of prefix and public part of the token.
Response
Response codes
Response body objects
The ActiveGateToken
object
Metadata of an ActiveGate token.
The type of the ActiveGate for which the token is valid.
ENVIRONMENT
CLUSTER
The token creation date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
).
The token expiration date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
).
If not set, the token never expires.
The token last used date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
).
The name of the token.
The owner of the token.
The token is a seed token (true
) or an individual token (false
).
Response body JSON model
{"activeGateType": "ENVIRONMENT","creationDate": "2020-11-22T08:15:30.144Z","expirationDate": "2020-11-24T08:15:30.144Z","id": "dt0g02.4KWZO5EF","lastUsedDate": "2020-11-23T08:15:30.144Z","name": "myToken","owner": "john.smith","seedToken": false}
Example
In this example, the request retrieves metadata for the token with the ID of dt0g02.abc123.
The API token is passed in the Authorization header.
Curl
curl --request GET \--url https://mySampleEnv.live.dynatrace.com//api/v2/activeGateTokens/dt0g02.abc123 \--header 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
Request URL
https://mySampleEnv.live.dynatrace.com//api/v2/activeGateTokens/dt0g02.abc123
Response body
{"id": "dt0g02.abc123","name": "system:installer","owner": "max.mustermann@company.com","creationDate": "2021-11-22T11:39:29.797Z","seedToken": true,"activeGateType": "ENVIRONMENT"}
Response code
200