This URL gets the proxy server configuration at device level.
Resource URL
GET /device/<device_id>/proxyserver
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Device id | Number | Yes |
Response Parameters
Following fields are returned.
Field Name | Description | Data Type |
|---|---|---|
| Inherit settings from parent domain | Boolean |
| Use proxy server configuration | Boolean |
| Proxy server name/IP configuration | String |
| Proxy port configuration | Number |
| Username | String |
| Password | String |
Example
Request
GET https://<NSM_IP>/sdkapi/device/1001/proxyserver
Response
{
"useDeviceListSettings": false,
"useProxyserver": true,
"proxyServerNameOrIPAddr": 1.1.1.1,
"proxyPort": 8443,
"userName": null,
"password": null
}
Error Information
Following error code is returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 500 | 1001 | Internal error |