Post /logging/event-alarm-mapping/{id}
Description
Updates an existing event to alarm mapping record in the database
Request Parameters
Id, the event alarm mapping record Id.
Request Headers
Key |
Value |
Type |
Description |
---|---|---|---|
Authorization | Bearer <Authorization Token> | String | Authorization credential generated by FortiNAC |
Content-Type (option 1) | application/json | String | |
Content-Type (option 2) |
application/xml |
|
|
Sample Request
Request URL |
POST https://10.106.94.152:8443/api/v2/logging/event-alarm-mapping/3 |
Request Header |
Authorization: Bearer <Authorization_Token> Content-Type: application/json
|
Request Body |
{ "landscape": 0, "id": 0, "state": "string", "alarmName": "string", "eventName": "string", "clearEventName": "string", "severity": 0, "elementType": "string", "elementID": 0, "notifyGroupID": 0, "sendEmail": true, "sendSMS": true, "alarmAction": { "emailMessage": "string", "valuesForDiff": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "primaryTask": { "emailMessage": "string", "name": "string" }, "secondaryTask": { "emailMessage": "string", "name": "string" }, "duration": 0, "clearTask": { "emailMessage": "string", "name": "string" }, "message": "string", "name": "string" }, "paused": true, "version": 0, "log": true, "scriptName": "string", "lastModifiedBy": "string", "lastModifiedDate": "2024-03-05T19:07:59.034Z", "auditObjectName": "string", "auditObjectType": { "auditTableName": "string", "mysqlTableName": "string", "idnameQuery": "string" }, "modifyAuditSummary": "string", "addAuditSummary": "string", "notifyGroup": { "landscape": 0, "dbid": 0, "elementClass": 0, "name": "string", "userGroup": true, "description": "string", "accessPolicy": 0, "daysValid": 0, "daysInactive": 0, "guid": 0, "globalModifiedDate": "2024-03-05T19:07:59.034Z", "nameLabel": "string" }, "rule": { "satisfiedByTime": true, "type": "string", "name": "string", "version": 0 }, "elementTypeAuditType": { "auditTableName": "string", "mysqlTableName": "string", "idnameQuery": "string" } } |
Sample Response
{
"status": "string",
"errorMessage": "string",
"results": 0
}