GetNetworkContainers
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.
Example Usage
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,
});
});
}
}
Coming soon!
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_network_container = mongodbatlas.NetworkContainer("testNetworkContainer",
project_id="<YOUR-PROJECT-ID>",
atlas_cidr_block="10.8.0.0/21",
provider_name="AWS",
region_name="US_EAST_1")
test_network_containers = pulumi.Output.all(test_network_container.project_id, test_network_container.provider_name).apply(lambda project_id, provider_name: mongodbatlas.get_network_containers(project_id=project_id,
provider_name=provider_name))import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testNetworkContainer = new mongodbatlas.NetworkContainer("testNetworkContainer", {
projectId: "<YOUR-PROJECT-ID>",
atlasCidrBlock: "10.8.0.0/21",
providerName: "AWS",
regionName: "US_EAST_1",
});
const testNetworkContainers = pulumi.all([testNetworkContainer.projectId, testNetworkContainer.providerName]).apply(([projectId, providerName]) => mongodbatlas.getNetworkContainers({
projectId: projectId,
providerName: providerName,
}));Using GetNetworkContainers
function getNetworkContainers(args: GetNetworkContainersArgs, opts?: InvokeOptions): Promise<GetNetworkContainersResult>function get_network_containers(project_id=None, provider_name=None, opts=None)func GetNetworkContainers(ctx *Context, args *GetNetworkContainersArgs, opts ...InvokeOption) (*GetNetworkContainersResult, error)public static class GetNetworkContainers {
public static Task<GetNetworkContainersResult> InvokeAsync(GetNetworkContainersArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Project
Id string The unique ID for the project to create the database user.
- Provider
Name string Cloud provider for this Network peering container. Accepted values are AWS, GCP, and Azure.
- Project
Id string The unique ID for the project to create the database user.
- Provider
Name string Cloud provider for this Network peering container. Accepted values are AWS, GCP, and Azure.
- project
Id string The unique ID for the project to create the database user.
- provider
Name string Cloud provider for this Network peering container. Accepted values are AWS, GCP, and Azure.
- project_
id str The unique ID for the project to create the database user.
- provider_
name str Cloud provider for this Network peering container. Accepted values are AWS, GCP, and Azure.
GetNetworkContainers Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Project
Id string - Provider
Name string Cloud provider for this Network Peering connection. If omitted, Atlas sets this parameter to AWS.
- Results
List<Get
Network Containers Result> A list where each represents a Network Peering Container.
- Id string
The provider-assigned unique ID for this managed resource.
- Project
Id string - Provider
Name string Cloud provider for this Network Peering connection. If omitted, Atlas sets this parameter to AWS.
- Results
[]Get
Network Containers Result Type A list where each represents a Network Peering Container.
- id string
The provider-assigned unique ID for this managed resource.
- project
Id string - provider
Name string Cloud provider for this Network Peering connection. If omitted, Atlas sets this parameter to AWS.
- results
Get
Network Containers Result[] A list where each represents a Network Peering Container.
- id str
The provider-assigned unique ID for this managed resource.
- project_
id str - provider_
name str Cloud provider for this Network Peering connection. If omitted, Atlas sets this parameter to AWS.
- results
List[Get
Network Containers Result] A list where each represents a Network Peering Container.
Supporting Types
GetNetworkContainersResult
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Atlas
Cidr stringBlock CIDR block that Atlas uses for your clusters. Atlas uses the specified CIDR block for all other Network Peering connections created in the project. The Atlas CIDR block must be at least a /24 and at most a /21 in one of the following private networks.
- Azure
Subscription stringId Unique identifer of the Azure subscription in which the VNet resides.
- Gcp
Project stringId Unique identifier of the GCP project in which the Network Peering connection resides.
- Id string
The Network Peering Container ID.
- Network
Name string Name of the Network Peering connection in the Atlas project.
- Provider
Name string Cloud provider for this Network peering container. Accepted values are AWS, GCP, and Azure.
- Provisioned bool
Indicates whether the project has Network Peering connections deployed in the container.
- Region string
The Atlas Azure region name for where this container exists.
- Region
Name string The Atlas AWS region name for where this container exists.
- Vnet
Name string The name of the Azure VNet. This value is null until you provision an Azure VNet in the container.
- Vpc
Id string Unique identifier of the project’s VPC.
- Atlas
Cidr stringBlock CIDR block that Atlas uses for your clusters. Atlas uses the specified CIDR block for all other Network Peering connections created in the project. The Atlas CIDR block must be at least a /24 and at most a /21 in one of the following private networks.
- Azure
Subscription stringId Unique identifer of the Azure subscription in which the VNet resides.
- Gcp
Project stringId Unique identifier of the GCP project in which the Network Peering connection resides.
- Id string
The Network Peering Container ID.
- Network
Name string Name of the Network Peering connection in the Atlas project.
- Provider
Name string Cloud provider for this Network peering container. Accepted values are AWS, GCP, and Azure.
- Provisioned bool
Indicates whether the project has Network Peering connections deployed in the container.
- Region string
The Atlas Azure region name for where this container exists.
- Region
Name string The Atlas AWS region name for where this container exists.
- Vnet
Name string The name of the Azure VNet. This value is null until you provision an Azure VNet in the container.
- Vpc
Id string Unique identifier of the project’s VPC.
- atlas
Cidr stringBlock CIDR block that Atlas uses for your clusters. Atlas uses the specified CIDR block for all other Network Peering connections created in the project. The Atlas CIDR block must be at least a /24 and at most a /21 in one of the following private networks.
- azure
Subscription stringId Unique identifer of the Azure subscription in which the VNet resides.
- gcp
Project stringId Unique identifier of the GCP project in which the Network Peering connection resides.
- id string
The Network Peering Container ID.
- network
Name string Name of the Network Peering connection in the Atlas project.
- provider
Name string Cloud provider for this Network peering container. Accepted values are AWS, GCP, and Azure.
- provisioned boolean
Indicates whether the project has Network Peering connections deployed in the container.
- region string
The Atlas Azure region name for where this container exists.
- region
Name string The Atlas AWS region name for where this container exists.
- vnet
Name string The name of the Azure VNet. This value is null until you provision an Azure VNet in the container.
- vpc
Id string Unique identifier of the project’s VPC.
- atlas_
cidr_ strblock CIDR block that Atlas uses for your clusters. Atlas uses the specified CIDR block for all other Network Peering connections created in the project. The Atlas CIDR block must be at least a /24 and at most a /21 in one of the following private networks.
- azure_
subscription_ strid Unique identifer of the Azure subscription in which the VNet resides.
- gcp_
project_ strid Unique identifier of the GCP project in which the Network Peering connection resides.
- id str
The Network Peering Container ID.
- network_
name str Name of the Network Peering connection in the Atlas project.
- provider_
name str Cloud provider for this Network peering container. Accepted values are AWS, GCP, and Azure.
- provisioned bool
Indicates whether the project has Network Peering connections deployed in the container.
- region str
The Atlas Azure region name for where this container exists.
- region_
name str The Atlas AWS region name for where this container exists.
- vnet_
name str The name of the Azure VNet. This value is null until you provision an Azure VNet in the container.
- vpc_
id str Unique identifier of the project’s VPC.
Package Details
- Repository
- https://github.com/pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.