REST API - list

appliance networking proxy: list

Gets proxy configuration for all configured protocols. This operation was added in vSphere API 6.7.

Request:

HTTP request

GET https://{server}/rest/appliance/networking/proxy
No request parameters

Response:

HTTP Status Code: 200

Representation:

{
    "value"[
        {
            "value"{
                "server""string",
                "password""secret string",
                "port"1,
                "enabled"true,
                "username""string"
            },
            "key""HTTP"
        }
    ]
}

Response Type:

Name Type Description
bold = required
value list Proxy configuration for all configured protocols.List of {"key": string, "value": config}
value[].key string Defines the protocols for which proxying is supported. This enumeration was added in vSphere API 6.7. Value is one of:
HTTP: Proxy configuration for http. This constant was added in vSphere API 6.7.
HTTPS: Proxy configuration for https. This constant was added in vSphere API 6.7.
FTP: Proxy configuration for ftp. This constant was added in vSphere API 6.7.
value[].value config
value[].value.server string URL of the proxy server. This attribute was added in vSphere API 6.7.

value[].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[].value.username string Username for proxy server. This attribute was added in vSphere API 6.7.

Optional. Only set if proxy requires username.

Errors:

HTTP Status Code Type Description
500 error Generic error.