Bulk upgrade agents
Headers
-
Kibana's anti Cross-Site Request Forgery token. Can be any string value.
Body Required
-
force boolean
Force upgrade, skipping validation (should be used with caution)
-
rollout_duration_seconds number
rolling upgrade window duration in seconds
-
skipRateLimitCheck boolean
Skip rate limit check for upgrade
-
source_uri string
alternative upgrade binary download url
-
start_time string
start time of upgrade in ISO 8601 format
-
version to upgrade to
POST /api/fleet/agents/bulk_upgrade
curl \
-X POST https://localhost:5601/api/fleet/agents/bulk_upgrade \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31" \
-H "kbn-xsrf: string"
Request example
{
"agents": [
"agent1",
"agent2"
],
"version": "8.4.0",
"source_uri": "https://artifacts.elastic.co/downloads/beats/elastic-agent",
"start_time": "2022-08-03T14:00:00.000Z",
"rollout_duration_seconds": 3600
}
Response examples (200)
{
"actionId": "string"
}
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}