---
title: "Get deployment"
method: GET
path: "/v1/workspaces/{workspaceId}/deployments/{deploymentId}"
---

# Get deployment

`GET /v1/workspaces/{workspaceId}/deployments/{deploymentId}`

## Path parameters

- `workspaceId` string, required
- `deploymentId` string, required

## Response `200`

OK response

- DeploymentWithVariablesAndSystems
  - `deployment` Deployment, required
    - `description` string
    - `id` string, required
    - `jobAgentConfig` object, required
    - `jobAgentSelector` string, required — CEL expression to match job agents
    - `metadata` object
    - `name` string, required
    - `resourceSelector` string — CEL expression to determine if the deployment should be used
    - `slug` string, required
  - `systems` System[], required
    - `description` string
    - `id` string, required
    - `metadata` object
    - `name` string, required
    - `slug` string, required
    - `workspaceId` string, required
  - `variables` DeploymentVariableWithValues[], required
    - `values` DeploymentVariableValue[], required
      - `deploymentVariableId` string, required
      - `id` string, required
      - `priority` integer, required
      - `resourceSelector` string — A CEL expression to select which resources this value applies to
      - `value` union, required
        - union
          - boolean
          - number
          - integer
          - string
          - ObjectValue
            - `object` object, required
          - true
        - ReferenceValue
          - `path` string[], required
          - `reference` string, required
        - SensitiveValue
          - `valueHash` string, required
    - `variable` DeploymentVariable, required
      - `deploymentId` string, required
      - `description` string
      - `id` string, required
      - `key` string, required

## Other responses

- `400` — Invalid request
- `404` — Resource not found

---

[API](https://skmtc.net/ctrlplanedev/apis/ctrlplane-api.md) · [All operations](https://skmtc.net/ctrlplanedev/apis/ctrlplane-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ctrlplanedev/ctrlplane-api/versions/156e0d264995/schema)
