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": { }
}
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 ip>:<port> and for relp it is <syslog-ip>:<port> |
config required | object config parameters is a dictionary/ordered map. Valid keys are "username", "password", "insecure", "cacert", "conn-timeout" and "filters". | Valid keys | Description | Handler types | |----------------|---------------------------------|---------------| | username | username of the webhook/http url| http | | | | | | password | password of the webhook/http url| http | | | | | | insecure | indicates if the connection is secure or not | http & relp | | | | | | ca-cert | CA certificate for secure connection | http & relp | | | | | | filters | list of filters based on which selected notifications will be filtered to subscribers| http & relp | | | | | | conn-timeout | connection timeout for http/relp in seconds | http & relp | | | | | | rfc5424 | enable RFC5424 message format for syslog | relp | | | | | 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.000Z",
- "end_time": "2000-01-23T04:56:07.000Z",
- "id": "id",
- "command": "subscriber add",
- "status": "Successful"
}, - {
- "start_time": "2000-01-23T04:56:07.000Z",
- "end_time": "2000-01-23T04:56:07.000Z",
- "id": "id",
- "command": "subscriber add",
- "status": "Successful"
}
]
}