Spaces method and path for this operation:
get /s/{space_id}/api/fleet/kubernetes/download
Refer to Spaces for more information.
Download the Kubernetes manifest for deploying Elastic Agent.
[Required authorization] Route required privileges: fleet-agent-policies-read OR fleet-setup.
GET
/api/fleet/kubernetes/download
curl \
--request GET 'https://localhost:5601/api/fleet/kubernetes/download' \
--header "Authorization: $API_KEY"
Response examples (200)
The Kubernetes manifest download
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
}
Response examples (404)
No manifest was found
{
"error": "Not Found",
"message": "Agent manifest not found",
"statusCode": 404
}