Show / Hide Table of Contents

Class GetNetworkPeerings

Inheritance
System.Object
GetNetworkPeerings
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Mongodbatlas
Assembly: Pulumi.Mongodbatlas.dll
Syntax
public static class GetNetworkPeerings

Methods

View Source

InvokeAsync(GetNetworkPeeringsArgs, InvokeOptions)

mongodbatlas..getNetworkPeerings describes all Network Peering Connections.

NOTE: Groups and projects are synonymous terms. You may find group_id in the official documentation.

{{% examples %}}

Example Usage

{{% example %}}

Basic Example (AWS).

using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;

class MyStack : Stack
{
public MyStack()
{
    var testNetworkPeering = new Mongodbatlas.NetworkPeering("testNetworkPeering", new Mongodbatlas.NetworkPeeringArgs
    {
        AccepterRegionName = "us-east-1",
        ProjectId = "<YOUR-PROJEC-ID>",
        ContainerId = "507f1f77bcf86cd799439011",
        ProviderName = "AWS",
        RouteTableCidrBlock = "192.168.0.0/24",
        VpcId = "vpc-abc123abc123",
        AwsAccountId = "abc123abc123",
    });
    var testNetworkPeerings = testNetworkPeering.ProjectId.Apply(projectId => Mongodbatlas.GetNetworkPeerings.InvokeAsync(new Mongodbatlas.GetNetworkPeeringsArgs
    {
        ProjectId = projectId,
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetNetworkPeeringsResult> InvokeAsync(GetNetworkPeeringsArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetNetworkPeeringsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetNetworkPeeringsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.