This topic provides examples of resource change logs that are delivered to Log Service for storage. The following sections describe the content of the examples and the parameters included in the logs.
Examples
- Create a resource
For example, you use an ordinary account whose ID is
110803419679****
to create a disk namedtest_disk
in Elastic Compute Service (ECS) in the China (Hohhot) region. In the following sample log, theconfigurationDiff
parameter displays the disk configurations before and after the create operation. The disk configuration before the create operation is displayed asnull
. Therelationship
andrelationshipDiff
parameters show that a resource whose ID isi-8psdh7l6lphbn10l****
is associated with the disk.accountId:110803419679**** arn:acs:sls:ap-cn-huhehaote:110803419679****:sls_test availabilityZone:cn-huhehaote-a captureTime:1642411308000 configAggregators: configuration:{"DetachedTime":"","Category":"cloud_efficiency","KMSKeyId":"","Description":"","ResourceGroupId":"rg-aekzmdckngg****","Size":40,"Encrypted":false,"DeleteAutoSnapshot":false,"DiskChargeType":"PrePaid","Attachments":{"Attachment":[{"AttachedTime":"2022-01-17T09:20:14Z","InstanceId":"i-8psdh7l6lphbn10l****","Device":"/dev/xvda"}]},"MultiAttach":"Disabled","ExpiredTime":"2022-02-17T16:00Z","ImageId":"win2012r2_9600_x64_dtc_en-us_40G_alibase_20211217.vhd","StorageSetId":"","Tags":{"Tag":[]},"Status":"In_use","AttachedTime":"2022-01-17T09:20:14Z","StorageClusterId":"","ZoneId":"cn-huhehaote-a","InstanceId":"i-8psdh7l6lphbn10l****","ProductCode":"","SourceSnapshotId":"","Device":"/dev/xvda","PerformanceLevel":"","DeleteWithInstance":true,"EnableAutomatedSnapshotPolicy":false,"EnableAutoSnapshot":true,"AutoSnapshotPolicyId":"","DiskName":"","test_disk":"","OperationLocks":{"OperationLock":[]},"Portable":true,"Type":"system","SerialNumber":"8psdh7l6lphbn10i****","CreationTime":"2022-01-17T09:20:10Z","RegionId":"cn-huhehaote","DiskId":"d-8psdh7l6lphbn10i****"} configurationDiff:{"Category":[null,"cloud_efficiency"],"ResourceGroupId":[null,"rg-aekzmdckngg****"],"Size":[null,40],"Encrypted":[null,false],"DeleteAutoSnapshot":[null,false],"DiskChargeType":[null,"PrePaid"],"Attachments":[null,{"Attachment":[{"AttachedTime":"2022-01-17T09:20:14Z","InstanceId":"i-8psdh7l6lphbn10l****","Device":"/dev/xvda"}]}],"MultiAttach":[null,"Disabled"],"ExpiredTime":[null,"2022-02-17T16:00Z"],"ImageId":[null,"win2012r2_9600_x64_dtc_en-us_40G_alibase_20211217.vhd"],"Tags":[null,{"Tag":[]}],"Status":[null,"In_use"],"AttachedTime":[null,"2022-01-17T09:20:14Z"],"ZoneId":[null,"cn-huhehaote-a"],"InstanceId":[null,"i-8psdh7l6lphbn10l****"],"Device":[null,"/dev/xvda"],"DeleteWithInstance":[null,true],"EnableAutomatedSnapshotPolicy":[null,false],"EnableAutoSnapshot":[null,true],"OperationLocks":[null,{"OperationLock":[]}],"Portable":[null,true],"Type":[null,"system"],"SerialNumber":[null,"8psdh7l6lphbn10i****"],"CreationTime":[null,"2022-01-17T09:20:10Z"],"RegionId":[null,"cn-huhehaote"],"DiskId":[null,"d-8psdh7l6lphbn10i****"]} dataType:ConfigurationItemChangeNotification regionId:cn-huhehaote relationship:[{"regionId":"cn-huhehaote","relationType":"IsAttachedTo","resourceId":"i-8psdh7l6lphbn10l****","resourceType":"ACS::ECS::Instance"}] relationshipDiff:{"relationship_diff":{"relationship_add":[{"regionId":"cn-huhehaote","relationType":"IsAttachedTo","resourceId":"i-8psdh7l6lphbn10l****","resourceType":"ACS::ECS::Instance"}],"relationship_delete":[]}} requestId:be30368b-71dd-4367-9871-d00e565f8679 resourceCreateTime:1642411210000 resourceEventType:DISCOVERED resourceGroupId:rg-aekzmdckngg**** resourceId:d-8psdh7l6lphbn10i**** resourceName:test_disk resourceStatus:In_use resourceType:ACS::ECS::Disk tags:{}
- Modify a resource
For example, you use an ordinary account whose ID is
118239008140****
to add thekey1
tag to a disk namedtest_disk
in ECS in the China (Hohhot) region. In the following sample log, theconfigurationDiff
parameter displays the tag configurations of the disk before and after the modify operation. The tag configuration of the disk is displayed asnull
before the modify operation. A tag whose key iskey1
is displayed in the tag configuration of the disk after the modify operation. Therelationship
andrelationshipDiff
parameters show that a resource whose ID isi-bp1g9rukkdar0dro****
is disassociated from the disk.accountId:118239008140**** arn:acs:sls:cn-hangzhou:118239008140****:sls_test availabilityZone:cn-hangzhou-i captureTime:1630422042000 configAggregators: configuration:{"DetachedTime":"2022-01-17T09:27:40Z","Category":"cloud_efficiency","KMSKeyId":"","Description":"","ResourceGroupId":"","Size":20,"Encrypted":false,"DeleteAutoSnapshot":true,"DiskChargeType":"PostPaid","MultiAttach":"Disabled","ExpiredTime":"2999-09-08T16:00Z","ImageId":"","StorageSetId":"","Tags":{"Tag":[{"TagKey":"key1","TagValue":""}]},"Status":"Available","AttachedTime":"2022-01-17T09:02:01Z","StorageClusterId":"","ZoneId":"cn-hangzhou-i","InstanceId":"","ProductCode":"","SourceSnapshotId":"","Device":"","PerformanceLevel":"","DeleteWithInstance":false,"EnableAutomatedSnapshotPolicy":false,"EnableAutoSnapshot":true,"AutoSnapshotPolicyId":"","DiskName":"test_disk","BdfId":"","OperationLocks":{"OperationLock":[]},"Portable":true,"Type":"data","SerialNumber":"bp1fybs4hwesp8kv****","CreationTime":"2021-08-19T09:11:48Z","RegionId":"cn-hangzhou","DiskId":"d-bp1fybs4hwesp8kv****"} configurationDiff:{"Tags":[{"Tag":[]},{"Tag":[{"TagKey":"key1","TagValue":""}]}]} dataType:ConfigurationItemChangeNotification regionId:cn-hangzhou relationship: relationshipDiff:{"relationship_diff":{"relationship_add":[],"relationship_delete":[{"regionId":"cn-hangzhou","relationType":"IsAttachedTo","resourceId":"i-bp1g9rukkdar0dro****","resourceType":"ACS::ECS::Instance"}]}} requestId:4f9a90a9-63bf-43bd-981d-bc15658c423e resourceCreateTime:1630422000000 resourceEventType:MODIFY resourceGroupId:rg-acfmwvtff2y*** resourceId:d-bp1fybs4hwesp8kv**** resourceName:test_disk resourceStatus:Available resourceType:ACS::ECS::Disk tags:{"key1":[""]}
- Delete a resource
For example, you use an ordinary account whose ID is
120886317861****
to delete a disk namedtest_disk
from ECS in the China (Hohhot) region. In the following sample log, theconfigurationDiff
parameter displays the disk configurations before and after the delete operation. The disk configuration after the delete operation is displayed asnull
. Therelationship
andrelationshipDiff
parameters show that the disk has no associated resources.accountId:120886317861**** arn:acs:ecs:cn-huhehaote:120886317861****:disk/d-hp33mwzuof9qoa22**** availabilityZone:cn-huhehaote-a captureTime:1629875147000 configAggregators: configuration:{"DetachedTime":"","Category":"cloud_essd","KMSKeyId":"","Description":"","ResourceGroupId":"","Size":40,"Encrypted":false,"DeleteAutoSnapshot":false,"DiskChargeType":"PostPaid","MultiAttach":"Disabled","ExpiredTime":"2999-09-08T16:00Z","ImageId":"","StorageSetId":"","Tags":{"Tag":[]},"Status":"Available","AttachedTime":"","StorageClusterId":"","ZoneId":"cn-huhehaote-a","InstanceId":"","ProductCode":"","SourceSnapshotId":"","Device":"","PerformanceLevel":"PL1","DeleteWithInstance":false,"EnableAutomatedSnapshotPolicy":false,"EnableAutoSnapshot":true,"AutoSnapshotPolicyId":"","DiskName":"test_disk","BdfId":"","OperationLocks":{"OperationLock":[]},"Portable":true,"Type":"data","SerialNumber":"hp33mwzuof9qoa22****","CreationTime":"2021-08-25T06:52:35Z","RegionId":"cn-huhehaote","DiskId":"d-hp33mwzuof9qoa22****"} configurationDiff:{"Status":["Available",null],"Category":["cloud_essd",null],"ZoneId":["cn-huhehaote-a",null],"Size":[40,null],"Encrypted":[false,null],"PerformanceLevel":["PL1",null],"DeleteAutoSnapshot":[false,null],"DeleteWithInstance":[false,null],"EnableAutomatedSnapshotPolicy":[false,null],"DiskChargeType":["PostPaid",null],"EnableAutoSnapshot":[true,null],"DiskName":["test_disk",null],"MultiAttach":["Disabled",null],"OperationLocks":[{"OperationLock":[]},null],"Portable":[true,null],"Type":["data",null],"SerialNumber":["hp33mwzuof9qoa22ic6q",null],"ExpiredTime":["2999-09-08T16:00Z",null],"CreationTime":["2021-08-25T06:52:35Z",null],"RegionId":["cn-huhehaote",null],"Tags":[{"Tag":[]},null],"DiskId":["d-hp33mwzuof9qoa22****",null]} dataType:ConfigurationItemChangeNotification regionId:cn-huhehaote relationship: relationshipDiff:{"relationship_diff":{"relationship_add":[],"relationship_delete":[]}} requestId:d9bca2bc-75ba-4e4c-92dd-7cc38e779806 resourceCreateTime:1629874355000 resourceEventType:REMOVE resourceGroupId:rg-acfmw3ty5y7**** resourceId:d-hp33mwzuof9qoa22**** resourceName:test_disk resourceStatus:Available resourceType:ACS::ECS::Disk tags:{}
Parameters
Parameter | Description |
---|---|
accountId | The ID of the account to which the resource belongs. Cloud Config supports the following
types of accounts:
|
arn | The Alibaba Cloud Resource Name (ARN) of the resource. For more information about the ARN formats of different Alibaba Cloud services, see Types of resources that support Tag API operations. |
availabilityZone | The ID of the zone in which the resource resides. |
captureTime | The timestamp when Cloud Config detected the resource change and generated the log. |
configAggregators | The information about the account group, including the ID of the management account
that created the account group and the ID of the account group. The value varies with
the type of the account to which the resource belongs.
|
configuration | The current configuration of the resource. |
configurationDiff | The resource configurations before and after the change. |
dataType | The type of the log received by Log Service. Valid values:
|
regionId | The ID of the region where the resource resides. |
relationship | The details of each resource that is associated with the current resource, including
the region ID, resource relationship, resource ID, and resource type. This parameter
is available only if the current resource has associated resources.
|
relationshipDiff | The change records of the resource relationship. |
resourceCreateTime | The timestamp when the resource was created. |
resourceEventType | The type of the resource change event involved. Valid values:
|
resourceGroupId | The ID of the resource group to which the resource belongs. This parameter is available
only if the resource type supports resource groups.
|
resourceId | The ID of the resource. |
resourceName | The name of the resource. |
resourceStatus | The status of the resource. The value varies with the resource type and may be left
empty. Examples:
|
resourceType | The type of the resource. For more information about the resource types supported by Cloud Config, see Alibaba Cloud services that are supported by Cloud Config. |
tags | The tags of the resource. |