Help Center> Config> User Guide> Appendix> Models of Resource Change Notification Storage
Updated on 2024-03-18 GMT+08:00

Models of Resource Change Notification Storage

Table 1 Parameter description

Parameter

Type

Description

notification_items

Array of Object

Specifies the list of resource change notifications.

Notification Model of Resource Changes

Table 2 Parameter description

Parameter

Type

Description

notification_type

String

Specifies the message notification type.

notification_creation_time

String

Specifies the time when the message was sent.

The time is a UTC time in a fixed format complying with ISO-8601 (for example, 2018-11-14T08:59:14Z).

domain_id

String

Account ID

detail

Object

Specifies the message details.

Table 3 detail parameters

Parameter

Type

Description

resource_id

String

Specifies the resource ID.

resource_type

String

Specifies the resource type.

event_type

Enum

Specifies the event type. The value can be CREATE, UPDATE, or DELETE.

capture_time

String

Specifies the time when the event was captured.

The time is a UTC time in a fixed format complying with ISO-8601 (for example, 2018-11-14T08:59:14Z).

resource

Object

Specifies the resource details.

Table 4 resource parameters

Parameter

Type

Description

id

String

Specifies the resource ID.

name

String

Specifies the resource name.

provider

String

Specifies the cloud service name.

type

String

Specifies the cloud resource type.

region_id

String

Specifies the ID of the region where the resource is located.

project_id

String

Specifies the IAM project ID.

project_name

String

Specifies the IAM project name.

ep_id

String

Specifies the enterprise project ID.

ep_name

String

Specifies the enterprise project name.

checksum

String

Specifies the checksum.

created

String

Specifies the time when the cloud resource was created.

The time is a UTC time in a fixed format complying with ISO-8601 (for example, 2018-11-14T08:59:14Z).

updated

String

Specifies the last time when the cloud resource was updated.

The time is a UTC time in a fixed format complying with ISO-8601 (for example, 2018-11-14T08:59:14Z).

provisioning_state

String

Specifies the status of the operation that causes the resource change.

tags

Map

Specifies the cloud resource tag.

properties

Map

Specifies the cloud resource attribute.

Example of Resource Change Notification Storage

{
	"notification_items": [
		{
			"detail": {
				"resource": {
					"id": "ea05ef41-8bd6-4a9c-af39-244e1ec448eb",
					"name": "as-group-test",
					"provider": "as",
					"type": "scalingGroups",
					"checksum": "",
					"region_id": ""regionid1",
					"project_id": "068d54ceca00d5302f70c00aaf6a471c",
					"project_name": "test",
					"ep_id": "0",
					"ep_name": "default"
				},
				"resource_id": "ea05ef41-8bd6-4a9c-af39-244e1ec448eb",
				"resource_type": "as.scalingGroups",
				"event_type": "DELETE",
				"capture_time": "2020-12-08T09:30:27.158Z"
			},
			"notification_type": "ResourceChanged",
			"notification_creation_time": "2020-12-08T09:30:27.272Z",
			"domain_id": "059b5c937100d3e40ff0c00a7675a0a0"
		}
	]
}