Stashbase
Environments

List

List environments in the specified project.

GET
/v1/projects/{project_identifier}/environments/

List environments in the specified project.

Path Parameters

project_identifier*string

The name or the ID of the project.

Query Parameters

sort_by?string

Sort environments by property, default: name.

Value in"name" | "is_production" | "created_at" | "updated_at" | "secret_count"
order?string

Sort the environments in ascending or descending order, default: asc.

Default"asc"
Value in"asc" | "desc"
is_production?boolean

Filter environments by production status, possible values: true, false.

search?string

Search environments by name.

Response Body

application/json

curl -X GET "https://example.com/v1/projects/string/environments/"
[
  {
    "id": "ev_2vKmcBluEENNfFKtXzrHBS",
    "name": "api-dev",
    "created_at": "2021-03-05T10:00:00Z",
    "updated_at": "2021-03-05T10:00:00Z",
    "is_production": false,
    "description": "Development environment for public REST API server.",
    "secret_count": 20
  },
  {
    "id": "ev_oyq9JCyu5QCCds4EpkePyp",
    "name": "api-stg",
    "created_at": "2021-03-05T12:00:00Z",
    "updated_at": "2021-03-05T12:00:00Z",
    "is_production": false,
    "description": "Staging environment for public REST API server.",
    "secret_count": 22
  }
]