This API call updates a cluster proxy configuration.
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.
/api/v1.0/onpremise/proxy/configuration
InternetProxyChangeRequest
objectConfiguration of proxy server for Internet connection
Definition of hosts for which proxy won't be used. You can define multiple hosts. Each host can start or end with wildcard '*' for instance to match whole domain.
Password of proxy server, null means do not change previous value
Port of proxy server
Protocol which proxy server uses
http
https
Address (either IP or Hostname) of proxy server
User of proxy server, null means do not change previous value
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"nonProxyHosts": ["string"],"password": "string","port": 1,"scheme": "http","server": "string","user": "string"}
Successful, new configuration created
Successful, configuration updated
Given proxy configuration is invalid
In this example, you add a proxy server (outbound-proxy.dynatrace.com
) that uses port 8080 and requires a password, at the same time excluding an internal lab host (*.internal.lab.company.com
).
curl -X PUT "https://myManaged.cluster.com/api/v1.0/onpremise/proxy/configuration" -H "accept: */*" -H "Content-Type: application/json" -d "{\"scheme\":\"http\",\"server\":\"outbound-proxy.dynatrace.com\",\"port\":8080,\"nonProxyHosts\":[\"https://mycompany.com/proxy/*\",\"*.internal.lab.company.com\"],\"userOrPasswordDefined\":true}"
https://myManaged.cluster.com/api/v1.0/onpremise/proxy/configuration
{"code": 201,"message": "Successful, new configuration created."}
201