Class GetNetworkContainers
Inheritance
System.Object
GetNetworkContainers
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 GetNetworkContainers
Methods
View SourceInvokeAsync(GetNetworkContainersArgs, InvokeOptions)
mongodbatlas..getNetworkContainers describes all Network Peering Containers. The data source requires your Project ID.
NOTE: Groups and projects are synonymous terms. You may find group_id in the official documentation.
{{% examples %}}
Example Usage
{{% example %}}
Basic Example.
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
class MyStack : Stack
{
public MyStack()
{
var testNetworkContainer = new Mongodbatlas.NetworkContainer("testNetworkContainer", new Mongodbatlas.NetworkContainerArgs
{
ProjectId = "<YOUR-PROJECT-ID>",
AtlasCidrBlock = "10.8.0.0/21",
ProviderName = "AWS",
RegionName = "US_EAST_1",
});
var testNetworkContainers = Output.Tuple(testNetworkContainer.ProjectId, testNetworkContainer.ProviderName).Apply(values =>
{
var projectId = values.Item1;
var providerName = values.Item2;
return Mongodbatlas.GetNetworkContainers.InvokeAsync(new Mongodbatlas.GetNetworkContainersArgs
{
ProjectId = projectId,
ProviderName = providerName,
});
});
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetNetworkContainersResult> InvokeAsync(GetNetworkContainersArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetNetworkContainersArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetNetworkContainersResult> |