---
type: api
title: List Deployments
description: List Deployments.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/operation/operation-list-deployments
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/operation/operation-list-deployments
products:
  - Elastic Cloud Enterprise
---

# List Deployments

## Paths

- `GET` `/deployments`

- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/authentication#basicauth)
- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/authentication#apikey)

## Description

List Deployments.

## Responses

#### `200`

The list of deployments that belong to the authenticated user.

`application/json`

- `deployments` ([] DeploymentsListingData)
  The deployments
  - `id` (string)
    The id of this deployment
  - `name` (string)
    The name of this deployment
  - `resources` ([] DeploymentResource)
    List of resources in this deployment
    - `ref_id` (string)
      A locally-unique friendly alias for this Elasticsearch cluster
    - `elasticsearch_cluster_ref_id` (string)
      The Elasticsearch cluster that this resource depends on.
    - `id` (string)
      A system-unique id for the created resource
    - `kind` (string)
      The kind of resource
    - `region` (string)
      Identifier of the region in which this resource runs.
    - `cloud_id` (string)
      An encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana
    - `credentials` ({} ClusterCredentials)
      The username and password for the new Elasticsearch cluster, which is returned from the Elasticsearch cluster `create` command.
      - `username` (string)
        The username of the newly created cluster
      - `password` (string)
        The password of the newly created cluster
    - `secret_token` (string)
      Secret token for using a created resource. Only provided on initial create and absent otherwise.
    - `warnings` ([] ReplyWarning)
      List of warnings generated from validating resource updates
      - `code` (string)
        A structured code representing the error type that occurred
      - `message` (string)
        A human readable message describing the warning that occurred
#### `401`

You are not authorized to perform this action.

`application/json`

- `errors` ([] BasicFailedReplyElement)
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` ([] string)
    If the error can be tied to a specific field or fields in the user request, this lists those fields
## Code Examples

#### Console

```console
GET /deployments
```

#### curl

```curl
curl -X GET "/deployments"
```

