Spaces method and path for this operation:
Refer to Spaces for more information.
Update a cloud onboarding instance by ID.
[Required authorization] Route required privileges: fleet-agent-policies-all OR integrations-all.
Body
-
Agent policy IDs for agent_based deployments. Single-element for new-policy deploys; multiple for existing-policy deploys targeting several policies.
Not more than
1000elements. Maximum length of each is255. -
Maximum length is
255. -
Incremented by callers performing a retry.
Minimum value is
1. -
Authentication method. Refreshed on each successful deploy so a credential-method change between deploys is reflected on resume.
Values are
identity_federation,static_keys,temporary_keys,shared_credentials,assume_role, or null. -
Maximum length is
255. -
Whether the global namespace uses dedicated index templates. Omit it to keep the stored value. Applied to the installed packages after a deployment.
-
CFN stack ARN (or equivalent); provided by the client after manual deployment.
Maximum length is
2048. -
Maximum length is
255. -
Integration description from the Service settings step. Send null to clear it.
Maximum length is
2048. -
ECF CloudFormation stacks to record for this deployment.
Not more than
10elements. -
Service instances, including duplicates, from the last deployment. Replaces the stored list, so instances removed since the last deployment are dropped.
Not more than
1000elements. -
Integration name used by the last deploy, before any per-package suffix. Refreshed on each deploy because an unedited default name follows the service selection.
Maximum length is
160. -
Delivery mechanisms active in this deployment. Replaces the stored mechanisms array.
Not more than
10elements. Values aremanaged_integration,ecf, oragent_based. -
Global data stream namespace from the Service settings step. Omit it to keep the stored value, or send null to clear it. When none is set, an agent-based deployment inherits the agent policy namespace, other deployment methods use the default namespace.
Maximum length is
100. -
Names of the integration packages this deployment covers. Refreshed with the service set.
Not more than
100elements. Minimum length of each is1, maximum length of each is255. -
Integration policy IDs created for this deployment (managed_integration and agent_based).
Not more than
1000elements. Maximum length of each is255. -
Integration policy settings that apply to every integration policy of the deployment, keyed by integration policy field (for example
output_id). Replaces the stored settings; omit it to keep them. -
Display name of each service as shown in the onboarding flow, by service ID.
-
Current service set for this deployment. Refreshed on each successful deploy so resume after an incremental service addition restores all deployed services.
At least
1but not more than1000elements. Minimum length of each is1, maximum length of each is256. -
Per-service config keyed by instance ID.
-
Deployment status.
Values are
pending,deploying,succeeded, orfailed. -
Error context; set when transitioning to failed.
Maximum length is
1000.
curl \
--request PUT 'https://localhost:5601/api/fleet/cloud_onboarding_deployments/{id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{
"deploymentId": "arn:aws:cloudformation:us-east-1:123456789012:stack/elastic-aws-onboarding/aaa-bbb-ccc",
"deploymentName": "elastic-aws-onboarding",
"status": "deploying"
}'
{
"deploymentId": "arn:aws:cloudformation:us-east-1:123456789012:stack/elastic-aws-onboarding/aaa-bbb-ccc",
"deploymentName": "elastic-aws-onboarding",
"status": "deploying"
}
{
"item": {
"agentPolicyIds": [
"agent-policy-id-1"
],
"attemptCount": 1,
"connectorId": "cloud-connector-id-1",
"deploymentId": "arn:aws:cloudformation:us-east-1:123456789012:stack/elastic-aws-onboarding/aaa-bbb-ccc",
"deploymentName": "elastic-aws-onboarding",
"id": "onboarding-deployment-id-1",
"mechanisms": [
"managed_integration"
],
"packagePolicyIds": [
"package-policy-id-1"
],
"provider": "aws",
"services": [
"cloudwatch_metrics",
"cloudtrail"
],
"status": "deploying"
}
}
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}
{
"error": "Not Found",
"message": "Saved object [fleet-cloud-onboarding-deployment/unknown-id] not found",
"statusCode": 404
}