Updates database instance information and checks instance connectivity.
Operation description
Before calling UpdateInstance, call GetInstance or ListInstances to obtain the complete instance information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:UpdateInstance |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The tenant ID. Call GetUserActiveTenant to query this ID. |
3*** |
| InstanceType |
string |
Yes |
The database type. Valid values: DbType parameter. |
mysql |
| InstanceSource |
string |
Yes |
The database instance source. Valid values:
|
ECS_OWN |
| EnvType |
string |
Yes |
The environment type of the database instance. Valid values:
Valid values:
|
product |
| EcsInstanceId |
string |
No |
The ECS instance ID where the database is deployed. Note
Required if InstanceSource is ECS_OWN. |
i-2zei9gs1t7h8l7ac**** |
| VpcId |
string |
No |
The VPC ID of the database instance. Note
Required if InstanceSource is VPC_IDC. |
vpc-xxx |
| EcsRegion |
string |
No |
The region ID of the database instance. Note
Required if InstanceSource is RDS, ECS_OWN, or VPC_IDC. |
cn-hangzhou |
| Host |
string |
Yes |
The host address for connecting to the database instance. |
192.XXX.0.56 |
| Port |
integer |
Yes |
The port for connecting to the database instance. |
3306 |
| Sid |
string |
No |
The system ID (SID) of the database instance. Note
Required if InstanceType is ORACLE. |
XXX |
| DatabaseUser |
string |
Yes |
The database logon account. |
dbuser |
| DatabasePassword |
string |
Yes |
The database logon password. |
****** |
| InstanceAlias |
string |
Yes |
The database instance alias for identification in DMS. |
instance_test |
| DbaId |
string |
Yes |
The user ID of the DBA for this instance. Call ListUsers or GetInstance to query the user ID. |
27**** |
| SafeRuleId |
string |
Yes |
The security rule set name (GroupName) for this instance. Call ListStandardGroups or GetInstance to query the name. |
3**** |
| QueryTimeout |
integer |
Yes |
The query timeout period for the database instance. |
60 |
| ExportTimeout |
integer |
Yes |
The export timeout period for the database instance. |
600 |
| DataLinkName |
string |
No |
The database link name for cross-database queries. Note
|
datalink_test |
| DdlOnline |
integer |
No |
Whether to enable lock-free schema change for the database instance. Valid values:
|
0 |
| UseDsql |
integer |
No |
Whether to enable cross-database query for the database instance. Valid values:
Note
Supported database types: MySQL, SQL Server, PostgreSQL, PolarDB for PostgreSQL (compatible with Oracle), and ApsaraDB for Redis. |
0 |
| InstanceId |
string |
Yes |
The database instance ID. Call GetInstance to query this ID. |
126**** |
| SkipTest |
boolean |
No |
Whether to skip the connectivity test. Valid values:
|
false |
| EnableSellSitd |
string |
No |
|
Y |
| TemplateId |
integer |
No |
The classification template ID. Call ListClassificationTemplates to query this ID. |
3*** |
| TemplateType |
string |
No |
The classification template type. Call ListClassificationTemplates to query this type. |
INNER |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
E9BEBF41-4F69-4605-A5D5-A67955173941 |
| ErrorCode |
string |
The error code. Returned only when the request failed. |
UnknownError |
| ErrorMessage |
string |
The error message. Returned only when the request failed. |
UnknownError |
| Success |
boolean |
Whether the request was successful. Valid values:
|
false |
Examples
Success response
JSON format
{
"RequestId": "E9BEBF41-4F69-4605-A5D5-A67955173941",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": false
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.