All Products
Search
Document Center

Cloud Config:Example of scheduled resource snapshots

Last Updated:Sep 06, 2023

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:
  • Ordinary account: An ordinary account is an independent Alibaba Cloud account that is not included in a resource directory by a management account.
  • Management account: A management account is an Alibaba Cloud account that enables a resource directory and manages all member accounts.
  • Member account: A member account is an Alibaba Cloud account in a resource directory.
  • Single-account mode: Enter the ID of an independent Alibaba Cloud account that is not added to a resource directory by using a management account.

  • Multi-account mode: Enter a management account ID or a member account ID.

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.

  • If the resource type supports resource groups, the value is the ID of the resource group to which the resource belongs.

    For more information about the Alibaba Cloud services and resource types that support resource groups, see Services that work with Resource Group.

  • If the resource type does not support resource groups, the parameter is left empty.

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.