---
title: "GET /2023-10-12/farms/{farmId}/queues/{queueId}/environments"
method: GET
path: "/2023-10-12/farms/{farmId}/queues/{queueId}/environments"
---

# GET /2023-10-12/farms/{farmId}/queues/{queueId}/environments

`GET /2023-10-12/farms/{farmId}/queues/{queueId}/environments`

Lists queue environments.

## Path parameters

- `farmId` string, required
- `queueId` string, required

## Query parameters

- `nextToken` string
- `maxResults` integer

## Response `200`

Success

- ListQueueEnvironmentsResponse — Shared pagination field for List operation outputs (nextToken).
  - `environments` QueueEnvironmentSummary[], required — The environments to include in the queue environments list.
    - `queueEnvironmentId` string, required — The queue environment ID.
    - `name` string, required — The name of the queue environment.
    - `priority` integer, required — The queue environment's priority.
  - `nextToken` string — If Deadline Cloud returns <code>nextToken</code>, then there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then <code>nextToken</code> is set to <code>null</code>. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 <code>ValidationException</code> error.

## Other responses

- `480` — AccessDeniedException
- `481` — InternalServerErrorException
- `482` — ResourceNotFoundException
- `483` — ThrottlingException
- `484` — ValidationException

---

[API](https://skmtc.net/aws/apis/deadline.md) · [All operations](https://skmtc.net/aws/apis/deadline/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/deadline/versions/259a7ebfefa8/schema)
