Notification Sets

GET notification_sets/meta

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Returns meta data information for Notification Set configuration.

Resource URL

http://{host}/api/2.0/notification_sets/meta/.format

Example Request

GET 

  1. http://44.235.52.211/api/2.0/notification_sets/meta/.json

{ "EventSeverities": { "1": "Critical", "2": "Major", "3": "Minor", "4": "Warning", "5": "Notice", "6": "Info", "7": "Keep Alive" }, "NotificationAgentTypes": { "2": { "title": "display", "max_per_set": "1" }, "4": { "title": "snmp", "max_per_set": "3" }, "5": { "title": "email", "max_per_set": "3" }, "12": { "title": "syslog", "max_per_set": "3" }, "15": { "title": "file", "max_per_set": "3" }, "21": { "title": "errorDisplay", "max_per_set": "3" }, "22": { "title": "audioAlarm", "max_per_set": "3" } } }

 


 

GET notification_sets

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Returns a list of Notification Sets configurations.

Resource URL

http://{host}/api/2.0/notification_sets/.format

Example Request

GET 

  1. http://44.235.52.211/api/2.0/notification_sets/.json

[ { "NotificationSet": { "id": 1, "title": "Default", "modified": "1612414794578", "created": "1611142282208" } }, { "NotificationSet": { "id": 2, "title": "System Events", "modified": "1611142282208", "created": "1611142282208" } } ]

 


 

GET notification_sets/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Returns a detailed single specific Notification Set configuration data.

Resource URL

http://{host}/api/2.0/notification_sets/{id}/.format

Parameters

Parameter

Data Type

Description

id
(required)

integer

The ID of the desired Notification Set to be viewed.

Example Request

GET 

  1. http://44.235.52.211/api/2.0/notification_sets/1/.json

{ "NotificationSet": { "id": 1, "title": "Default", "modified": "1612414794578", "created": "1611142282208", "NotificationSetEntry": [ { "id": 5, "notification_agent_type_id": 2, "notification_agent_id": 1, "event_severity_id": 1 }, { "id": 9, "notification_agent_type_id": 4, "notification_agent_id": 1, "event_severity_id": 1 }, { "id": 14, "notification_agent_type_id": 5, "notification_agent_id": 1, "event_severity_id": 1 } ] } }

 


 

POST notification_sets

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

POST

Adds a new Notification Set.

Resource URL

http://{host}/api/2.0/notification_sets/.format

Example Request

POST 

  1. http://44.235.52.211/api/2.0/notification_sets/.json

 


 

POST notification_sets/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

POST

Duplicates a specific Notification Set into a new one, preserving all data except for title.

Resource URL

http://{host}/api/2.0/notification_sets/{id}/.format

Parameters

Parameter

Data Type

Description

id
(required)

integer

The ID of the desired Notification Set to be copied.

Example Request

POST 

  1. http://44.235.52.211/api/2.0/notification_sets/1/.json

 


 

PUT notification_sets/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

PUT

Updates a single specific Notification Set.

Resource URL

http://{host}/api/2.0/notification_sets/{id}/.format

Parameters

Parameter

Data Type

Description

1
(required)

integer

The ID of the desired Notification Set to be updated.

Example Request

PUT 

  1. http://44.235.52.211/api/2.0/notification_sets/6/.json

 


 

DELETE notification_sets/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

DELETE

Deletes a single specific Notification Set.

Resource URL

http://{host}/api/2.0/notification_sets/{id}/.format

Parameters

Parameter

Data Type

Description

id
(required)

integer

The ID of the desired Notification Set to be deleted.

Example Request

DELETE 

  1. http://44.235.52.211/api/2.0/notification_sets/6/.json