MongoDB Atlas v3.18.0 published on Thursday, Sep 12, 2024 by Pulumi
mongodbatlas.getProjectIpAddresses
Explore with Pulumi AI
# Data Source: mongodbatlas.getProjectIpAddresses
mongodbatlas.getProjectIpAddresses
returns the IP addresses in a project categorized by services.
Example Usage
S
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const test = mongodbatlas.getProjectIpAddresses({
projectId: projectId,
});
export const projectServices = test.then(test => test.services);
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test = mongodbatlas.get_project_ip_addresses(project_id=project_id)
pulumi.export("projectServices", test.services)
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.LookupProjectIpAddresses(ctx, &mongodbatlas.LookupProjectIpAddressesArgs{
ProjectId: projectId,
}, nil)
if err != nil {
return err
}
ctx.Export("projectServices", test.Services)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var test = Mongodbatlas.GetProjectIpAddresses.Invoke(new()
{
ProjectId = projectId,
});
return new Dictionary<string, object?>
{
["projectServices"] = test.Apply(getProjectIpAddressesResult => getProjectIpAddressesResult.Services),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetProjectIpAddressesArgs;
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.getProjectIpAddresses(GetProjectIpAddressesArgs.builder()
.projectId(projectId)
.build());
ctx.export("projectServices", test.applyValue(getProjectIpAddressesResult -> getProjectIpAddressesResult.services()));
}
}
variables:
test:
fn::invoke:
Function: mongodbatlas:getProjectIpAddresses
Arguments:
projectId: ${projectId}
outputs:
projectServices: ${test.services}
Using getProjectIpAddresses
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 getProjectIpAddresses(args: GetProjectIpAddressesArgs, opts?: InvokeOptions): Promise<GetProjectIpAddressesResult>
function getProjectIpAddressesOutput(args: GetProjectIpAddressesOutputArgs, opts?: InvokeOptions): Output<GetProjectIpAddressesResult>
def get_project_ip_addresses(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectIpAddressesResult
def get_project_ip_addresses_output(project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectIpAddressesResult]
func LookupProjectIpAddresses(ctx *Context, args *LookupProjectIpAddressesArgs, opts ...InvokeOption) (*LookupProjectIpAddressesResult, error)
func LookupProjectIpAddressesOutput(ctx *Context, args *LookupProjectIpAddressesOutputArgs, opts ...InvokeOption) LookupProjectIpAddressesResultOutput
> Note: This function is named LookupProjectIpAddresses
in the Go SDK.
public static class GetProjectIpAddresses
{
public static Task<GetProjectIpAddressesResult> InvokeAsync(GetProjectIpAddressesArgs args, InvokeOptions? opts = null)
public static Output<GetProjectIpAddressesResult> Invoke(GetProjectIpAddressesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectIpAddressesResult> getProjectIpAddresses(GetProjectIpAddressesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getProjectIpAddresses:getProjectIpAddresses
arguments:
# arguments dictionary
The following arguments are supported:
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
getProjectIpAddresses Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Services
Get
Project Ip Addresses Services - List of IP addresses in a project categorized by services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Services
Get
Project Ip Addresses Services - List of IP addresses in a project categorized by services.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- services
Get
Project Ip Addresses Services - List of IP addresses in a project categorized by services.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- services
Get
Project Ip Addresses Services - List of IP addresses in a project categorized by services.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- services
Get
Project Ip Addresses Services - List of IP addresses in a project categorized by services.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- services Property Map
- List of IP addresses in a project categorized by services.
Supporting Types
GetProjectIpAddressesServices
- Clusters
List<Get
Project Ip Addresses Services Cluster> - IP addresses of clusters.
- Clusters
[]Get
Project Ip Addresses Services Cluster - IP addresses of clusters.
- clusters
List<Get
Project Ip Addresses Services Cluster> - IP addresses of clusters.
- clusters
Get
Project Ip Addresses Services Cluster[] - IP addresses of clusters.
- clusters
Sequence[Get
Project Ip Addresses Services Cluster] - IP addresses of clusters.
- clusters List<Property Map>
- IP addresses of clusters.
GetProjectIpAddressesServicesCluster
- Cluster
Name string - Human-readable label that identifies the cluster.
- Inbounds List<string>
- List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
- Outbounds List<string>
- List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
- Cluster
Name string - Human-readable label that identifies the cluster.
- Inbounds []string
- List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
- Outbounds []string
- List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
- cluster
Name String - Human-readable label that identifies the cluster.
- inbounds List<String>
- List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
- outbounds List<String>
- List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
- cluster
Name string - Human-readable label that identifies the cluster.
- inbounds string[]
- List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
- outbounds string[]
- List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
- cluster_
name str - Human-readable label that identifies the cluster.
- inbounds Sequence[str]
- List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
- outbounds Sequence[str]
- List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
- cluster
Name String - Human-readable label that identifies the cluster.
- inbounds List<String>
- List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
- outbounds List<String>
- List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.