Example of scheduled resource snapshots

更新时间:
复制 MD 格式

Scheduled resource snapshots are delivered to Simple Log Service Logstores. This topic provides a sample snapshot and describes the related parameters.

Example

In single-account mode, you use an Alibaba Cloud account whose ID is 100931896542**** and you have a disk d-f8zcofij6pjslv***** in Elastic Compute Service in the China (Hangzhou) region. The scheduled resource snapshots of the disk are delivered to a Simple Log Service Logstore. The following code shows a sample snapshot:

{
  "resourceCreateTime": "1749027094000",
  "resourceId": "sp-f8zhum3cpo2yic4tdbj1",
  "configuration": {
    "Status": "Normal",
    "TimePoints": ["17"],
    "VolumeNums": 0,
    "RetentionDays": -1,
    "AutoSnapshotPolicyId": "sp-f8zhum3cp****j1",
    "RepeatWeekdays": ["1", "2", "3", "4", "5", "6", "7"],
    "DiskNums": 1,
    "CopiedSnapshotsRetentionDays": -1,
    "Type": "Custom",
    "EnableCrossRegionCopy": false,
    "CreationTime": "2025-06-04T08:51:34Z",
    "CopyEncryptionConfiguration": {},
    "RegionId": "cn-heyuan",
    "AutoSnapshotPolicyName": "spmTest",
    "Tags": {
      "Tag": []
    }
  },
  "dataType": "ConfigurationSnapshot",
  "resourceName": "spmTest",
  "availabilityZone": "",
  "version": "1749027189520000",
  "tags": {},
  "accountId": "1009318965420****",
  "regionId": "cn-heyuan",
  "requestId": "ef44b20b-94a4-4007-85fd-f4494806c062",
  "resourceGroupId": "rg-acfmvoh45rhcfly",
  "arn": "acs:ecs:cn-heyuan:1009318965420****:autosnapshotpolicy/sp-f8zhum3cpo2yic4tdbj1",
  "relationship": [
    {
      "relationType": "IsAttachedTo",
      "targetResourceId": "d-f8zh8i6ivltvbf5777az",
      "targetResourceType": "ACS::ECS::Disk"
    }
  ],
  "resourceType": "ACS::ECS::AutoSnapshotPolicy"
}

Parameters

The following table describes the parameters in a scheduled resource snapshot.

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: the ID of an Alibaba Cloud account that is not added to a resource directory by a management account.

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

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 of this parameter is the ID of the resource group to which the resource belongs.

    For more information about the Alibaba Cloud services 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.

relationship

Details of up to 100 related resources, including the region ID, resource relationship, resource ID, and resource type.

  • If the current resource has associated resources, the value of this parameter indicates the details of each associated resource.

    For more information about the resource relationships supported by Cloud Config, see Alibaba Cloud services and resource types supported by Cloud Config.

  • If the current resource has no associated resources, the parameter is left empty.