This topic describes the data structure of a scheduled resource snapshot and provides an example.
Data structure
Structure of a scheduled resource snapshot
Field | Type | Description |
accountId | String | The ID of the account to which the resource belongs. |
regionId | String | The region ID of the resource. |
resourceType | String | The type of the resource. |
resourceId | String | The ID of the resource. |
resourceSnapshot | JSON | The snapshot of the resource. For more information, see Structure of the resourceSnapshot field. |
version | String | The version number. |
Structure of the resourceSnapshot field
Category | Field | Type | Description |
Common properties | accountId | String | The ID of the account to which the resource belongs. |
regionId | String | The region ID of the resource. | |
resourceType | String | The type of the resource. | |
resourceId | String | The ID of the resource. | |
resourceGroupId | String | The ID of the resource group to which the resource belongs. | |
resourceName | String | The name of the resource. | |
zoneId | String | The zone ID of the resource. | |
createTime | String | The time when the resource was created. The time follows the ISO 8601 standard and is in the yyyy-MM-ddTHH:mm:ssZ or yyyy-MM-ddTHH:mm:ss.SSSZ format. The time is displayed in UTC. | |
expireTime | String | The time when the resource expires. The time follows the ISO 8601 standard and is in the yyyy-MM-ddTHH:mm:ssZ or yyyy-MM-ddTHH:mm:ss.SSSZ format. The time is displayed in UTC. | |
tags | Array | The tags added to the resource. | |
key | String | The tag key. | |
value | String | The tag value. | |
ipAddresses | Array | The IP addresses. | |
vpcId | String | The ID of the virtual private cloud (VPC). | |
vSwitchId | String | The ID of the vSwitch. | |
Resource properties | configuration | JSON | The properties of the resource. |
Example
The following code provides an example on the content of a scheduled resource snapshot delivered to OSS:
[{
"accountId": "152435078218****",
"regionId": "global",
"resourceId": "cen-cdgpjauprthyxi****",
"resourceSnapshot": {
"accountId": "152435078218****",
"configuration": {
"Status": "Active",
"ProtectionLevel": "REDUCED",
"ResourceGroupId": "rg-acfmzdlidtf****",
"CreateTime": "2023-07-25T05:42Z",
"CenId": "cen-cdgpjauprthyxi****",
"Name": "File mounting"
},
"createTime": "2023-07-25T05:42:00Z",
"regionId": "global",
"resourceGroupId": "rg-acfmzdlidtf****",
"resourceId": "cen-cdgpjauprthyxi****",
"resourceName": "File mounting",
"resourceType": "ACS::CEN::CenInstance"
},
"resourceType": "ACS::CEN::CenInstance",
"version": "170676971679****"
}]