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

# List capabilities

The platform-owned components of the Cluster (tunnel connector, private ingress gateway, storage, metrics) with the release each runs.

`GET https://api.akua.dev/v1/clusters/{id}/capabilities`

## Authorizations

- `Authorization: Bearer <token>` (BearerAuth): Bearer token for the authenticated caller.

## Headers

- `akua-context` (string): Optional workspace/scope context for the request. Carries a single workspace wire id (`ws_…`) today. Only needed for broad tokens - a workspace-owned token implies its workspace. Required string length: `1 - 53`. Example: `"ws_j572abc123def4"`.

## Path Parameters

- `id` (string, required): Cluster ID. Required string length: `3 - 54`.

## Query Parameters

- `cursor` (string): Pagination cursor from a previous response's `next_cursor`.
- `limit` (integer, default 50): Items per page (1-100, default 50). Required range: `1 <= x <= 100`.

## Response

### 200: The Cluster’s capabilities

`application/json`: `ClusterAddonList`

- `data` (object[], required)
  - `name` (enum<string>, required): `cni`, `incluster-api-proxy`, `cluster-connector` and `gateway-api-crds` run on hosted Clusters only, applied from beside the control plane. `gateway-api-crds` serves the Gateway API standard-channel CRDs, so an Install can expose its web service with an HTTPRoute. Available options: `"tunnel-connector"`, `"private-ingress-gateway"`, `"local-path-storage"`, `"metrics-server"`, `"cni"`, `"incluster-api-proxy"`, `"cluster-connector"`, `"gateway-api-crds"`.
  - `cluster_id` (string, required): Required string length: `3 - 54`.
  - `kind` (enum<string>, required): `capability`: platform-owned; you never install or remove it. `addon`: installed by you (not offered yet). Available options: `"capability"`, `"addon"`.
  - `location` (enum<string>, required): Where its Placement is applied from: by the connector inside the Cluster, or by the connector beside the hosted control plane. Changing it is a delete and a create, never a silent move. Available options: `"in-cluster"`, `"control-plane"`.
  - `desired` (object | null, required): What the ring wants it to run, recorded when the install is accepted and when an update starts; null once the add-on is being deleted.
    - `version` (string, required): Maximum string length: `64`.
    - `package_digest` (string, required): SHA-256 over the component, version and every pinned image digest of the release, or its Package digest. Pattern: `^[a-f0-9]{64}$`.
    - `config_hash` (string, required): SHA-256 over the render inputs other than the package: Cluster, Origin, ring and location. Pattern: `^[a-f0-9]{64}$`.
  - `applied` (object | null, required): What runs now.
    - `version` (string, required): Maximum string length: `64`.
    - `package_digest` (string, required): SHA-256 over the component, version and every pinned image digest of the release, or its Package digest. Pattern: `^[a-f0-9]{64}$`.
    - `config_hash` (string, required): SHA-256 over the render inputs other than the package: Cluster, Origin, ring and location. Pattern: `^[a-f0-9]{64}$`.
  - `last_known_good` (object | null, required): The last release that reached Current; what a rollback restores.
    - `version` (string, required): Maximum string length: `64`.
    - `package_digest` (string, required): SHA-256 over the component, version and every pinned image digest of the release, or its Package digest. Pattern: `^[a-f0-9]{64}$`.
    - `config_hash` (string, required): SHA-256 over the render inputs other than the package: Cluster, Origin, ring and location. Pattern: `^[a-f0-9]{64}$`.
  - `conditions` (object[], required)
    - `type` (enum<string>, required): Available options: `"Available"`, `"Progressing"`, `"Degraded"`.
    - `status` (boolean, required)
    - `reason` (enum<string>, required): Available options: `"Applied"`, `"NotApplied"`, `"Installing"`, `"Updating"`, `"WaitingForNodes"`, `"Deleting"`, `"Deleted"`, `"Settled"`, `"UpdateRolledBack"`, `"ApplyFailed"`, `"Unauthorized"`, `"Healthy"`. Fixed reasons per type.
      - `Available`: `Applied`, or `NotApplied`, `Deleting`, `Deleted`.
      - `Progressing`: `Installing`, `Updating` or `Deleting` while a change runs, `WaitingForNodes` while an accepted release waits for the first Ready node to be health-checked, else `Settled`.
      - `Degraded`: `UpdateRolledBack` (the last update failed its health gate and was rolled back), `ApplyFailed` (the install or the rollback did not become healthy) or `Unauthorized` (the cluster API refuses the credential or the rights of the connector that applies it; nothing it applies changes until they are restored), else `Healthy`.
    - `message` (string, required): Maximum string length: `512`.
    - `last_transition_at` (integer | null, required): When the failure or rollback was recorded; null otherwise. Unix timestamp (seconds). Required range: `x >= 0`.
