---
type: api
title: Get cloud onboarding deployments by connector ID
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana-serverless/operation/operation-get-fleet-cloud-onboarding-deployments-connector-connectorid
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana-serverless/operation/operation-get-fleet-cloud-onboarding-deployments-connector-connectorid
products:
  - Kibana
---

# Get cloud onboarding deployments by connector ID

Availability:

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/fleet/cloud_onboarding_deployments/connector/{connectorId}`
- `GET` `/s/{space_id}/api/fleet/cloud_onboarding_deployments/connector/{connectorId}`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana-serverless/authentication#apikeyauth)

#### Path Parameters

- `connectorId` (string · min: 1 · max: 255)
  The fleet-cloud-connector ID to list deployments for.

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

List all cloud onboarding deployments for a given connector ID.<br/><br/>[Required authorization] Route required privileges: fleet-agent-policies-read OR integrations-read.

## Responses

#### `200`

Successful response

`application/json`

- `items` ([] object · max: 100)
  - `agentPolicyIds` ([] string · max: 1000)
    Agent policy IDs for agent_based deployments. Single-element for new-policy deploys; multiple for existing-policy deploys targeting several policies.
  - `apiKeyId` (string)
    Elasticsearch API key ID for push mechanisms (ecf). Set by the backend; used for key rotation/revocation.
  - `attemptCount` (number · min: 1)
    Number of deployment attempts, including the current one.
  - `authMethod` (enum)
    Authentication method. Allowed values depend on the delivery mechanism:

- managed_integration: identity_federation | static_keys
- agent_based: static_keys (direct_access_keys) | temporary_keys | shared_credentials | assume_role
    Values: `identity_federation`, `static_keys`, `temporary_keys`, `shared_credentials`, `assume_role`
  - `connectorId` (string)
    ID of the fleet-cloud-connector this deployment belongs to. Absent for static-keys deployments.
  - `dataFormat` (enum)
    Data format: ecs or otel.
    Values: `ecs`, `otel`
  - `deploymentId` (string)
    Opaque deployment identifier; for AWS, the CFN stack ARN.
  - `deploymentName` (string)
    Opaque deployment name; for AWS, the CFN stack name.
  - `ecfStacks` ([] object · max: 10)
    ECF CloudFormation stacks launched as part of this deployment. Written by the wizard after the user clicks Launch.
    - `family` (enum)
      ECF template family.
      Values: `unified`, `otel`, `crowdstrike`
    - `stackName` (string · min: 1 · max: 128)
      CloudFormation stack name (128-char AWS limit).
    - `templateVersion` (string · min: 1 · max: 32)
      ECF semantic version resolved at launch time, e.g. "1.10.0".
  - `globalRegion` (string)
    Global AWS region from the Service Settings step.
  - `id` (string)
  - `mechanisms` ([] enum  · max: 10)
    Values: `managed_integration`, `ecf`, `agent_based`
  - `packagePolicyIds` ([] string · max: 1000)
    Package policy IDs created for this deployment (managed_integration and agent_based).
  - `policyIdsByInstance` (map string to string)
    instanceId → policyId mapping persisted after deploy. Hydrated into the wizard on resume to enable cleanup of stale policies when services are removed.
  - `provider` (enum)
    Cloud provider.
    Values: `aws`, `azure`, `gcp`
  - `services` ([] string · max: 1000)
    Service IDs covered by this deployment.
  - `serviceVars` (map string to string to object)
    Per-service config keyed by instance ID. Each value is the ServiceVars object from the Service Settings step.
  - `status` (enum)
    Deployment status.
    Values: `pending`, `deploying`, `succeeded`, `failed`
  - `statusMessage` (string)
    Error context when status is failed.
#### `400`

Bad Request

`application/json`

- `attributes` (object)
- `error` (string)
- `errorType` (string)
- `message` (string)
- `statusCode` (number)
## Code Examples

#### Console

```console
GET /api/fleet/cloud_onboarding_deployments/connector/{connectorId}
```

#### curl

```curl
curl -X GET "https://{kibana_url}/api/fleet/cloud_onboarding_deployments/connector/{connectorId}"
```

## Response Examples

#### Get cloud onboarding deployments by connector id

List of cloud onboarding deployments for a connector

```json
{
  "items": [
    {
      "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"
      ],
      "status": "succeeded"
    },
    {
      "attemptCount": 1,
      "connectorId": "cloud-connector-id-1",
      "id": "onboarding-deployment-id-2",
      "mechanisms": [
        "managed_integration",
        "ecf"
      ],
      "provider": "aws",
      "services": [
        "cloudfront_logs"
      ],
      "serviceVars": {
        "cloudfront_logs": {
          "regions": [
            "us-east-1"
          ],
          "s3_bucket_arn": "arn:aws:s3:::my-cloudfront-logs-bucket"
        }
      },
      "status": "deploying"
    }
  ]
}
```

#### Generic error response

Example of a generic error response

```json
{
  "error": "Bad Request",
  "message": "An error message describing what went wrong",
  "statusCode": 400
}
```

