[{"label":"Latest (2.0.1)","version":"latest"}]
telco-cloud-service-assurance

Get Max Severity For Devices

Description

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

Request

Request

URL

URL


post
https://{api_host}tcsa.host.com/tcsa/api/notification-management/v1/notifications/max-severity
Copy

Request Body

Request Body

NodeList of mimetype application/json Required

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

{
    "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

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

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

The Number of notifications of {severity} type.


integer
severity Optional

An enumerated value that describes the severity of the event from the notifier’s point of view: 1 - Critical is used to indicate action is needed NOW and the scope is broad, e.g. an outage to a critical resource. 2 - Major is used to indicate action is needed NOW. 3 - Minor should be used to indicate action is needed, but the situation is not serious at this time. 4 - Unknown indicates that the element is unreachable, disconnected or in an otherwise unknown state. 5 - Normal is used when an event is purely informational..

Errors

Errors

401

Client must authenticate itself to get the requested response


403

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


404

The server can not find the requested resource

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"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"]}' https://{api_host}tcsa.host.com/tcsa/api/notification-management/v1/notifications/max-severity


Feedback

Was this page helpful?