CreateGetDBListFromAgentTask
Creates a task to retrieve the database list through a backup gateway.
Operation description
This API operation returns a TaskId. You can call the GetDBListFromAgent operation to query the result.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dbs:CreateGetDBListFromAgentTask |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BackupGatewayId |
integer |
No |
The ID of the backup gateway. You can call the DescribeBackupPlanList operation to query the ID. Note
This parameter is required. |
160813 |
| DatabaseType |
string |
No |
The type of the database. Valid values:
|
MySQL |
| SourceEndpointRegion |
string |
No |
The region ID of the backup gateway. |
cn-hangzhou |
| SourceEndpointIP |
string |
No |
The database connection address. |
123.0.XX.XX |
| SourceEndpointPort |
integer |
No |
The database connection port. |
3306 |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request and prevent duplicate submissions. You can use the client to generate the value, but you must ensure 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 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 |
| TaskId |
integer |
The ID of the asynchronous task. |
123456 |
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",
"TaskId": 123456
}
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.