Queries the result of a task that is used to query a database list by using a backup gateway based on the ID of the task.
Operation description
您需要调用 CreateGetDBListFromAgentTask 接口创建一个异步任务获取 TaskId(异步任务 ID)。将 TaskId 传入 GetDBListFromAgent 接口后,即可获取物理备份库表数据。
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. |
160*** |
| SourceEndpointRegion |
string |
No |
The region in which the backup gateway resides. |
cn-hangzhou |
| TaskId |
integer |
No |
The ID of the asynchronous task. |
123456 |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
ETnLKlblzczshOTUbOCzxxxxxxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
400 |
| RequestId |
string |
The ID of the request. |
EB4DFD5E-3618-498D-BE35-4DBEA0072122 |
| ErrCode |
string |
The error code. |
InvalidParameter |
| Success |
boolean |
Indicates whether the request is successful. |
true |
| ErrMessage |
string |
The error message. |
This backupPlan can't support this action |
| DbList |
object |
||
| dbName |
array |
The details of the databases. |
|
|
string |
The details of the databases. |
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.