Notification Rules
Update a notification rule
This API is used to update a notification rule.
patch/network-notifications/v1/notification-rules/{id}
Request
- Base URLhttps://sso.common.cloud.hpe.com
- AuthOAuth 2Client credentialsToken URLhttps://sso.common.cloud.hpe.com/as/token.oauth2
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Example:3f96ffea-73fe-4a9b-b253-ddc58c76fe25
ID of the notification rule.
Request body
Example request
{
"notificationRuleInput": {
"description": "Notification rule for email alerts.",
"enabled": true,
"source": {
"alerts": {
"enabled": true,
"alertNames": [
"AP CPU Utilization"
]
}
},
"destination": {
"email": {
"enabled": true,
"emailIds": [
"admin@domain.com"
]
},
"webhook": {
"enabled": true,
"webhookIds": [
"4d113fgh-abcd-ef"
]
},
"syslog": {
"enabled": true,
"serverIds": [
"4d113fgh-abcd-ef"
]
}
}
}
}Response
Notification rule.
Example response
{
"id": "3f96ffea-73fe-4a9b-b253-ddc58c76fe25",
"name": "email-rule",
"description": "Notification rule for email alerts.",
"enabled": true,
"source": {
"alerts": {
"enabled": true,
"alertNames": [
"AP CPU Utilization"
]
}
},
"destination": {
"email": {
"enabled": true,
"emailIds": [
"admin@domain.com"
]
},
"webhook": {
"enabled": true,
"webhookIds": [
"4d113fgh-abcd-ef"
]
},
"syslog": {
"enabled": true,
"serverIds": [
"4d113fgh-abcd-ef"
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.