Notification Rules
List all notification rules
This API endpoint retrieves the list of notification rules. The notification rules list includes data source and destination channel details. NOTE: The source.alerts.alertCount field in responses is a summary count; use getNotificationRuleV1 to retrieve the full list of alertNames
get/network-notifications/v1/notification-rules
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.
Query parameters
limitinteger
Specifies the number of results to be returned.
offsetinteger
Specifies the zero-based resource offset from which to start the response.
Example:10
Response
List of notification rules.
Example response
{
"items": [
{
"id": "3f96ffea-73fe-4a9b-b253-ddc58c76fe25",
"name": "email-rule",
"description": "Notification rule for email alerts.",
"enabled": true,
"source": {
"alerts": {
"enabled": true,
"alertCount": 10
}
},
"destination": {
"email": {
"enabled": true,
"emailIds": [
"admin@domain.com"
]
},
"webhook": {
"enabled": true,
"webhookIds": [
"4d113fgh-abcd-ef"
]
},
"syslog": {
"enabled": true,
"serverIds": [
"4d113fgh-abcd-ef"
]
}
}
}
],
"count": 100,
"total": 200
}Changes
No recorded changes to this operation across all 1 revision of this API.