Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.mongodb.getShardingNetworkPrivateAddresses
Explore with Pulumi AI
This data source provides the Mongodb Sharding Network Private Addresses of the current Alibaba Cloud user.
NOTE: Available in v1.157.0+.
Using getShardingNetworkPrivateAddresses
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getShardingNetworkPrivateAddresses(args: GetShardingNetworkPrivateAddressesArgs, opts?: InvokeOptions): Promise<GetShardingNetworkPrivateAddressesResult>
function getShardingNetworkPrivateAddressesOutput(args: GetShardingNetworkPrivateAddressesOutputArgs, opts?: InvokeOptions): Output<GetShardingNetworkPrivateAddressesResult>
def get_sharding_network_private_addresses(db_instance_id: Optional[str] = None,
node_id: Optional[str] = None,
output_file: Optional[str] = None,
role: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetShardingNetworkPrivateAddressesResult
def get_sharding_network_private_addresses_output(db_instance_id: Optional[pulumi.Input[str]] = None,
node_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
role: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetShardingNetworkPrivateAddressesResult]
func GetShardingNetworkPrivateAddresses(ctx *Context, args *GetShardingNetworkPrivateAddressesArgs, opts ...InvokeOption) (*GetShardingNetworkPrivateAddressesResult, error)
func GetShardingNetworkPrivateAddressesOutput(ctx *Context, args *GetShardingNetworkPrivateAddressesOutputArgs, opts ...InvokeOption) GetShardingNetworkPrivateAddressesResultOutput
> Note: This function is named GetShardingNetworkPrivateAddresses
in the Go SDK.
public static class GetShardingNetworkPrivateAddresses
{
public static Task<GetShardingNetworkPrivateAddressesResult> InvokeAsync(GetShardingNetworkPrivateAddressesArgs args, InvokeOptions? opts = null)
public static Output<GetShardingNetworkPrivateAddressesResult> Invoke(GetShardingNetworkPrivateAddressesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetShardingNetworkPrivateAddressesResult> getShardingNetworkPrivateAddresses(GetShardingNetworkPrivateAddressesArgs args, InvokeOptions options)
public static Output<GetShardingNetworkPrivateAddressesResult> getShardingNetworkPrivateAddresses(GetShardingNetworkPrivateAddressesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:mongodb/getShardingNetworkPrivateAddresses:getShardingNetworkPrivateAddresses
arguments:
# arguments dictionary
The following arguments are supported:
- Db
Instance Id This property is required. Changes to this property will trigger replacement.
- The db instance id.
- Node
Id Changes to this property will trigger replacement.
- The ID of the
mongos
,shard
, orConfigserver
node in the sharded cluster instance. - Output
File string - File name where to save data source results (after running
pulumi preview
). - Role
Changes to this property will trigger replacement.
- The role of the node. Valid values:
Primary
orSecondary
.
- Db
Instance Id This property is required. Changes to this property will trigger replacement.
- The db instance id.
- Node
Id Changes to this property will trigger replacement.
- The ID of the
mongos
,shard
, orConfigserver
node in the sharded cluster instance. - Output
File string - File name where to save data source results (after running
pulumi preview
). - Role
Changes to this property will trigger replacement.
- The role of the node. Valid values:
Primary
orSecondary
.
- db
Instance Id This property is required. Changes to this property will trigger replacement.
- The db instance id.
- node
Id Changes to this property will trigger replacement.
- The ID of the
mongos
,shard
, orConfigserver
node in the sharded cluster instance. - output
File String - File name where to save data source results (after running
pulumi preview
). - role
Changes to this property will trigger replacement.
- The role of the node. Valid values:
Primary
orSecondary
.
- db
Instance Id This property is required. Changes to this property will trigger replacement.
- The db instance id.
- node
Id Changes to this property will trigger replacement.
- The ID of the
mongos
,shard
, orConfigserver
node in the sharded cluster instance. - output
File string - File name where to save data source results (after running
pulumi preview
). - role
Changes to this property will trigger replacement.
- The role of the node. Valid values:
Primary
orSecondary
.
- db_
instance_ id This property is required. Changes to this property will trigger replacement.
- The db instance id.
- node_
id Changes to this property will trigger replacement.
- The ID of the
mongos
,shard
, orConfigserver
node in the sharded cluster instance. - output_
file str - File name where to save data source results (after running
pulumi preview
). - role
Changes to this property will trigger replacement.
- The role of the node. Valid values:
Primary
orSecondary
.
- db
Instance Id This property is required. Changes to this property will trigger replacement.
- The db instance id.
- node
Id Changes to this property will trigger replacement.
- The ID of the
mongos
,shard
, orConfigserver
node in the sharded cluster instance. - output
File String - File name where to save data source results (after running
pulumi preview
). - role
Changes to this property will trigger replacement.
- The role of the node. Valid values:
Primary
orSecondary
.
getShardingNetworkPrivateAddresses Result
The following output properties are available:
- Addresses
List<Pulumi.
Ali Cloud. Mongo DB. Outputs. Get Sharding Network Private Addresses Address> - Db
Instance stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Node
Id string - Output
File string - Role string
- Addresses
[]Get
Sharding Network Private Addresses Address - Db
Instance stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Node
Id string - Output
File string - Role string
- addresses
List<Get
Sharding Network Private Addresses Address> - db
Instance StringId - id String
- The provider-assigned unique ID for this managed resource.
- node
Id String - output
File String - role String
- addresses
Get
Sharding Network Private Addresses Address[] - db
Instance stringId - id string
- The provider-assigned unique ID for this managed resource.
- node
Id string - output
File string - role string
- addresses
Sequence[Get
Sharding Network Private Addresses Address] - db_
instance_ strid - id str
- The provider-assigned unique ID for this managed resource.
- node_
id str - output_
file str - role str
- addresses List<Property Map>
- db
Instance StringId - id String
- The provider-assigned unique ID for this managed resource.
- node
Id String - output
File String - role String
Supporting Types
GetShardingNetworkPrivateAddressesAddress
- Db
Instance Id This property is required. string - The db instance id.
- Expired
Time This property is required. string - The remaining duration of the classic network address. Unit:
seconds
. - Ip
Address This property is required. string - The IP address of the instance.
- Network
Address This property is required. string - The endpoint of the instance.
- Network
Type This property is required. string - The type of the network.
- Node
Id This property is required. string - The ID of the
mongos
,shard
, orConfigserver
node in the sharded cluster instance. - Node
Type This property is required. string - The type of the node.
- Port
This property is required. string - The port number.
- Role
This property is required. string - The role of the node.
- Vpc
Id This property is required. string - The ID of the VPC.
- Vswitch
Id This property is required. string - The vSwitch ID of the VPC.
- Db
Instance Id This property is required. string - The db instance id.
- Expired
Time This property is required. string - The remaining duration of the classic network address. Unit:
seconds
. - Ip
Address This property is required. string - The IP address of the instance.
- Network
Address This property is required. string - The endpoint of the instance.
- Network
Type This property is required. string - The type of the network.
- Node
Id This property is required. string - The ID of the
mongos
,shard
, orConfigserver
node in the sharded cluster instance. - Node
Type This property is required. string - The type of the node.
- Port
This property is required. string - The port number.
- Role
This property is required. string - The role of the node.
- Vpc
Id This property is required. string - The ID of the VPC.
- Vswitch
Id This property is required. string - The vSwitch ID of the VPC.
- db
Instance Id This property is required. String - The db instance id.
- expired
Time This property is required. String - The remaining duration of the classic network address. Unit:
seconds
. - ip
Address This property is required. String - The IP address of the instance.
- network
Address This property is required. String - The endpoint of the instance.
- network
Type This property is required. String - The type of the network.
- node
Id This property is required. String - The ID of the
mongos
,shard
, orConfigserver
node in the sharded cluster instance. - node
Type This property is required. String - The type of the node.
- port
This property is required. String - The port number.
- role
This property is required. String - The role of the node.
- vpc
Id This property is required. String - The ID of the VPC.
- vswitch
Id This property is required. String - The vSwitch ID of the VPC.
- db
Instance Id This property is required. string - The db instance id.
- expired
Time This property is required. string - The remaining duration of the classic network address. Unit:
seconds
. - ip
Address This property is required. string - The IP address of the instance.
- network
Address This property is required. string - The endpoint of the instance.
- network
Type This property is required. string - The type of the network.
- node
Id This property is required. string - The ID of the
mongos
,shard
, orConfigserver
node in the sharded cluster instance. - node
Type This property is required. string - The type of the node.
- port
This property is required. string - The port number.
- role
This property is required. string - The role of the node.
- vpc
Id This property is required. string - The ID of the VPC.
- vswitch
Id This property is required. string - The vSwitch ID of the VPC.
- db_
instance_ id This property is required. str - The db instance id.
- expired_
time This property is required. str - The remaining duration of the classic network address. Unit:
seconds
. - ip_
address This property is required. str - The IP address of the instance.
- network_
address This property is required. str - The endpoint of the instance.
- network_
type This property is required. str - The type of the network.
- node_
id This property is required. str - The ID of the
mongos
,shard
, orConfigserver
node in the sharded cluster instance. - node_
type This property is required. str - The type of the node.
- port
This property is required. str - The port number.
- role
This property is required. str - The role of the node.
- vpc_
id This property is required. str - The ID of the VPC.
- vswitch_
id This property is required. str - The vSwitch ID of the VPC.
- db
Instance Id This property is required. String - The db instance id.
- expired
Time This property is required. String - The remaining duration of the classic network address. Unit:
seconds
. - ip
Address This property is required. String - The IP address of the instance.
- network
Address This property is required. String - The endpoint of the instance.
- network
Type This property is required. String - The type of the network.
- node
Id This property is required. String - The ID of the
mongos
,shard
, orConfigserver
node in the sharded cluster instance. - node
Type This property is required. String - The type of the node.
- port
This property is required. String - The port number.
- role
This property is required. String - The role of the node.
- vpc
Id This property is required. String - The ID of the VPC.
- vswitch
Id This property is required. String - The vSwitch ID of the VPC.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.