Get Notifications
Returns the list of notifications. By default maximum 10 records from offset 0 are returned in the response. In order to get the more or less number of records user can specify the desired number of records using "size" parameter.
Request body is optional. User needs to provide request body only when filtering, sorting or pagination is required.
{
"size": 20,
"from": 0,
"sort": [
{
"order": "desc",
"fieldName": "Severity"
}
],
"vsafilter": {
"condition": "AND",
"filterlist": [
"Filter Object"
]
}
}
The size parameter allows you to configure the maximum amount of notifications to be returned. Default is 10.
The from parameter defines the offset from the first result user want to fetch. Default is 0.
The Sort object defines on how and which field sorting has to be applied.
The VSAFilter object defines how the filters has to be applied on queries.
OK
{
"Count": 10,
"Result": [
{
"Acknowledged": false,
"AcknowledgmentTime": 0,
"Active": true,
"Category": "Operational",
"Certainty": 100,
"ClassDisplayName": "CentralUnitControlPlane",
"ClassName": "CentralUnitControlPlane",
"ClearOnAcknowledge": false,
"DeDupKey": "Name:NOTIFICATION-NetworkFunction_NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2_Impaired$Source:INCHARGE-SA-PRES$",
"DeviceType": "gNodeB",
"DisplayName": "CentralUnitControlPlane Impaired 100.0%: cucp-50332-65095-bmsed",
"ElementClassName": "NetworkFunction",
"ElementName": "gNodeB-service-mavenir",
"EventDisplayName": "Impaired",
"EventName": "Impaired",
"EventState": "ACTIVE",
"EventText": "Indicates RRC and PDCP-C protocol not working.",
"EventType": "DURABLE",
"FirstNotifiedAt": 1660350528000,
"HasCauses": false,
"Impact": 0,
"InMaintenance": false,
"InstanceDisplayName": "kube-multus-ds-amd64-gv429",
"InstanceName": "NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2",
"IsLiveNotification": true,
"IsProblem": true,
"IsRoot": false,
"LastChangedAt": 1660350567000,
"LastClearedAt": 0,
"LastNotifiedAt": 1660350528000,
"Name": "NOTIFICATION-NetworkFunction_NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2_Impaired",
"NotificationStates": [
{
"eventState": "ACTIVE",
"eventTimestamp": 1660350567000,
"source": "INCHARGE-SA-PRES",
"syncId": 1660635420400,
"syncTimestamp": 1660635421552
}
],
"OccurrenceCount": 1,
"OriginalSources": [
"string"
],
"Owner": "admin",
"PollingID": 1662381989790,
"PollingState": "POLLING",
"ProcessedTimeStamp": 1660635421552,
"Severity": 2,
"Source": "INCHARGE-SA-PRES",
"SourceDomainName": "INCHARGE-ESM",
"SourceEventType": "EVENT",
"SourceInfo": "INCHARGE-SA",
"SourceSpecific": "primary",
"ToolInfo": "string",
"TroubleTicketID": "string",
"UserDefined1": "string",
"UserDefined10": "string",
"UserDefined11": "string",
"UserDefined12": "string",
"UserDefined13": "string",
"UserDefined14": "string",
"UserDefined15": "string",
"UserDefined16": "string",
"UserDefined17": "string",
"UserDefined18": "string",
"UserDefined19": "string",
"UserDefined2": "string",
"UserDefined20": "string",
"UserDefined3": "string",
"UserDefined4": "string",
"UserDefined5": "string",
"UserDefined6": "string",
"UserDefined7": "string",
"UserDefined8": "string",
"UserDefined9": "string",
"elementUUID": "gNodeB-service-mavenir$gNodeB$INCHARGE-SA-PRES",
"tags": {}
}
]
}
The total number of notification
An array of notfication objects.
Client must authenticate itself to get the requested response
The client does not have access rights to the content; that is, it is Client must authenticate itself to get the requested response
The server can not find the requested resource
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/tcsa/api/notification-management/v1/notifications