This URL updates the proxy server configuration.
Resource URL
PUT /domain/<domainId>/proxyserver
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Domain id | Number | Yes |
Payload parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Inherit managers settings | Boolean | No |
| Use proxy server | Boolean | No |
| Proxy server IP/name | String | Yes |
| Proxy port | Number | Yes |
| Username | String | No |
| Password | String | No |
Response Parameters
Following fields are returned if the operation was successful, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Set to 1 if the operation was successful | Number |
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/<domainId>/proxyserver
Payload
{
"useDeviceListSettings": false,
"useProxyserver": false,
"proxyServerNameOrIPAddr": 1.1.1.1,
"proxyPort": 8443,
"userName": null,
"password": null
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
No | SDK API errorId | SDK API errorMessage |
|---|---|---|
1 | 4714 | Listening port number should be between 1 and 65535 |