Creates a task to obtain a database list by using a backup gateway.
Operation description
This API operation returns a task ID. You can call the GetDBListFromAgent operation to query the task result based on the task ID.
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 in which the backup gateway resides. |
cn-hangzhou |
| SourceEndpointIP |
string |
No |
The URL that is used to access the database. |
123.0.XX.XX |
| SourceEndpointPort |
integer |
No |
The port that is used to connect to the database. |
3306 |
| 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 returned. |
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.