MongoDB Atlas v4.4.0 published on Thursday, Feb 19, 2026 by Pulumi
MongoDB Atlas v4.4.0 published on Thursday, Feb 19, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testAccessListApiKey = new mongodbatlas.AccessListApiKey("test", {
orgId: "<ORG_ID>",
cidrBlock: "1.2.3.4/32",
apiKeyId: "a29120e123cd",
});
const test = mongodbatlas.getAccessListApiKeysOutput({
orgId: testAccessListApiKey.orgId,
apiKeyId: testAccessListApiKey.apiKeyId,
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_access_list_api_key = mongodbatlas.AccessListApiKey("test",
org_id="<ORG_ID>",
cidr_block="1.2.3.4/32",
api_key_id="a29120e123cd")
test = mongodbatlas.get_access_list_api_keys_output(org_id=test_access_list_api_key.org_id,
api_key_id=test_access_list_api_key.api_key_id)
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testAccessListApiKey, err := mongodbatlas.NewAccessListApiKey(ctx, "test", &mongodbatlas.AccessListApiKeyArgs{
OrgId: pulumi.String("<ORG_ID>"),
CidrBlock: pulumi.String("1.2.3.4/32"),
ApiKeyId: pulumi.String("a29120e123cd"),
})
if err != nil {
return err
}
_ = mongodbatlas.LookupAccessListApiKeysOutput(ctx, mongodbatlas.GetAccessListApiKeysOutputArgs{
OrgId: testAccessListApiKey.OrgId,
ApiKeyId: testAccessListApiKey.ApiKeyId,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var testAccessListApiKey = new Mongodbatlas.AccessListApiKey("test", new()
{
OrgId = "<ORG_ID>",
CidrBlock = "1.2.3.4/32",
ApiKeyId = "a29120e123cd",
});
var test = Mongodbatlas.GetAccessListApiKeys.Invoke(new()
{
OrgId = testAccessListApiKey.OrgId,
ApiKeyId = testAccessListApiKey.ApiKeyId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.AccessListApiKey;
import com.pulumi.mongodbatlas.AccessListApiKeyArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetAccessListApiKeysArgs;
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) {
var testAccessListApiKey = new AccessListApiKey("testAccessListApiKey", AccessListApiKeyArgs.builder()
.orgId("<ORG_ID>")
.cidrBlock("1.2.3.4/32")
.apiKeyId("a29120e123cd")
.build());
final var test = MongodbatlasFunctions.getAccessListApiKeys(GetAccessListApiKeysArgs.builder()
.orgId(testAccessListApiKey.orgId())
.apiKeyId(testAccessListApiKey.apiKeyId())
.build());
}
}
resources:
testAccessListApiKey:
type: mongodbatlas:AccessListApiKey
name: test
properties:
orgId: <ORG_ID>
cidrBlock: 1.2.3.4/32
apiKeyId: a29120e123cd
variables:
test:
fn::invoke:
function: mongodbatlas:getAccessListApiKeys
arguments:
orgId: ${testAccessListApiKey.orgId}
apiKeyId: ${testAccessListApiKey.apiKeyId}
Using getAccessListApiKeys
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 getAccessListApiKeys(args: GetAccessListApiKeysArgs, opts?: InvokeOptions): Promise<GetAccessListApiKeysResult>
function getAccessListApiKeysOutput(args: GetAccessListApiKeysOutputArgs, opts?: InvokeOptions): Output<GetAccessListApiKeysResult>def get_access_list_api_keys(api_key_id: Optional[str] = None,
items_per_page: Optional[int] = None,
org_id: Optional[str] = None,
page_num: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetAccessListApiKeysResult
def get_access_list_api_keys_output(api_key_id: Optional[pulumi.Input[str]] = None,
items_per_page: Optional[pulumi.Input[int]] = None,
org_id: Optional[pulumi.Input[str]] = None,
page_num: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccessListApiKeysResult]func LookupAccessListApiKeys(ctx *Context, args *LookupAccessListApiKeysArgs, opts ...InvokeOption) (*LookupAccessListApiKeysResult, error)
func LookupAccessListApiKeysOutput(ctx *Context, args *LookupAccessListApiKeysOutputArgs, opts ...InvokeOption) LookupAccessListApiKeysResultOutput> Note: This function is named LookupAccessListApiKeys in the Go SDK.
public static class GetAccessListApiKeys
{
public static Task<GetAccessListApiKeysResult> InvokeAsync(GetAccessListApiKeysArgs args, InvokeOptions? opts = null)
public static Output<GetAccessListApiKeysResult> Invoke(GetAccessListApiKeysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAccessListApiKeysResult> getAccessListApiKeys(GetAccessListApiKeysArgs args, InvokeOptions options)
public static Output<GetAccessListApiKeysResult> getAccessListApiKeys(GetAccessListApiKeysArgs args, InvokeOptions options)
fn::invoke:
function: mongodbatlas:index/getAccessListApiKeys:getAccessListApiKeys
arguments:
# arguments dictionaryThe following arguments are supported:
- Api
Key stringId - Unique identifier for the Organization API Key for which you want to retrieve access list entries.
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- Items
Per intPage - Number of items to return per page, up to a maximum of 500. Defaults to
100. - Page
Num int - The page to return. Defaults to
1.
- Api
Key stringId - Unique identifier for the Organization API Key for which you want to retrieve access list entries.
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- Items
Per intPage - Number of items to return per page, up to a maximum of 500. Defaults to
100. - Page
Num int - The page to return. Defaults to
1.
- api
Key StringId - Unique identifier for the Organization API Key for which you want to retrieve access list entries.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- items
Per IntegerPage - Number of items to return per page, up to a maximum of 500. Defaults to
100. - page
Num Integer - The page to return. Defaults to
1.
- api
Key stringId - Unique identifier for the Organization API Key for which you want to retrieve access list entries.
- org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- items
Per numberPage - Number of items to return per page, up to a maximum of 500. Defaults to
100. - page
Num number - The page to return. Defaults to
1.
- api_
key_ strid - Unique identifier for the Organization API Key for which you want to retrieve access list entries.
- org_
id str - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- items_
per_ intpage - Number of items to return per page, up to a maximum of 500. Defaults to
100. - page_
num int - The page to return. Defaults to
1.
- api
Key StringId - Unique identifier for the Organization API Key for which you want to retrieve access list entries.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- items
Per NumberPage - Number of items to return per page, up to a maximum of 500. Defaults to
100. - page
Num Number - The page to return. Defaults to
1.
getAccessListApiKeys Result
The following output properties are available:
- Api
Key stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Results
List<Get
Access List Api Keys Result> - A list of access list entries for the specified API key. Each entry contains the following attributes:
- Items
Per intPage - Page
Num int
- Api
Key stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Results
[]Get
Access List Api Keys Result - A list of access list entries for the specified API key. Each entry contains the following attributes:
- Items
Per intPage - Page
Num int
- api
Key StringId - id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - results
List<Get
Access List Api Keys Result> - A list of access list entries for the specified API key. Each entry contains the following attributes:
- items
Per IntegerPage - page
Num Integer
- api
Key stringId - id string
- The provider-assigned unique ID for this managed resource.
- org
Id string - results
Get
Access List Api Keys Result[] - A list of access list entries for the specified API key. Each entry contains the following attributes:
- items
Per numberPage - page
Num number
- api_
key_ strid - id str
- The provider-assigned unique ID for this managed resource.
- org_
id str - results
Sequence[Get
Access List Api Keys Result] - A list of access list entries for the specified API key. Each entry contains the following attributes:
- items_
per_ intpage - page_
num int
- api
Key StringId - id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - results List<Property Map>
- A list of access list entries for the specified API key. Each entry contains the following attributes:
- items
Per NumberPage - page
Num Number
Supporting Types
GetAccessListApiKeysResult
- Access
Count int - Total number of requests that have originated from this IP address or CIDR block.
- Cidr
Block string - Range of IP addresses in CIDR notation included in the API access list.
- Created string
- Date and time when the access list entry was created.
- Ip
Address string - IP address included in the API access list.
- Last
Used string - Date and time when the API key was last used from this IP address or CIDR block.
- Last
Used stringAddress - IP address from which the last API request was made.
- Access
Count int - Total number of requests that have originated from this IP address or CIDR block.
- Cidr
Block string - Range of IP addresses in CIDR notation included in the API access list.
- Created string
- Date and time when the access list entry was created.
- Ip
Address string - IP address included in the API access list.
- Last
Used string - Date and time when the API key was last used from this IP address or CIDR block.
- Last
Used stringAddress - IP address from which the last API request was made.
- access
Count Integer - Total number of requests that have originated from this IP address or CIDR block.
- cidr
Block String - Range of IP addresses in CIDR notation included in the API access list.
- created String
- Date and time when the access list entry was created.
- ip
Address String - IP address included in the API access list.
- last
Used String - Date and time when the API key was last used from this IP address or CIDR block.
- last
Used StringAddress - IP address from which the last API request was made.
- access
Count number - Total number of requests that have originated from this IP address or CIDR block.
- cidr
Block string - Range of IP addresses in CIDR notation included in the API access list.
- created string
- Date and time when the access list entry was created.
- ip
Address string - IP address included in the API access list.
- last
Used string - Date and time when the API key was last used from this IP address or CIDR block.
- last
Used stringAddress - IP address from which the last API request was made.
- access_
count int - Total number of requests that have originated from this IP address or CIDR block.
- cidr_
block str - Range of IP addresses in CIDR notation included in the API access list.
- created str
- Date and time when the access list entry was created.
- ip_
address str - IP address included in the API access list.
- last_
used str - Date and time when the API key was last used from this IP address or CIDR block.
- last_
used_ straddress - IP address from which the last API request was made.
- access
Count Number - Total number of requests that have originated from this IP address or CIDR block.
- cidr
Block String - Range of IP addresses in CIDR notation included in the API access list.
- created String
- Date and time when the access list entry was created.
- ip
Address String - IP address included in the API access list.
- last
Used String - Date and time when the API key was last used from this IP address or CIDR block.
- last
Used StringAddress - IP address from which the last API request was made.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
MongoDB Atlas v4.4.0 published on Thursday, Feb 19, 2026 by Pulumi
