Lists all environments of an account.
The request produces an application/json payload.
GET
https://api.dynatrace.com/env/v2/accounts/{accountUuid}/environments
To execute this request, you need the Allow read access for environment resources (account-env-read) scope assigned to your token. To learn how to obtain and use it.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| accountUuid | string | The ID of the required account. You can find the UUID on the Account Management > Identity & access management > OAuth clients page, during creation of an OAuth client. | path | Required |
| Code | Type | Description |
|---|---|---|
| 200 | Environment | - |
EnvironmentListDto object| Element | Type | Description |
|---|---|---|
| data | Environment | Lists all environments in an account |
EnvironmentDto object| Element | Type | Description |
|---|---|---|
| id | string | The UUID of the environment. |
| name | string | Friendly name of the environment |
| active | boolean | Property to determine if environment is active |
| url | string | The url of the environment |
{"data": [{"id": "string","name": "string","active": true,"url": "string"}]}