Gets one or more backup plans that meet 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 page number. Pages start from page 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 1 to 99. Default value: 10. |
10 |
| SourceType |
string |
No |
The type of the data source. Valid values:
|
ECS_FILE |
| Filters |
array<object> |
No |
The filters. |
|
|
object |
No |
|||
| Key |
string |
No |
The key in the filter. Valid values:
|
vaultId |
| Values |
array |
No |
The value to match in the filter. |
["v-*********************"] |
|
string |
No |
The value to match in the filter. |
v-********************* |
|
| Edition |
string |
No |
The edition of the backup plan. 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 was successful.
|
true |
| Code |
string |
The return code. A value of 200 indicates that the request was successful. |
200 |
| Message |
string |
The returned message. If the request is successful, "successful" is returned. If the request fails, an error message is returned. |
successful |
| PageNumber |
integer |
The page number. Pages start from page 1. Default value: 1. |
1 |
| PageSize |
integer |
The number of entries per page. Valid values: 1 to 99. Default value: 10. |
10 |
| TotalCount |
integer |
The total number of backup plans that meet the specified conditions. |
8 |
| BackupPlans |
object |
||
| BackupPlan |
array<object> |
The backup plans that meet the specified conditions. |
|
|
array<object> |
|||
| VaultId |
string |
The ID of the backup repository. |
v-********************* |
| BackupType |
string |
The backup type. The value COMPLETE indicates a full backup. |
COMPLETE |
| CreateTime |
integer |
The time when the file system was created. This parameter is valid only if SourceType is set to NAS. This value is a UNIX timestamp, in seconds. |
1554347313 |
| DataSourceId |
string |
The ID of the data source. |
ds-000ht6o9*****w61 |
| SourceType |
string |
The type of the data source. Valid values:
|
ECS_FILE |
| Disabled |
boolean |
Specifies whether the backup plan is paused.
|
false |
| Prefix |
string |
The prefix of the objects to back up. This parameter is valid only if SourceType is set to OSS. |
oss-prefix |
| Options |
string |
Specifies whether to use Windows Volume Shadow Copy Service (VSS) to create a shadow copy. This parameter is valid only if SourceType is set to ECS_FILE. |
{"UseVSS":false} |
| ClientId |
string |
The ID of the client. |
c-000ge4w*****1qb |
| Exclude |
string |
The path to the files to exclude from the backup. This parameter is valid only if SourceType is set to ECS_FILE. Files in the specified path are not backed up. |
["/var", "/proc"] |
| Retention |
integer |
The retention period of the backup data, in days. |
7 |
| CreatedTime |
integer |
The time when the backup plan was created. This value 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 if SourceType is set to OSS. |
hbr-backup-oss |
| Detail |
string |
The details of the ECS instance 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, formatted as
|
I|1602673264|P1D |
| SpeedLimit |
string |
The traffic shaping policy for the backup. This parameter is valid only if SourceType is set to ECS_FILE. Format:
|
0:24:5120 |
| InstanceId |
string |
The ID of the ECS instance. This parameter is valid only if 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 if SourceType is set to NAS. |
00594 |
| OtsDetail |
object |
The details of the Tablestore instance. |
|
| TableNames |
object |
||
| TableName |
array |
The tables in the Tablestore instance. |
|
|
string |
The name of the data table in the Tablestore instance. |
test2_HBR_RESTORED |
|
| InstanceName |
string |
The name of the Tablestore instance. |
instancename |
| UpdatedTime |
integer |
The time when the backup plan was updated. This value is a UNIX timestamp, in seconds. |
1554347313 |
| PlanName |
string |
The name of the backup plan. |
planname |
| Include |
string |
The path to the files to back up. This parameter is valid only if SourceType is set to ECS_FILE. All files in the specified path are backed up. |
["/home/alice/*.pdf", "/home/bob/*.txt"] |
| Rules |
object |
||
| Rule |
array<object> |
The backup policies. This parameter is valid only for disk backups. |
|
|
object |
|||
| DestinationRetention |
integer |
The retention period of the geo-redundant backup, in days. |
90 |
| Schedule |
string |
The backup policy, formatted as
|
I|1631685600|P1D |
| Retention |
integer |
The retention period of the backup data, in days. |
90 |
| Disabled |
boolean |
Specifies whether the policy is disabled. |
true |
| DoCopy |
boolean |
Specifies whether to copy the backup snapshot to the backup repository. |
false |
| DestinationRegionId |
string |
The ID of the destination region for the geo-redundant backup. |
cn-shanghai |
| RuleId |
string |
The ID of the policy. |
rule-0008i52rf0ulpni6kn6m |
| RuleName |
string |
The name of the policy. |
Disk Golden Rule |
| BackupType |
string |
The backup type. The value COMPLETE indicates a full backup. |
COMPLETE |
| Resources |
object |
||
| Resource |
array<object> |
The backup resources. This parameter is valid only for disk backups. |
|
|
object |
|||
| SourceType |
string |
The type of the data source. Valid value: UDM_DISK. |
UDM_DISK |
| ResourceId |
string |
The ID of the data source. |
d-j6cgioir6m******lu4 |
| Extra |
string |
The extended 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 backup paths. This parameter is valid only if SourceType is set to ECS_FILE. |
|
|
string |
The backup path. |
["/home"] |
|
| TrialInfo |
object |
The free trial information. |
|
| TrialStartTime |
integer |
The time when the free trial starts. |
1579413159 |
| TrialVaultReleaseTime |
integer |
The time when the free trial repository is released. |
1594965600 |
| TrialExpireTime |
integer |
The time when the free trial expires. |
1584597600 |
| KeepAfterTrialExpiration |
boolean |
Specifies whether to convert the plan to a pay-as-you-go plan after the free trial ends. |
true |
| InstanceGroupId |
string |
The ID of the instance group. |
i-** |
| CrossAccountType |
string |
The type of the cross-account backup. Valid values:
|
CROSS_ACCOUNT |
| CrossAccountUserId |
integer |
The ID of the source account for the cross-account backup. |
1841642xxxxx9795 |
| CrossAccountRoleName |
string |
The name of the RAM role in the source account for the cross-account backup. |
BackupRole |
| KeepLatestSnapshots |
integer |
Specifies whether to retain at least one backup version.
|
0 |
| DestSourceType |
string |
The type of the destination data source. This parameter is required only for data synchronization. |
OSS |
| DestDataSourceId |
string |
The ID of the destination data source. This parameter is required only for data synchronization. |
ds-********************* |
| DestDataSourceDetail |
string |
The details of the destination data source. This parameter is required only for data synchronization. |
{\"prefix\":\"/\"} |
| ChangeListPath |
string |
The configurations of the incremental file synchronization. This parameter is required only for data synchronization. |
{"dataSourceId": "ds-123456789", "path": "/changelist"} |
| LatestExecuteJobId |
string |
The ID of the last backup job run by the plan. |
job-12345678 |
| LatestFinishJobId |
string |
The ID of the last completed backup job. |
job-00**************9khz |
| CreatedByTag |
boolean |
Specifies whether the backup plan was automatically created based on tags. |
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.