[{"label":"Latest (8.10.0)","version":"latest"},{"version":"8.6.3"}]
vrealize-operations

Create Notification Plugin Rule

Description

The Notification Plugin with which the Rule needs to be associated must be specified as part of the request.

Request

Request

URL

URL


post
https://localhost/suite-api/api/notifications/rules
Copy

Request Body

Request Body

notification-rule of type(s) application/json, application/xml Required

The notification rule that needs to be created

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created

Returns NotificationRule of type(s) application/json, application/xml

The Notification Rule was created successfully in the system

Errors

Errors

404

An invalid Alert Definition identifier was specified as part of Alert Definition Filter


422

An invalid request body was specified or any constraints were violated


500

There was an error during the creation of the Notification Rule

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"alertControlStates":["OPEN"],"alertDefinitionIdFilters":{"values":["string"]},"alertImpactFilters":{"values":["string"]},"alertStatuses":["NEW"],"alertTypeFilters":[{"alertSubTypes":[0],"alertType":0}],"collectorGroupId":"string","collectorUUId":"string","criticalities":["UNKNOWN"],"id":"string","links":[{"description":"string","href":"string","name":"string","rel":"NEXT"}],"name":"string","pluginId":"string","properties":[{"name":"string","value":"string"}],"resourceFilter":{"childrenResourceKindFilters":["string"],"childrenResourceKindKeyFilters":[{"adapterKind":"string","resourceKind":"string"}],"matchResourceIdOnly":false,"relationship":"PARENT","resourceId":"string"},"resourceFilters":[{"childrenResourceKindFilters":["string"],"childrenResourceKindKeyFilters":[{"adapterKind":"string","resourceKind":"string"}],"matchResourceIdOnly":false,"relationship":"PARENT","resourceId":"string"}],"resourceKindFilter":{"adapterKind":"string","resourceKind":"string"},"resourceKindFilters":[{"adapterKind":"string","resourceKind":"string"}],"templateId":"string"}' https://localhost/suite-api/api/notifications/rules


Feedback

Was this page helpful?