---
title: "Get a list of Environments"
method: GET
path: "/spaces/{spaceIdentifier}/environments/all/v1"
tags: ["Environments"]
---

# Get a list of Environments

`GET /spaces/{spaceIdentifier}/environments/all/v1`

Lists the name and ID of all of the environments in the supplied Space. The results will be sorted by the `SortOrder` field on each environment.

## Path parameters

- `spaceIdentifier` string, required

## Query parameters

- `channelId` string
- `ids` string[]
- `projectId` string

## Response `200`

Requested list of Environments

- GetAllEnvironmentsResponse
  - `Environments` EnvironmentResource[], required
    - `AllowDynamicInfrastructure` boolean
    - `Description` string
    - `EnvironmentTags` string[]
    - `ExtensionSettings` ExtensionSettingsValues[]
      - `ExtensionId` string
      - `Values` unknown
    - `Id` string
    - `LastModifiedBy` string
    - `LastModifiedOn` string, date-time
    - `Links` object
    - `Name` string
    - `Slug` string
    - `SortOrder` integer
    - `SpaceId` string
    - `UseGuidedFailure` boolean

## Other responses

- `304` — Not Modified
- `400` — Bad request. Either the payload was not structurally valid or business rules did not permit the operation.
- `404` — Not found. One or more of the entities involved in the operation was not found.

---

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