Spaces method and path for this operation:
get /s/{space_id}/api/fleet/uninstall_tokens/{uninstallTokenId}
Refer to Spaces for more information.
Get one decrypted uninstall token by its ID.
[Required authorization] Route required privileges: fleet-agents-all.
GET
/api/fleet/uninstall_tokens/{uninstallTokenId}
curl \
--request GET 'https://localhost:5601/api/fleet/uninstall_tokens/{uninstallTokenId}' \
--header "Authorization: $API_KEY"
Response examples (200)
Decrypted uninstall token for an agent policy
{
"item": {
"created_at": "2024-01-01T00:00:00.000Z",
"id": "token-id-1",
"namespaces": [
"default"
],
"policy_id": "policy-id-1",
"policy_name": "Default policy",
"token": "CKHJsJcBqNwIRcRBNDaE"
}
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}
Response examples (404)
No uninstall token was found with the given ID
{
"error": "Not Found",
"message": "Uninstall Token not found with ID token-id-1",
"statusCode": 404
}