Table: mongodbatlas_container - Query MongoDB Atlas Containers using SQL
MongoDB Atlas Containers are isolated environments that hold your data and are the base building blocks of MongoDB Atlas clusters. Containers are typically used to store data for a specific project or team. They provide isolation and security for your data, while also allowing for easy scalability and performance tuning.
Table Usage Guide
The mongodbatlas_container
table provides insights into the containers within MongoDB Atlas. As a database administrator, you can explore container-specific details through this table, including its configuration, status, and associated metadata. Utilize it to uncover information about containers, such as their capacity, region, and current usage, aiding in efficient management and optimization of your MongoDB Atlas resources.
Examples
Basic info
Explore the provider's name and associated network block information in your MongoDB Atlas resources. This can help you manage and organize your resources more effectively.
select id, provider_name, atlas_cidr_blockfrom mongodbatlas_container;
select id, provider_name, atlas_cidr_blockfrom mongodbatlas_container;
List all peered containers in a specific cloud provider
Explore which containers in a specific cloud provider are peered. This is particularly useful for understanding your cloud network's configuration and identifying any potential security risks.
select id, provider_name, atlas_cidr_blockfrom mongodbatlas_containerwhere provider_name = 'aws';
select id, provider_name, atlas_cidr_blockfrom mongodbatlas_containerwhere provider_name = 'aws';
Schema for mongodbatlas_container
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
atlas_cidr_block | cidr | CIDR block that Atlas uses for your clusters. | |
azure_subscription_id | text | Unique identifer of the Azure subscription in which the VNet resides. | |
gcp_project_id | text | Unique identifier of the Google Cloud project in which the network peer resides. Returns null until a peering connection is created. | |
id | text | = | Unique identifier for the container. |
network_name | text | Unique identifier of the Network Peering connection in the Atlas project. Returns null until a peering connection is created. | |
organization_id | text | =, !=, ~~, ~~*, !~~, !~~* | Unique identifier for the organization. |
project_id | text | = | Unique identifier for the project. |
provider_name | text | = | Cloud provider for this Network Peering connection. |
provisioned | boolean | Flag that indicates if the project has clusters deployed in the Network Peering container or Azure VNet. | |
region | text | AWS region where the VCP resides or Azure region where the VNet resides. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
title | text | Title of the resource. | |
vnet_name | text | Unique identifier of your Azure VNet. The value is null if there are no network peering connections in the container. | |
vpc_id | text | Unique identifier of the project's Network Peering container. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- mongodbatlas
You can pass the configuration to the command with the --config
argument:
steampipe_export_mongodbatlas --config '<your_config>' mongodbatlas_container