Modifies the configuration or migration parameters of a database engine migration task, such as the source database, destination database, migration objects, or migration mode.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:ModifyEngineMigration |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| DBInstanceName |
string |
No |
The instance ID. |
pxc-htri0****r4k9p |
| SourceDBInstanceName |
string |
No |
The name of the source database instance. |
source456 |
| NewMasterDBInstanceName |
string |
No |
The name of the new primary instance after the migration is complete. |
newmaster789 |
| SwapConnectionString |
string |
No |
Specifies whether to automatically swap connection strings. Valid values:
|
true |
| ConnectionStrings |
string |
No |
The specific endpoints to switch. The value is a JSON string that corresponds to the endpoint pairs to be swapped. Note
This parameter takes effect only when SwapConnectionString is set to true. |
{\"pc-bp1m9tt23o5kh834y.rwlb.rds.aliyuncs.com\":\"rm-bp1ycl5o6ojs957o0.mysql.rds.aliyuncs.com\"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
C458B1E8-1683-3645-B154-6BA32080EEA |
| Code |
string |
The response code. |
200 |
| Message |
string |
The additional information. The value success is returned if the request is successful. Otherwise, an error code is returned. |
Success |
| HttpStatusCode |
string |
The HTTP status code. |
200 |
| SuccessResponse |
string |
Indicates whether the request was successful. |
true |
| Data |
object |
The returned data. |
|
| DBInstanceName |
string |
The instance ID. |
pxc-********* |
| TaskId |
string |
The task ID. |
42292**** |
Examples
Success response
JSON format
{
"RequestId": "C458B1E8-1683-3645-B154-6BA32080EEA",
"Code": "200",
"Message": "Success",
"HttpStatusCode": "200",
"SuccessResponse": "true",
"Data": {
"DBInstanceName": "pxc-*********",
"TaskId": "42292****"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.