Creates a restore job.
Operation description
This operation creates a restore job based on the selected backup snapshot and restore destination.
The source and destination data source types must be the same.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:CreateRestoreJob |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RestoreType |
string |
Yes |
The type of the destination data source. Valid values:
|
ECS_FILE |
| VaultId |
string |
No |
The ID of the backup repository to which the backup snapshot belongs. |
v-********************* |
| SnapshotId |
string |
No |
The ID of the backup snapshot. |
s-******************** |
| SnapshotHash |
string |
No |
The hash value of the backup snapshot. |
f2fe... |
| SourceType |
string |
Yes |
The type of the data source. Valid values:
|
ECS_FILE |
| Options |
string |
No |
The parameters for the restore job. |
{\"includes\":[],\"excludes\":[],\"conflictPolicy\":\"OVERWRITE_EXISTING\"} |
| TargetFileSystemId |
string |
No |
The ID of the destination file system. This parameter is valid only when RestoreType is set to NAS. |
005494 |
| TargetCreateTime |
integer |
No |
The time when the destination file system was created. This parameter is valid only when RestoreType is set to NAS. |
1554347313 |
| TargetPath |
string |
No |
The path to the destination file. This parameter is valid only when RestoreType is set to ECS_FILE. |
C:\ |
| TargetBucket |
string |
No |
The name of the destination OSS bucket. This parameter is valid only when RestoreType is set to OSS. |
hbr-backup-oss |
| TargetPrefix |
string |
No |
The prefix of the destination object. This parameter is valid only when RestoreType is set to OSS. |
hbr |
| UdmDetail |
object |
No |
The details of the entire instance backup. This parameter is a JSON string and is valid only when SourceType is set to UDM_ECS. The content of this parameter varies based on the value of RestoreType:
|
{\"sourceInstanceId\":\"i-uf62te6pm3iwsyxyz66q\",\"bootAfterRestore\":false} |
| UdmRegionId |
string |
No |
The destination region for the recovery. This parameter is valid only when SourceType is set to UDM_ECS. |
cn-shanghai |
| TargetInstanceId |
string |
No |
The ID of the destination ECS instance. This parameter is valid only when RestoreType is set to ECS_FILE. |
i-********************* |
| Include |
string |
No |
The paths of the files to restore. All files in the specified paths are restored. The value can be up to 255 characters in length. |
["/home/alice/*.pdf", "/home/bob/*.txt"] |
| Exclude |
string |
No |
The paths of the files to exclude from the restore job. All files in the specified paths are not restored. The value can be up to 255 characters in length. |
["/var", "/proc"] |
| TargetContainer |
string |
No |
The details of the destination container. |
{\"host\":\"k8s-node1\",\"hostPrefix\":\"/var/lib/kubelet/pods/4acb31fe-8577-40ff-bc8c-eccabd835f73/volumes/kubernetes.io~csi/pvc-b050b00e-ef17-4792-aab1-1642355cf1f4/mount\",\"pvPath\":\"/\"} |
| InitiatedByAck |
boolean |
No |
Specifies whether the restore job is initiated by Container Service for Kubernetes (ACK). The default value is false. |
false |
| TargetContainerClusterId |
string |
No |
The ID of the destination container cluster. |
cc-000amjsc7o1h9506oob7 |
| TargetInstanceName |
string |
No |
The name of the destination Tablestore instance. |
instancename |
| TargetTableName |
string |
No |
The name of the destination table in the Tablestore instance. |
tablename |
| TargetTime |
integer |
No |
The time to which you want to restore the Tablestore data. This is a UNIX timestamp. Unit: seconds. |
1642496881 |
| OtsDetail | OtsTableRestoreDetail |
No |
The details of the Tablestore instance. |
|
| CrossAccountType |
string |
No |
The type of the cross-account backup. Valid values:
|
SELF_ACCOUNT |
| CrossAccountUserId |
integer |
No |
The ID of the source account that is managed by the current account for cross-account backup. |
158975xxxxx4625 |
| CrossAccountRoleName |
string |
No |
The name of the RAM role created in the source account for cross-account backup. |
BackupRole |
| FailbackDetail |
object |
No |
The details for failing back to an on-premises instance. |
{"cpu":4,"extra":"{\"restoreVMNamePrefix\":\"627-\",\"dataCenterName\":\"SDDC-Datacenter\",\"dataStoreId\":\"datastore-50\",\"folderId\":\"group-v49\",\"resourcePoolId\":\"resgroup-46\",\"locationName\":\"vcenter.pc-uf600a******1.acvs.aliyuncs.com/SDDC-Datacenter/Workloads\",\"computeResourceName\":\"SDDC-Datacenter/Default_c-uf600a******\",\"dataStoreName\":\"Default_c-uf600a******/WorkloadDatastore\",\"networkMoReference\":\"DistributedVirtualPortgroup:dvportgroup-1001\",\"useHotAdd\":false}","instanceId":"i-2vc******z","memoryInMB":8192,"serverId":"0fdc0c86-eb92-4e05-91ab-eeaf9fb6ad01","uefiBoot":false} |
| Edition |
string |
No |
The edition of Cloud Backup. Valid values:
|
STANDARD |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. A value of 200 indicates that the request is 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 |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Success |
boolean |
Indicates whether the request was successful.
|
true |
| RestoreId |
string |
The ID of the restore job. |
r-********************* |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Success": true,
"RestoreId": "r-*********************"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.