This topic provides an example of scheduled resource snapshots that are delivered to Object Storage Service (OSS) for storage. The following sections describe the content of the example and the parameters involved.
Example
In single-account mode, you use an Alibaba Cloud account whose ID is 120886317861****
and you have a disk named test_disk
in Elastic Compute Service (ECS) in the China (Hangzhou) region. The following code shows a sample scheduled resource snapshot of the disk:
{
"configurationItems":[
{
"accountId":"120886317861****",
"availabilityZone":"cn-hangzhou-i",
"regionId":"cn-hangzhou",
"configuration":"{\"DetachedTime\":\"\",\"Category\":\"cloud_essd\",\"KMSKeyId\":\"\",\"Description\":\"\",\"ResourceGroupId\":\"\",\"Size\":40,\"Encrypted\":false,\"DeleteAutoSnapshot\":false,\"DiskChargeType\":\"PostPaid\",\"MultiAttach\":\"Disabled\",\"ExpiredTime\":\"2029-09-08T16:00Z\",\"ImageId\":\"\",\"StorageSetId\":\"\",\"Tags\":{\"Tag\":[]},\"Status\":\"Available\",\"AttachedTime\":\"\",\"StorageClusterId\":\"\",\"ZoneId\":\"cn-hangzhou-i\",\"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-hangzhou\",\"DiskId\":\"d-hp33mwzuof9qoa22****\"}",
"resourceCreateTime":1629874355000,
"resourceId":"d-hp33mwzuof9qoa22****",
"resourceName":"test_disk",
"resourceGroupId":"rg-acfmw3ty5y7****",
"resourceType":"ACS::ECS::Disk",
"tags":"{}"
}
],
"requestId":"4a88a3f3-735d-4d21-a9e4-03ebadc09ce1",
"fileVersion":"1.0"
}
Parameters
The following table describes the parameters involved in scheduled resource snapshots that are delivered to OSS.
Parameter | Description |
accountId | The ID of the account to which the resource belongs. Cloud Config supports the following types of accounts:
|
availabilityZone | The ID of the zone where the resource resides. |
regionId | The ID of the region where the resource resides. |
configuration | The current configuration of the resource. |
resourceCreateTime | The timestamp when the resource was created. |
resourceId | The resource ID. |
resourceName | The resource name. |
resourceGroupId | The ID of the resource group to which the resource belongs. This parameter is available only if the resource type supports resource groups.
|
resourceType | The resource type. For more information about the resource types supported by Cloud Config, see Alibaba Cloud services and resource types supported by Cloud Config. |
tags | The tags of the resource. |