diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-23 09:08:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-23 09:08:52 +0300 |
commit | 817adcd0d02e4ecbfa5e317703f7909384d1b8af (patch) | |
tree | 7705622529c5cf54cd75072f7d602b1ca4f077f2 /doc/api/environments.md | |
parent | 2c505d2a49e04506e30266c05e84d68971f87502 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/environments.md')
-rw-r--r-- | doc/api/environments.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/api/environments.md b/doc/api/environments.md index 5f6bdc251ba..75222c1bc52 100644 --- a/doc/api/environments.md +++ b/doc/api/environments.md @@ -13,6 +13,7 @@ GET /projects/:id/environments | `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user | | `name` | string | no | Return the environment with this name. Mutually exclusive with `search` | | `search` | string | no | Return list of environments matching the search criteria. Mutually exclusive with `name` | +| `states` | string | no | List all environments that match a specific state. Accepted values: `available` or `stopped`. If no state value given, returns all environments. | ```shell curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/environments?name=review%2Ffix-foo" |