Retrieves database and table data from a physical backup by using a backup gateway.
Operation description
Call the CreateGetDBListFromAgentTask operation to create an asynchronous task and obtain the TaskId. Then, pass the TaskId to the GetDBListFromAgent operation to retrieve the database and table data from the physical backup.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dbs:GetDBListFromAgent |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BackupGatewayId |
integer |
No |
The ID of the backup gateway. You can call the DescribeBackupGatewayList operation to obtain this parameter. Note
This parameter is required. |
160*** |
| SourceEndpointRegion |
string |
No |
The region ID of the backup gateway. |
cn-hangzhou |
| TaskId |
integer |
No |
The ID of the asynchronous task. You can call the CreateGetDBListFromAgentTask operation to obtain this parameter. |
123456 |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request to prevent repeated submissions. The value is generated by the client and must be unique among different requests. The value can be up to 64 ASCII characters in length and cannot contain non-ASCII characters. |
ETnLKlblzczshOTUbOCzxxxxxxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
400 |
| RequestId |
string |
The request ID. |
EB4DFD5E-3618-498D-BE35-4DBEA0072122 |
| ErrCode |
string |
The error code. |
InvalidParameter |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| ErrMessage |
string |
The error message. |
This backupPlan can't support this action |
| DbList |
object |
||
| dbName |
array |
The database list. |
|
|
string |
The database list. |
TaskDB |
Examples
Success response
JSON format
{
"HttpStatusCode": 400,
"RequestId": "EB4DFD5E-3618-498D-BE35-4DBEA0072122",
"ErrCode": "InvalidParameter",
"Success": true,
"ErrMessage": "This backupPlan can't support this action",
"DbList": {
"dbName": [
"TaskDB"
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Request.Forbidden | Have no Permissions |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.