GET /api/fleet/agents/available_versions

Spaces method and path for this operation:

get /s/{space_id}/api/fleet/agents/available_versions

Refer to Spaces for more information.

Get a list of Elastic Agent versions available for upgrade.

[Required authorization] Route required privileges: fleet-agents-read.

Responses

  • 200 application/json

    Successful response

    Hide response attribute Show response attribute object
    • items array[string] Required

      Not more than 10000 elements.

  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • attributes Required
    • error string
    • errorType string
    • message string Required
    • statusCode number
GET /api/fleet/agents/available_versions
curl \
 --request GET 'https://localhost:5601/api/fleet/agents/available_versions' \
 --header "Authorization: $API_KEY"
Response examples (200)
List of available agent versions for upgrade
{
  "items": [
    "8.17.0",
    "8.16.3",
    "8.16.2"
  ]
}
Response examples (400)
Example of a generic error response
{
  "error": "Bad Request",
  "message": "An error message describing what went wrong",
  "statusCode": 400
}