Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
[
    {
        "change_id": "123456",
        "current": "current",
        "description": "testing 123456",
        "end": 1683381540,
        "frequency": "once",
        "id": "df0affe5-a16f-4fa2-a299-5376a3fabb73",
        "nodes": {
            "group": [
                "HQDev"
            ],
            "name": [
                "Switch-1"
            ],
            "nodeStatus": [
                "reachable"
            ],
            "nodeType": [
                "switch",
                "server",
                "generic"
            ],
            "nodeVendor": [
                "Cisco Systems"
            ],
            "roleType": [
                "test2"
            ]
        },
        "options": {
            "nostats": 0
        },
        "start": 1683122400
    },
    {
        "change_id": "1",
        "current": "current",
        "description": "test-outage",
        "end": 1683381540,
        "frequency": "once",
        "id": "10d3558d-1819-4492-8ff5-a5629663e0d7",
        "nodes": {
            "name": [
                "fulla"
            ]
        },
        "options": {
            "nostats": 0
        },
        "start": 1683122400
    }
]



Get Outage

GET http://server/en/omk/admin/api/v3/outages/#ID

Ex. http://server/en/omk/admin/api/v3/outages/f14d4f34-2fd0-4be0-9d54-7431c5de294f

Returns an outage.

Response:


Code Block
{
    "change_id": "123456",
    "current": "current",
    "description": "testing 123456",
    "end": 1683381540,
    "frequency": "once",
    "id": "df0affe5-a16f-4fa2-a299-5376a3fabb73",
    "nodes": {
        "group": [
            "HQDev"
        ],
        "name": [
            "Switch-1"
        ],
        "nodeStatus": [
            "reachable"
        ],
        "nodeType": [
            "switch",
            "server",
            "generic"
        ],
        "nodeVendor": [
            "Cisco Systems"
        ],
        "roleType": [
            "test2"
        ]
    },
    "options": {
        "nostats": 0
    },
    "start": 1683122400
}