Get Max Severity For Devices

Get Max Severity For Devices

This operation extracts the maximum severity value of notifications raised on the requested devices.

Request
URI
POST
https://{api_host}/tcsa.host.com/tcsa/api/notification-management/v1/notifications/max-severity
COPY
Request Body

The request body contains a list of nodes for which maximum severity has to be fetched.

NodeList of type(s) application/json
Required
{
    "nodelist": [
        "KubernetesMaster-b71f6305-17f4-47c1-97dc-bb6a441d9829$KubernetesMaster$INCHARGE-SA-PRES",
        "KubernetesPod-569b3e3c-2734-4877-ae4a-7b504a5058cf$KubernetesPod$INCHARGE-SA-PRES",
        "KubernetesPod-601b653d-44c2-4045-be03-b2c94640361e$KubernetesPod$INCHARGE-SA-PRES",
        "KubernetesPod-7f3eefb2-a1f7-4cf8-8fd9-44959999a8c4$KubernetesPod$INCHARGE-SA-PRES",
        "KubernetesPod-a95df964-740b-4909-bf4e-7bae4a047203$KubernetesPod$INCHARGE-SA-PRES",
        "KubernetesPod-d6d7c864-2638-470d-bda8-49ad75e486da$KubernetesPod$INCHARGE-SA-PRES",
        "KubernetesPod-ff36a997-47d0-40fa-871d-f04dcbce91e6$KubernetesPod$INCHARGE-SA-PRES",
        "KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42$KubernetesWorker$INCHARGE-SA-PRES",
        "VM-10.62.72.3:kube-metaswitch-np1-76ddcc547d-5pp6k$VirtualMachine$INCHARGE-SA-PRES"
    ]
}
array of string
nodelist
Optional

list of nodes for which maximum severity has to be fetched

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns MaxSeverityResponse of type(s) application/json
{
    "KubernetesWorker-96105fd2-1a74-46b6-ac8f-e869609e8d42$KubernetesWorker$INCHARGE-SA-PRES": {
        "severity": 1,
        "notification_count": 3
    },
    "KubernetesPod-569b3e3c-2734-4877-ae4a-7b504a5058cf$KubernetesPod$INCHARGE-SA-PRES": {
        "severity": 2,
        "notification_count": 2
    },
    "KubernetesPod-7f3eefb2-a1f7-4cf8-8fd9-44959999a8c4$KubernetesPod$INCHARGE-SA-PRES": {
        "severity": 2,
        "notification_count": 2
    },
    "KubernetesPod-ff36a997-47d0-40fa-871d-f04dcbce91e6$KubernetesPod$INCHARGE-SA-PRES": {
        "severity": 2,
        "notification_count": 2
    },
    "KubernetesPod-601b653d-44c2-4045-be03-b2c94640361e$KubernetesPod$INCHARGE-SA-PRES": {
        "severity": 2,
        "notification_count": 2
    },
    "KubernetesPod-a95df964-740b-4909-bf4e-7bae4a047203$KubernetesPod$INCHARGE-SA-PRES": {
        "severity": 2,
        "notification_count": 2
    },
    "KubernetesPod-d6d7c864-2638-470d-bda8-49ad75e486da$KubernetesPod$INCHARGE-SA-PRES": {
        "severity": 2,
        "notification_count": 2
    },
    "VM-10.62.72.3:kube-metaswitch-np1-76ddcc547d-5pp6k$VirtualMachine$INCHARGE-SA-PRES": {
        "severity": 2,
        "notification_count": 1
    }
}

401

Client must authenticate itself to get the requested response

Operation doesn't return any data structure

403

The client does not have access rights to the content; that is, it is Client must authenticate itself to get the requested response

Operation doesn't return any data structure

404

The server can not find the requested resource

Operation doesn't return any data structure