1. Packages
  2. Mongodbatlas Provider
  3. API Docs
  4. getControlPlaneIpAddresses
MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi

mongodbatlas.getControlPlaneIpAddresses

Explore with Pulumi AI

mongodbatlas logo
MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi

    # Data Source: mongodbatlas.getControlPlaneIpAddresses

    mongodbatlas.getControlPlaneIpAddresses returns all control plane IP addresses.

    Example Usage

    S

    import * as pulumi from "@pulumi/pulumi";
    import * as mongodbatlas from "@pulumi/mongodbatlas";
    
    export = async () => {
        const test = await mongodbatlas.getControlPlaneIpAddresses({});
        return {
            "outbound-aws-ip-addresses": test.outbound?.aws,
        };
    }
    
    import pulumi
    import pulumi_mongodbatlas as mongodbatlas
    
    test = mongodbatlas.get_control_plane_ip_addresses()
    pulumi.export("outbound-aws-ip-addresses", test.outbound.aws)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		test, err := mongodbatlas.GetControlPlaneIpAddresses(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("outbound-aws-ip-addresses", test.Outbound.Aws)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Mongodbatlas = Pulumi.Mongodbatlas;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Mongodbatlas.GetControlPlaneIpAddresses.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["outbound-aws-ip-addresses"] = test.Apply(getControlPlaneIpAddressesResult => getControlPlaneIpAddressesResult.Outbound?.Aws),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.mongodbatlas.MongodbatlasFunctions;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var test = MongodbatlasFunctions.getControlPlaneIpAddresses();
    
            ctx.export("outbound-aws-ip-addresses", test.applyValue(getControlPlaneIpAddressesResult -> getControlPlaneIpAddressesResult.outbound().aws()));
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: mongodbatlas:getControlPlaneIpAddresses
          Arguments: {}
    outputs:
      outbound-aws-ip-addresses: ${test.outbound.aws}
    

    Using getControlPlaneIpAddresses

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getControlPlaneIpAddresses(opts?: InvokeOptions): Promise<GetControlPlaneIpAddressesResult>
    function getControlPlaneIpAddressesOutput(opts?: InvokeOptions): Output<GetControlPlaneIpAddressesResult>
    def get_control_plane_ip_addresses(opts: Optional[InvokeOptions] = None) -> GetControlPlaneIpAddressesResult
    def get_control_plane_ip_addresses_output(opts: Optional[InvokeOptions] = None) -> Output[GetControlPlaneIpAddressesResult]
    func GetControlPlaneIpAddresses(ctx *Context, opts ...InvokeOption) (*GetControlPlaneIpAddressesResult, error)
    func GetControlPlaneIpAddressesOutput(ctx *Context, opts ...InvokeOption) GetControlPlaneIpAddressesResultOutput

    > Note: This function is named GetControlPlaneIpAddresses in the Go SDK.

    public static class GetControlPlaneIpAddresses 
    {
        public static Task<GetControlPlaneIpAddressesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetControlPlaneIpAddressesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetControlPlaneIpAddressesResult> getControlPlaneIpAddresses(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: mongodbatlas:index/getControlPlaneIpAddresses:getControlPlaneIpAddresses
      arguments:
        # arguments dictionary

    getControlPlaneIpAddresses Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Inbound GetControlPlaneIpAddressesInbound
    List of inbound IP addresses to the Atlas control plane, categorized by cloud provider. If your application allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your API requests can reach the Atlas control plane.
    Outbound GetControlPlaneIpAddressesOutbound
    List of outbound IP addresses from the Atlas control plane, categorized by cloud provider. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that Atlas can communicate with your webhooks and KMS.
    Id string
    The provider-assigned unique ID for this managed resource.
    Inbound GetControlPlaneIpAddressesInbound
    List of inbound IP addresses to the Atlas control plane, categorized by cloud provider. If your application allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your API requests can reach the Atlas control plane.
    Outbound GetControlPlaneIpAddressesOutbound
    List of outbound IP addresses from the Atlas control plane, categorized by cloud provider. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that Atlas can communicate with your webhooks and KMS.
    id String
    The provider-assigned unique ID for this managed resource.
    inbound GetControlPlaneIpAddressesInbound
    List of inbound IP addresses to the Atlas control plane, categorized by cloud provider. If your application allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your API requests can reach the Atlas control plane.
    outbound GetControlPlaneIpAddressesOutbound
    List of outbound IP addresses from the Atlas control plane, categorized by cloud provider. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that Atlas can communicate with your webhooks and KMS.
    id string
    The provider-assigned unique ID for this managed resource.
    inbound GetControlPlaneIpAddressesInbound
    List of inbound IP addresses to the Atlas control plane, categorized by cloud provider. If your application allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your API requests can reach the Atlas control plane.
    outbound GetControlPlaneIpAddressesOutbound
    List of outbound IP addresses from the Atlas control plane, categorized by cloud provider. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that Atlas can communicate with your webhooks and KMS.
    id str
    The provider-assigned unique ID for this managed resource.
    inbound GetControlPlaneIpAddressesInbound
    List of inbound IP addresses to the Atlas control plane, categorized by cloud provider. If your application allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your API requests can reach the Atlas control plane.
    outbound GetControlPlaneIpAddressesOutbound
    List of outbound IP addresses from the Atlas control plane, categorized by cloud provider. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that Atlas can communicate with your webhooks and KMS.
    id String
    The provider-assigned unique ID for this managed resource.
    inbound Property Map
    List of inbound IP addresses to the Atlas control plane, categorized by cloud provider. If your application allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your API requests can reach the Atlas control plane.
    outbound Property Map
    List of outbound IP addresses from the Atlas control plane, categorized by cloud provider. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that Atlas can communicate with your webhooks and KMS.

    Supporting Types

    GetControlPlaneIpAddressesInbound

    Aws Dictionary<string, ImmutableArray<string>>
    Control plane IP addresses in AWS. Each key identifies an Amazon Web Services (AWS) region. Each value identifies control plane IP addresses in the AWS region.
    Azure Dictionary<string, ImmutableArray<string>>
    Control plane IP addresses in Azure. Each key identifies an Azure region. Each value identifies control plane IP addresses in the Azure region.
    Gcp Dictionary<string, ImmutableArray<string>>
    Control plane IP addresses in GCP. Each key identifies a Google Cloud (GCP) region. Each value identifies control plane IP addresses in the GCP region.
    Aws map[string][]string
    Control plane IP addresses in AWS. Each key identifies an Amazon Web Services (AWS) region. Each value identifies control plane IP addresses in the AWS region.
    Azure map[string][]string
    Control plane IP addresses in Azure. Each key identifies an Azure region. Each value identifies control plane IP addresses in the Azure region.
    Gcp map[string][]string
    Control plane IP addresses in GCP. Each key identifies a Google Cloud (GCP) region. Each value identifies control plane IP addresses in the GCP region.
    aws Map<String,List<String>>
    Control plane IP addresses in AWS. Each key identifies an Amazon Web Services (AWS) region. Each value identifies control plane IP addresses in the AWS region.
    azure Map<String,List<String>>
    Control plane IP addresses in Azure. Each key identifies an Azure region. Each value identifies control plane IP addresses in the Azure region.
    gcp Map<String,List<String>>
    Control plane IP addresses in GCP. Each key identifies a Google Cloud (GCP) region. Each value identifies control plane IP addresses in the GCP region.
    aws {[key: string]: string[]}
    Control plane IP addresses in AWS. Each key identifies an Amazon Web Services (AWS) region. Each value identifies control plane IP addresses in the AWS region.
    azure {[key: string]: string[]}
    Control plane IP addresses in Azure. Each key identifies an Azure region. Each value identifies control plane IP addresses in the Azure region.
    gcp {[key: string]: string[]}
    Control plane IP addresses in GCP. Each key identifies a Google Cloud (GCP) region. Each value identifies control plane IP addresses in the GCP region.
    aws Mapping[str, Sequence[str]]
    Control plane IP addresses in AWS. Each key identifies an Amazon Web Services (AWS) region. Each value identifies control plane IP addresses in the AWS region.
    azure Mapping[str, Sequence[str]]
    Control plane IP addresses in Azure. Each key identifies an Azure region. Each value identifies control plane IP addresses in the Azure region.
    gcp Mapping[str, Sequence[str]]
    Control plane IP addresses in GCP. Each key identifies a Google Cloud (GCP) region. Each value identifies control plane IP addresses in the GCP region.
    aws Map<List<String>>
    Control plane IP addresses in AWS. Each key identifies an Amazon Web Services (AWS) region. Each value identifies control plane IP addresses in the AWS region.
    azure Map<List<String>>
    Control plane IP addresses in Azure. Each key identifies an Azure region. Each value identifies control plane IP addresses in the Azure region.
    gcp Map<List<String>>
    Control plane IP addresses in GCP. Each key identifies a Google Cloud (GCP) region. Each value identifies control plane IP addresses in the GCP region.

    GetControlPlaneIpAddressesOutbound

    Aws Dictionary<string, ImmutableArray<string>>
    Control plane IP addresses in AWS. Each key identifies an Amazon Web Services (AWS) region. Each value identifies control plane IP addresses in the AWS region.
    Azure Dictionary<string, ImmutableArray<string>>
    Control plane IP addresses in Azure. Each key identifies an Azure region. Each value identifies control plane IP addresses in the Azure region.
    Gcp Dictionary<string, ImmutableArray<string>>
    Control plane IP addresses in GCP. Each key identifies a Google Cloud (GCP) region. Each value identifies control plane IP addresses in the GCP region.
    Aws map[string][]string
    Control plane IP addresses in AWS. Each key identifies an Amazon Web Services (AWS) region. Each value identifies control plane IP addresses in the AWS region.
    Azure map[string][]string
    Control plane IP addresses in Azure. Each key identifies an Azure region. Each value identifies control plane IP addresses in the Azure region.
    Gcp map[string][]string
    Control plane IP addresses in GCP. Each key identifies a Google Cloud (GCP) region. Each value identifies control plane IP addresses in the GCP region.
    aws Map<String,List<String>>
    Control plane IP addresses in AWS. Each key identifies an Amazon Web Services (AWS) region. Each value identifies control plane IP addresses in the AWS region.
    azure Map<String,List<String>>
    Control plane IP addresses in Azure. Each key identifies an Azure region. Each value identifies control plane IP addresses in the Azure region.
    gcp Map<String,List<String>>
    Control plane IP addresses in GCP. Each key identifies a Google Cloud (GCP) region. Each value identifies control plane IP addresses in the GCP region.
    aws {[key: string]: string[]}
    Control plane IP addresses in AWS. Each key identifies an Amazon Web Services (AWS) region. Each value identifies control plane IP addresses in the AWS region.
    azure {[key: string]: string[]}
    Control plane IP addresses in Azure. Each key identifies an Azure region. Each value identifies control plane IP addresses in the Azure region.
    gcp {[key: string]: string[]}
    Control plane IP addresses in GCP. Each key identifies a Google Cloud (GCP) region. Each value identifies control plane IP addresses in the GCP region.
    aws Mapping[str, Sequence[str]]
    Control plane IP addresses in AWS. Each key identifies an Amazon Web Services (AWS) region. Each value identifies control plane IP addresses in the AWS region.
    azure Mapping[str, Sequence[str]]
    Control plane IP addresses in Azure. Each key identifies an Azure region. Each value identifies control plane IP addresses in the Azure region.
    gcp Mapping[str, Sequence[str]]
    Control plane IP addresses in GCP. Each key identifies a Google Cloud (GCP) region. Each value identifies control plane IP addresses in the GCP region.
    aws Map<List<String>>
    Control plane IP addresses in AWS. Each key identifies an Amazon Web Services (AWS) region. Each value identifies control plane IP addresses in the AWS region.
    azure Map<List<String>>
    Control plane IP addresses in Azure. Each key identifies an Azure region. Each value identifies control plane IP addresses in the Azure region.
    gcp Map<List<String>>
    Control plane IP addresses in GCP. Each key identifies a Google Cloud (GCP) region. Each value identifies control plane IP addresses in the GCP region.

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo
    MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi