---
title: "Get a list of environment domains"
method: GET
path: "/projects/{projectId}/environments/{environmentId}/domains"
tags: ["Domain Management"]
---

# Get a list of environment domains

`GET /projects/{projectId}/environments/{environmentId}/domains`

Retrieve a list of objects representing the user-specified domains
associated with an environment. Note that this does *not* return the
`.platformsh.site` subdomains, which are automatically assigned to
the environment.

## Path parameters

- `projectId` string, required
- `environmentId` string, required

## Response `default`

- Domain[]
  - union
    - ProdDomainStorage
      - `id` string — The identifier of ProdDomainStorage
      - `created_at` string, date-time, nullable, required — The creation date
      - `updated_at` string, date-time, nullable, required — The update date
      - `type` string, required
      - `project` string
      - `name` string, required
      - `registered_name` string
      - `attributes` object, required — Arbitrary attributes attached to this resource
      - `is_default` boolean — Is this domain default
    - ReplacementDomainStorage
      - `id` string — The identifier of ReplacementDomainStorage
      - `created_at` string, date-time, nullable, required — The creation date
      - `updated_at` string, date-time, nullable, required — The update date
      - `type` string, required — Domain type
      - `project` string
      - `name` string, required
      - `registered_name` string
      - `attributes` object, required — Arbitrary attributes attached to this resource
      - `replacement_for` string — Prod domain which will be replaced by this domain.

---

[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)
