Spaces method and path for this operation:
post /s/{space_id}/api/fleet/agents/bulk_upgrade
Refer to Spaces for more information.
Body
Required
-
Force upgrade, skipping validation (should be used with caution)
-
rolling upgrade window duration in seconds
-
Skip rate limit check for upgrade
-
alternative upgrade binary download url
-
start time of upgrade in ISO 8601 format
-
version to upgrade to
POST
/api/fleet/agents/bulk_upgrade
curl \
--request POST 'https://localhost:5601/api/fleet/agents/bulk_upgrade' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: string" \
--data '{"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}'
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
}