Register a database instance in DMS.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:RegisterInstance |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The tenant ID. You can call the GetUserActiveTenant operation to get this ID. |
3*** |
| InstanceType |
string |
Yes |
The database type. For more information, see DbType parameter description. |
MySQL |
| InstanceSource |
string |
Yes |
The source of the database instance. Valid values:
|
RDS |
| NetworkType |
string |
Yes |
The network type. Valid values:
|
VPC |
| EnvType |
string |
Yes |
The environment type. Valid values:
|
product |
| EcsInstanceId |
string |
No |
The ID of the ECS instance. Note
This parameter is required if |
i-2zei9gs1t7h8l7ac**** |
| VpcId |
string |
No |
The ID of the VPC. Note
This parameter is required if |
vpc-xxxxxxxxxxxxxxxxxxxxx |
| EcsRegion |
string |
No |
The region where the instance is located. Note
This parameter is required if |
cn-hangzhou |
| Host |
string |
Yes |
The endpoint of the database instance. |
172.XX.XXX.254 |
| Port |
integer |
Yes |
The connection port of the database instance. |
3306 |
| Sid |
string |
No |
The system ID (SID) of the database. Note
This parameter is required if |
XXX |
| DatabaseUser |
string |
Yes |
The username for the database account. |
dmstest |
| DatabasePassword |
string |
Yes |
The password for the database account. |
****** |
| InstanceAlias |
string |
Yes |
An alias for the instance to help you identify it quickly. |
测试实例 |
| DbaUid |
integer |
Yes |
The UID of the user with the Database Administrator (DBA) role for the instance. You can call the ListUsers or GetInstance operation to get this ID. |
22275482072787**** |
| SafeRule |
string |
Yes |
The name of the Security Rule Set (GroupName) for the instance. You can call the ListStandardGroups or GetInstance operation to get this value. |
测试使用 |
| QueryTimeout |
integer |
Yes |
The query timeout period, in seconds. |
60 |
| ExportTimeout |
integer |
Yes |
The export timeout period, in seconds. |
600 |
| DataLinkName |
string |
No |
The datalink name for cross-instance queries. Note
|
dblink_test |
| DdlOnline |
integer |
No |
The strategy for lock-free schema changes. Valid values:
Note
Supported database types: ApsaraDB RDS for MySQL, PolarDB for MySQL, ApsaraDB for MyBase (MySQL), and other MySQL-compatible databases. |
2 |
| UseDsql |
integer |
No |
Specifies whether to enable cross-instance queries. 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. Valid values:
|
true |
| EnableSellSitd |
string |
No |
|
Y |
| TemplateId |
integer |
No |
The ID of the sensitivity classification template. You can call the ListClassificationTemplates operation to get this ID. |
31*** |
| TemplateType |
string |
No |
The type of the sensitivity classification template. You can call the ListClassificationTemplates operation to get this value. |
INNER |
| DbaUidByString |
string |
No |
This parameter replaces |
22275482072787**** |
| ResourceGroup |
string |
No |
The ID of the resource group. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The ID of the request. |
F4E2A94B-604F-43FF-93E7-F4EE3DCF412E |
| ErrorCode |
string |
The error code returned if the request fails. |
UnknownError |
| ErrorMessage |
string |
The error message returned if the request fails. |
UnknownError |
| Success |
boolean |
Indicates whether the request succeeded. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "F4E2A94B-604F-43FF-93E7-F4EE3DCF412E",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.