This API has a deprecated equivalent from v7.0U1.
Test Proxy
Tests a proxy configuration by testing the connection to the proxy server and test host.
Request
URLURL
https://{api_host}/api/appliance/networking/proxy/{protocol}?action=test
Path Parameters
Path Parameters
string
protocol
Required
Protocol whose proxy is to be tested.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Request Body
Request Body
NetworkingProxyTestRequestBody of mimetype application/json
Optional
This is a request body class for an operation.
(The request body parameter is missing description)
{
"config": {
"enabled": false,
"port": 0,
"server": "string"
},
"host": "string"
}
string
host
Required
A hostname, IPv4 or Ipv6 address.
Response
Response
Response BodyResponse Body
200 OK returns
NetworkingProxyTestResult of type application/json
Status of proxy settings.
{
"message": {
"args": [
"string"
],
"default_message": "string",
"id": "string",
"localized": "string",
"params": {
"key": {
"d": 0,
"dt": "string",
"format": "enum",
"i": 0,
"l": {
"id": "string",
"params": "StdLocalizationParam Object"
},
"precision": 0,
"s": "string"
}
}
},
"status": "enum"
}
status
Required
Status of the proxy server indicating whether the proxy server is reachable.
Possible values are: SERVER_REACHABLE , SERVER_UNREACHABLE
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"config":{"enabled":false,"password":"string","port":0,"server":"string","username":"string"},"host":"string"}' https://{api_host}/api/appliance/networking/proxy/{protocol}?action=test
Errors
Availability
Added in 7.0U2