appliance networking proxy: get

Gets the proxy configuration for a specific protocol. This operation was added in vSphere API 6.7

Request:

HTTP request

GET https://{server}/rest/appliance/networking/proxy/{protocol}

Path Parameters

Name Type Description
Required
protocol string The protocol whose proxy configuration is requested.

Response:

HTTP Status Code: 200

Representation:

{
    "value"{
        "enabled"true,
        "password""secret string",
        "port"1,
        "server""string",
        "username""string"
    }
}

Response Type:

Name Type Description
bold = required
value config Proxy configuration for a specific protocol.
value.server string Hostname or IP address of the proxy server. This attribute was added in vSphere API 6.7

value.port long 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. This attribute was added in vSphere API 6.7

value.username string Username for proxy server. This attribute was added in vSphere API 6.7

Optional. Only set if proxy requires username.

value.password secret Password for proxy server. This attribute was added in vSphere API 6.7

Optional. Only set if proxy requires password.

value.enabled boolean 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. This attribute was added in vSphere API 6.7

Errors:

HTTP Status Code Type Description
500 error Generic error.