Skip to content

ShardingNetworkPrivateAddressProps

Properties for defining a ShardingNetworkPrivateAddress.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mongodb-shardingnetworkprivateaddress

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkmongodb"
&alicloudroscdkmongodb.ShardingNetworkPrivateAddressProps {
    DbInstanceId: interface{},
    NodeId: interface{},
    AccountName: interface{},
    AccountPassword: interface{},
    ZoneId: interface{},
}

Properties

Name Type Description
DbInstanceId interface{} Property dbInstanceId: The ID of the Shard cluster instance.
NodeId interface{} Property nodeId: The ID of the Mongos node, Shard node, or ConfigServer node in the sharded cluster instance.
AccountName interface{} Property accountName: Account name.
AccountPassword interface{} Property accountPassword: Account password.
ZoneId interface{} Property zoneId: The ID of the zone to which the instance belongs.

DbInstanceIdRequired

DbInstanceId interface{}
  • Type: interface{}

Property dbInstanceId: The ID of the Shard cluster instance.


NodeIdRequired

NodeId interface{}
  • Type: interface{}

Property nodeId: The ID of the Mongos node, Shard node, or ConfigServer node in the sharded cluster instance.

You can call the [DescribeDBInstanceAttribute] interface to query the Mongos, Shard, and ConfigServer node ID.


AccountNameOptional

AccountName interface{}
  • Type: interface{}

Property accountName: Account name.

  • starts with a lowercase letter, has 4 to 16 digits in length, and consists of lowercase letters, numbers, or underscores.
  • Only when you apply for the Shard/ConfigServer address for the first time, you need to set the account name and password. That is, all Shard nodes and ConfigServer nodes will use the account and password set when applying for the address for the first time.
  • The permissions of this account are fixed to read-only.

AccountPasswordOptional

AccountPassword interface{}
  • Type: interface{}

Property accountPassword: Account password.

  • The password consists of at least three of uppercase letters, lowercase letters, numbers, and special characters. The special character is '! #$%^& *()_+-='
  • The password length is 8-32 bits.

ZoneIdOptional

ZoneId interface{}
  • Type: interface{}

Property zoneId: The ID of the zone to which the instance belongs.

You can call the [describeddinstanceattribute] operation to query the zone ID of an instance.