---
title: "List blue/green deployments, newest first"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Caches API

`GET /v1/organizations/{orgId}/projects/{projectId}/blue-green-deployments`

## Authentication

Requires one of the following:

- `apiKey`, http, header `Authorization`
- `oauth`, http, header `Authorization`
- `sessionCookie`, apiKey, in cookie

## Path parameters

- `ListBlueGreenDeployments.path.orgId` (string, required) — UUID or prefixed ID (org_…)
- `ListBlueGreenDeployments.path.projectId` (string, required) — UUID or prefixed ID (prj_…)

## Query parameters

- `ListBlueGreenDeployments.query.limit` (integer, optional) — The page size. Out of range is 400, never a clamp.
  - min 1; max 100; default `20`
- `ListBlueGreenDeployments.query.cursor` (string, optional) — The previous page's nextCursor. Bound to the organization, the list and its filters.
- `ListBlueGreenDeployments.query.cache` (string, optional) — Only this cch_'s.

## Code samples

### cURL

```curl
curl --request GET \
  --url https://caches-api.ezghcloud.com/v1/organizations/string/projects/string/blue-green-deployments \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://caches-api.ezghcloud.com/v1/organizations/string/projects/string/blue-green-deployments';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://caches-api.ezghcloud.com/v1/organizations/string/projects/string/blue-green-deployments"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

A page.

#### Example

```json
{
  "blueGreenDeployments": [
    {
      "cache": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "failure": {
        "code": "string",
        "message": "string"
      },
      "greenEndpoint": {
        "hostname": "string",
        "plaintextPort": 0,
        "port": 0
      },
      "id": "string",
      "organizationId": "string",
      "projectId": "string",
      "region": "string",
      "resourceName": "string",
      "slug": "string",
      "status": "creating",
      "switchoverTimeoutSeconds": 0,
      "targetEngineVersion": "string",
      "targetInstanceType": "string",
      "targetMode": "memory",
      "targetStorage": {
        "iops": 0,
        "sizeGiB": 0,
        "throughputMBps": 0,
        "volumeType": "gp1"
      },
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "nextCursor": "string"
}
```

- `ListBlueGreenDeployments.response.200.blueGreenDeployments` (array<object>, required)
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.cache` (string, required) — The cch_ it upgrades.
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.createdAt` (string, required)
    - format `date-time`
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.failure` (object | null, required) — Why it failed; null otherwise.
    - `ListBlueGreenDeployments.response.200.blueGreenDeployments.failure.code` (string, required)
    - `ListBlueGreenDeployments.response.200.blueGreenDeployments.failure.message` (string, required)
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.greenEndpoint` (object | null, required) — Green's own name, read-only, for testing clients before the switchover. Null until it resolves.
    - `ListBlueGreenDeployments.response.200.blueGreenDeployments.greenEndpoint.hostname` (string, required)
    - `ListBlueGreenDeployments.response.200.blueGreenDeployments.greenEndpoint.plaintextPort` (integer | null, required) — Memcached's SASL plaintext port (11212) when plaintextPort is on; null otherwise.
    - `ListBlueGreenDeployments.response.200.blueGreenDeployments.greenEndpoint.port` (integer, required)
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.id` (string, required)
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.organizationId` (string, required)
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.projectId` (string, required)
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.region` (string, required)
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.resourceName` (string, required)
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.slug` (string, required) — The cbg_ ID.
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.status` (string, required)
    - one of `"creating"`, `"available"`, `"switching_over"`, `"switched_over"`, `"failed"`, `"deleting"`
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.switchoverTimeoutSeconds` (integer, required)
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.targetEngineVersion` (string, required)
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.targetInstanceType` (string, required)
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.targetMode` (string, required)
    - one of `"memory"`, `"persistent"`
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.targetStorage` (one of, required)
    - one of: [Storage](/caches-api/schemas/Storage/), `null`
  - `ListBlueGreenDeployments.response.200.blueGreenDeployments.updatedAt` (string, required)
    - format `date-time`
- `ListBlueGreenDeployments.response.200.nextCursor` (string | null, required)

### 400

invalid_request (with issues), invalid_cursor, or the endpoint's own 400 codes.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListBlueGreenDeployments.response.400.error` (object, required)
  - `ListBlueGreenDeployments.response.400.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListBlueGreenDeployments.response.400.error.message` (string, required)
    - maxLength 1024
  - `ListBlueGreenDeployments.response.400.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListBlueGreenDeployments.response.400.error.issues.message` (string, required)
    - `ListBlueGreenDeployments.response.400.error.issues.path` (string, required)
  - `ListBlueGreenDeployments.response.400.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListBlueGreenDeployments.response.400.error.quota.id` (string, required)
    - `ListBlueGreenDeployments.response.400.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListBlueGreenDeployments.response.400.error.quota.limit` (integer, required)
      - min 0
    - `ListBlueGreenDeployments.response.400.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListBlueGreenDeployments.response.400.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.400.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.400.error.quota.region` (string, optional)
    - `ListBlueGreenDeployments.response.400.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.400.error.quota.scopeResourceName` (string, optional)
    - `ListBlueGreenDeployments.response.400.error.quota.used` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.400.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 401

unauthenticated: no credential, or one that doesn't check out.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListBlueGreenDeployments.response.401.error` (object, required)
  - `ListBlueGreenDeployments.response.401.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListBlueGreenDeployments.response.401.error.message` (string, required)
    - maxLength 1024
  - `ListBlueGreenDeployments.response.401.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListBlueGreenDeployments.response.401.error.issues.message` (string, required)
    - `ListBlueGreenDeployments.response.401.error.issues.path` (string, required)
  - `ListBlueGreenDeployments.response.401.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListBlueGreenDeployments.response.401.error.quota.id` (string, required)
    - `ListBlueGreenDeployments.response.401.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListBlueGreenDeployments.response.401.error.quota.limit` (integer, required)
      - min 0
    - `ListBlueGreenDeployments.response.401.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListBlueGreenDeployments.response.401.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.401.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.401.error.quota.region` (string, optional)
    - `ListBlueGreenDeployments.response.401.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.401.error.quota.scopeResourceName` (string, optional)
    - `ListBlueGreenDeployments.response.401.error.quota.used` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.401.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 403

access_denied: the caller's policies don't allow the action; forbidden_origin: a cookie-authenticated write from an origin that isn't allowed; spend_limit_reached.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListBlueGreenDeployments.response.403.error` (object, required)
  - `ListBlueGreenDeployments.response.403.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListBlueGreenDeployments.response.403.error.message` (string, required)
    - maxLength 1024
  - `ListBlueGreenDeployments.response.403.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListBlueGreenDeployments.response.403.error.issues.message` (string, required)
    - `ListBlueGreenDeployments.response.403.error.issues.path` (string, required)
  - `ListBlueGreenDeployments.response.403.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListBlueGreenDeployments.response.403.error.quota.id` (string, required)
    - `ListBlueGreenDeployments.response.403.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListBlueGreenDeployments.response.403.error.quota.limit` (integer, required)
      - min 0
    - `ListBlueGreenDeployments.response.403.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListBlueGreenDeployments.response.403.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.403.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.403.error.quota.region` (string, optional)
    - `ListBlueGreenDeployments.response.403.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.403.error.quota.scopeResourceName` (string, optional)
    - `ListBlueGreenDeployments.response.403.error.quota.used` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.403.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 404

not_found: unknown, malformed, or in an organization the caller isn't in.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListBlueGreenDeployments.response.404.error` (object, required)
  - `ListBlueGreenDeployments.response.404.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListBlueGreenDeployments.response.404.error.message` (string, required)
    - maxLength 1024
  - `ListBlueGreenDeployments.response.404.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListBlueGreenDeployments.response.404.error.issues.message` (string, required)
    - `ListBlueGreenDeployments.response.404.error.issues.path` (string, required)
  - `ListBlueGreenDeployments.response.404.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListBlueGreenDeployments.response.404.error.quota.id` (string, required)
    - `ListBlueGreenDeployments.response.404.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListBlueGreenDeployments.response.404.error.quota.limit` (integer, required)
      - min 0
    - `ListBlueGreenDeployments.response.404.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListBlueGreenDeployments.response.404.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.404.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.404.error.quota.region` (string, optional)
    - `ListBlueGreenDeployments.response.404.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.404.error.quota.scopeResourceName` (string, optional)
    - `ListBlueGreenDeployments.response.404.error.quota.used` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.404.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 429

too_many_requests, with Retry-After; or quota_exceeded (a rate, usage or concurrency quota, with quota), never with Retry-After.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListBlueGreenDeployments.response.429.error` (object, required)
  - `ListBlueGreenDeployments.response.429.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListBlueGreenDeployments.response.429.error.message` (string, required)
    - maxLength 1024
  - `ListBlueGreenDeployments.response.429.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListBlueGreenDeployments.response.429.error.issues.message` (string, required)
    - `ListBlueGreenDeployments.response.429.error.issues.path` (string, required)
  - `ListBlueGreenDeployments.response.429.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListBlueGreenDeployments.response.429.error.quota.id` (string, required)
    - `ListBlueGreenDeployments.response.429.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListBlueGreenDeployments.response.429.error.quota.limit` (integer, required)
      - min 0
    - `ListBlueGreenDeployments.response.429.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListBlueGreenDeployments.response.429.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.429.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.429.error.quota.region` (string, optional)
    - `ListBlueGreenDeployments.response.429.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.429.error.quota.scopeResourceName` (string, optional)
    - `ListBlueGreenDeployments.response.429.error.quota.used` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.429.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 500

internal_error: a bug; the details are in the logs, under the request ID.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListBlueGreenDeployments.response.500.error` (object, required)
  - `ListBlueGreenDeployments.response.500.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListBlueGreenDeployments.response.500.error.message` (string, required)
    - maxLength 1024
  - `ListBlueGreenDeployments.response.500.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListBlueGreenDeployments.response.500.error.issues.message` (string, required)
    - `ListBlueGreenDeployments.response.500.error.issues.path` (string, required)
  - `ListBlueGreenDeployments.response.500.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListBlueGreenDeployments.response.500.error.quota.id` (string, required)
    - `ListBlueGreenDeployments.response.500.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListBlueGreenDeployments.response.500.error.quota.limit` (integer, required)
      - min 0
    - `ListBlueGreenDeployments.response.500.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListBlueGreenDeployments.response.500.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.500.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.500.error.quota.region` (string, optional)
    - `ListBlueGreenDeployments.response.500.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.500.error.quota.scopeResourceName` (string, optional)
    - `ListBlueGreenDeployments.response.500.error.quota.used` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.500.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 503

unavailable: a dependency the request needs is down. Retry after Retry-After.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListBlueGreenDeployments.response.503.error` (object, required)
  - `ListBlueGreenDeployments.response.503.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListBlueGreenDeployments.response.503.error.message` (string, required)
    - maxLength 1024
  - `ListBlueGreenDeployments.response.503.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListBlueGreenDeployments.response.503.error.issues.message` (string, required)
    - `ListBlueGreenDeployments.response.503.error.issues.path` (string, required)
  - `ListBlueGreenDeployments.response.503.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListBlueGreenDeployments.response.503.error.quota.id` (string, required)
    - `ListBlueGreenDeployments.response.503.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListBlueGreenDeployments.response.503.error.quota.limit` (integer, required)
      - min 0
    - `ListBlueGreenDeployments.response.503.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListBlueGreenDeployments.response.503.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.503.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.503.error.quota.region` (string, optional)
    - `ListBlueGreenDeployments.response.503.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListBlueGreenDeployments.response.503.error.quota.scopeResourceName` (string, optional)
    - `ListBlueGreenDeployments.response.503.error.quota.used` (integer, optional)
      - min 0
    - `ListBlueGreenDeployments.response.503.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.


Source: https://docs.ezghcloud.com/caches-api/ListBlueGreenDeployments/index.md
