Environment management API - GET all environments of an account

Lists all environments of an account.

The request produces an application/json payload.

GET

https://api.dynatrace.com/env/v2/accounts/{accountUuid}/environments

Authentication

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, see Authentication.

Parameters

ParameterTypeDescriptionInRequired
accountUuidstring

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.

pathrequired

Response

Response codes

CodeTypeDescription
200EnvironmentListDto-

Response body objects

The EnvironmentListDto object

ElementTypeDescription
dataEnvironmentDto[]

Lists all environments in an account

The EnvironmentDto object

ElementTypeDescription
idstring

The UUID of the environment.

namestring

Friendly name of the environment

activeboolean

Property to determine if environment is active

urlstring

The url of the environment

Response body JSON model

{
"data": [
{
"id": "string",
"name": "string",
"active": true,
"url": "string"
}
]
}