Spaces method and path for this operation:
post /s/{space_id}/api/fleet/cloud_connectors
Refer to Spaces for more information.
Create a new Fleet cloud connector.
[Required authorization] Route required privileges: fleet-agent-policies-all OR integrations-all.
Body
-
The account type: single-account (single account/subscription) or organization-account (organization-wide).
Values are
single-accountororganization-account. -
The cloud provider type: aws, azure, or gcp.
Values are
aws,azure, orgcp. -
The name of the cloud connector.
Minimum length is
1, maximum length is255.
POST
/api/fleet/cloud_connectors
curl \
--request POST 'https://<KIBANA_URL>/api/fleet/cloud_connectors' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"accountType":"single-account","cloudProvider":"aws","name":"My AWS connector","vars":{}}'
Request example
Create a new AWS cloud connector
{
"accountType": "single-account",
"cloudProvider": "aws",
"name": "My AWS connector",
"vars": {}
}
Response examples (200)
The created Fleet cloud connector
{
"item": {
"accountType": "single-account",
"cloudProvider": "aws",
"created_at": "2024-01-15T10:00:00.000Z",
"id": "cloud-connector-id-2",
"name": "My AWS connector",
"packagePolicyCount": 0,
"updated_at": "2024-01-15T10: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
}