Modifies the basic information of an instance, such as the management mode, database credentials, and feature packages, as well as advanced information such as the environment type, instance name in DMS, and timeout periods for querying and exporting data.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ModifyInstance |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. You can call the ListInstances or GetInstance operation to obtain this parameter. |
183**** |
| Tid |
integer |
No |
The tenant ID. Note
You can find the tenant ID by hovering over the profile icon in the upper-right corner of the DMS console. |
23**** |
| InstanceType |
string |
No |
The database type. For more information about valid values, see DbType parameter description. |
MySQL |
| InstanceSource |
string |
No |
The source of the instance. Valid values:
|
RDS |
| NetworkType |
string |
No |
The network type. Valid values:
|
VPC |
| EnvType |
string |
No |
The environment type. Valid values:
|
dev |
| EcsInstanceId |
string |
No |
The instance ID of the ECS instance. Note
This parameter is required if InstanceSource is set to ECS_OWN. |
i-2zei9gs1t7h8l7ac**** |
| VpcId |
string |
No |
The VPC ID of the instance. Note
This parameter is required if InstanceSource is set to VPC_IDC. |
vpc-bp10wnlcmor**** |
| EcsRegion |
string |
No |
The region in which the instance resides. Note
This parameter is required if InstanceSource is set to RDS, ECS_OWN, or VPC_IDC. |
cn-hangzhou |
| Host |
string |
No |
The endpoint of the instance. |
192.XXX.0.56 |
| Port |
integer |
No |
The port used to access the instance. |
3306 |
| Sid |
string |
No |
The SID of the instance. Note
This parameter is required if InstanceType is set to ORACLE. |
testSid |
| DatabaseUser |
string |
No |
The database account. |
testsdb |
| DatabasePassword |
string |
No |
The database password. |
test*** |
| InstanceAlias |
string |
No |
The alias of the instance, which helps users quickly identify and locate the instance. |
instance_test |
| DbaId |
integer |
No |
The user ID of the DBA for the instance. You can call the ListUsers or GetInstance operation to obtain this parameter. |
27**** |
| QueryTimeout |
integer |
No |
The query timeout period. Unit: seconds. |
7200 |
| ExportTimeout |
integer |
No |
The export timeout period. Unit: seconds. |
86400 |
| EnableSellTrust |
string |
No |
Specifies whether to enable security hosting for the instance.
|
Y |
| EnableSellStable |
string |
No |
Specifies whether to enable the stable change feature for the instance.
|
N |
| EnableSellCommon |
string |
No |
Specifies whether to enable the security collaboration feature for the instance.
|
Y |
| SafeRule |
string |
No |
If you want to enable the security collaboration feature package, you must configure a security rule set (GroupName) for the instance. You can call the ListStandardGroups or GetInstance operation to obtain this parameter. |
Finance-production |
| EnableSellSitd |
string |
No |
Specifies whether to enable the sensitive data protection feature for the instance.
|
Y |
| DataLinkName |
string |
No |
The name of the cross-database query datalink. Note
|
dblink_test |
| DdlOnline |
integer |
No |
Specifies whether structure change priority is enabled. Valid values:
Note
Supported database types: ApsaraDB RDS for MySQL, PolarDB for MySQL engine, MyBase for MySQL, and MySQL from other sources. |
2 |
| UseDsql |
integer |
No |
Specifies whether to enable cross-instance query. Valid values:
Note
Supported database types: MySQL, SQL Server, PostgreSQL, PolarDB for PostgreSQL (Oracle-Compatible), and Redis. |
1 |
| SkipTest |
boolean |
No |
Specifies whether to skip the connectivity test for the instance. Valid values:
|
false |
| TemplateId |
integer |
No |
The data classification template ID. You can call the ListClassificationTemplates operation to obtain this parameter. |
31*** |
| TemplateType |
string |
No |
The data categorization templatetype. You can call the ListClassificationTemplates operation to obtain this parameter. |
INNER |
| UseSsl |
integer |
No |
Specifies whether to enable SSL connection. After SSL is enabled, DMS connects to the database over SSL. The prerequisite is that the database has SSL enabled. The following options are supported:
Note
|
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. You can use this ID to locate logs and troubleshoot issues. |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
UnknownError |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.