public class RegisterInstanceRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
databasePassword
The password that is used to log on to the database.
|
String |
databaseUser
The account that is used to log on to the database.
|
String |
dataLinkName
The name of the database link for cross-database queries.
|
Long |
dbaUid
The ID of the user who assumes the DBA role of the database instance.
|
String |
dbaUidByString
The ID of the user who assumes the DBA role of the database instance.
|
Integer |
ddlOnline
Specifies whether to enable the lock-free schema change feature for the database instance.
|
String |
ecsInstanceId
The ID of the ECS instance on which the database instance is deployed.
|
String |
ecsRegion
The ID of the region in which the database instance resides.
|
String |
enableSellSitd
Y: enables the sensitive data protection feature
NULL or other: disables the sensitive data protection feature
example:
Y
|
String |
envType
The type of the environment in which the database instance is deployed.
|
Integer |
exportTimeout
The timeout period for exporting data from the database instance.
|
String |
host
The host address that is used to connect to the database instance.
|
String |
instanceAlias
The alias of the database instance.
|
String |
instanceSource
The source of the database instance.
|
String |
instanceType
The type of the database.
|
String |
networkType
The network type of the database instance.
|
Integer |
port
The port that is used to connect to the database instance.
|
Integer |
queryTimeout
The timeout period for querying data in the database instance.
|
String |
safeRule
The name of the security rule set (GroupName) for the database instance.
|
String |
sid
The system ID (SID) of the database.
|
Boolean |
skipTest
Specifies whether to skip the connectivity test.
|
Long |
templateId
The ID of the classification template.
|
String |
templateType
The type of the classification template.
|
Long |
tid
The ID of the tenant.
|
Integer |
useDsql
Specifies whether to enable the cross-database query feature for the database instance.
|
String |
vpcId
The ID of the VPC to which the database instance belongs.
|
| 构造器和说明 |
|---|
RegisterInstanceRequest() |
@NameInMap(value="DataLinkName") public String dataLinkName
The name of the database link for cross-database queries.
This parameter is required if UseDsql is set to 1.
The name can contain only lowercase letters and underscores (_).
The name must be unique within a tenant.
dblink_test
@NameInMap(value="DatabasePassword") public String databasePassword
The password that is used to log on to the database.
This parameter is required.
example:@NameInMap(value="DatabaseUser") public String databaseUser
The account that is used to log on to the database.
This parameter is required.
example:dmstest
@NameInMap(value="DbaUid") public Long dbaUid
The ID of the user who assumes the DBA role of the database instance. You can call the ListUsers or GetInstance operation to query the user ID.
This parameter is required.
example:22275482072787****
@NameInMap(value="DbaUidByString") public String dbaUidByString
The ID of the user who assumes the DBA role of the database instance. If the user ID is a non-numeric value such as a role or an account, you can use this parameter to replace DbaUid.
example:22275482072787****
@NameInMap(value="DdlOnline") public Integer ddlOnline
Specifies whether to enable the lock-free schema change feature for the database instance. Valid values:
example:Supported database types: ApsaraDB RDS for MySQL, PolarDB for MySQL, ApsaraDB MyBase for MySQL, and third-party MySQL databases.
2
@NameInMap(value="EcsInstanceId") public String ecsInstanceId
The ID of the ECS instance on which the database instance is deployed.
example:This parameter is required if the InstanceSource parameter is set to ECS_OWN.
i-2zei9gs1t7h8l7ac****
@NameInMap(value="EcsRegion") public String ecsRegion
The ID of the region in which the database instance resides.
example:This parameter is required if the InstanceSource parameter is set to RDS, ECS_OWN, or VPC_IDC.
cn-hangzhou
@NameInMap(value="EnableSellSitd") public String enableSellSitd
Y
@NameInMap(value="EnvType") public String envType
The type of the environment in which the database instance is deployed. Valid values:
This parameter is required.
example:product
@NameInMap(value="ExportTimeout") public Integer exportTimeout
The timeout period for exporting data from the database instance. Unit: seconds.
This parameter is required.
example:600
@NameInMap(value="Host") public String host
The host address that is used to connect to the database instance.
This parameter is required.
example:172.XX.XXX.254
@NameInMap(value="InstanceAlias") public String instanceAlias
The alias of the database instance. Specify an alias that can help you identify the database instance in DMS.
This parameter is required.
example:Test instance
@NameInMap(value="InstanceSource") public String instanceSource
The source of the database instance. Valid values:
This parameter is required.
example:RDS
@NameInMap(value="InstanceType") public String instanceType
The type of the database. For more information about the valid values of this parameter, see DbType parameter.
This parameter is required.
example:MySQL
@NameInMap(value="NetworkType") public String networkType
The network type of the database instance. Valid values:
This parameter is required.
example:VPC
@NameInMap(value="Port") public Integer port
The port that is used to connect to the database instance.
This parameter is required.
example:3306
@NameInMap(value="QueryTimeout") public Integer queryTimeout
The timeout period for querying data in the database instance. Unit: seconds.
This parameter is required.
example:60
@NameInMap(value="SafeRule") public String safeRule
The name of the security rule set (GroupName) for the database instance. You can call the ListStandardGroups or GetInstance operation to query the name of the security rule set.
This parameter is required.
example:Test
@NameInMap(value="Sid") public String sid
The system ID (SID) of the database.
example:This parameter is required if the InstanceType parameter is set to ORACLE.
XXX
@NameInMap(value="SkipTest") public Boolean skipTest
Specifies whether to skip the connectivity test. Valid values:
true
@NameInMap(value="TemplateId") public Long templateId
The ID of the classification template. You can call the ListClassificationTemplates operation to query the template ID.
example:31***
@NameInMap(value="TemplateType") public String templateType
The type of the classification template. You can call the ListClassificationTemplates operation to query the template type.
example:INNER
@NameInMap(value="Tid") public Long tid
The ID of the tenant. You can call the GetUserActiveTenant operation to query the tenant ID.
example:3***
@NameInMap(value="UseDsql") public Integer useDsql
Specifies whether to enable the cross-database query feature for the database instance. Valid values:
example:Supported database types: MySQL, SQL Server, PostgreSQL, PolarDB for PostgreSQL (compatible with Oracle), and ApsaraDB for Redis.
1
@NameInMap(value="VpcId") public String vpcId
The ID of the VPC to which the database instance belongs.
example:This parameter is required if the InstanceSource parameter is set to VPC_IDC.
vpc-xxxxxxxxxxxxxxxxxxxxx
public static RegisterInstanceRequest build(Map<String,?> map) throws Exception
Exceptionpublic RegisterInstanceRequest setDataLinkName(String dataLinkName)
public String getDataLinkName()
public RegisterInstanceRequest setDatabasePassword(String databasePassword)
public String getDatabasePassword()
public RegisterInstanceRequest setDatabaseUser(String databaseUser)
public String getDatabaseUser()
public RegisterInstanceRequest setDbaUid(Long dbaUid)
public Long getDbaUid()
public RegisterInstanceRequest setDbaUidByString(String dbaUidByString)
public String getDbaUidByString()
public RegisterInstanceRequest setDdlOnline(Integer ddlOnline)
public Integer getDdlOnline()
public RegisterInstanceRequest setEcsInstanceId(String ecsInstanceId)
public String getEcsInstanceId()
public RegisterInstanceRequest setEcsRegion(String ecsRegion)
public String getEcsRegion()
public RegisterInstanceRequest setEnableSellSitd(String enableSellSitd)
public String getEnableSellSitd()
public RegisterInstanceRequest setEnvType(String envType)
public String getEnvType()
public RegisterInstanceRequest setExportTimeout(Integer exportTimeout)
public Integer getExportTimeout()
public RegisterInstanceRequest setHost(String host)
public String getHost()
public RegisterInstanceRequest setInstanceAlias(String instanceAlias)
public String getInstanceAlias()
public RegisterInstanceRequest setInstanceSource(String instanceSource)
public String getInstanceSource()
public RegisterInstanceRequest setInstanceType(String instanceType)
public String getInstanceType()
public RegisterInstanceRequest setNetworkType(String networkType)
public String getNetworkType()
public RegisterInstanceRequest setPort(Integer port)
public Integer getPort()
public RegisterInstanceRequest setQueryTimeout(Integer queryTimeout)
public Integer getQueryTimeout()
public RegisterInstanceRequest setSafeRule(String safeRule)
public String getSafeRule()
public RegisterInstanceRequest setSid(String sid)
public String getSid()
public RegisterInstanceRequest setSkipTest(Boolean skipTest)
public Boolean getSkipTest()
public RegisterInstanceRequest setTemplateId(Long templateId)
public Long getTemplateId()
public RegisterInstanceRequest setTemplateType(String templateType)
public String getTemplateType()
public RegisterInstanceRequest setTid(Long tid)
public Long getTid()
public RegisterInstanceRequest setUseDsql(Integer useDsql)
public Integer getUseDsql()
public RegisterInstanceRequest setVpcId(String vpcId)
public String getVpcId()
Copyright © 2025. All rights reserved.