This API has a deprecated equivalent from v7.0U1.
Get Proxy
DescriptionGets the proxy configuration for a specific protocol.
Request
URLURL
https://{api_host}/api/appliance/networking/proxy/{protocol}
Path Parameters
Path Parameters
string
protocol
Required
The protocol whose proxy configuration is requested.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Response
Response
Response BodyResponse Body
200 OK returns
NetworkingProxyConfig of type application/json
Proxy configuration for a specific protocol.
{
"enabled": false,
"password": "string",
"port": 0,
"server": "string",
"username": "string"
}
boolean
enabled
Required
In the result of the #get and #list operations this field indicates whether proxying is enabled for a particular protocol. In the input to the test and set operations this field specifies whether proxying should be enabled for a particular protocol.
integer
port
Required
Port to connect to the proxy server. In a ‘get’ call, indicates the port connected to the proxy server. In a ‘set’ call, specifies the port to connect to the proxy server. A value of -1 indicates the default port.
string
server
Required
URL of the proxy server
string
password
Optional
Password for proxy server. Only set if proxy requires password.
string
username
Optional
Username for proxy server. Only set if proxy requires username.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/api/appliance/networking/proxy/{protocol}
Errors
Availability
Added in 7.0U2