CreateRestoreJob
Creates a restore job.
Operation description
Creates a restore job based on the selected snapshot and restore destination.
The data source type must match the data source type of the restore destination.
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 parameters of the restore job. |
{\"includes\":[],\"excludes\":[],\"conflictPolicy\":\"OVERWRITE_EXISTING\"} |
| TargetFileSystemId |
string |
No |
The ID of the file system at the restore destination. This parameter is valid only when RestoreType is set to NAS or CPFS. |
005494 |
| TargetCreateTime |
integer |
No |
The creation time of the file system at the restore destination. This parameter is valid only when RestoreType is set to NAS. The value is a UNIX timestamp in seconds. |
1554347313 |
| TargetPath |
string |
No |
The file path at the restore destination. This parameter is valid only when RestoreType is set to ECS_FILE. |
C:\ |
| TargetBucket |
string |
No |
The name of the OSS bucket at the restore destination. This parameter is valid only when RestoreType is set to OSS. |
hbr-backup-oss |
| TargetPrefix |
string |
No |
The object prefix at the restore destination. This parameter is valid only when RestoreType is set to OSS. |
hbr |
| UdmDetail |
object |
No |
The details of the full-copy backup. This parameter is valid only when SourceType is set to UDM_ECS. The value is a JSON string. The details to be passed vary based on the value of RestoreType:
|
{"sourceInstanceId":"i-uf62te6pm3iwsyxyz66q","bootAfterRestore":false} |
| UdmRegionId |
string |
No |
The destination region for the restoration. This parameter is valid only when SourceType is set to UDM_ECS. |
cn-shanghai |
| TargetInstanceId |
string |
No |
The instance ID of the ECS instance at the recover destination. This parameter is valid only when RestoreType is set to ECS_FILE. |
i-********************* |
| Include |
string |
No |
The paths 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 to exclude from the restoration. 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 for the 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 service invocation is invoked by Container Service. Default value: false. |
false |
| TargetContainerClusterId |
string |
No |
The ID of the destination container cluster for the restoration. |
cc-000amjsc7o1h9506oob7 |
| TargetInstanceName |
string |
No |
The name of the destination Tablestore instance for the restoration. |
instancename |
| TargetTableName |
string |
No |
The name of the destination Tablestore table for the restoration. |
tablename |
| TargetTime |
integer |
No |
The point in time to which Tablestore data is restored. The value is a UNIX timestamp in 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 original account for the cross-account backup managed by the current account. |
158975xxxxx4625 |
| CrossAccountRoleName |
string |
No |
The name of the RAM role created in the original account for the cross-account backup managed by the current account. |
BackupRole |
| FailbackDetail |
object |
No |
The details of the restoration to the on-premises environment. |
{"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 return code. A value of 200 indicates success. |
200 |
| Message |
string |
The return message. "successful" is returned if the request is successful. An error message is returned if the request fails. |
successful |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
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.