Starts a database cutover for a database migration or synchronization task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:StartSwitchDatabase |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. |
cn-hangzhou |
| DBInstanceName |
string |
No |
The name of the instance. |
pxc-xxx |
| SlinkTaskId |
string |
Yes |
The ID of the import task. |
etx-szr2rr6i***** |
| IsModifyEndpoint |
string |
No |
Specifies whether to modify the endpoint or port of the source or target instance. |
true |
| SrcMainConnectString |
string |
No |
The endpoint of the primary node of the source instance. This is typically the internal or public endpoint of the instance. |
rm-*********.mysql.rds.aliyuncs.com |
| DstMainConnectString |
string |
No |
The endpoint of the primary node of the target instance. |
pxc-*********.polarx.rds.aliyuncs.com |
| SrcMainPort |
string |
No |
The port number of the primary node of the source instance. |
3308 |
| DstMainPort |
string |
No |
The port number of the target instance. |
3313 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The response message. |
***** |
| RequestId |
string |
Id of the request |
9B2F3840-5C98-475C-B269-2D5C3A31797C |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Data |
object |
The monitoring data. |
|
| SlinkTaskId |
string |
The ID of the slink task. |
etx-szr2rr6i***** |
Examples
Success response
JSON format
{
"Message": "*****",
"RequestId": "9B2F3840-5C98-475C-B269-2D5C3A31797C",
"Success": true,
"Data": {
"SlinkTaskId": "etx-szr2rr6i*****"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.