List Notifications
POST/api/cloud/2.0/agg/notifications/list
Overview
List notifications for all child tenants for the current tenant.
The current tenant TSG ID is extracted from user JWT.
This is a per-user query.
API Body parameters:- filters:
- readState - valid values are READ, UNREAD
- notifType - UPGRADES, ANNOUNCEMENTS
- By default, if no filters are provided then readState is READ and UNREAD and
notifType
is all the values
- sortByList:
- field - valid values are createdTime or impactedTenantCount
- sortBy - value values are DESC or ASC
Request
- application/json
Body
- Array [
- ]
- Array [
- ]
filters object[]
List of output channels that the notification is sent on
Filter field
Possible values: [readState
, notifType
, category
, subCategory
, inApp
]
Filter field values
sortByList object[]
List of output channels that the notification is sent on
Possible values: [createdTime
, impactedTenantCount
]
Sort field
Possible values: [DESC
, ASC
]
Ascending or Descending
page object
Page number
Page number
Page size
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
- example-2
- example-3
Schema
- Array [
- Array [
- Array [
- ]
- ]
- ]
Notification id
Notification name
Description of the notification
Action to be taken on receiving the notification (if applicable)
Notification creation time
aggKey objectrequired
Multi-Tenant Notification Aggregation Key
tag object
TSG Id
Possible values: [INCIDENTS
, UPGRADES
, ANNOUNCEMENTS
]
Notification Type
Notification category - is associated with notification type
Notification sub-category - is associated with notification type and notification category
InApp Notification Flag
List of impacted tenants
Number of tenants impacted by the multi-tenant notification
Possible values: [READ
, UNREAD
]
Read state of the notification
notifChannels object[]required
List of output channels that the notification is sent on
Notification channel name
Possible values: [EMAIL
, WEBHOOK
]
Notification channel type
emailChannelDetails object
Email channel details
property name* EmailChannelDetails
emails object[]required
List of emails
Email owner name
Email id
webhookChannelDetails object
Webhook channel details
property name* WebhookChannelDetails
List of Webhook URLs - do not include token in the URL
Possible values: [NO_AUTH
, TOKEN
]
Webhook Authentication Type
Webhook token value
template object
Channel output template
Output channel template name
JSON describing the output channel template
Notification type
[
{
"id": "string",
"name": "string",
"body": "string",
"action": "string",
"createdTime": 0,
"aggKey": {
"tag": {
"tsgId": "string",
"notifType": "INCIDENTS",
"category": "string",
"subCategory": "string",
"inAppFlag": true
}
},
"impactedTenants": [
"string"
],
"impactedTenantCount": 0,
"notifReadState": "READ",
"notifChannels": [
{
"name": "string",
"type": "EMAIL",
"emailChannelDetails": {},
"webhookChannelDetails": {},
"template": {
"name": "string",
"templateJson": "string"
}
}
],
"notifType": "string"
}
]
{
"data": {
"notificationCounts": {
"readCount": 1,
"unreadCount": 0
},
"notificationList": [
{
"action": "Action: Multi-Tenant UPGRADES Notification of Dataplane: Completed for 1091039496",
"aggKey": {
"category": "Dataplane",
"inAppFlag": true,
"notifType": "UPGRADES",
"subCategory": "Completed",
"tsgId": "1091039496"
},
"body": "Body: Multi-Tenant UPGRADES Notification of Dataplane: Completed for 1091039496",
"id": "e8ebd16c-66ab-4113-aa1e-ab274c46322a",
"name": "Multi-Tenant UPGRADES Notification of Dataplane: Completed for 1091039496",
"createdTime": 1698966600461,
"impactedTenantCount": 1,
"readState": "READ"
}
],
"totalCount": 0
},
"requestId": "635d3b26-913a-4451-a5de-0eda8da45040"
}
{
"data": {
"notificationCounts": {
"readCount": 0,
"unreadCount": 0
},
"notificationList": [],
"totalCount": 0
},
"requestId": "8772a19b-fd60-4640-87b3-2b5e81645b58"
}
{
"data": {
"notificationCounts": {
"readCount": 0,
"unreadCount": 0
},
"notificationList": [],
"totalCount": 0
},
"requestId": "04099fe9-5f9a-4d53-a542-1388931c3a13"
}
{
"data": {
"notificationCounts": {
"readCount": 0,
"unreadCount": 10
},
"notificationList": [
{
"action": "Action: Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"aggKey": {
"category": "Dataplane",
"inAppFlag": true,
"notifType": "UPGRADES",
"subCategory": "Upcoming",
"tsgId": "1091039496"
},
"body": "Body: Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"id": "44dab57c-e834-48da-a84a-2d1f99adc857",
"name": "Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"createdTime": 1698873900440,
"impactedTenantCount": 1,
"readState": "UNREAD"
},
{
"action": "Action: Multi-Tenant UPGRADES Notification of Dataplane: In Progress for 1091039496",
"aggKey": {
"category": "Dataplane",
"inAppFlag": true,
"notifType": "UPGRADES",
"subCategory": "In Progress",
"tsgId": "1091039496"
},
"body": "Body: Multi-Tenant UPGRADES Notification of Dataplane: In Progress for 1091039496",
"id": "b3c09288-a69d-42ee-b617-279674ff3ec1",
"name": "Multi-Tenant UPGRADES Notification of Dataplane: In Progress for 1091039496",
"createdTime": 1698873900344,
"impactedTenantCount": 1,
"readState": "UNREAD"
},
{
"action": "Action: Multi-Tenant UPGRADES Notification of Dataplane: Completed for 1091039496",
"aggKey": {
"category": "Dataplane",
"inAppFlag": true,
"notifType": "UPGRADES",
"subCategory": "Completed",
"tsgId": "1091039496"
},
"body": "Body: Multi-Tenant UPGRADES Notification of Dataplane: Completed for 1091039496",
"id": "050607cb-a61c-498a-8275-b65672102bbe",
"name": "Multi-Tenant UPGRADES Notification of Dataplane: Completed for 1091039496",
"createdTime": 1698873900325,
"impactedTenantCount": 1,
"readState": "UNREAD"
},
{
"action": "Action: Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"aggKey": {
"category": "Dataplane",
"inAppFlag": true,
"notifType": "UPGRADES",
"subCategory": "Upcoming",
"tsgId": "1091039496"
},
"body": "Body: Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"id": "ac0a2269-3a32-4d5b-9552-837275afba1a",
"name": "Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"createdTime": 1698873600215,
"impactedTenantCount": 1,
"readState": "UNREAD"
},
{
"action": "Action: Multi-Tenant UPGRADES Notification of Dataplane: In Progress for 1091039496",
"aggKey": {
"category": "Dataplane",
"inAppFlag": true,
"notifType": "UPGRADES",
"subCategory": "In Progress",
"tsgId": "1091039496"
},
"body": "Body: Multi-Tenant UPGRADES Notification of Dataplane: In Progress for 1091039496",
"id": "e00e4db4-90a0-4708-a5cc-12b6b4d28c9c",
"name": "Multi-Tenant UPGRADES Notification of Dataplane: In Progress for 1091039496",
"createdTime": 1698873600121,
"impactedTenantCount": 1,
"readState": "UNREAD"
},
{
"action": "Action: Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"aggKey": {
"category": "Dataplane",
"inAppFlag": true,
"notifType": "UPGRADES",
"subCategory": "Upcoming",
"tsgId": "1091039496"
},
"body": "Body: Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"id": "6477d3d5-b9ef-4ca6-9637-e2ac7f0164b6",
"name": "Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"createdTime": 1698873300631,
"impactedTenantCount": 1,
"readState": "UNREAD"
},
{
"action": "Action: Multi-Tenant UPGRADES Notification of Dataplane: Completed for 1091039496",
"aggKey": {
"category": "Dataplane",
"inAppFlag": true,
"notifType": "UPGRADES",
"subCategory": "Completed",
"tsgId": "1091039496"
},
"body": "Body: Multi-Tenant UPGRADES Notification of Dataplane: Completed for 1091039496",
"id": "5c3b3a0e-1ab6-42e3-afce-28530de13933",
"name": "Multi-Tenant UPGRADES Notification of Dataplane: Completed for 1091039496",
"createdTime": 1698873300526,
"impactedTenantCount": 1,
"readState": "UNREAD"
},
{
"action": "Action: Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"aggKey": {
"category": "Dataplane",
"inAppFlag": true,
"notifType": "UPGRADES",
"subCategory": "Upcoming",
"tsgId": "1091039496"
},
"body": "Body: Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"id": "aba778fd-2e97-48bd-a7b8-2bf963316310",
"name": "Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"createdTime": 1698873000205,
"impactedTenantCount": 1,
"readState": "UNREAD"
},
{
"action": "Action: Multi-Tenant UPGRADES Notification of Dataplane: Completed for 1091039496",
"aggKey": {
"category": "Dataplane",
"inAppFlag": true,
"notifType": "UPGRADES",
"subCategory": "Completed",
"tsgId": "1091039496"
},
"body": "Body: Multi-Tenant UPGRADES Notification of Dataplane: Completed for 1091039496",
"id": "123f0890-7eb1-4073-8ed4-4ef71f7a4af1",
"name": "Multi-Tenant UPGRADES Notification of Dataplane: Completed for 1091039496",
"createdTime": 1698873000108,
"impactedTenantCount": 1,
"readState": "UNREAD"
},
{
"action": "Action: Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"aggKey": {
"category": "Dataplane",
"inAppFlag": true,
"notifType": "UPGRADES",
"subCategory": "Upcoming",
"tsgId": "1091039496"
},
"body": "Body: Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"id": "4598f13c-8030-4f87-94ea-a0989022457a",
"name": "Multi-Tenant UPGRADES Notification of Dataplane: Upcoming for 1091039496",
"createdTime": 1698872700502,
"impactedTenantCount": 1,
"readState": "UNREAD"
}
],
"totalCount": 4498
},
"requestId": "d921f075-733e-4091-a060-ef92a16cbfc0"
}