Creates a restore job.
Operation description
Creates a restore job based on the selected snapshot and restore destination.
The data source type and the restore destination data source type 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 data source type of the restore destination. Valid values:
|
ECS_FILE |
| VaultId |
string |
No |
The ID of the backup vault 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 data source type. Valid values:
|
ECS_FILE |
| Options |
string |
No |
The restore job parameters. |
{\"includes\":[],\"excludes\":[],\"conflictPolicy\":\"OVERWRITE_EXISTING\"} |
| TargetFileSystemId |
string |
No |
This parameter is valid only when RestoreType is set to NAS. The file system ID of the restore destination. |
005494 |
| TargetCreateTime |
integer |
No |
This parameter is valid only when RestoreType is set to NAS. The creation time of the destination file system. This value is a UNIX timestamp. Unit: seconds. |
1554347313 |
| TargetPath |
string |
No |
This parameter is valid only when RestoreType is set to ECS_FILE. The file path of the restore destination. |
C:\ |
| TargetBucket |
string |
No |
This parameter is valid only when RestoreType is set to OSS. The name of the destination OSS bucket. |
hbr-backup-oss |
| TargetPrefix |
string |
No |
This parameter is valid only when RestoreType is set to OSS. The object prefix of the restore destination. |
hbr |
| UdmDetail |
object |
No |
This parameter is valid only when SourceType is set to UDM_ECS. The details of the full-copy migration backup. This parameter is a JSON string. The details vary depending on the value of RestoreType:
|
{\"sourceInstanceId\":\"i-uf62te6pm3iwsyxyz66q\",\"bootAfterRestore\":false} |
| UdmRegionId |
string |
No |
This parameter is valid only when SourceType is set to UDM_ECS. The destination region for restoration. |
cn-shanghai |
| TargetInstanceId |
string |
No |
This parameter is valid only when RestoreType is set to ECS_FILE. The ECS instance ID of the restore destination. |
i-********************* |
| Include |
string |
No |
The path to restore. All files under this path are restored. Maximum length: 255 characters. |
["/home/alice/*.pdf", "/home/bob/*.txt"] |
| Exclude |
string |
No |
The path to exclude from restoration. All files under this path are not restored. Maximum length: 255 characters. |
["/var", "/proc"] |
| TargetContainer |
string |
No |
The details of the target container for restoration. |
{\"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 operation is invoked by Container Service. Default value: false. |
false |
| TargetContainerClusterId |
string |
No |
The ID of the target container cluster for restoration. |
cc-000amjsc7o1h9506oob7 |
| TargetInstanceName |
string |
No |
The name of the target Tablestore instance for restoration. |
instancename |
| TargetTableName |
string |
No |
The name of the target data table in Tablestore for restoration. |
tablename |
| TargetTime |
integer |
No |
The point in time to which the Tablestore data is restored. This value is a UNIX timestamp. Unit: seconds. |
1642496881 |
| OtsDetail | OtsTableRestoreDetail |
No |
The details of the Tablestore instance. |
|
| CrossAccountType |
string |
No |
The cross-account backup type. Valid values:
|
SELF_ACCOUNT |
| CrossAccountUserId |
integer |
No |
The ID of the source account for cross-account backup managed by the current account. |
158975xxxxx4625 |
| CrossAccountRoleName |
string |
No |
The name of the RAM role created in the source account for cross-account backup managed by the current account. |
BackupRole |
| FailbackDetail |
object |
No |
The details of the restoration to the local host. |
{"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 Cloud Backup feature edition. Valid values:
|
STANDARD |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. The value 200 indicates success. |
200 |
| Message |
string |
The response message. The value "successful" is returned for a success. An error message is returned for a failure. |
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.