Spaces method and path for this operation:
put /s/{space_id}/api/fleet/cloud_connectors/{cloudConnectorId}
Refer to Spaces for more information.
Update a cloud connector by ID.
[Required authorization] Route required privileges: fleet-agent-policies-all OR integrations-all.
PUT
/api/fleet/cloud_connectors/{cloudConnectorId}
curl \
--request PUT 'https://<KIBANA_URL>/api/fleet/cloud_connectors/{cloudConnectorId}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"name":"Updated AWS connector","vars":{}}'
Request example
Update a Fleet cloud connector
{
"name": "Updated AWS connector",
"vars": {}
}
Response examples (200)
The updated Fleet cloud connector
{
"item": {
"accountType": "single-account",
"cloudProvider": "aws",
"created_at": "2024-01-15T10:00:00.000Z",
"id": "cloud-connector-id-1",
"name": "Updated AWS connector",
"packagePolicyCount": 2,
"updated_at": "2024-01-15T11:00:00.000Z",
"vars": {}
}
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}