Notification

Notification is a service that delivers event information generated in SpaceONE to a project or user. Protocol is the definition of “in what way” when Notification is delivered through Channel. The cr

Package : spaceone.api.notification.v1

Notification

Notification Methods:

create

POST /notification/v1/notifications

Create a new Notification. When a notification is created, it is propagatedthrough the channel of the project to which the notification belongs, and if an internal channel oruser channel is set, the notification is also propagated to the user.

{
    "resource_type": "identity.Project",
    "resource_id": "resource-123456789012",
    "topic": "monitoring.Alert",
    "message": {
        "title": "[Alerting] Not Running Pods 0:OK alert",
        "description": "[spaceone-dev] Not Running Pods 0 is OK\n\nFailure level : WorkerNode\nPanel ... ",
        "tags": {
            "urgency": "LOW",
            "resource_id": "pod",
            "assignee": "cloudforet@mz.co.kr",
            "created_at": "2022-01-01T17:12:45.990Z",
            "state": "ACKNOWLEDGED",
            "project_id": "project-123456789012"
        }
    },
    "notification_type": "INFO",
    "notification_level": "LV2",
    "domain_id": "domain-123456789012"
}

push

POST /notification/v1/notifications/push

Push a new Notification directly.When a notification is created, it is propagated through the channel of the project to which the notification belongs, and if an internal channel or user channel is set, the notification is also propagated to the user.

{
    "domain_id": "xxxx-aws-abcd",
    "tags": {
        "env": "dev"
    }
}

delete

DELETE /notification/v1/notification/{notification_id}

Delete the Notification.

{
    "domain_id": "xxxx-aws-abcd",
    "tags": {
        "env": "dev"
    }
}

delete_all

POST /notification/v1/notification/delete_all

Delete all Notifications. When a notification is created, it is propagated through the channel of the project to which the notification belongs, and if an internal channel or user channel is set, the notification is also propagated to the user.

{
    "domain_id": "xxxx-aws-abcd",
    "tags": {
        "env": "dev"
    }
}

set_read

POST /notification/v1/notifications/read

Change the notifications to read status.

get

GET /notification/v1/notification/{notification_id}

Gets a single Notification.

list

GET /notification/v1/notifications

POST /notification/v1/notifications/search

Lists the specified notifications.

stat

POST /notification/v1/notifications/stat

Message

CreateNotificationRequest

GetNotificationRequest

NotificationDeleteAllRequest

NotificationInfo

NotificationQuery

NotificationRequest

NotificationStatQuery

NotificationsInfo

PushNotificationRequest

SetReadNotificationRequest

Last updated