Moves database instances to a different project in batches.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID of the bastion host. Note
You can invoke the DescribeInstances operation to query this parameter. |
bastionhost-cn-zmb2y9ydw08 |
| RegionId |
string |
No |
The region ID of the bastion host. Note
For the mapping between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| ProjectId |
integer |
No |
The ID of the project to which the database instances currently belong. |
2 |
| TargetProjectId |
integer |
Yes |
The ID of the target project to which you want to move the database instances. Note
You can call the ListProjectsForProjectAuthorizationPrincipal operation to query this parameter. |
3 |
| DatabaseIds |
string |
Yes |
The IDs of the database instances that you want to move. This parameter is a JSON-formatted string. You can specify up to 100 database instance IDs. Separate multiple database instance IDs with commas (,). Note
You can call the ListDatabases operation to query this parameter. |
2,3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| TotalCount |
integer |
The total number of records. |
15 |
| SuccessCount |
integer |
The number of database instances that are moved. |
10 |
| Results |
array<object> |
The call results. |
|
|
object |
The call result. |
||
| AssetId |
string |
The instance ID of the database. |
53 |
| Code |
string |
The error code. A value of 200 indicates that the operation is successful. Other values indicate that the operation failed. |
200 |
| Message |
string |
The result message. |
success |
| RequestId |
string |
The request ID. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
Examples
Success response
JSON format
{
"TotalCount": 15,
"SuccessCount": 10,
"Results": [
{
"AssetId": "53",
"Code": "200",
"Message": "success"
}
],
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.