---
type: api
title: Get cloud connector usage (package policies using the connector)
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-get-fleet-cloud-connectors-cloudconnectorid-usage
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-get-fleet-cloud-connectors-cloudconnectorid-usage
products:
  - Kibana
---

# Get cloud connector usage (package policies using the connector)

Availability: Experimental

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

## Paths

- `GET` `/api/fleet/cloud_connectors/{cloudConnectorId}/usage`
- `GET` `/s/{space_id}/api/fleet/cloud_connectors/{cloudConnectorId}/usage`

#### Path parameters

- `cloudConnectorId` (string) — required
  The unique identifier of the cloud connector.

## Description

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

Get a list of package policies that are using a given cloud connector.

## Required authorization

- Privileges: `fleet-agent-policies-read` or `integrations-read`

## Authentication

- Api key: `Authorization: <value>`
  You must create an API key and use the encoded value in the request header. To learn about creating keys, go to [API keys](https://www.elastic.co/docs/current/serverless/api-keys).

## Query string parameters

- `page` (number · min: 1) — optional
  The page number for pagination.
- `perPage` (number · min: 1) — optional
  The number of items per page.

## Responses

#### `200`

OK: A successful request.

`application/json`

- `items` (object[] · max items: 10000)
  - `created_at` (string)
  - `id` (string)
  - `name` (string)
  - `package` (object)
    - `name` (string)
    - `title` (string)
    - `version` (string)
  - `policy_ids` (string[] · max items: 10000)
  - `updated_at` (string)
- `page` (number)
- `perPage` (number)
- `total` (number)
#### `400`

A bad request.

`application/json`

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

#### Console

```console
GET kbn:/api/fleet/cloud_connectors/CLOUD_CONNECTOR_ID/usage
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/fleet/cloud_connectors/${CLOUD_CONNECTOR_ID}/usage" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Get cloud connector usage response

Example response showing package policies using the cloud connector

```json
{
  "items": [
    {
      "created_at": "2025-01-16T09:00:00.000Z",
      "id": "package-policy-1",
      "name": "CSPM AWS Policy",
      "package": {
        "name": "cloud_security_posture",
        "title": "Cloud Security Posture Management",
        "version": "3.1.1"
      },
      "policy_ids": [
        "policy-id-123",
        "policy-id-456"
      ],
      "updated_at": "2025-01-16T09:00:00.000Z"
    }
  ],
  "page": 1,
  "perPage": 20,
  "total": 2
}
```

#### Generic error response

Example of a generic error response

```json
{
  "error": "Bad Request",
  "message": "Cloud connector not found",
  "statusCode": 400
}
```

