...
Returns a list of outages.
Response:
Code Block |
---|
[ [ { "change_id": "ticket #1234005", "current": "current", "description": "Emergency outage005", "elementelements": [ { "element_name": "Vlan2lo", "node_name": "Switch-1A.TEST" }, { "element_name": "regex:^Vlan.*?$Vlan1", "node_name": "Switch-21" } ], "end": 16841568631685541600, "frequency": "once", "id": "0ea7644e7a2011c7-b6fa2880-4fa240ab-9b33aa17-a86b79db21a412a110cc1c23", "nodes": { [], "nameoptions": [{ "nostats": 0 "Switch-2 }, "start": 1685455200 }, { "change_id": "001", "current": null, "description": "001", "elements": [ { "element_name": "Vlan1", "node_name": "Switch-2" } ], "end": "12:12", "frequency": "daily", "id": "1f7ea042-0aaa-46a7-b34b-f9314952ee6f", "nodes": [], "options": { "nostats": 0 }, "start": "11:11" }, { "change_id": "Testing_OMK-9923_2", "current": null, "description": "Testing outages update by Shantaveer", "elements": [ { "element_name": "Vlan1", "node_name": "Switch-1" ]}, }, { "options": {}, "startelement_name": 1683811263"Vlan1", }, { "changenode_idname": "Outage_123_AT_OPTESTS", Switch-2" "current": null, } "description": "Emergency outage"], "end": 16838259251685498400, "frequency": "once", "id": "ea7a3a94738d6ead-f0562729-432f4986-91c58146-9f39eee7c70632b34a8c985d", "nodes": {[ "namethor": [ ], "asgardoptions",: { "apc-ups" ] },"nostats": 0 "options": {}, "start": 16469184631685491200 } ] |
GET of /v2/outages/<id> for Read
...
Returns an outage.
Response:
Code Block |
---|
{ "change_id": "001", "current": "current"null, "description": "testing outage 1001", "elements": [ { "element_name": "Vlan11Vlan1", "node_name": "Asgard"Switch-2" } }], ], "end": 1684763940"12:12", "frequency": "oncedaily", "id": "e17b6efa1f7ea042-a3da0aaa-428146a7-919cb34b-bef26b96ff80f9314952ee6f", "nodes": [], "Asgardoptions" ], : { "options": { "nostats": 0 }, "start": 1684072800"11:11" } |
POST of /v2/outages/ for Create
...