GetNetworkPeerings
mongodbatlas..getNetworkPeerings describes all Network Peering Connections.
NOTE: Groups and projects are synonymous terms. You may find group_id in the official documentation.
Example Usage
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,
}));
}
}
Coming soon!
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_network_peering = mongodbatlas.NetworkPeering("testNetworkPeering",
accepter_region_name="us-east-1",
project_id="<YOUR-PROJEC-ID>",
container_id="507f1f77bcf86cd799439011",
provider_name="AWS",
route_table_cidr_block="192.168.0.0/24",
vpc_id="vpc-abc123abc123",
aws_account_id="abc123abc123")
test_network_peerings = test_network_peering.project_id.apply(lambda project_id: mongodbatlas.get_network_peerings(project_id=project_id))import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testNetworkPeering = new mongodbatlas.NetworkPeering("testNetworkPeering", {
accepterRegionName: "us-east-1",
projectId: "<YOUR-PROJEC-ID>",
containerId: "507f1f77bcf86cd799439011",
providerName: "AWS",
routeTableCidrBlock: "192.168.0.0/24",
vpcId: "vpc-abc123abc123",
awsAccountId: "abc123abc123",
});
const testNetworkPeerings = testNetworkPeering.projectId.apply(projectId => mongodbatlas.getNetworkPeerings({
projectId: projectId,
}));Using GetNetworkPeerings
function getNetworkPeerings(args: GetNetworkPeeringsArgs, opts?: InvokeOptions): Promise<GetNetworkPeeringsResult>function get_network_peerings(project_id=None, opts=None)func GetNetworkPeerings(ctx *Context, args *GetNetworkPeeringsArgs, opts ...InvokeOption) (*GetNetworkPeeringsResult, error)public static class GetNetworkPeerings {
public static Task<GetNetworkPeeringsResult> InvokeAsync(GetNetworkPeeringsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- project_
id str The unique ID for the project to create the database user.
GetNetworkPeerings Result
The following output properties are available:
- id str
The provider-assigned unique ID for this managed resource.
- project_
id str - results
List[Get
Network Peerings Result] A list where each represents a Network Peering Connection.
Supporting Types
GetNetworkPeeringsResult
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Accepter
Region stringName Specifies the region where the peer VPC resides. For complete lists of supported regions, see Amazon Web Services.
- Atlas
Cidr stringBlock Unique identifier for an Azure AD directory.
- Aws
Account stringId Account ID of the owner of the peer VPC.
- Azure
Directory stringId Unique identifier for an Azure AD directory.
- Azure
Subscription stringId Unique identifer of the Azure subscription in which the VNet resides.
- Connection
Id string Unique identifier for the peering connection.
- Container
Id string - Error
Message string When
"status" : "FAILED", Atlas provides a description of the error.- Error
State string Description of the Atlas error when
statusisFailed, Otherwise, Atlas returnsnull.- Error
State stringName Error state, if any. The VPC peering connection error state value can be one of the following:
REJECTED,EXPIRED,INVALID_ARGUMENT.- Gcp
Project stringId GCP project ID of the owner of the network peer.
- Network
Name string Name of the network peer to which Atlas connects.
- Peering
Id string Atlas assigned unique ID for the peering connection.
- Provider
Name string Cloud provider for this VPC peering connection. If omitted, Atlas sets this parameter to AWS. (Possible Values
AWS,AZURE,GCP).- Resource
Group stringName Name of your Azure resource group.
- Route
Table stringCidr Block Peer VPC CIDR block or subnet.
- Status string
Status of the Atlas network peering connection:
ADDING_PEER,AVAILABLE,FAILED,DELETING,WAITING_FOR_USER.- Status
Name string The VPC peering connection status value can be one of the following:
INITIATING,PENDING_ACCEPTANCE,FAILED,FINALIZING,AVAILABLE,TERMINATING.- Vnet
Name string Name of your Azure VNet.
- Vpc
Id string Unique identifier of the peer VPC.
- Accepter
Region stringName Specifies the region where the peer VPC resides. For complete lists of supported regions, see Amazon Web Services.
- Atlas
Cidr stringBlock Unique identifier for an Azure AD directory.
- Aws
Account stringId Account ID of the owner of the peer VPC.
- Azure
Directory stringId Unique identifier for an Azure AD directory.
- Azure
Subscription stringId Unique identifer of the Azure subscription in which the VNet resides.
- Connection
Id string Unique identifier for the peering connection.
- Container
Id string - Error
Message string When
"status" : "FAILED", Atlas provides a description of the error.- Error
State string Description of the Atlas error when
statusisFailed, Otherwise, Atlas returnsnull.- Error
State stringName Error state, if any. The VPC peering connection error state value can be one of the following:
REJECTED,EXPIRED,INVALID_ARGUMENT.- Gcp
Project stringId GCP project ID of the owner of the network peer.
- Network
Name string Name of the network peer to which Atlas connects.
- Peering
Id string Atlas assigned unique ID for the peering connection.
- Provider
Name string Cloud provider for this VPC peering connection. If omitted, Atlas sets this parameter to AWS. (Possible Values
AWS,AZURE,GCP).- Resource
Group stringName Name of your Azure resource group.
- Route
Table stringCidr Block Peer VPC CIDR block or subnet.
- Status string
Status of the Atlas network peering connection:
ADDING_PEER,AVAILABLE,FAILED,DELETING,WAITING_FOR_USER.- Status
Name string The VPC peering connection status value can be one of the following:
INITIATING,PENDING_ACCEPTANCE,FAILED,FINALIZING,AVAILABLE,TERMINATING.- Vnet
Name string Name of your Azure VNet.
- Vpc
Id string Unique identifier of the peer VPC.
- accepter
Region stringName Specifies the region where the peer VPC resides. For complete lists of supported regions, see Amazon Web Services.
- atlas
Cidr stringBlock Unique identifier for an Azure AD directory.
- aws
Account stringId Account ID of the owner of the peer VPC.
- azure
Directory stringId Unique identifier for an Azure AD directory.
- azure
Subscription stringId Unique identifer of the Azure subscription in which the VNet resides.
- connection
Id string Unique identifier for the peering connection.
- container
Id string - error
Message string When
"status" : "FAILED", Atlas provides a description of the error.- error
State string Description of the Atlas error when
statusisFailed, Otherwise, Atlas returnsnull.- error
State stringName Error state, if any. The VPC peering connection error state value can be one of the following:
REJECTED,EXPIRED,INVALID_ARGUMENT.- gcp
Project stringId GCP project ID of the owner of the network peer.
- network
Name string Name of the network peer to which Atlas connects.
- peering
Id string Atlas assigned unique ID for the peering connection.
- provider
Name string Cloud provider for this VPC peering connection. If omitted, Atlas sets this parameter to AWS. (Possible Values
AWS,AZURE,GCP).- resource
Group stringName Name of your Azure resource group.
- route
Table stringCidr Block Peer VPC CIDR block or subnet.
- status string
Status of the Atlas network peering connection:
ADDING_PEER,AVAILABLE,FAILED,DELETING,WAITING_FOR_USER.- status
Name string The VPC peering connection status value can be one of the following:
INITIATING,PENDING_ACCEPTANCE,FAILED,FINALIZING,AVAILABLE,TERMINATING.- vnet
Name string Name of your Azure VNet.
- vpc
Id string Unique identifier of the peer VPC.
- accepter_
region_ strname Specifies the region where the peer VPC resides. For complete lists of supported regions, see Amazon Web Services.
- atlas_
cidr_ strblock Unique identifier for an Azure AD directory.
- aws_
account_ strid Account ID of the owner of the peer VPC.
- azure_
directory_ strid Unique identifier for an Azure AD directory.
- azure_
subscription_ strid Unique identifer of the Azure subscription in which the VNet resides.
- connection_
id str Unique identifier for the peering connection.
- container_
id str - error_
message str When
"status" : "FAILED", Atlas provides a description of the error.- error_
state str Description of the Atlas error when
statusisFailed, Otherwise, Atlas returnsnull.- error_
state_ strname Error state, if any. The VPC peering connection error state value can be one of the following:
REJECTED,EXPIRED,INVALID_ARGUMENT.- gcp_
project_ strid GCP project ID of the owner of the network peer.
- network_
name str Name of the network peer to which Atlas connects.
- peering
Id str Atlas assigned unique ID for the peering connection.
- provider_
name str Cloud provider for this VPC peering connection. If omitted, Atlas sets this parameter to AWS. (Possible Values
AWS,AZURE,GCP).- resource_
group_ strname Name of your Azure resource group.
- route_
table_ strcidr_ block Peer VPC CIDR block or subnet.
- status str
Status of the Atlas network peering connection:
ADDING_PEER,AVAILABLE,FAILED,DELETING,WAITING_FOR_USER.- status_
name str The VPC peering connection status value can be one of the following:
INITIATING,PENDING_ACCEPTANCE,FAILED,FINALIZING,AVAILABLE,TERMINATING.- vnet_
name str Name of your Azure VNet.
- vpc_
id str Unique identifier of the peer VPC.
Package Details
- Repository
- https://github.com/pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.