summaryrefslogtreecommitdiff
path: root/doc/api/environments.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/environments.md')
-rw-r--r--doc/api/environments.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/api/environments.md b/doc/api/environments.md
index 5f6bdc251ba..2287ec9aad2 100644
--- a/doc/api/environments.md
+++ b/doc/api/environments.md
@@ -1,3 +1,10 @@
+---
+stage: Release
+group: Release Management
+info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#designated-technical-writers
+type: concepts, howto
+---
+
# Environments API
## List environments
@@ -13,6 +20,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"