ActiveGate tokens API - DELETE a token
Deletes an ActiveGate token.
Early Adopter
This request is an Early Adopter release and may be changed in non-compatible way.
DELETE | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/activeGateTokens/{activeGateTokenIdentifier} |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/activeGateTokens/{activeGateTokenIdentifier} | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/activeGateTokens/{activeGateTokenIdentifier} |
Authentication
To execute this request, you need an access token with Write ActiveGate tokens (activeGateTokenManagement.write
) scope. To learn how to obtain and use it, see Tokens and authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
activeGateTokenIdentifier | string | The ActiveGate token identifier, consisting of prefix and public part of the token to be deleted. | path | required |
Response
Response codes
Code | Type | Description |
---|---|---|
204 | - | Success. Response doesn't have a body. |
400 | Error | Failed. The input is invalid. |
404 | Error | Failed. The requested resource doesn't exist. |
Example
In this example, the request deletes the token with the ID of dt0g02.xyz789.
The API token is passed in the Authorization header.
Curl
curl --request DELETE \
--url https://mySampleEnv.live.dynatrace.com//api/v2/activeGateTokens/dt0g02.xyz789 \
--header 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
Request URL
https://mySampleEnv.live.dynatrace.com//api/v2/activeGateTokens/dt0g02.xyz789
Response code
204