Resource Relationship Change Notification Model

Resource Relationship Change Notification Model

Table 1 Parameters of the resource relationship change notification model

Parameters

Type

Description

notification_type

String

The type of a notification. For a resource relationship change notification, the notification type is ResourceRelationChanged.

notification_creation_time

String

The time when the message was sent.

The notification creation time is a UTC time (such as 2018-11-14T08:59:14Z) that complies with ISO8601.

domain_id

String

Account ID.

detail

Object

Notification details.

Table 2 detail

Parameter

Type

Description

resource_id

String

Resource ID.

resource_type

String

Resource type.

event_type

Enum

Event type (CHANGE).

capture_time

String

The event capture time.

The event capture time is a UTC time (such as 2018-11-14T08:59:14Z) that complys with ISO8601.

Notification Example of Resource Relationship Changes

{
  "detail": {
    "resource_id": "f65b06d1-d63b-438a-93cc-bdd55b304f0a",
    "resource_type": "ecs.cloudservers",
    "event_type": "CHANGE",
    "capture_time": "2020-08-12T07:15:14.257Z"
  },
  "notification_type": "ResourceRelationChanged",
  "notification_creation_time": "2020-08-12T07:14:56.296Z",
  "domain_id": "059b5c937100d3e40ff0c00a7675a0a0"
}