listNotificationProfiles
This API is used to list all the Notification Profiles.
HTTP Method
GETAPI URL
To list all global profiles:
http://localhost:8060/api/json/admin/listNotificationProfiles?apiKey=*********&profileFilter=AllTo list Log A Ticket type global profiles:
http://localhost:8060/api/json/admin/listNotificationProfiles?apiKey=**********&profileFilter=Log a TicketTo list all device specific profiles:
http://localhost:8060/api/json/admin/listNotificationProfiles?apiKey=***********&isGlobal=falseParameters
| Param Name | Description | Data Type | Additional Information | Is Mandatory |
|---|---|---|---|---|
| apiKey | API key to access your OpManager server. | String | - | Yes |
| isGlobal | Boolean flag indicating whether to fetch only global profiles or the device specific profiles | Boolean | true- Lists only global profiles.false- Lists all device-specific profiles. | No |
| profileFilter | To filter global notification profiles, based on action types | String | All - To list all global profiles Send Email, Send SMS, Send Modem SMS, Run System Command, Run Program, Log a Ticket, Web Alarm, Send SysLog, Send Trap, Chat, SDPOnDemand, Webhook, CITemplate, Ansible, CITInternal, Splunk, SIEM - To list all the global profiles based on the mentioned type | No |
Sample Response
HTTP Code: 200
[
{
"profileName": "CriticalAlerts_To_Admin",
"actionDisplayName": "Run System Command",
"associationTypeDisplayName": "Manual",
"profileLabel": "Run System Command",
"criteriaId": "301",
"profileId": "301",
"associationType": "MANUAL",
"isGlobal": true,
"status": "true",
"actionName": "Run System Command"
},
{
"profileName": "Default Notification Profile",
"actionDisplayName": "Send Email",
"associationTypeDisplayName": "Manual",
"profileLabel": "Send Email",
"criteriaId": "1",
"profileId": "1",
"associationType": "MANUAL",
"isGlobal": true,
"status": "true",
"actionName": "Send Email"
}
]