Spaces method and path for this operation:
Refer to Spaces for more information.
Create a new Fleet cloud onboarding deployment.
[Required authorization] Route required privileges: fleet-agent-policies-all OR integrations-all.
Body
-
Authentication method for managed integrations.
Values are
identity_federationorstatic_keys. -
ID of the fleet-cloud-connector to associate with this deployment. Omit for static-keys deployments.
Minimum length is
1, maximum length is255. -
Data format: ecs or otel.
Values are
ecsorotel. -
Global AWS region from the Service Settings step.
Maximum length is
64. -
Delivery mechanisms active in this deployment.
Not more than
10elements. Values aremanaged_integration,ecf, oragent_based. -
Cloud provider.
Values are
aws,azure, orgcp. -
Service IDs to be covered by this deployment.
At least
1but not more than1000elements. Minimum length of each is1. -
Per-service config keyed by instance ID.
curl \
--request POST 'https://<KIBANA_URL>/api/fleet/cloud_onboarding_deployments' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{
"connectorId": "cloud-connector-id-1",
"mechanisms": [
"agent_based"
],
"provider": "aws",
"services": [
"cloudwatch_metrics"
],
"serviceVars": {
"cloudwatch_metrics": {
"namespace": "AWS/EC2",
"regions": [
"us-east-1"
]
}
}
}'
{
"connectorId": "cloud-connector-id-1",
"mechanisms": [
"agent_based"
],
"provider": "aws",
"services": [
"cloudwatch_metrics"
],
"serviceVars": {
"cloudwatch_metrics": {
"namespace": "AWS/EC2",
"regions": [
"us-east-1"
]
}
}
}
{
"connectorId": "cloud-connector-id-1",
"mechanisms": [
"ecf"
],
"provider": "aws",
"services": [
"cloudfront_logs"
],
"serviceVars": {
"cloudfront_logs": {
"regions": [
"us-east-1"
],
"s3_bucket_arn": "arn:aws:s3:::my-cloudfront-bucket"
}
}
}
{
"connectorId": "cloud-connector-id-1",
"mechanisms": [
"managed_integration"
],
"provider": "aws",
"services": [
"cloudwatch_metrics",
"cloudtrail"
],
"serviceVars": {
"cloudtrail": {
"regions": [
"us-east-1"
],
"s3_bucket_arn": "arn:aws:s3:::my-cloudtrail-bucket"
},
"cloudwatch_metrics": {
"namespace": "AWS/EC2",
"regions": [
"us-east-1",
"eu-west-1"
]
}
}
}
{
"item": {
"agentPolicyId": "agent-policy-id-1",
"attemptCount": 1,
"connectorId": "cloud-connector-id-1",
"id": "onboarding-deployment-id-2",
"mechanisms": [
"agent_based"
],
"provider": "aws",
"services": [
"cloudwatch_metrics"
],
"serviceVars": {
"cloudwatch_metrics": {
"namespace": "AWS/EC2",
"regions": [
"us-east-1"
]
}
},
"status": "pending"
}
}
{
"item": {
"apiKeyId": "es-api-key-id-1",
"attemptCount": 1,
"connectorId": "cloud-connector-id-1",
"id": "onboarding-deployment-id-3",
"mechanisms": [
"ecf"
],
"provider": "aws",
"services": [
"cloudfront_logs"
],
"serviceVars": {
"cloudfront_logs": {
"regions": [
"us-east-1"
],
"s3_bucket_arn": "arn:aws:s3:::my-cloudfront-bucket"
}
},
"status": "pending"
}
}
{
"item": {
"attemptCount": 1,
"connectorId": "cloud-connector-id-1",
"id": "onboarding-deployment-id-1",
"mechanisms": [
"managed_integration"
],
"packagePolicyIds": [
"package-policy-id-1"
],
"provider": "aws",
"services": [
"cloudwatch_metrics",
"cloudtrail"
],
"serviceVars": {
"cloudtrail": {
"regions": [
"us-east-1"
],
"s3_bucket_arn": "arn:aws:s3:::my-cloudtrail-bucket"
},
"cloudwatch_metrics": {
"namespace": "AWS/EC2",
"regions": [
"us-east-1",
"eu-west-1"
]
}
},
"status": "pending"
}
}
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}