alicloud.mongodb.ShardingNetworkPrivateAddress
Explore with Pulumi AI
Provides a MongoDB Sharding Network Private Address resource.
For information about MongoDB Sharding Network Private Address and how to use it, see What is Sharding Network Private Address.
NOTE: Available since v1.157.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const default = alicloud.mongodb.getZones({});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "172.17.3.0/24",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vswitchName: name,
cidrBlock: "172.17.3.0/24",
vpcId: defaultNetwork.id,
zoneId: _default.then(_default => _default.zones?.[0]?.id),
});
const defaultShardingInstance = new alicloud.mongodb.ShardingInstance("default", {
zoneId: _default.then(_default => _default.zones?.[0]?.id),
vswitchId: defaultSwitch.id,
engineVersion: "4.2",
name: name,
shardLists: [
{
nodeClass: "dds.shard.mid",
nodeStorage: 10,
},
{
nodeClass: "dds.shard.standard",
nodeStorage: 20,
readonlyReplicas: 1,
},
],
mongoLists: [
{
nodeClass: "dds.mongos.mid",
},
{
nodeClass: "dds.mongos.mid",
},
],
});
const defaultShardingNetworkPrivateAddress = new alicloud.mongodb.ShardingNetworkPrivateAddress("default", {
dbInstanceId: defaultShardingInstance.id,
nodeId: defaultShardingInstance.shardLists.apply(shardLists => shardLists[0].nodeId),
zoneId: defaultShardingInstance.zoneId,
accountName: "example",
accountPassword: "Example_123",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.mongodb.get_zones()
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="172.17.3.0/24")
default_switch = alicloud.vpc.Switch("default",
vswitch_name=name,
cidr_block="172.17.3.0/24",
vpc_id=default_network.id,
zone_id=default.zones[0].id)
default_sharding_instance = alicloud.mongodb.ShardingInstance("default",
zone_id=default.zones[0].id,
vswitch_id=default_switch.id,
engine_version="4.2",
name=name,
shard_lists=[
{
"node_class": "dds.shard.mid",
"node_storage": 10,
},
{
"node_class": "dds.shard.standard",
"node_storage": 20,
"readonly_replicas": 1,
},
],
mongo_lists=[
{
"node_class": "dds.mongos.mid",
},
{
"node_class": "dds.mongos.mid",
},
])
default_sharding_network_private_address = alicloud.mongodb.ShardingNetworkPrivateAddress("default",
db_instance_id=default_sharding_instance.id,
node_id=default_sharding_instance.shard_lists[0].node_id,
zone_id=default_sharding_instance.zone_id,
account_name="example",
account_password="Example_123")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/mongodb"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := mongodb.GetZones(ctx, nil, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("172.17.3.0/24"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
CidrBlock: pulumi.String("172.17.3.0/24"),
VpcId: defaultNetwork.ID(),
ZoneId: pulumi.String(_default.Zones[0].Id),
})
if err != nil {
return err
}
defaultShardingInstance, err := mongodb.NewShardingInstance(ctx, "default", &mongodb.ShardingInstanceArgs{
ZoneId: pulumi.String(_default.Zones[0].Id),
VswitchId: defaultSwitch.ID(),
EngineVersion: pulumi.String("4.2"),
Name: pulumi.String(name),
ShardLists: mongodb.ShardingInstanceShardListArray{
&mongodb.ShardingInstanceShardListArgs{
NodeClass: pulumi.String("dds.shard.mid"),
NodeStorage: pulumi.Int(10),
},
&mongodb.ShardingInstanceShardListArgs{
NodeClass: pulumi.String("dds.shard.standard"),
NodeStorage: pulumi.Int(20),
ReadonlyReplicas: pulumi.Int(1),
},
},
MongoLists: mongodb.ShardingInstanceMongoListArray{
&mongodb.ShardingInstanceMongoListArgs{
NodeClass: pulumi.String("dds.mongos.mid"),
},
&mongodb.ShardingInstanceMongoListArgs{
NodeClass: pulumi.String("dds.mongos.mid"),
},
},
})
if err != nil {
return err
}
_, err = mongodb.NewShardingNetworkPrivateAddress(ctx, "default", &mongodb.ShardingNetworkPrivateAddressArgs{
DbInstanceId: defaultShardingInstance.ID(),
NodeId: pulumi.String(defaultShardingInstance.ShardLists.ApplyT(func(shardLists []mongodb.ShardingInstanceShardList) (*string, error) {
return &shardLists[0].NodeId, nil
}).(pulumi.StringPtrOutput)),
ZoneId: defaultShardingInstance.ZoneId,
AccountName: pulumi.String("example"),
AccountPassword: pulumi.String("Example_123"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = AliCloud.MongoDB.GetZones.Invoke();
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "172.17.3.0/24",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VswitchName = name,
CidrBlock = "172.17.3.0/24",
VpcId = defaultNetwork.Id,
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
});
var defaultShardingInstance = new AliCloud.MongoDB.ShardingInstance("default", new()
{
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
VswitchId = defaultSwitch.Id,
EngineVersion = "4.2",
Name = name,
ShardLists = new[]
{
new AliCloud.MongoDB.Inputs.ShardingInstanceShardListArgs
{
NodeClass = "dds.shard.mid",
NodeStorage = 10,
},
new AliCloud.MongoDB.Inputs.ShardingInstanceShardListArgs
{
NodeClass = "dds.shard.standard",
NodeStorage = 20,
ReadonlyReplicas = 1,
},
},
MongoLists = new[]
{
new AliCloud.MongoDB.Inputs.ShardingInstanceMongoListArgs
{
NodeClass = "dds.mongos.mid",
},
new AliCloud.MongoDB.Inputs.ShardingInstanceMongoListArgs
{
NodeClass = "dds.mongos.mid",
},
},
});
var defaultShardingNetworkPrivateAddress = new AliCloud.MongoDB.ShardingNetworkPrivateAddress("default", new()
{
DbInstanceId = defaultShardingInstance.Id,
NodeId = defaultShardingInstance.ShardLists.Apply(shardLists => shardLists[0].NodeId),
ZoneId = defaultShardingInstance.ZoneId,
AccountName = "example",
AccountPassword = "Example_123",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.mongodb.MongodbFunctions;
import com.pulumi.alicloud.mongodb.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.mongodb.ShardingInstance;
import com.pulumi.alicloud.mongodb.ShardingInstanceArgs;
import com.pulumi.alicloud.mongodb.inputs.ShardingInstanceShardListArgs;
import com.pulumi.alicloud.mongodb.inputs.ShardingInstanceMongoListArgs;
import com.pulumi.alicloud.mongodb.ShardingNetworkPrivateAddress;
import com.pulumi.alicloud.mongodb.ShardingNetworkPrivateAddressArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var default = MongodbFunctions.getZones();
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("172.17.3.0/24")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("172.17.3.0/24")
.vpcId(defaultNetwork.id())
.zoneId(default_.zones()[0].id())
.build());
var defaultShardingInstance = new ShardingInstance("defaultShardingInstance", ShardingInstanceArgs.builder()
.zoneId(default_.zones()[0].id())
.vswitchId(defaultSwitch.id())
.engineVersion("4.2")
.name(name)
.shardLists(
ShardingInstanceShardListArgs.builder()
.nodeClass("dds.shard.mid")
.nodeStorage("10")
.build(),
ShardingInstanceShardListArgs.builder()
.nodeClass("dds.shard.standard")
.nodeStorage("20")
.readonlyReplicas("1")
.build())
.mongoLists(
ShardingInstanceMongoListArgs.builder()
.nodeClass("dds.mongos.mid")
.build(),
ShardingInstanceMongoListArgs.builder()
.nodeClass("dds.mongos.mid")
.build())
.build());
var defaultShardingNetworkPrivateAddress = new ShardingNetworkPrivateAddress("defaultShardingNetworkPrivateAddress", ShardingNetworkPrivateAddressArgs.builder()
.dbInstanceId(defaultShardingInstance.id())
.nodeId(defaultShardingInstance.shardLists().applyValue(shardLists -> shardLists[0].nodeId()))
.zoneId(defaultShardingInstance.zoneId())
.accountName("example")
.accountPassword("Example_123")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${name}
cidrBlock: 172.17.3.0/24
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vswitchName: ${name}
cidrBlock: 172.17.3.0/24
vpcId: ${defaultNetwork.id}
zoneId: ${default.zones[0].id}
defaultShardingInstance:
type: alicloud:mongodb:ShardingInstance
name: default
properties:
zoneId: ${default.zones[0].id}
vswitchId: ${defaultSwitch.id}
engineVersion: '4.2'
name: ${name}
shardLists:
- nodeClass: dds.shard.mid
nodeStorage: '10'
- nodeClass: dds.shard.standard
nodeStorage: '20'
readonlyReplicas: '1'
mongoLists:
- nodeClass: dds.mongos.mid
- nodeClass: dds.mongos.mid
defaultShardingNetworkPrivateAddress:
type: alicloud:mongodb:ShardingNetworkPrivateAddress
name: default
properties:
dbInstanceId: ${defaultShardingInstance.id}
nodeId: ${defaultShardingInstance.shardLists[0].nodeId}
zoneId: ${defaultShardingInstance.zoneId}
accountName: example
accountPassword: Example_123
variables:
default:
fn::invoke:
Function: alicloud:mongodb:getZones
Arguments: {}
Create ShardingNetworkPrivateAddress Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ShardingNetworkPrivateAddress(name: string, args: ShardingNetworkPrivateAddressArgs, opts?: CustomResourceOptions);
@overload
def ShardingNetworkPrivateAddress(resource_name: str,
args: ShardingNetworkPrivateAddressArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ShardingNetworkPrivateAddress(resource_name: str,
opts: Optional[ResourceOptions] = None,
db_instance_id: Optional[str] = None,
node_id: Optional[str] = None,
zone_id: Optional[str] = None,
account_name: Optional[str] = None,
account_password: Optional[str] = None)
func NewShardingNetworkPrivateAddress(ctx *Context, name string, args ShardingNetworkPrivateAddressArgs, opts ...ResourceOption) (*ShardingNetworkPrivateAddress, error)
public ShardingNetworkPrivateAddress(string name, ShardingNetworkPrivateAddressArgs args, CustomResourceOptions? opts = null)
public ShardingNetworkPrivateAddress(String name, ShardingNetworkPrivateAddressArgs args)
public ShardingNetworkPrivateAddress(String name, ShardingNetworkPrivateAddressArgs args, CustomResourceOptions options)
type: alicloud:mongodb:ShardingNetworkPrivateAddress
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ShardingNetworkPrivateAddressArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ShardingNetworkPrivateAddressArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ShardingNetworkPrivateAddressArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ShardingNetworkPrivateAddressArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ShardingNetworkPrivateAddressArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var shardingNetworkPrivateAddressResource = new AliCloud.MongoDB.ShardingNetworkPrivateAddress("shardingNetworkPrivateAddressResource", new()
{
DbInstanceId = "string",
NodeId = "string",
ZoneId = "string",
AccountName = "string",
AccountPassword = "string",
});
example, err := mongodb.NewShardingNetworkPrivateAddress(ctx, "shardingNetworkPrivateAddressResource", &mongodb.ShardingNetworkPrivateAddressArgs{
DbInstanceId: pulumi.String("string"),
NodeId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
AccountName: pulumi.String("string"),
AccountPassword: pulumi.String("string"),
})
var shardingNetworkPrivateAddressResource = new ShardingNetworkPrivateAddress("shardingNetworkPrivateAddressResource", ShardingNetworkPrivateAddressArgs.builder()
.dbInstanceId("string")
.nodeId("string")
.zoneId("string")
.accountName("string")
.accountPassword("string")
.build());
sharding_network_private_address_resource = alicloud.mongodb.ShardingNetworkPrivateAddress("shardingNetworkPrivateAddressResource",
db_instance_id="string",
node_id="string",
zone_id="string",
account_name="string",
account_password="string")
const shardingNetworkPrivateAddressResource = new alicloud.mongodb.ShardingNetworkPrivateAddress("shardingNetworkPrivateAddressResource", {
dbInstanceId: "string",
nodeId: "string",
zoneId: "string",
accountName: "string",
accountPassword: "string",
});
type: alicloud:mongodb:ShardingNetworkPrivateAddress
properties:
accountName: string
accountPassword: string
dbInstanceId: string
nodeId: string
zoneId: string
ShardingNetworkPrivateAddress Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ShardingNetworkPrivateAddress resource accepts the following input properties:
- Db
Instance stringId - The ID of the sharded cluster instance.
- Node
Id string - The ID of the Shard node or ConfigServer node.
- Zone
Id string - The zone ID of the instance.
- Account
Name string - The username of the account.
- The name must be 4 to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter.
- You need to set the account name and password only when you apply for an endpoint for a shard or ConfigServer node for the first time. In this case, the account name and password are used for all shard and ConfigServer nodes.
- The permissions of this account are fixed to read-only.
- Account
Password string - The password for the account.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
!#$%^&*()_+-=
. - The password must be 8 to 32 characters in length.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
- Db
Instance stringId - The ID of the sharded cluster instance.
- Node
Id string - The ID of the Shard node or ConfigServer node.
- Zone
Id string - The zone ID of the instance.
- Account
Name string - The username of the account.
- The name must be 4 to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter.
- You need to set the account name and password only when you apply for an endpoint for a shard or ConfigServer node for the first time. In this case, the account name and password are used for all shard and ConfigServer nodes.
- The permissions of this account are fixed to read-only.
- Account
Password string - The password for the account.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
!#$%^&*()_+-=
. - The password must be 8 to 32 characters in length.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
- db
Instance StringId - The ID of the sharded cluster instance.
- node
Id String - The ID of the Shard node or ConfigServer node.
- zone
Id String - The zone ID of the instance.
- account
Name String - The username of the account.
- The name must be 4 to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter.
- You need to set the account name and password only when you apply for an endpoint for a shard or ConfigServer node for the first time. In this case, the account name and password are used for all shard and ConfigServer nodes.
- The permissions of this account are fixed to read-only.
- account
Password String - The password for the account.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
!#$%^&*()_+-=
. - The password must be 8 to 32 characters in length.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
- db
Instance stringId - The ID of the sharded cluster instance.
- node
Id string - The ID of the Shard node or ConfigServer node.
- zone
Id string - The zone ID of the instance.
- account
Name string - The username of the account.
- The name must be 4 to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter.
- You need to set the account name and password only when you apply for an endpoint for a shard or ConfigServer node for the first time. In this case, the account name and password are used for all shard and ConfigServer nodes.
- The permissions of this account are fixed to read-only.
- account
Password string - The password for the account.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
!#$%^&*()_+-=
. - The password must be 8 to 32 characters in length.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
- db_
instance_ strid - The ID of the sharded cluster instance.
- node_
id str - The ID of the Shard node or ConfigServer node.
- zone_
id str - The zone ID of the instance.
- account_
name str - The username of the account.
- The name must be 4 to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter.
- You need to set the account name and password only when you apply for an endpoint for a shard or ConfigServer node for the first time. In this case, the account name and password are used for all shard and ConfigServer nodes.
- The permissions of this account are fixed to read-only.
- account_
password str - The password for the account.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
!#$%^&*()_+-=
. - The password must be 8 to 32 characters in length.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
- db
Instance StringId - The ID of the sharded cluster instance.
- node
Id String - The ID of the Shard node or ConfigServer node.
- zone
Id String - The zone ID of the instance.
- account
Name String - The username of the account.
- The name must be 4 to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter.
- You need to set the account name and password only when you apply for an endpoint for a shard or ConfigServer node for the first time. In this case, the account name and password are used for all shard and ConfigServer nodes.
- The permissions of this account are fixed to read-only.
- account
Password String - The password for the account.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
!#$%^&*()_+-=
. - The password must be 8 to 32 characters in length.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
Outputs
All input properties are implicitly available as output properties. Additionally, the ShardingNetworkPrivateAddress resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Addresses List<Pulumi.Ali Cloud. Mongo DB. Outputs. Sharding Network Private Address Network Address> - The connection string of the instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Addresses []ShardingNetwork Private Address Network Address - The connection string of the instance.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Addresses List<ShardingNetwork Private Address Network Address> - The connection string of the instance.
- id string
- The provider-assigned unique ID for this managed resource.
- network
Addresses ShardingNetwork Private Address Network Address[] - The connection string of the instance.
- id str
- The provider-assigned unique ID for this managed resource.
- network_
addresses Sequence[ShardingNetwork Private Address Network Address] - The connection string of the instance.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Addresses List<Property Map> - The connection string of the instance.
Look up Existing ShardingNetworkPrivateAddress Resource
Get an existing ShardingNetworkPrivateAddress resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ShardingNetworkPrivateAddressState, opts?: CustomResourceOptions): ShardingNetworkPrivateAddress
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
account_password: Optional[str] = None,
db_instance_id: Optional[str] = None,
network_addresses: Optional[Sequence[ShardingNetworkPrivateAddressNetworkAddressArgs]] = None,
node_id: Optional[str] = None,
zone_id: Optional[str] = None) -> ShardingNetworkPrivateAddress
func GetShardingNetworkPrivateAddress(ctx *Context, name string, id IDInput, state *ShardingNetworkPrivateAddressState, opts ...ResourceOption) (*ShardingNetworkPrivateAddress, error)
public static ShardingNetworkPrivateAddress Get(string name, Input<string> id, ShardingNetworkPrivateAddressState? state, CustomResourceOptions? opts = null)
public static ShardingNetworkPrivateAddress get(String name, Output<String> id, ShardingNetworkPrivateAddressState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Name string - The username of the account.
- The name must be 4 to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter.
- You need to set the account name and password only when you apply for an endpoint for a shard or ConfigServer node for the first time. In this case, the account name and password are used for all shard and ConfigServer nodes.
- The permissions of this account are fixed to read-only.
- Account
Password string - The password for the account.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
!#$%^&*()_+-=
. - The password must be 8 to 32 characters in length.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
- Db
Instance stringId - The ID of the sharded cluster instance.
- Network
Addresses List<Pulumi.Ali Cloud. Mongo DB. Inputs. Sharding Network Private Address Network Address> - The connection string of the instance.
- Node
Id string - The ID of the Shard node or ConfigServer node.
- Zone
Id string - The zone ID of the instance.
- Account
Name string - The username of the account.
- The name must be 4 to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter.
- You need to set the account name and password only when you apply for an endpoint for a shard or ConfigServer node for the first time. In this case, the account name and password are used for all shard and ConfigServer nodes.
- The permissions of this account are fixed to read-only.
- Account
Password string - The password for the account.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
!#$%^&*()_+-=
. - The password must be 8 to 32 characters in length.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
- Db
Instance stringId - The ID of the sharded cluster instance.
- Network
Addresses []ShardingNetwork Private Address Network Address Args - The connection string of the instance.
- Node
Id string - The ID of the Shard node or ConfigServer node.
- Zone
Id string - The zone ID of the instance.
- account
Name String - The username of the account.
- The name must be 4 to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter.
- You need to set the account name and password only when you apply for an endpoint for a shard or ConfigServer node for the first time. In this case, the account name and password are used for all shard and ConfigServer nodes.
- The permissions of this account are fixed to read-only.
- account
Password String - The password for the account.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
!#$%^&*()_+-=
. - The password must be 8 to 32 characters in length.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
- db
Instance StringId - The ID of the sharded cluster instance.
- network
Addresses List<ShardingNetwork Private Address Network Address> - The connection string of the instance.
- node
Id String - The ID of the Shard node or ConfigServer node.
- zone
Id String - The zone ID of the instance.
- account
Name string - The username of the account.
- The name must be 4 to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter.
- You need to set the account name and password only when you apply for an endpoint for a shard or ConfigServer node for the first time. In this case, the account name and password are used for all shard and ConfigServer nodes.
- The permissions of this account are fixed to read-only.
- account
Password string - The password for the account.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
!#$%^&*()_+-=
. - The password must be 8 to 32 characters in length.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
- db
Instance stringId - The ID of the sharded cluster instance.
- network
Addresses ShardingNetwork Private Address Network Address[] - The connection string of the instance.
- node
Id string - The ID of the Shard node or ConfigServer node.
- zone
Id string - The zone ID of the instance.
- account_
name str - The username of the account.
- The name must be 4 to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter.
- You need to set the account name and password only when you apply for an endpoint for a shard or ConfigServer node for the first time. In this case, the account name and password are used for all shard and ConfigServer nodes.
- The permissions of this account are fixed to read-only.
- account_
password str - The password for the account.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
!#$%^&*()_+-=
. - The password must be 8 to 32 characters in length.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
- db_
instance_ strid - The ID of the sharded cluster instance.
- network_
addresses Sequence[ShardingNetwork Private Address Network Address Args] - The connection string of the instance.
- node_
id str - The ID of the Shard node or ConfigServer node.
- zone_
id str - The zone ID of the instance.
- account
Name String - The username of the account.
- The name must be 4 to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter.
- You need to set the account name and password only when you apply for an endpoint for a shard or ConfigServer node for the first time. In this case, the account name and password are used for all shard and ConfigServer nodes.
- The permissions of this account are fixed to read-only.
- account
Password String - The password for the account.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
!#$%^&*()_+-=
. - The password must be 8 to 32 characters in length.
- The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
- db
Instance StringId - The ID of the sharded cluster instance.
- network
Addresses List<Property Map> - The connection string of the instance.
- node
Id String - The ID of the Shard node or ConfigServer node.
- zone
Id String - The zone ID of the instance.
Supporting Types
ShardingNetworkPrivateAddressNetworkAddress, ShardingNetworkPrivateAddressNetworkAddressArgs
- Expired
Time string - The remaining duration of the classic network endpoint.
- Ip
Address string - The IP address of the instance.
- Network
Address string - The connection string of the instance.
- Network
Type string - The network type of the instance.
- Node
Id string - The ID of the Shard node or ConfigServer node.
- Node
Type string - The type of the node.
- Port string
- The port that is used to connect to the instance.
- Role string
- The role of the node.
- Vpc
Id string - The ID of the VPC.
- Vswitch
Id string - The ID of the vSwitch in the VPC.
- Expired
Time string - The remaining duration of the classic network endpoint.
- Ip
Address string - The IP address of the instance.
- Network
Address string - The connection string of the instance.
- Network
Type string - The network type of the instance.
- Node
Id string - The ID of the Shard node or ConfigServer node.
- Node
Type string - The type of the node.
- Port string
- The port that is used to connect to the instance.
- Role string
- The role of the node.
- Vpc
Id string - The ID of the VPC.
- Vswitch
Id string - The ID of the vSwitch in the VPC.
- expired
Time String - The remaining duration of the classic network endpoint.
- ip
Address String - The IP address of the instance.
- network
Address String - The connection string of the instance.
- network
Type String - The network type of the instance.
- node
Id String - The ID of the Shard node or ConfigServer node.
- node
Type String - The type of the node.
- port String
- The port that is used to connect to the instance.
- role String
- The role of the node.
- vpc
Id String - The ID of the VPC.
- vswitch
Id String - The ID of the vSwitch in the VPC.
- expired
Time string - The remaining duration of the classic network endpoint.
- ip
Address string - The IP address of the instance.
- network
Address string - The connection string of the instance.
- network
Type string - The network type of the instance.
- node
Id string - The ID of the Shard node or ConfigServer node.
- node
Type string - The type of the node.
- port string
- The port that is used to connect to the instance.
- role string
- The role of the node.
- vpc
Id string - The ID of the VPC.
- vswitch
Id string - The ID of the vSwitch in the VPC.
- expired_
time str - The remaining duration of the classic network endpoint.
- ip_
address str - The IP address of the instance.
- network_
address str - The connection string of the instance.
- network_
type str - The network type of the instance.
- node_
id str - The ID of the Shard node or ConfigServer node.
- node_
type str - The type of the node.
- port str
- The port that is used to connect to the instance.
- role str
- The role of the node.
- vpc_
id str - The ID of the VPC.
- vswitch_
id str - The ID of the vSwitch in the VPC.
- expired
Time String - The remaining duration of the classic network endpoint.
- ip
Address String - The IP address of the instance.
- network
Address String - The connection string of the instance.
- network
Type String - The network type of the instance.
- node
Id String - The ID of the Shard node or ConfigServer node.
- node
Type String - The type of the node.
- port String
- The port that is used to connect to the instance.
- role String
- The role of the node.
- vpc
Id String - The ID of the VPC.
- vswitch
Id String - The ID of the vSwitch in the VPC.
Import
MongoDB Sharding Network Private Address can be imported using the id, e.g.
$ pulumi import alicloud:mongodb/shardingNetworkPrivateAddress:ShardingNetworkPrivateAddress example <db_instance_id>:<node_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.