This URL creates/updates the syslog configuration for firewall notification.
Resource URL
GET /domain/<domain_id>/notification/firewall/syslog
Request Parameters
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Domain id | Int | Yes |
Payload Parameter: SyslogNotification
Details of SyslogNotification:
Field Name | Description | Data Type |
|---|---|---|
| Enable syslog notification | Boolean |
| Parent and child domain | Boolean |
| Server IP address | String |
| Server port | Number |
| Facilities | String |
| Severity | String |
| Message | String |
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
GET https://<NSM_IP>/sdkapi/domain/0/ notification/firewall/syslog
Request Payload
{
"enableSyslog": true,
"parentAndChildDomain": true,
"serverIp": "1.1.1.2",
"serverPort": 515,
"facilities": "CLOCK_DAEMON_NOTE_2",
"severity”: "EMERGENCY_SYSTEM_UNUSABLE",
"message": "$IV_ACK_INFORMATION$ $IV_ADMIN_DOMAIN$ $IV_DESCRIPTION$"
}
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 | 1725 | Invalid facilities |
3 | 400 | 1726 | Invalid severity mapping |