---
title: "Get a single project deployment target"
method: GET
path: "/projects/{projectId}/deployments/{deploymentTargetConfigurationId}"
tags: ["Deployment Target"]
---

# Get a single project deployment target

`GET /projects/{projectId}/deployments/{deploymentTargetConfigurationId}`

Get a single deployment target configuration of a project.

## Path parameters

- `projectId` string, required
- `deploymentTargetConfigurationId` string, required

## Response `default`

- union
  - DedicatedDeploymentTarget
    - `id` string — The identifier of DedicatedDeploymentTarget
    - `type` 'dedicated' | 'enterprise' | 'local', required — The type of the deployment target.
    - `name` string, required — The name of the deployment target.
    - `deploy_host` string, nullable, required — The host to deploy to.
    - `deploy_port` integer, nullable, required — The port to deploy to.
    - `ssh_host` string, nullable, required — The host to use to SSH to app containers.
    - `hosts` object[], nullable, required — The hosts of the deployment target.
      - `id` string, nullable, required — The identifier of the host.
      - `type` 'core' | 'satellite', required — The type of the deployment to this host.
      - `services` string[], nullable, required — The services assigned to this host
    - `auto_mounts` boolean, required — Whether to take application mounts from the pushed data or the deployment target.
    - `excluded_mounts` string[], required — Directories that should not be mounted
    - `enforced_mounts` object, required — Mounts which are always injected into pushed (e.g. enforce /var/log to be a local mount).
    - `auto_crons` boolean, required — Whether to take application crons from the pushed data or the deployment target.
    - `auto_nginx` boolean, required — Whether to take application crons from the pushed data or the deployment target.
    - `maintenance_mode` boolean, required — Whether to perform deployments or not
    - `guardrails_phase` integer, required — which phase of guardrails are we in
  - EnterpriseDeploymentTarget
    - `id` string — The identifier of EnterpriseDeploymentTarget
    - `type` 'dedicated' | 'enterprise' | 'local', required — The type of the deployment target.
    - `name` string, required — The name of the deployment target.
    - `deploy_host` string, nullable, required — The host to deploy to.
    - `docroots` object, required — Mapping of clusters to Enterprise applications
    - `site_urls` object, required
    - `ssh_hosts` string[], required — List of SSH Hosts.
    - `maintenance_mode` boolean, required — Whether to perform deployments or not
    - `enterprise_environments_mapping` object — Mapping of clusters to Enterprise applications
  - FoundationDeploymentTarget
    - `id` string — The identifier of FoundationDeploymentTarget
    - `type` 'dedicated' | 'enterprise' | 'local', required — The type of the deployment target.
    - `name` string, required — The name of the deployment target.
    - `hosts` object[], nullable, required — The hosts of the deployment target.
      - `id` string, nullable, required — The identifier of the host.
      - `type` 'core' | 'satellite', required — The type of the deployment to this host.
      - `services` string[], nullable, required — The services assigned to this host
    - `use_dedicated_grid` boolean, required — When true, the deployment will be pinned to Grid hosts dedicated to the environment using this deployment target. Dedicated Grid hosts must be created prior to deploying the environment. The constraints that will be set are as follows: * `cluster_type` is set to `environment-custom`. * `cluster` is set to the environment's cluster name.
    - `storage_type` string, nullable, required — The storage type.

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
