1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. mongodb
  5. getShardingNetworkPrivateAddresses
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>
Copy
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]
Copy
func GetShardingNetworkPrivateAddresses(ctx *Context, args *GetShardingNetworkPrivateAddressesArgs, opts ...InvokeOption) (*GetShardingNetworkPrivateAddressesResult, error)
func GetShardingNetworkPrivateAddressesOutput(ctx *Context, args *GetShardingNetworkPrivateAddressesOutputArgs, opts ...InvokeOption) GetShardingNetworkPrivateAddressesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetShardingNetworkPrivateAddressesResult> getShardingNetworkPrivateAddresses(GetShardingNetworkPrivateAddressesArgs args, InvokeOptions options)
public static Output<GetShardingNetworkPrivateAddressesResult> getShardingNetworkPrivateAddresses(GetShardingNetworkPrivateAddressesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:mongodb/getShardingNetworkPrivateAddresses:getShardingNetworkPrivateAddresses
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DbInstanceId
This property is required.
Changes to this property will trigger replacement.
string
The db instance id.
NodeId Changes to this property will trigger replacement. string
The ID of the mongos, shard, or Configserver node in the sharded cluster instance.
OutputFile string
File name where to save data source results (after running pulumi preview).
Role Changes to this property will trigger replacement. string
The role of the node. Valid values: Primary or Secondary.
DbInstanceId
This property is required.
Changes to this property will trigger replacement.
string
The db instance id.
NodeId Changes to this property will trigger replacement. string
The ID of the mongos, shard, or Configserver node in the sharded cluster instance.
OutputFile string
File name where to save data source results (after running pulumi preview).
Role Changes to this property will trigger replacement. string
The role of the node. Valid values: Primary or Secondary.
dbInstanceId
This property is required.
Changes to this property will trigger replacement.
String
The db instance id.
nodeId Changes to this property will trigger replacement. String
The ID of the mongos, shard, or Configserver node in the sharded cluster instance.
outputFile String
File name where to save data source results (after running pulumi preview).
role Changes to this property will trigger replacement. String
The role of the node. Valid values: Primary or Secondary.
dbInstanceId
This property is required.
Changes to this property will trigger replacement.
string
The db instance id.
nodeId Changes to this property will trigger replacement. string
The ID of the mongos, shard, or Configserver node in the sharded cluster instance.
outputFile string
File name where to save data source results (after running pulumi preview).
role Changes to this property will trigger replacement. string
The role of the node. Valid values: Primary or Secondary.
db_instance_id
This property is required.
Changes to this property will trigger replacement.
str
The db instance id.
node_id Changes to this property will trigger replacement. str
The ID of the mongos, shard, or Configserver 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. str
The role of the node. Valid values: Primary or Secondary.
dbInstanceId
This property is required.
Changes to this property will trigger replacement.
String
The db instance id.
nodeId Changes to this property will trigger replacement. String
The ID of the mongos, shard, or Configserver node in the sharded cluster instance.
outputFile String
File name where to save data source results (after running pulumi preview).
role Changes to this property will trigger replacement. String
The role of the node. Valid values: Primary or Secondary.

getShardingNetworkPrivateAddresses Result

The following output properties are available:

Addresses List<Pulumi.AliCloud.MongoDB.Outputs.GetShardingNetworkPrivateAddressesAddress>
DbInstanceId string
Id string
The provider-assigned unique ID for this managed resource.
NodeId string
OutputFile string
Role string
Addresses []GetShardingNetworkPrivateAddressesAddress
DbInstanceId string
Id string
The provider-assigned unique ID for this managed resource.
NodeId string
OutputFile string
Role string
addresses List<GetShardingNetworkPrivateAddressesAddress>
dbInstanceId String
id String
The provider-assigned unique ID for this managed resource.
nodeId String
outputFile String
role String
addresses GetShardingNetworkPrivateAddressesAddress[]
dbInstanceId string
id string
The provider-assigned unique ID for this managed resource.
nodeId string
outputFile string
role string
addresses Sequence[GetShardingNetworkPrivateAddressesAddress]
db_instance_id str
id str
The provider-assigned unique ID for this managed resource.
node_id str
output_file str
role str
addresses List<Property Map>
dbInstanceId String
id String
The provider-assigned unique ID for this managed resource.
nodeId String
outputFile String
role String

Supporting Types

GetShardingNetworkPrivateAddressesAddress

DbInstanceId This property is required. string
The db instance id.
ExpiredTime This property is required. string
The remaining duration of the classic network address. Unit: seconds.
IpAddress This property is required. string
The IP address of the instance.
NetworkAddress This property is required. string
The endpoint of the instance.
NetworkType This property is required. string
The type of the network.
NodeId This property is required. string
The ID of the mongos, shard, or Configserver node in the sharded cluster instance.
NodeType 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.
VpcId This property is required. string
The ID of the VPC.
VswitchId This property is required. string
The vSwitch ID of the VPC.
DbInstanceId This property is required. string
The db instance id.
ExpiredTime This property is required. string
The remaining duration of the classic network address. Unit: seconds.
IpAddress This property is required. string
The IP address of the instance.
NetworkAddress This property is required. string
The endpoint of the instance.
NetworkType This property is required. string
The type of the network.
NodeId This property is required. string
The ID of the mongos, shard, or Configserver node in the sharded cluster instance.
NodeType 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.
VpcId This property is required. string
The ID of the VPC.
VswitchId This property is required. string
The vSwitch ID of the VPC.
dbInstanceId This property is required. String
The db instance id.
expiredTime This property is required. String
The remaining duration of the classic network address. Unit: seconds.
ipAddress This property is required. String
The IP address of the instance.
networkAddress This property is required. String
The endpoint of the instance.
networkType This property is required. String
The type of the network.
nodeId This property is required. String
The ID of the mongos, shard, or Configserver node in the sharded cluster instance.
nodeType 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.
vpcId This property is required. String
The ID of the VPC.
vswitchId This property is required. String
The vSwitch ID of the VPC.
dbInstanceId This property is required. string
The db instance id.
expiredTime This property is required. string
The remaining duration of the classic network address. Unit: seconds.
ipAddress This property is required. string
The IP address of the instance.
networkAddress This property is required. string
The endpoint of the instance.
networkType This property is required. string
The type of the network.
nodeId This property is required. string
The ID of the mongos, shard, or Configserver node in the sharded cluster instance.
nodeType 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.
vpcId This property is required. string
The ID of the VPC.
vswitchId 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, or Configserver 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.
dbInstanceId This property is required. String
The db instance id.
expiredTime This property is required. String
The remaining duration of the classic network address. Unit: seconds.
ipAddress This property is required. String
The IP address of the instance.
networkAddress This property is required. String
The endpoint of the instance.
networkType This property is required. String
The type of the network.
nodeId This property is required. String
The ID of the mongos, shard, or Configserver node in the sharded cluster instance.
nodeType 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.
vpcId This property is required. String
The ID of the VPC.
vswitchId 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.