DescribeRestoreJobs2
Queries one or more restore jobs that match the specified conditions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:DescribeRestoreJobs2 |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Minimum value: 1. Maximum value: 99. Default value: 10. |
10 |
| RestoreType |
string |
No |
The type of the restore job. Valid values:
|
ECS_FILE |
| Filters |
array<object> |
No |
The key-value pairs in the query filter. |
|
|
object |
No |
The key-value pairs in the query filter. |
||
| Key |
string |
No |
The key in the query filter. Valid values:
|
VaultId |
| Values |
array |
No |
The values to match in the query filter. |
|
|
string |
No |
The values to match in the query filter. |
["v-*********************"] |
|
| Operator |
string |
No |
The matching operator. Default value: IN. This parameter specifies the matching operator for the key and value in the filter. Valid values:
Note
When you use CompleteTime as the key, the IN operator is not supported. |
IN |
| 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 ID of the request. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Code |
string |
The HTTP status code. A status code of 200 indicates that the request is successful. |
200 |
| Message |
string |
The message returned. 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 1. Default value: 1. |
1 |
| PageSize |
integer |
The number of entries per page. Minimum value: 1. Maximum value: 99. Default value: 10. |
1 |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| RestoreJobs |
object |
{'RestoreJob': []} |
|
| RestoreJob |
array<object> |
The details of the restore jobs. |
{'RestoreJob': []} |
|
array<object> |
The details of the restore jobs. |
||
| SnapshotHash |
string |
The hash value of the backup snapshot. |
f2fe... |
| Status |
string |
The status of the restore job. Valid values:
|
COMPLETE |
| ErrorMessage |
string |
The error message of the restore job. |
PARTIAL_COMPLETE |
| ActualItems |
integer |
This parameter is valid only when SourceType is set to ECS_FILE. It indicates the actual number of items in the recover node. |
6 |
| VaultId |
string |
The ID of the backup vault. |
v-0006******q |
| ActualBytes |
integer |
The actual data volume of the recover node after deduplication. Unit: bytes. |
600 |
| UdmDetail |
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} |
| SourceType |
string |
The type of the data source. Valid values:
|
ECS_FILE |
| Options |
string |
Specifies whether to use Windows Volume Shadow Copy Service (VSS) to define the restore path. This parameter is required only when SourceType is set to ECS_FILE.
|
{"UseVSS":false} |
| SourceInstanceId |
string |
The instance ID of the source instance for the recover node. |
i-2ze3m7ktcgw******cs |
| RestoreType |
string |
The type of the restore job. Valid values:
|
ECS_FILE |
| TargetCreateTime |
integer |
The creation time of the destination file system. This parameter is valid only for NAS backups. |
1634714531 |
| ItemsDone |
integer |
The number of items restored. This parameter is valid only when SourceType is set to ECS_FILE. |
8 |
| BytesTotal |
integer |
The total amount of data in the data source. Unit: bytes. |
1000 |
| Exclude |
string |
The paths that do not need to be restored. All files in these paths are excluded from the restore job. This parameter is required only when SourceType is set to ECS_FILE. The value can be up to 255 characters in length. |
["/var", "/proc"] |
| ParentId |
string |
The ID of the parent job. |
r-0003hd2an3x4dyv0l18b |
| CompleteTime |
integer |
The time when the restore job is completed. The value is a UNIX timestamp. Unit: seconds. |
1554347313 |
| CreatedTime |
integer |
The time when the restore job is created. The value is a UNIX timestamp. Unit: seconds. |
1554347313 |
| TargetBucket |
string |
The destination bucket. This parameter is valid only for OSS backups. |
target-bucket |
| ClusterId |
string |
The ID of the client group used for the restore job. |
cl-000******hp6 |
| TargetFileSystemId |
string |
The destination file system. This parameter is valid only for NAS backups. |
0be9****9c9 |
| Progress |
integer |
The restore progress. The value is the percentage multiplied by 100. |
10000 |
| ExpireTime |
integer |
The expiration time of the restore job. |
1634714531 |
| TargetDataSourceId |
string |
The ID of the destination data source. |
ds-000*****997 |
| TargetPrefix |
string |
The destination prefix. This parameter is valid only for OSS backups. |
"/target" |
| TargetPath |
string |
The destination path of the restore job. |
"D:\\rebk" |
| ErrorFile |
string |
The list of files that failed to be restored. |
"test.csv" |
| StartTime |
integer |
The time when the restore job starts. The value is a UNIX timestamp. Unit: seconds. |
1554347313 |
| UpdatedTime |
integer |
The time when the restore job is updated. The value is a UNIX timestamp. Unit: seconds. |
1554347313 |
| SnapshotId |
string |
The ID of the snapshot used for the restore job. |
s-0002******ga88 |
| RestoreId |
string |
The ID of the restore job. |
r-0003*****8a |
| TargetClientId |
string |
The ID of the destination client. |
c-000e*****397 |
| ItemsTotal |
integer |
The total number of items in the data source. This parameter is valid only when SourceType is set to ECS_FILE. |
10 |
| Include |
string |
The paths included in the restore job. |
["/home/alice/*.pdf", "/home/bob/*.txt"] |
| BytesDone |
integer |
The amount of data restored. Unit: bytes. |
800 |
| TargetInstanceName |
string |
The name of the destination Tablestore instance. |
instancename |
| TargetTableName |
string |
The name of the destination table in the Tablestore instance. |
tablename |
| Speed |
integer |
The actual average restore speed. Unit: KB/s. |
500 |
| TargetTime |
integer |
The point in time to which the Tablestore instance is restored. The value is a UNIX timestamp. Unit: seconds. |
1642560261 |
| OtsDetail |
object |
The details of the Tablestore instance. |
|
| BatchChannelCount |
integer |
The number of channels processed by each Tablestore restore job. |
2 |
| OverwriteExisting |
boolean |
Specifies whether to overwrite existing data during the Tablestore restore job. |
false |
| CrossAccountType |
string |
The cross-account backup type. Valid values:
|
SELF_ACCOUNT |
| CrossAccountUserId |
integer |
The ID of the original account for the cross-account backup managed by the current account. |
158975xxxxxx4625 |
| CrossAccountRoleName |
string |
The name of the RAM role created in the original account for the cross-account backup managed by the current account. |
BackupRole |
| Report |
object |
The report of the restore job. |
|
| TotalFiles |
string |
The total number of files to be restored based on the file list. |
/temp/report/158975xxxxxx4625/job-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_total.csv |
| SuccessFiles |
string |
The list of files that are successfully restored. |
/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_success.zip |
| FailedFiles |
string |
The list of files that fail to be restored. |
/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_failed.zip |
| SkippedFiles |
string |
The list of files that are skipped. |
/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_skipped.zip |
| ReportTaskStatus |
string |
The status of the report generation task. |
COMPLETE |
| MeteringBytesDone |
integer |
The amount of data restored. Unit: bytes. This parameter is valid only when StorageClass is set to ARCHIVE. The value is aligned to 1 MB. |
1048576 |
| MeteringBytesTotal |
integer |
The total amount of data in the data source. Unit: bytes. This parameter is valid only when StorageClass is set to ARCHIVE. The value is aligned to 1 MB. |
1048576 |
| StorageClass |
string |
The storage class of the backup data. Valid values:
|
STANDARD |
| FailbackDetail |
string |
The details of the VMware failback job. |
{"cpu":4,"extra":"{\"restoreVMNamePrefix\":\"627-\",\"dataCenterName\":\"SDDC-Datacenter\",\"dataStoreId\":\"datastore-50\",\"folderId\":\"group-v49\",\"resourcePoolId\":\"resgroup-46\",\"locationName\":\"vcenter.pc-uf600arcwi9td3eyj641.acvs.aliyuncs.com/SDDC-Datacenter/Workloads\",\"computeResourceName\":\"SDDC-Datacenter/Default_c-uf600arcwi9td3eyj640\",\"dataStoreName\":\"Default_c-uf600arcwi9td3eyj640/WorkloadDatastore\",\"networkMoReference\":\"DistributedVirtualPortgroup:dvportgroup-1001\",\"useHotAdd\":false}","instanceId":"i-2vc357i2eannmmotcagz","memoryInMB":8192,"serverId":"0fdc0c86-eb92-4e05-91ab-eeaf9fb6ad01","uefiBoot":false} |
| TargetInstanceId |
string |
The instance ID of the target instance for the recover node. |
i-2ze3m7ktcgw******cs |
| SourceResourceId |
string |
The ID of the source resource for the backup. |
i-123***7890 |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Success": true,
"Code": "200",
"Message": "successful",
"PageNumber": 1,
"PageSize": 1,
"TotalCount": 1,
"RestoreJobs": {
"RestoreJob": [
{
"SnapshotHash": "f2fe...",
"Status": "COMPLETE",
"ErrorMessage": "PARTIAL_COMPLETE",
"ActualItems": 6,
"VaultId": "v-0006******q",
"ActualBytes": 600,
"UdmDetail": "{\\\"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}",
"SourceType": "ECS_FILE",
"Options": "{\"UseVSS\":false}",
"SourceInstanceId": "i-2ze3m7ktcgw******cs",
"RestoreType": "ECS_FILE",
"TargetCreateTime": 1634714531,
"ItemsDone": 8,
"BytesTotal": 1000,
"Exclude": "[\"/var\", \"/proc\"]",
"ParentId": "r-0003hd2an3x4dyv0l18b",
"CompleteTime": 1554347313,
"CreatedTime": 1554347313,
"TargetBucket": "target-bucket",
"ClusterId": "cl-000******hp6",
"TargetFileSystemId": "0be9****9c9",
"Progress": 10000,
"ExpireTime": 1634714531,
"TargetDataSourceId": "ds-000*****997",
"TargetPrefix": "\"/target\"",
"TargetPath": "\"D:\\\\rebk\"",
"ErrorFile": "\"test.csv\"",
"StartTime": 1554347313,
"UpdatedTime": 1554347313,
"SnapshotId": "s-0002******ga88",
"RestoreId": "r-0003*****8a",
"TargetClientId": "c-000e*****397",
"ItemsTotal": 10,
"Include": "[\"/home/alice/*.pdf\", \"/home/bob/*.txt\"]",
"BytesDone": 800,
"TargetInstanceName": "instancename",
"TargetTableName": "tablename",
"Speed": 500,
"TargetTime": 1642560261,
"OtsDetail": {
"BatchChannelCount": 2,
"OverwriteExisting": false
},
"CrossAccountType": "SELF_ACCOUNT",
"CrossAccountUserId": 0,
"CrossAccountRoleName": "BackupRole",
"Report": {
"TotalFiles": "/temp/report/158975xxxxxx4625/job-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_total.csv",
"SuccessFiles": "/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_success.zip\n",
"FailedFiles": "/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_failed.zip",
"SkippedFiles": "/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_skipped.zip",
"ReportTaskStatus": "COMPLETE"
},
"MeteringBytesDone": 1048576,
"MeteringBytesTotal": 1048576,
"StorageClass": "STANDARD",
"FailbackDetail": "{\"cpu\":4,\"extra\":\"{\\\"restoreVMNamePrefix\\\":\\\"627-\\\",\\\"dataCenterName\\\":\\\"SDDC-Datacenter\\\",\\\"dataStoreId\\\":\\\"datastore-50\\\",\\\"folderId\\\":\\\"group-v49\\\",\\\"resourcePoolId\\\":\\\"resgroup-46\\\",\\\"locationName\\\":\\\"vcenter.pc-uf600arcwi9td3eyj641.acvs.aliyuncs.com/SDDC-Datacenter/Workloads\\\",\\\"computeResourceName\\\":\\\"SDDC-Datacenter/Default_c-uf600arcwi9td3eyj640\\\",\\\"dataStoreName\\\":\\\"Default_c-uf600arcwi9td3eyj640/WorkloadDatastore\\\",\\\"networkMoReference\\\":\\\"DistributedVirtualPortgroup:dvportgroup-1001\\\",\\\"useHotAdd\\\":false}\",\"instanceId\":\"i-2vc357i2eannmmotcagz\",\"memoryInMB\":8192,\"serverId\":\"0fdc0c86-eb92-4e05-91ab-eeaf9fb6ad01\",\"uefiBoot\":false}",
"TargetInstanceId": "i-2ze3m7ktcgw******cs",
"SourceResourceId": "i-123***7890"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.