HA - Delete proxy configuration in specific data center

The ServiceProviderAPI (Service Provider API) Api-Token scope is required to delete a proxy configuration in a specific data center using the Dynatrace API.

Parameter

Parameter Type Description In Required
dc string

Data Center

path required

Response

Response codes

Code Description
200

Successful, previous configuration returned

404

Proxy was 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 delete the proxy configuration from your Dynatrace Managed deployment in a specific data center (eu-west-1). In return, you receive a response containing the previous proxy configuration.

Curl

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

Request URL

https://myManaged.cluster.com/api/v1.0/onpremise/proxy/configurations/eu-west-1

Response body

{
      "scheme": "http",
      "server": "outbound-proxy.dynatrace.com",
      "port": 8080,
      "nonProxyHosts": [
        "https://mycompany.com/proxy/*",
        "*.internal.lab.company.com"
      ],
      "userOrPasswordDefined": true
}

Response code

200