1. Packages
  2. Mongodbatlas Provider
  3. API Docs
  4. getAccessListApiKeys
MongoDB Atlas v3.30.0 published on Friday, Mar 21, 2025 by Pulumi

mongodbatlas.getAccessListApiKeys

Explore with Pulumi AI

Example Usage

Using CIDR Block

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  testAccessListApiKey:
    type: mongodbatlas:AccessListApiKey
    name: test
    properties:
      orgId: <ORG-ID>
      cidrBlock: 1.2.3.4/32
      apiKey: a29120e123cd
variables:
  test:
    fn::invoke:
      function: mongodbatlas:getAccessListApiKey
      arguments:
        orgId: ${testAccessListApiKey.orgId}
        cidrBlock: ${testAccessListApiKey.cidrBlock}
        apiKeyId: ${testAccessListApiKey.apiKeyId}
Copy

Using IP Address

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  testAccessListApiKey:
    type: mongodbatlas:AccessListApiKey
    name: test
    properties:
      orgId: <ORG-ID>
      ipAddress: 2.3.4.5
      apiKey: a29120e123cd
variables:
  test:
    fn::invoke:
      function: mongodbatlas:getAccessListApiKey
      arguments:
        orgId: ${testAccessListApiKey.orgId}
        ipAddress: ${testAccessListApiKey.ipAddress}
        apiKeyId: ${testAccessListApiKey.apiKeyId}
Copy

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>
Copy
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]
Copy
func LookupAccessListApiKeys(ctx *Context, args *LookupAccessListApiKeysArgs, opts ...InvokeOption) (*LookupAccessListApiKeysResult, error)
func LookupAccessListApiKeysOutput(ctx *Context, args *LookupAccessListApiKeysOutputArgs, opts ...InvokeOption) LookupAccessListApiKeysResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAccessListApiKeysResult> getAccessListApiKeys(GetAccessListApiKeysArgs args, InvokeOptions options)
public static Output<GetAccessListApiKeysResult> getAccessListApiKeys(GetAccessListApiKeysArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: mongodbatlas:index/getAccessListApiKeys:getAccessListApiKeys
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ApiKeyId This property is required. string
OrgId This property is required. string
ItemsPerPage int
Number of items to return per page, up to a maximum of 500. Defaults to 100.
PageNum int
The page to return. Defaults to 1.
ApiKeyId This property is required. string
OrgId This property is required. string
ItemsPerPage int
Number of items to return per page, up to a maximum of 500. Defaults to 100.
PageNum int
The page to return. Defaults to 1.
apiKeyId This property is required. String
orgId This property is required. String
itemsPerPage Integer
Number of items to return per page, up to a maximum of 500. Defaults to 100.
pageNum Integer
The page to return. Defaults to 1.
apiKeyId This property is required. string
orgId This property is required. string
itemsPerPage number
Number of items to return per page, up to a maximum of 500. Defaults to 100.
pageNum number
The page to return. Defaults to 1.
api_key_id This property is required. str
org_id This property is required. str
items_per_page int
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.
apiKeyId This property is required. String
orgId This property is required. String
itemsPerPage Number
Number of items to return per page, up to a maximum of 500. Defaults to 100.
pageNum Number
The page to return. Defaults to 1.

getAccessListApiKeys Result

The following output properties are available:

ApiKeyId string
Id string
The provider-assigned unique ID for this managed resource.
OrgId string
Results List<GetAccessListApiKeysResult>
ItemsPerPage int
PageNum int
ApiKeyId string
Id string
The provider-assigned unique ID for this managed resource.
OrgId string
Results []GetAccessListApiKeysResult
ItemsPerPage int
PageNum int
apiKeyId String
id String
The provider-assigned unique ID for this managed resource.
orgId String
results List<GetAccessListApiKeysResult>
itemsPerPage Integer
pageNum Integer
apiKeyId string
id string
The provider-assigned unique ID for this managed resource.
orgId string
results GetAccessListApiKeysResult[]
itemsPerPage number
pageNum number
api_key_id str
id str
The provider-assigned unique ID for this managed resource.
org_id str
results Sequence[GetAccessListApiKeysResult]
items_per_page int
page_num int
apiKeyId String
id String
The provider-assigned unique ID for this managed resource.
orgId String
results List<Property Map>
itemsPerPage Number
pageNum Number

Supporting Types

GetAccessListApiKeysResult

AccessCount This property is required. int
CidrBlock This property is required. string
Range of IP addresses in CIDR notation to be added to the access list.
Created This property is required. string
IpAddress This property is required. string
Single IP address to be added to the access list.
LastUsed This property is required. string
LastUsedAddress This property is required. string
AccessCount This property is required. int
CidrBlock This property is required. string
Range of IP addresses in CIDR notation to be added to the access list.
Created This property is required. string
IpAddress This property is required. string
Single IP address to be added to the access list.
LastUsed This property is required. string
LastUsedAddress This property is required. string
accessCount This property is required. Integer
cidrBlock This property is required. String
Range of IP addresses in CIDR notation to be added to the access list.
created This property is required. String
ipAddress This property is required. String
Single IP address to be added to the access list.
lastUsed This property is required. String
lastUsedAddress This property is required. String
accessCount This property is required. number
cidrBlock This property is required. string
Range of IP addresses in CIDR notation to be added to the access list.
created This property is required. string
ipAddress This property is required. string
Single IP address to be added to the access list.
lastUsed This property is required. string
lastUsedAddress This property is required. string
access_count This property is required. int
cidr_block This property is required. str
Range of IP addresses in CIDR notation to be added to the access list.
created This property is required. str
ip_address This property is required. str
Single IP address to be added to the access list.
last_used This property is required. str
last_used_address This property is required. str
accessCount This property is required. Number
cidrBlock This property is required. String
Range of IP addresses in CIDR notation to be added to the access list.
created This property is required. String
ipAddress This property is required. String
Single IP address to be added to the access list.
lastUsed This property is required. String
lastUsedAddress This property is required. String

Package Details

Repository
MongoDB Atlas pulumi/pulumi-mongodbatlas
License
Apache-2.0
Notes
This Pulumi package is based on the mongodbatlas Terraform Provider.