Download OpenAPI specification:Download
This spec defines the API provided by the Notification Service.
Get the subscriber from the notification service given subscriber. ID.
| id required | integer ID of the subscriber entry. |
{- "id": 0,
- "handler": "string",
- "endpoint": "string",
- "config": { }
}Delete the specified subscriber from the notification service.
| id required | integer ID of the subscriber entry to be deleted. |
{- "message": "Subscriber is not found.",
- "code": 101
}Register subscriber with the notification service.
Register a new subscriber for notification messages.
| handler required | string Type of handlers. Valid values are "http" and "relp" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| endpoint required | string for http it is https://<webhook-ipv4/ipv6/hostname>:<port> and for relp it is <syslog-ipv4/ipv6/hostname>:<port> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| config required | object config parameters is a dictionary/ordered map. Valid keys are "username", "password", "insecure", "cacert", "conn-timeout" "filters" "device-event" and "minimum-severity".
Following are the list values for filters:
|
{- "handler": "http",
- "configs": {
- "username": "admin",
- "password": "pass",
- "insecure": true,
- "filters": [ ]
}
}{- "id": 0,
- "handler": "string",
- "endpoint": "string",
- "config": { }
}Get the list of all the requests previously executed.
| limit required | integer Default: 10 Limit the number of executions that will be sent in the response. Default is 10 |
| status | string Default: "all" Filter the executions based on the status (failed/succeeded/all). |
{- "items": [
- {
- "start_time": "2000-01-23T04:56:07.000+00:00",
- "end_time": "2000-01-23T04:56:07.000+00:00",
- "id": "id",
- "command": "subscriber add",
- "status": "Successful"
}, - {
- "start_time": "2000-01-23T04:56:07.000+00:00",
- "end_time": "2000-01-23T04:56:07.000+00:00",
- "id": "id",
- "command": "subscriber add",
- "status": "Successful"
}
]
}