- `has_more` (boolean, required): True if more items exist after this page.
- `next_cursor` (string | null, required): Opaque cursor for the next page, or null if no more pages.

### 400: The request is malformed.

`application/json`: `ApiBadRequest`

- `_tag` (enum<string>, required): Available options: `"Validation"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 401: Missing, invalid or expired credential.

`application/json`: `ApiUnauthorized`

- `_tag` (enum<string>, required): Available options: `"Unauthorized"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 403: The credential may not act in this workspace.

`application/json`: `ApiForbidden`

- `_tag` (enum<string>, required): Available options: `"Forbidden"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 404: The resource was not found in this workspace.

`application/json`: `ApiNotFound`

- `_tag` (enum<string>, required): Available options: `"NotFound"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 409: The request conflicts with existing resource state or immutable intent. | The resource changed since the etag the client sent; the current etag is in the metadata. | The idempotency key was already used for a different request.

`application/json`: `object`

- Any of:
  - `Conflict`
    - `_tag` (enum<string>, required): Available options: `"Conflict"`.
    - `success` (enum<boolean>, required): Available options: `false`.
    - `errors` (object[], required): Minimum array length: `1 element`.
      - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
      - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
      - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
      - `metadata` (record<string, string>)
    - `result` (object, required)
  - `PreconditionFailed`
    - `_tag` (enum<string>, required): Available options: `"PreconditionFailed"`.
    - `success` (enum<boolean>, required): Available options: `false`.
    - `errors` (object[], required): Required array length: `1 - 1 element`.
      - `code` (enum<number>, required): Available options: `7006`.
      - `message` (string, required)
      - `metadata` (object, required)
        - `current_etag` (string, required)
        - `{key}` (string)
    - `result` (object, required)
  - `IdempotencyConflict`
    - `_tag` (enum<string>, required): Available options: `"IdempotencyConflict"`.
    - `success` (enum<boolean>, required): Available options: `false`.
    - `errors` (object[], required): Minimum array length: `1 element`.
      - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
      - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
      - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
      - `metadata` (record<string, string>)
    - `result` (object, required)

### 410: The resource is permanently unavailable.

`application/json`: `ApiGone`

- `_tag` (enum<string>, required): Available options: `"Gone"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 422: The request is well-formed but cannot be processed.

`application/json`: `ApiUnprocessable`

- `_tag` (enum<string>, required): Available options: `"Unprocessable"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 429: The caller is over a rate budget, or a resource it adds to is at its limit (resource exhausted).

`application/json`: `ApiTooManyRequests`

- `_tag` (enum<string>, required): Available options: `"TooManyRequests"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 500: The server failed to handle the request.

`application/json`: `ApiInternalServerError`

- `_tag` (enum<string>, required): Available options: `"InternalServerError"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Required array length: `1 - 1 element`.
  - `code` (enum<number>, required): Available options: `7009`.
  - `message` (enum<string>, required): Available options: `"Internal server error"`.
- `result` (object, required)

### 502: An upstream provider failed.

`application/json`: `ApiExternalServiceError`

- `_tag` (enum<string>, required): Available options: `"ExternalServiceError"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 503: The service is temporarily unavailable.

`application/json`: `ApiServiceUnavailable`

- `_tag` (enum<string>, required): Available options: `"ServiceUnavailable"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 504: An upstream provider did not answer in time.

`application/json`: `ApiGatewayTimeout`

- `_tag` (enum<string>, required): Available options: `"GatewayTimeout"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

## Example request

```bash
curl --request GET \
  --url 'https://api.akua.dev/v1/clusters/clu_j572abc123def456/capabilities' \
  --header 'Authorization: Bearer <token>'
```

## Example response

`200` `application/json`

```json
{
  "data": [
    {
      "name": "tunnel-connector",
      "cluster_id": "clu_j572abc123def456",
      "kind": "capability",
      "location": "in-cluster",
      "desired": {
        "version": "<string>",
        "package_digest": "<string>",
        "config_hash": "<string>"
      },
      "applied": {
        "version": "<string>",
        "package_digest": "<string>",
        "config_hash": "<string>"
      },
      "last_known_good": {
        "version": "<string>",
        "package_digest": "<string>",
        "config_hash": "<string>"
      },
      "conditions": [
        {
          "type": "Available",
          "status": true,
          "reason": "Applied",
          "message": "<string>",
          "last_transition_at": 123
        }
      ]
    }
  ],
  "has_more": true,
  "next_cursor": "<string>"
}
```
