• Home
  • Dynatrace API
  • Configuration
  • Remote environments
  • GET all environments

Remote environments API - GET all environments

Lists all remote environment configurations.

The request produces an application/json payload.

GETManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/config/v1/remoteEnvironments
SaaShttps://{your-environment-id}.live.dynatrace.com/api/config/v1/remoteEnvironments
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/config/v1/remoteEnvironments

Authentication

To execute this request, you need an access token with ReadConfig scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

The request doesn't provide any configurable parameters.

Response

Response codes

CodeTypeDescription
200RemoteEnvironmentConfigListDto

Success

Response body objects

The RemoteEnvironmentConfigListDto object

ElementTypeDescription
valuesRemoteEnvironmentConfigStub[]-

The RemoteEnvironmentConfigStub object

The short representation of a remote environment.

ElementTypeDescription
networkScopestring

The network scope of the remote environment:

  • EXTERNAL: The remote environment is located in an another network.
  • INTERNAL: The remote environment is located in the same network.
  • CLUSTER: The remote environment is located in the same cluster.

Dynatrace SaaS can only use EXTERNAL.

If not set, EXTERNAL is used.

The element can hold these values
  • CLUSTER
  • EXTERNAL
  • INTERNAL
namestring-
idstring-
uristring

The display name of the remote environment.

Response body JSON model

json
{ "values": [ { "networkScope": "CLUSTER", "name": "string", "id": "string", "uri": "string" } ] }

Example

In this example, the request asks for a list of all the remote environment configurations in the mySampleEnv environment.

The API token is passed in the Authorization header.

The result is truncated to two entries.

Curl

bash
curl -X GET \ https://mySampleEnv.live.dynatrace.com/api/config/v1/remoteEnvironments/ \ -H 'Accept: application/json; charset=utf-8' \ -H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'

Request URL

plaintext
https://mySampleEnv.live.dynatrace.com/api/config/v1/remoteEnvironments/

Response body

json
{ "values": [ { "id": "b597955c-4706-40f6-b188-212faba25e1f", "name": "Production North", "uri": "https://prodNorth.live.dynatrace.com", "networkScope": "EXTERNAL" }, { "id": "4f3b0f62-6ec0-407d-be50-5109a8516edf", "name": "Production South", "uri": "https://prodSouth.live.dynatrace.com", "networkScope": "EXTERNAL" } ] }

Response code

200