DescribeBackupPlans
Queries one or more backup plans that meet the specified conditions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:DescribeBackupPlans |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The number of the page to return. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Minimum value: 1. Maximum value: 99. Default value: 10. |
10 |
| SourceType |
string |
No |
The data source type. Valid values:
|
ECS_FILE |
| Filters |
array<object> |
No |
The query filters. |
|
|
object |
No |
|||
| Key |
string |
No |
The key of the query filter. Valid values:
|
vaultId |
| Values |
array |
No |
The values to match in the query filter. |
["v-*********************"] |
|
string |
No |
The values to match in the query filter. |
v-********************* |
|
| Edition |
string |
No |
The edition type. Valid values: BASIC and STANDARD. Default value: STANDARD. |
STANDARD |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Code |
string |
The response code. A value of 200 indicates success. |
200 |
| Message |
string |
The response message. If the request is successful, "successful" is returned. If an error occurs, the corresponding error message is returned. |
successful |
| PageNumber |
integer |
The number of the page to return. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
The number of entries to return on each page. Minimum value: 1. Maximum value: 99. Default value: 10. |
10 |
| TotalCount |
integer |
The total number of backup plans that meet the query conditions. |
8 |
| BackupPlans |
object |
||
| BackupPlan |
array<object> |
The list of backup plans that meet the query conditions. |
|
|
array<object> |
|||
| VaultId |
string |
The ID of the backup vault. |
v-********************* |
| BackupType |
string |
The backup type. A value of COMPLETE indicates a full backup. |
COMPLETE |
| CreateTime |
integer |
The creation time of the file system. This parameter is valid only when SourceType is set to NAS. The time is a UNIX timestamp in seconds. |
1554347313 |
| DataSourceId |
string |
The ID of the data source. |
ds-000ht6o9*****w61 |
| SourceType |
string |
The data source type. Valid values:
|
ECS_FILE |
| Disabled |
boolean |
Indicates whether the backup plan is paused. Valid values:
|
false |
| Prefix |
string |
The backup prefix. This parameter is valid only when SourceType is set to OSS. |
oss-prefix |
| Options |
string |
Specifies whether to use Windows Volume Shadow Copy Service (VSS) to define the backup path. This parameter is valid only when SourceType is set to ECS_FILE. |
{"UseVSS":false} |
| ClientId |
string |
The ID of the client. |
c-000ge4w*****1qb |
| Exclude |
string |
The paths that do not need to be backed up. All files in these paths are excluded from the backup. This parameter is valid only when SourceType is set to ECS_FILE. |
["/var", "/proc"] |
| Retention |
integer |
The retention period of the backup, in days. |
7 |
| CreatedTime |
integer |
The creation time of the backup plan. The time is a UNIX timestamp in seconds. |
1554347313 |
| ClusterId |
string |
The ID of the client group. |
cl-000ht6o9******h |
| Bucket |
string |
The name of the OSS bucket. This parameter is valid only when SourceType is set to OSS. |
hbr-backup-oss |
| Detail |
string |
The details of the full-system backup. |
{\"doCopy\":true,\"doBackup\":false,\"instanceName\":\"instance example\",\"appConsistent\":false,\"destinationRegionId\":\"cn-shanghai\",\"enableFsFreeze\":true,\"osNameEn\":\"Windows Server 2019 Data Center Edition 64bit Chinese Edition\",\"osName\":\"Windows Server 2019 Data Center Edition 64bit Chinese Edition\",\"diskIdList\":[],\"backupVaultId\":\"\",\"snapshotGroup\":true,\"destinationRetention\":35,\"platform\":\"Windows Server 2012\",\"timeoutInSeconds\":60,\"backupRetention\":1,\"osType\":\"windows\",\"preScriptPath\":\"\",\"postScriptPath\":\"\",\"enableWriters\":true,\"ecsDeleted\":false} |
| Schedule |
string |
The backup policy. Format:
|
I|1602673264|P1D |
| SpeedLimit |
string |
The throttling for backup traffic. Format:
|
0:24:5120 |
| InstanceId |
string |
The ECS instance ID. This parameter is valid only when SourceType is set to ECS_FILE. |
i-********************* |
| PlanId |
string |
The ID of the backup plan. |
plan-********************* |
| BackupSourceGroupId |
string |
The ID of the backup data source group. |
System-Database |
| FileSystemId |
string |
The ID of the file system. This parameter is valid only when SourceType is set to NAS. |
00594 |
| OtsDetail |
object |
The details of Tablestore. |
|
| TableNames |
object |
||
| TableName |
array |
The Tablestore information. |
|
|
string |
The name of the Tablestore table. |
test2_HBR_RESTORED |
|
| InstanceName |
string |
The name of the Tablestore instance. |
instancename |
| UpdatedTime |
integer |
The update time of the backup plan. The time is a UNIX timestamp in seconds. |
1554347313 |
| PlanName |
string |
The name of the backup plan. |
planname |
| Include |
string |
The paths to be backed up. All files in these paths are backed up. This parameter is valid only when SourceType is set to ECS_FILE. |
["/home/alice/*.pdf", "/home/bob/*.txt"] |
| Rules |
object |
||
| Rule |
array<object> |
The list of backup policies. This parameter is valid only for cloud disk backups. |
|
|
object |
|||
| DestinationRetention |
integer |
The retention period of cross-region backups, in days. |
90 |
| Schedule |
string |
The backup policy. Format:
|
I|1631685600|P1D |
| Retention |
integer |
The retention period of the backup, in days. |
90 |
| Disabled |
boolean |
Indicates whether the policy is disabled. |
true |
| DoCopy |
boolean |
Specifies whether to copy backup snapshot data to the backup vault. |
false |
| DestinationRegionId |
string |
The ID of the destination region for cross-region backups. |
cn-shanghai |
| RuleId |
string |
The ID of the policy. |
rule-0008i52rf0ulpni6kn6m |
| RuleName |
string |
The policy name. |
Disk Golden Rule |
| BackupType |
string |
The backup type. A value of COMPLETE indicates a full backup. |
COMPLETE |
| Resources |
object |
||
| Resource |
array<object> |
The list of backup resources. This parameter is valid only for cloud disk backups. |
|
|
object |
|||
| SourceType |
string |
The type of the data source. Valid values:
|
UDM_DISK |
| ResourceId |
string |
The ID of the data source. |
d-j6cgioir6m******lu4 |
| Extra |
string |
The additional information about the data source. |
{\"doBackup\":false,\"diskName\":\"data_disk\",\"size\":100,\"type\":\"data\",\"category\":\"cloud_essd\",\"imageId\":\"\",\"device\":\"/dev/xvdb\",\"encrypted\":false} |
| Paths |
object |
||
| Path |
array |
The list of backup paths. This parameter is valid only when SourceType is set to ECS_FILE. |
|
|
string |
The backup path. |
["/home"] |
|
| TrialInfo |
object |
The free trial attributes. |
|
| TrialStartTime |
integer |
The start time of the free trial. The time is a UNIX timestamp in seconds. |
1579413159 |
| TrialVaultReleaseTime |
integer |
The release time of the free trial vault. The time is a UNIX timestamp in seconds. |
1594965600 |
| TrialExpireTime |
integer |
The expiration time of the free trial. The time is a UNIX timestamp in seconds. |
1584597600 |
| KeepAfterTrialExpiration |
boolean |
Specifies whether to switch to the pay-as-you-go billing method after the free trial ends. |
true |
| InstanceGroupId |
string |
The ID of the instance group. |
i-** |
| CrossAccountType |
string |
The cross-account backup type. Valid values:
|
CROSS_ACCOUNT |
| CrossAccountUserId |
integer |
The ID of the original account for the cross-account backup managed by the current account. |
1841642xxxxx9795 |
| CrossAccountRoleName |
string |
The name of the role created in the RAM of the original account for the cross-account backup managed by the current account. |
BackupRole |
| KeepLatestSnapshots |
integer |
Specifies whether to retain at least one backup version. Valid values:
|
0 |
| DestSourceType |
string |
The type of the destination data source. This parameter is required only for synchronization. |
OSS |
| DestDataSourceId |
string |
The ID of the destination data source. This parameter is required only for synchronization. |
ds-********************* |
| DestDataSourceDetail |
string |
The details of the destination data source. This parameter is required only for synchronization. |
{\"prefix\":\"/\"} |
| ChangeListPath |
string |
The configuration of the incremental file synchronization list. This parameter is required only for synchronization. |
{"dataSourceId": "ds-123456789", "path": "/changelist"} |
| LatestExecuteJobId |
string |
The ID of the most recently executed job for the plan. |
job-12345678 |
| LatestFinishJobId |
string |
The ID of the last completed backup job. |
job-00**************9khz |
| CreatedByTag |
boolean |
Indicates whether the backup plan is created through automatic creation based on labels. |
false |
| HitTags |
object |
||
| HitTag |
array<object> |
The matched tag rules. |
|
|
object |
The matched tag rules. |
||
| Key |
string |
The tag key. |
type |
| Value |
string |
The tag value. |
0 |
| Operator |
string |
The tag matching rule. Valid values:
|
EQUAL |
| BusinessStatus |
string |
The business status. |
ACTIVE |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Success": true,
"Code": "200",
"Message": "successful",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 8,
"BackupPlans": {
"BackupPlan": [
{
"VaultId": "v-*********************",
"BackupType": "COMPLETE",
"CreateTime": 1554347313,
"DataSourceId": "ds-000ht6o9*****w61",
"SourceType": "ECS_FILE",
"Disabled": false,
"Prefix": "oss-prefix",
"Options": "{\"UseVSS\":false}",
"ClientId": "c-000ge4w*****1qb",
"Exclude": "[\"/var\", \"/proc\"]\t",
"Retention": 7,
"CreatedTime": 1554347313,
"ClusterId": "cl-000ht6o9******h",
"Bucket": "hbr-backup-oss",
"Detail": "{\\\"doCopy\\\":true,\\\"doBackup\\\":false,\\\"instanceName\\\":\\\"instance example\\\",\\\"appConsistent\\\":false,\\\"destinationRegionId\\\":\\\"cn-shanghai\\\",\\\"enableFsFreeze\\\":true,\\\"osNameEn\\\":\\\"Windows Server 2019 Data Center Edition 64bit Chinese Edition\\\",\\\"osName\\\":\\\"Windows Server 2019 Data Center Edition 64bit Chinese Edition\\\",\\\"diskIdList\\\":[],\\\"backupVaultId\\\":\\\"\\\",\\\"snapshotGroup\\\":true,\\\"destinationRetention\\\":35,\\\"platform\\\":\\\"Windows Server 2012\\\",\\\"timeoutInSeconds\\\":60,\\\"backupRetention\\\":1,\\\"osType\\\":\\\"windows\\\",\\\"preScriptPath\\\":\\\"\\\",\\\"postScriptPath\\\":\\\"\\\",\\\"enableWriters\\\":true,\\\"ecsDeleted\\\":false}",
"Schedule": "I|1602673264|P1D",
"SpeedLimit": "0:24:5120",
"InstanceId": "i-*********************",
"PlanId": "plan-*********************",
"BackupSourceGroupId": "System-Database",
"FileSystemId": "00594",
"OtsDetail": {
"TableNames": {
"TableName": [
"test2_HBR_RESTORED"
]
}
},
"InstanceName": "instancename",
"UpdatedTime": 1554347313,
"PlanName": "planname",
"Include": "[\"/home/alice/*.pdf\", \"/home/bob/*.txt\"]",
"Rules": {
"Rule": [
{
"DestinationRetention": 90,
"Schedule": "I|1631685600|P1D",
"Retention": 90,
"Disabled": true,
"DoCopy": false,
"DestinationRegionId": "cn-shanghai",
"RuleId": "rule-0008i52rf0ulpni6kn6m",
"RuleName": "Disk Golden Rule",
"BackupType": "COMPLETE"
}
]
},
"Resources": {
"Resource": [
{
"SourceType": "UDM_DISK",
"ResourceId": "d-j6cgioir6m******lu4",
"Extra": "{\\\"doBackup\\\":false,\\\"diskName\\\":\\\"data_disk\\\",\\\"size\\\":100,\\\"type\\\":\\\"data\\\",\\\"category\\\":\\\"cloud_essd\\\",\\\"imageId\\\":\\\"\\\",\\\"device\\\":\\\"/dev/xvdb\\\",\\\"encrypted\\\":false}"
}
]
},
"Paths": {
"Path": [
"[\"/home\"]"
]
},
"TrialInfo": {
"TrialStartTime": 1579413159,
"TrialVaultReleaseTime": 1594965600,
"TrialExpireTime": 1584597600,
"KeepAfterTrialExpiration": true
},
"InstanceGroupId": "i-**",
"CrossAccountType": "CROSS_ACCOUNT",
"CrossAccountUserId": 0,
"CrossAccountRoleName": "BackupRole",
"KeepLatestSnapshots": 0,
"DestSourceType": "OSS",
"DestDataSourceId": "ds-*********************",
"DestDataSourceDetail": "{\\\"prefix\\\":\\\"/\\\"}",
"ChangeListPath": "{\"dataSourceId\": \"ds-123456789\", \"path\": \"/changelist\"}",
"LatestExecuteJobId": "job-12345678",
"LatestFinishJobId": "job-00**************9khz",
"CreatedByTag": false,
"HitTags": {
"HitTag": [
{
"Key": "type",
"Value": "0",
"Operator": "EQUAL"
}
]
},
"BusinessStatus": "ACTIVE"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.