---
title: "List environments"
method: GET
path: "/environments"
tags: ["resource-api"]
---

# List environments

`GET /environments`

List environments available in Tracetest.

## Parameters

- `./parameters.yaml#/components/parameters/take` — unresolved $ref
- `./parameters.yaml#/components/parameters/skip` — unresolved $ref
- `./parameters.yaml#/components/parameters/switchableResourceSortBy` — unresolved $ref
- `./parameters.yaml#/components/parameters/sortDirection` — unresolved $ref

## Response `200`

successful operation

- EnvironmentResourceList — unresolved $ref

## Other responses

- `400` — invalid query for environments, some data was sent in incorrect format.
- `500` — problem listing environments

## Changes

- **2023-05-05** `aebd16be2d20` — 1 breaking, 2 warning
  - the response's body type changed from `object` to no type for status `200`
  - removed the optional property `count` from the response with the `200` status
  - removed the optional property `items` from the response with the `200` status
- **2023-05-02** `356fe46f6721` — 1 breaking, 1 warning, 7 info
  - the response's body type changed from `array` to `object` for status `200`
  - the optional response header `X-Total-Count` removed for the status `200`
  - api operation id `getEnvironments` removed and replaced with `listEnvironments`
  - api tag `resource-api` added
  - …5 more
- **2023-04-14** `5dadc65a3c42` — 5 warning
  - deleted the `query` request parameter `query`
  - deleted the `query` request parameter `skip`
  - deleted the `query` request parameter `sortBy`
  - deleted the `query` request parameter `sortDirection`
  - …1 more
- **2022-11-17** `9ee6203c38fa` — 8 info
  - api operation id `listEnvironments` removed and replaced with `getEnvironments`
  - added the new optional `query` request parameter `query`
  - added the new optional `query` request parameter `skip`
  - added the new optional `query` request parameter `sortBy`
  - …4 more

[Change history](https://skmtc.dev/kubeshop/apis/tracetest/changes/environments/get.md)

---

[API](https://skmtc.dev/kubeshop/apis/tracetest.md) · [All operations](https://skmtc.dev/kubeshop/apis/tracetest/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kubeshop/tracetest/revisions/49ffca7b5e87/schema)
