HA - Get proxy configurations for all data centers

The ServiceProviderAPI (Service Provider API) Api-Token scope is required to get proxy configurations for all data centers using Dynatrace API.

Parameter

Parameter Type Description In Required
dc string

Data Center

path required

Response

Response codes

Code Description
200

Success

404

Proxy is not configured for given Data Center

Response body

The Internet proxy object

Configuration of proxy server for Internet connection

Element Type Description
scheme string

Protocol which proxy server uses

server string

Address (either IP or Hostname) of proxy server

port integer

Port of proxy server

nonProxyHosts string[]

Definition of hosts for which proxy won't be used.

userOrPasswordDefined boolean

Indicates if user/password for proxy is configured

Example

In this example, you request to receive proxy configurations for all data centers. In return you receive JSON response listing of proxy configurations for eu-west-1 and us-east-1.

Curl

curl -X GET "https://myManaged.cluster.com/api/v1.0/onpremise/proxy/configurations" -H  "accept: application/json"

Request URL

https://myManaged.cluster.com/api/v1.0/onpremise/proxy/configurations

Response body

{
  "configurations": {
    "eu-west-1": {
      "scheme": "http",
      "server": "outbound-proxy-dc1.dynatrace.com",
      "port": 8080,
      "nonProxyHosts": [
        "https://mycompany.com/proxy/*",
        "*.internal.lab.company.com"
      ],
      "userOrPasswordDefined": true
    },
    "us-east-1": {
      "scheme": "http",
      "server": "outbound-proxy-dc2.dynatrace.com",
      "port": 8080,
      "nonProxyHosts": [
        ""
      ],
      "userOrPasswordDefined": true
    }
  }
}

Response code

200