Spaces method and path for this operation:
get /s/{space_id}/api/fleet/uninstall_tokens
Refer to Spaces for more information.
List the metadata for the latest uninstall tokens per agent policy.
[Required authorization] Route required privileges: fleet-agents-all.
GET
/api/fleet/uninstall_tokens
curl \
--request GET 'https://localhost:5601/api/fleet/uninstall_tokens' \
--header "Authorization: $API_KEY"
Response examples (200)
List of uninstall token metadata for agent policies
{
"items": [
{
"created_at": "2024-01-01T00:00:00.000Z",
"id": "token-id-1",
"namespaces": [
"default"
],
"policy_id": "policy-id-1",
"policy_name": "Default policy"
},
{
"created_at": "2024-01-02T00:00:00.000Z",
"id": "token-id-2",
"namespaces": [
"production"
],
"policy_id": "policy-id-2",
"policy_name": "Production policy"
}
],
"page": 1,
"perPage": 20,
"total": 2
}
Response examples (400)
Both policyId and search query parameters were provided
{
"error": "Bad Request",
"message": "Query parameters `policyId` and `search` cannot be used at the same time.",
"statusCode": 400
}