Test Proxy Deprecated
Tests a proxy configuration by testing the connection to the proxy server and test host.
Request
URLURL
https://{api_host}/rest/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, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
Request Body
NetworkingProxyTestRequestBody of mimetype application/json
Required
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.
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK returns
NetworkingProxyTestResponseBody of type application/json
Status of proxy settings.
{
"value": {
"message": {
"args": [
"string"
],
"default_message": "string",
"id": "string",
"localized": "string",
"params": [
{
"key": "key1",
"value": {
"d": 0,
"dt": "string",
"format": "SHORT_DATE",
"i": 0,
"l": {
"id": "string",
"params": "StdLocalizationParam Object"
},
"precision": 0,
"s": "string"
}
}
]
},
"status": "SERVER_REACHABLE"
}
}
Errors
default
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
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}/rest/appliance/networking/proxy/{protocol}?action=test
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-vmw-doc-new-method: post
x-vmw-doc-new-path: /api/appliance/networking/proxy/{protocol}?action=test
x-vmw-doc-operation: test
Availability
Added in 6.7