API Guide

Table 2. API parameters (continued)
Filter name Description
(query)
Responses 200 — Response to get all the active alerts
{
"data": [
{
"id": "136:51772757723185169",
"type": "SWITCH_UNREACHABLE_ALERT",
"severity": "WARNING",
"created_timestamp": 1579979178564,
"modified_timestamp": 0,
"message": "Switch : 'tb-Leaf2' is not reachable.",
"referenced_object_id": {
"id": "2:51770212505682023",
"type": "SWITCH"
},
"state": "ACK",
"acknowledged_by": “admin@sfd.local”,
"acknowledged_at": 1579980259696
}
]
}
401 — You are not authorized to perform this operation
{
"new_object_id": "string",
"id": "string",
"message": "string",
"messageParams": [
"string"
],
"messages": [
{
"id": "string",
"message": "string",
"field_name": "string",
"messageParams": [
"string"
]
}
]
}
default — Success or error response
{
"new_object_id": "string",
"id": "string",
"message": "string",
"messageParams": [
"string"
],
"messages": [
{
"id": "string",
"message": "string",
"field_name": "string",
"messageParams": [
"string"
]
}
]
}
12
Alerts