Network containers are the underlying Atlas resource of VPC peering, and are usually created automatically when you configure the peering connection. However, containers can also be created separately, in cases where you want to configure the CIDR before configuring network peering. You can create the container using an API, and manage it in the Atlas CLI or Atlas Administration API.
Create a Network Container
You can configure the Atlas CIDR before configuring network peering by using the API to create a network container. To do so, see Create a New Network Peering Container.
View Network Containers
To list all network peering containers for your project using the Atlas CLI, run the following command:
atlas networking containers list [options]
To learn more about the command syntax and parameters, see the Atlas CLI documentation for atlas networking containers list.
To view your network containers, see Return All Network Peering Containers for One Project.
Delete Network Containers
To delete the network peering container you specify using the Atlas CLI, run the following command:
atlas networking containers delete <containerId> [options]
To learn more about the command syntax and parameters, see the Atlas CLI documentation for atlas networking containers delete.
To delete a network container, see Remove One Network Peering Container.