When you schedule an outage or create a maintenance window for a device, you can suspend event alerts for that device during such outage period. NMIS enables you to easily manage the scheduled outages and maintenance windows on the NMIS portal; see the NMIS Outages documentation for more information.
...
All these methods require authentication.
POST http://server/en/omk/admin/login
Form data:
- username
- password
GET
of /v2/
outages
for List
GET http[s]://server/en/omk/admin/api/v2/outages
If your GET
call provides an Accept
header indicating JSON, or if you use a .json
suffix (for example, /v2/outages.json
as URI), then It will look for matching Outages and returns their properties in the form of a JSON object, that is, an array of Outages.
...
HTTP Status | Body | Description |
---|---|---|
401 Unauthorized | JSON object with an error property | You are not authenticated. |
403 Forbidden | JSON object with an error property | You are not authorized. |
GET http://server/en/omk/admin/api/v2/outages
Returns a list of outages.
...
If your GET
call provides an accept
header, indicating application/json,
or if you use /en/omk/admin/api/v2/outages/
<id>.json
as URI, then the Outage will be looked up and all properties will be returned in the form of a JSON object.
...
GET http://server/en/omk/admin/api/v2/outages/#ID
Ex. http://server/en/omk/admin/api/v2/outages/1f7ea042-0aaa-46a7-b34b-f9314952ee6f
Returns an outage.
Response:
...
DELETE http://server/en/omk/admin/api/v2/outages/0ea7644e-b6fa-4fa2-9b33-a86b79db21a4
Returns 200 if the outage was successfully removed.
...
The following table lists theproperties of an Outage.
Property | Description | Example |
| A globally unique Outage ID | 0ea7644e-b6fa-4fa2-9b33-a86b79db21a4 |
change_id | Insert any reference number if required in the change ID field | ticket #12345 |
current | If the outage is current or scheduled/future outage. IS THIS 'current' for scheduled or null for future. | current |
description | Long description of an Outage. | This is a test outage |
frequency | Frequency may be once, daily, weekly or monthly. | once |
start | Date and time when the outage shall start. For Read, this is a Unix timestamp, the number of seconds since 1970-01-01 00:00:00 UTC. | 2023-10-31T17:00:00+0000 |
end | Date and time when the outage shall end. For Read, this is a Unix timestamp, the number of seconds since 1970-01-01 00:00:00 UTC. For Create and Update, see Supported Time Formats for a description of the values allowed. | 31 May 2023 03:30 pm |
nodes | List of nodes for which Outages are defined. At least one nodes or an elements must be specified. | [ 'Switch-1','Switch-2' ] |
elements | List of elements of nodes for which Outages are defined. The element must be defined to match the one which may occur in the events.
|
[ { |
"element_name": "Vlan2", |
"node_name": "Switch-1" |
|
|
"node_name": "Switch-1" | ||
options |
DOCUMENT THE KEYS AND VALUES | "Normal" |
Limitations
API Endpoint
All requests are made under the following base URL:
...