Gets metadata of the API token by its ID.
The request produces an application/json
payload.
GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/apiTokens/{id} |
Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/apiTokens/{id} |
To execute this request, you need an access token with apiTokens.read
scope.
To learn how to obtain and use it, see Tokens and authentication.
The ID of the token.
Failed. The requested resource doesn't exist.
ApiToken
objectMetadata of an API token.
Contains additional properties for specific kinds of token. Examples:
dashboardId
property for dashboard sharing tokens.reportId
property for report sharing tokensToken creation date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
)
The token is enabled (true
) or disabled (false
).
Token expiration date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
).
If not set, the token never expires.
The ID of the token, consisting of prefix and public part of the token.
Token last used date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
)
{"additionalMetadata": {"dashboardId": "82402bab-7370-4359-924d-88ed13c8919a"},"creationDate": "2020-11-05T08:15:30.144Z","enabled": true,"expirationDate": "2020-11-12T08:15:30.144Z","id": "dt0c01.ST2EY72KQINMH574WMNVI7YN","lastUsedDate": "2020-11-12T08:15:30.144Z","lastUsedIpAddress": "34.197.2.44","modifiedDate": "2020-11-12T08:15:30.144Z","name": "myToken","owner": "john.smith","personalAccessToken": true,"scopes": ["metrics.read"]}