IBM DataPower Operations Dashboard v1.0.17.0
A newer version of this product documentation is available.
You are viewing an older version. View latest at IBM DPOD Documentation.
Alerts REST API
- Meytal Ben-Tzvi (Deactivated)
Available alert actions via APIs
Get / Create / Update / Execute / Delete alerts
Authorization:
Authentication: Basic authentication
Roles: it is recommended to read Role Based Access Control page for understanding build-in and custom roles permissions.
From CLI (example):
curl -u username:password https://<dpod hostname>/op/api/v2/alerts/{{productView}}
GET Retrieve All Alerts
URL:
GET - https://{{dpodHostname}}
/op/api/v2/alerts/{{productView}}
Request - None.
URL Parameters:
Name | Is required | Description | Parameter Type | Data options |
---|
Name | Is required | Description | Parameter Type | Data options |
---|---|---|---|---|
productView | True | Product view APIC / IDG | String |
|
Authorization:
Required Permissions | More info |
---|
Required Permissions | More info |
---|---|
| See roles information here: Role Based Access Control |
Response:
Response Type | Example value | Description |
---|
Response Type | Example value | Description |
---|---|---|
Successful | {
"resultCode": "SUCCESS",
"resultMessage": "Alerts retrieved successfully,
"result": {
"alerts": [{
"isSystemHealthMetric": false,
"isActive": false,
"name": "API Error Message Count Alert",
"description": "Alert when more than 10 API trans. ended with a specific error message",
"productView": "APIC",
"indexSets": "apic-log",
"documentType": "APIC_LOGICAL_TRANS",
"jsonQuery": "{\"_source\":{\"includes\":[\"apiName\",\"errorMessage\"]},... }",
"jsonParameters": "{\"messageTextSubstring\":\"Failed to establish a backside connection\"}",
"schedule": "",
"recipients": [],
"filtersParameters": { "timeRangeType": "recent",.....},
"lastUpdateTimeInMillis": 1646655197926,
"lastUpdateUserName": "admin",
"isPublishToMail": false,
"isPublishToSyslog": false,
"isPublishToMailWs": false,
"errorThreshold": 10.0,
"alertType": "Frequency",
"comparator": "GreaterThan",
"apiReference": "EDBD6F2B-A576-4619-AC63-2594A10F7EC6",
"drillDownDashboardToken": "apicTransactions:"
},
{....}
]
}
} | Status code: 200 resultCode → SUCCESS resultMessage → “Alerts retrieved successfully"
|
GET Get Specific Alert Details
URL:
GET - https://{{dpodHostname}}
/op/api/v2/alert/{{productView}}
/{{alertApiReferenceId}}
Request - None.
URL Parameters:
Name | Is required | Description | Parameter Type | Data options |
---|
Name | Is required | Description | Parameter Type | Data options |
---|---|---|---|---|
productView | True | Product view APIC / IDG | String |
|
alertApiReferenceId | True | The alert apiReferenceId (can be retrieved from “Retrieved all alerts” response) | String |
|
Authorization:
Required Permissions | More info |
---|
Required Permissions | More info |
---|---|
| See roles information here: Role Based Access Control |
Response:
Response Type | Example value | Description |
---|
Response Type | Example value | Description |
---|---|---|
Successful | {
"resultCode": "SUCCESS",
"resultMessage": "Alert retrieved successfully",
"result": {
"isSystemHealthMetric": <true/false>,
"isActive": <true/false>,
"name": "<alert name>",
"description": "<alert description>",
"productView": "<alert product view>",
"indexSets": "<alert indexSet>",
"documentType": "<alert documentType>",
"jsonQuery": "{\"_source\":{\"includes\":[\"apiName\",... }",
"jsonParameters": "<json parameters>",
"schedule": "",
"recipients": [],
"filtersParameters": { "timeRangeType": "recent",.....},
"lastUpdateTimeInMillis": 1644768927839,
"lastUpdateUserName": "Installer",
"isPublishToMail": <true/false>,
"isPublishToSyslog": <true/false>,
"isPublishToMailWs": <true/false>,
"errorThreshold": 10.0,
"alertType": "<alert type>",
"comparator": "<comparator>",
"apiReference": "<alert uuid>",
"drillDownDashboardToken": "<...>"
}
} | Status code: 200 resultCode → SUCCESS resultMessage → “Alert retrieved successfully” |
POST Execute (Async) Alert
URL:
POST - https://{{dpodHostname}}
/op/api/v2/alert/{{productView}}
/{{alertApiReferenceId}}
/executeAsync
URL Parameters:
Name | Is required | Description | Parameter Type | Data options |
---|
Name | Is required | Description | Parameter Type | Data options |
---|---|---|---|---|
productView | True | Product view APIC / IDG | String |
|
alertApiReferenceId | True | The alert apiReferenceId you wish to execute ( id can be retrieved from “Retrieved all alerts” response) | String |
|
Authorization:
Required Permissions | More info |
---|
Required Permissions | More info |
---|---|
| See roles information here: Role Based Access Control |
Request body:
Type | Parameters | Example Json | Description |
---|
Type | Parameters | Example Json | Description |
---|---|---|---|
Required |
|
| |
Additional parameter | Available filters: |
|
Response:
Response Type | Example value | Description |
---|
Response Type | Example value | Description |
---|---|---|
Successful | Status code: 200 resultCode → SUCCESS resultMessage → “Alert executed successfully” result → executionId → The alert execution id (integer). |
GET Get Alert Execution Details
URL:
GET - https://{{dpodHostname}}
/op/api/v2/alertexecution/{{productView}}
/{{executionId}}
Request - None.
URL Parameters:
Name | Is required | Description | Parameter Type | Data options |
---|
Name | Is required | Description | Parameter Type | Data options |
---|---|---|---|---|
productView | True | Relevant product view APIC / IDG | String |
|
executionId | True | The alert execution ID (can be retrieved from “execute alert” api response) | String | The alert Id |
Authorization:
Required Permissions | More info |
---|
Required Permissions | More info |
---|---|
| See roles information here: Role Based Access Control |
Response:
Response Type | Example value | Description |
---|
Response Type | Example value | Description |
---|---|---|
Successful | Status code: 200 resultCode → SUCCESS resultMessage → “Alert retrieved successfully” result →
| |
Failure |
| Status code: 200 resultCode → ERROR resultErrorCode → ALERT_NOT_FOUND resultMessage → “Alert execution not found” |
GET Download Alert Execution
URL:
GET - https://{{dpodHostname}}
/op/api/v2/alertexecution/{{productView}}
/{{executionId}}
/download
Request - None.
URL Parameters:
Name | Is required | Description | Parameter Type | Data options |
---|
Name | Is required | Description | Parameter Type | Data options |
---|---|---|---|---|
productView | True | Relevant product view APIC / IDG | String |
|
executionId | True | The alert execution ID (can be retrieved from “execute alert” api response) | String | The alert Id |
Authorization:
Required Permissions | More info |
---|
Required Permissions | More info |
---|---|
| See roles information here: Role Based Access Control |
Response:
Response Type | Value | Description |
---|
Response Type | Value | Description |
---|---|---|
Successful | xls file type | Status code: 200 |
POST Duplicate Alert
POST Add Alert
PUT Edit Alert
DELETE Delete Alert