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 dictionaryThe following arguments are supported:
- DbInstance stringId 
- The db instance id.
- NodeId string
- The ID of the mongos,shard, orConfigservernode in the sharded cluster instance.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- Role string
- The role of the node. Valid values: PrimaryorSecondary.
- DbInstance stringId 
- The db instance id.
- NodeId string
- The ID of the mongos,shard, orConfigservernode in the sharded cluster instance.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- Role string
- The role of the node. Valid values: PrimaryorSecondary.
- dbInstance StringId 
- The db instance id.
- nodeId String
- The ID of the mongos,shard, orConfigservernode in the sharded cluster instance.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- role String
- The role of the node. Valid values: PrimaryorSecondary.
- dbInstance stringId 
- The db instance id.
- nodeId string
- The ID of the mongos,shard, orConfigservernode in the sharded cluster instance.
- outputFile string
- File name where to save data source results (after running pulumi preview).
- role string
- The role of the node. Valid values: PrimaryorSecondary.
- db_instance_ strid 
- The db instance id.
- node_id str
- The ID of the mongos,shard, orConfigservernode in the sharded cluster instance.
- output_file str
- File name where to save data source results (after running pulumi preview).
- role str
- The role of the node. Valid values: PrimaryorSecondary.
- dbInstance StringId 
- The db instance id.
- nodeId String
- The ID of the mongos,shard, orConfigservernode in the sharded cluster instance.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- role String
- The role of the node. Valid values: PrimaryorSecondary.
getShardingNetworkPrivateAddresses Result
The following output properties are available:
- Addresses
List<Pulumi.Ali Cloud. Mongo DB. Outputs. Get Sharding Network Private Addresses Address> 
- DbInstance stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- NodeId string
- OutputFile string
- Role string
- Addresses
[]GetSharding Network Private Addresses Address 
- DbInstance stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- NodeId string
- OutputFile string
- Role string
- addresses
List<GetSharding Network Private Addresses Address> 
- dbInstance StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- nodeId String
- outputFile String
- role String
- addresses
GetSharding Network Private Addresses Address[] 
- dbInstance stringId 
- id string
- The provider-assigned unique ID for this managed resource.
- nodeId string
- outputFile string
- role string
- addresses
Sequence[GetSharding 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>
- dbInstance StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- nodeId String
- outputFile String
- role String
Supporting Types
GetShardingNetworkPrivateAddressesAddress     
- DbInstance stringId 
- The db instance id.
- ExpiredTime string
- The remaining duration of the classic network address. Unit: seconds.
- IpAddress string
- The IP address of the instance.
- NetworkAddress string
- The endpoint of the instance.
- NetworkType string
- The type of the network.
- NodeId string
- The ID of the mongos,shard, orConfigservernode in the sharded cluster instance.
- NodeType string
- The type of the node.
- Port string
- The port number.
- Role string
- The role of the node.
- VpcId string
- The ID of the VPC.
- VswitchId string
- The vSwitch ID of the VPC.
- DbInstance stringId 
- The db instance id.
- ExpiredTime string
- The remaining duration of the classic network address. Unit: seconds.
- IpAddress string
- The IP address of the instance.
- NetworkAddress string
- The endpoint of the instance.
- NetworkType string
- The type of the network.
- NodeId string
- The ID of the mongos,shard, orConfigservernode in the sharded cluster instance.
- NodeType string
- The type of the node.
- Port string
- The port number.
- Role string
- The role of the node.
- VpcId string
- The ID of the VPC.
- VswitchId string
- The vSwitch ID of the VPC.
- dbInstance StringId 
- The db instance id.
- expiredTime String
- The remaining duration of the classic network address. Unit: seconds.
- ipAddress String
- The IP address of the instance.
- networkAddress String
- The endpoint of the instance.
- networkType String
- The type of the network.
- nodeId String
- The ID of the mongos,shard, orConfigservernode in the sharded cluster instance.
- nodeType String
- The type of the node.
- port String
- The port number.
- role String
- The role of the node.
- vpcId String
- The ID of the VPC.
- vswitchId String
- The vSwitch ID of the VPC.
- dbInstance stringId 
- The db instance id.
- expiredTime string
- The remaining duration of the classic network address. Unit: seconds.
- ipAddress string
- The IP address of the instance.
- networkAddress string
- The endpoint of the instance.
- networkType string
- The type of the network.
- nodeId string
- The ID of the mongos,shard, orConfigservernode in the sharded cluster instance.
- nodeType string
- The type of the node.
- port string
- The port number.
- role string
- The role of the node.
- vpcId string
- The ID of the VPC.
- vswitchId string
- The vSwitch ID of the VPC.
- db_instance_ strid 
- The db instance id.
- expired_time str
- The remaining duration of the classic network address. Unit: seconds.
- ip_address str
- The IP address of the instance.
- network_address str
- The endpoint of the instance.
- network_type str
- The type of the network.
- node_id str
- The ID of the mongos,shard, orConfigservernode in the sharded cluster instance.
- node_type str
- The type of the node.
- port str
- The port number.
- role str
- The role of the node.
- vpc_id str
- The ID of the VPC.
- vswitch_id str
- The vSwitch ID of the VPC.
- dbInstance StringId 
- The db instance id.
- expiredTime String
- The remaining duration of the classic network address. Unit: seconds.
- ipAddress String
- The IP address of the instance.
- networkAddress String
- The endpoint of the instance.
- networkType String
- The type of the network.
- nodeId String
- The ID of the mongos,shard, orConfigservernode in the sharded cluster instance.
- nodeType String
- The type of the node.
- port String
- The port number.
- role String
- The role of the node.
- vpcId String
- The ID of the VPC.
- vswitchId 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 alicloudTerraform Provider.