GET /api/fleet/kubernetes/download

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.

Query parameters

  • download boolean

    If true, returns the manifest as a downloadable file

  • fleetServer string

    Fleet Server host URL to include in the manifest

  • enrolToken string

    Enrollment token to include in the manifest

Responses

  • 200 application/json

    Successful response — returns the Kubernetes manifest as a YAML file download

  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • attributes Required
    • error string
    • errorType string
    • message string Required
    • statusCode number
  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • attributes Required
    • error string
    • errorType string
    • message string Required
    • statusCode number
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
}