Creates a restoration task.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:CreateRestoreJob | create |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Uuid | string | Yes | The UUID of the server whose data you want to restore. | inet-ecs-4e876cb0-09f7-43b8-82ef-4bc7a93769b5 |
SnapshotId | string | Yes | The ID of the snapshot that you want to use for restoration. Note
You can call the DescribeSnapshots operation to obtain the value of this parameter.
| s-00023dhaatxp18mh**** |
SnapshotHash | string | Yes | The hash value of the snapshot. Note
You can call the DescribeSnapshots operation to obtain the value of this parameter.
| d4b399edaad94b038e8f91873f19e3eae010ca30798fc36db3a164dd343f**** |
Target | string | Yes | The path to which you want to restore data. | /root/testfls |
SourceType | string | No | The type of the data source. Valid values:
| ECS_FILE |
VaultId | string | Yes | The ID of the backup vault that is used in the restoration task. Note
You can call the DescribeSnapshots operation to obtain the value of this parameter.
| v-0002n12wokck2q0x**** |
SnapshotVersion | string | Yes | The version of the backup data. Note
You can call the DescribeSnapshots operation to obtain the value of this parameter.
| 165570544**** |
Includes | string | Yes | The directory in which the files included in the restoration task are located. This parameter is specified when you create the anti-ransomware policy. The value is a directory that requires protection. | ["root"] |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "BD4B24CE-E5C4-5727-B731-BE85F1D4****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.