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

Get Notification Summary

Description

This API provides summary of notification severity and their count.

Request

Request

URL

URL


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

Request Body

Request Body

SummaryRequest of mimetype application/json Optional

Request body is optional. User needs to provide request body only when filtering is required. For summary on selected notification, provide “VsaFilter” in request body.

{
	"vsafilter": {
		"condition": "AND",
		"filterlist": [
			{
				"condition": "AND",
				"propfilter": [
					{
						"matchtype": "IN",
						"propname": "Severity",
						"values": [
							"string"
						]
					}
				],
				"vsafilter": "VsaFilter Object"
			}
		]
	}
}
vsafilter Optional

The VSAFilter object defines how the filters has to be applied on queries.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns SummaryResponse of type application/json
{
	"Result": [
		{
			"2": 5807
		},
		{
			"3": 374
		},
		{
			"1": 228
		},
		{
			"4": 158
		}
	]
}
array of integer
Result Optional

Notification summary object.

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 '{"example-with-filtering":{"value":{"vsafilter":{"filterlist":[{"condition":"OR","propfilter":[{"matchtype":"MATCH","propname":"Severity","values":[3]},{"matchtype":"MATCH","propname":"Severity","values":[2]}]}]}}},"example-with-filtering-sorting-and-pagination":{"value":{"size":10,"sort":[{"fieldName":"LastChangedAt","order":"desc"}],"vsafilter":{"filterlist":[{"condition":"OR","propfilter":[{"matchtype":"MATCH","propname":"Severity","values":[1]},{"matchtype":"MATCH","propname":"Severity","values":[2]}]}]}}}}' https://{api_host}tcsa.host.com/tcsa/api/notification-management/v1/notifications/summary


Feedback

Was this page helpful?