Get cluster proxy configuration

The ServiceProviderAPI (Service Provider API) Api-Token scope is required to get cluster proxy configuration using Dynatrace API.

Parameter

The request doesn't provide any configurable parameters.

Response

Response codes

Code Description
200

Success

404

Proxy is not configured

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 proxy configuration from your Managed deployment (myManaged.cluster.com). In return you receive a response indicating that proxy server is 172.16.115.211 on port 8080 and that you require a password to use that proxy.

Curl

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

Request URL

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

Response body

{
  "scheme": "http",
  "server": "172.16.115.211",
  "port": 8080,
  "userOrPasswordDefined": true
}

Response code

200