Spaces method and path for this operation:
get /s/{space_id}/api/fleet/kubernetes
Refer to Spaces for more information.
Get the Kubernetes manifest for deploying Elastic Agent.
[Required authorization] Route required privileges: fleet-agent-policies-read OR fleet-setup.
GET
/api/fleet/kubernetes
curl \
--request GET 'https://localhost:5601/api/fleet/kubernetes' \
--header "Authorization: $API_KEY"
Response examples (200)
The Kubernetes manifest for deploying Elastic Agent
{
"item": "apiVersion: v1\\nkind: ConfigMap\\nmetadata:\\n name: agent-node-datastreams\\n namespace: kube-system\\n"
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}