This URL updates the Gateway Anti-Malware updating configuration for domain.
Resource URL
PUT /domain/<domain_id>/gamupdatesettings
Request Parameters
URL Parameter
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Domain id | Number | Yes |
Payload Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Inherit settings from parent domain | Boolean | Yes |
| Enable automatic update of Gateway Anti-Malware | Boolean | Yes |
| Time interval of next update | String | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, 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/0/gamupdatesettings
Payload
{
"inheritSettings": false,
"enableAutoUpdate": false,
"updateInterval": "6 hrs"
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1105 | Invalid domain |
2 | 400 | 9101 | Cannot inherit settings for parent domain |
3 | 400 | 9302 | Gateway Anti-Malware update time interval should be one of the following : ["1.5 hrs", "3 hrs", "6 hrs", "12 hrs", "24 hrs"] |