• Home
  • Dynatrace Managed
  • Cluster API
  • Cluster API v1
  • Internet proxy v1
  • HA - Get proxy configurations for all data centers

HA - Get proxy configurations for all data centers

This API call retrieves proxy configurations for all data centers in premium high availability deployments.

Authentication

To execute this request, you need the Service Provider API (ServiceProviderAPI) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.

Endpoint

/api/v1.0/onpremise/proxy/configurations

Parameter

ParameterTypeDescriptionInRequired
dcstring

Data Center

pathrequired

Response

Response codes

CodeTypeDescription
200InternetProxy

Success

404

Proxy is not configured for given Data Center

Response body objects

The InternetProxy object

Configuration of proxy server for Internet connection

ElementTypeDescription
schemestring

Protocol which proxy server uses

serverstring

Address (either IP or Hostname) of proxy server

portinteger

Port of proxy server

nonProxyHostsstring[]

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

userOrPasswordDefinedboolean

Indicates if user/password for proxy is configured

Response body JSON model

json
{ "scheme": "string", "server": "string", "port": 1, "nonProxyHosts": [ "string" ], "userOrPasswordDefined": true }

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

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

Request URL

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

Response body

json
{ "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