Modify Syslog Server Subscribed Severities

Modifies the severity of notifications the syslog server is subscribed to receive. All notifications of the selected verities will be returned.

Request syntax

PATCH /v1/notification/syslog/servers/{address} {"subscribed": ["information" | "warning" | "error", ...]}Modifies the severity of notifications the syslog server is subscribed to receive. All notifications of the selected verities will be returned.


Path parameters

address (string)

The unique address of the syslog server for this library. This can be either an IPv4 address or DNS hostname, and must match the address used when the server was registered.

Request body parameters

subscribed (array of strings)

A list of event severities that specify which events will be sent to this Syslog server. This list includes the following possible strings: “error”, “warning”, or “information”.

Examples

Example modifying subscriptions using an IPv4 address:

> PATCH /v1/notification/syslog/servers/192.168.0.13 {"subscribed": ["error"]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0

Example modifying subscriptions using a DNS hostname:

> PATCH /v1/notification/syslog/servers/syslog.example.com {"subscribed": ["error", "warning"]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0