MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi
mongodbatlas.getAccessListApiKey
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}
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}
Using getAccessListApiKey
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 getAccessListApiKey(args: GetAccessListApiKeyArgs, opts?: InvokeOptions): Promise<GetAccessListApiKeyResult>
function getAccessListApiKeyOutput(args: GetAccessListApiKeyOutputArgs, opts?: InvokeOptions): Output<GetAccessListApiKeyResult>
def get_access_list_api_key(api_key_id: Optional[str] = None,
ip_address: Optional[str] = None,
org_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAccessListApiKeyResult
def get_access_list_api_key_output(api_key_id: Optional[pulumi.Input[str]] = None,
ip_address: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccessListApiKeyResult]
func LookupAccessListApiKey(ctx *Context, args *LookupAccessListApiKeyArgs, opts ...InvokeOption) (*LookupAccessListApiKeyResult, error)
func LookupAccessListApiKeyOutput(ctx *Context, args *LookupAccessListApiKeyOutputArgs, opts ...InvokeOption) LookupAccessListApiKeyResultOutput
> Note: This function is named LookupAccessListApiKey
in the Go SDK.
public static class GetAccessListApiKey
{
public static Task<GetAccessListApiKeyResult> InvokeAsync(GetAccessListApiKeyArgs args, InvokeOptions? opts = null)
public static Output<GetAccessListApiKeyResult> Invoke(GetAccessListApiKeyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccessListApiKeyResult> getAccessListApiKey(GetAccessListApiKeyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getAccessListApiKey:getAccessListApiKey
arguments:
# arguments dictionary
The following arguments are supported:
- Api
Key stringId - Unique identifier for the Organization API Key for which you want to retrieve an access list entry.
*
->NOTE: You must set either the
cidr_block
attribute or theip_address
attribute. Don't set both. - Ip
Address string - Single IP address to be added to the access list.
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- Api
Key stringId - Unique identifier for the Organization API Key for which you want to retrieve an access list entry.
*
->NOTE: You must set either the
cidr_block
attribute or theip_address
attribute. Don't set both. - Ip
Address string - Single IP address to be added to the access list.
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- api
Key StringId - Unique identifier for the Organization API Key for which you want to retrieve an access list entry.
*
->NOTE: You must set either the
cidr_block
attribute or theip_address
attribute. Don't set both. - ip
Address String - Single IP address to be added to the access list.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- api
Key stringId - Unique identifier for the Organization API Key for which you want to retrieve an access list entry.
*
->NOTE: You must set either the
cidr_block
attribute or theip_address
attribute. Don't set both. - ip
Address string - Single IP address to be added to the access list.
- org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- api_
key_ strid - Unique identifier for the Organization API Key for which you want to retrieve an access list entry.
*
->NOTE: You must set either the
cidr_block
attribute or theip_address
attribute. Don't set both. - ip_
address str - Single IP address to be added to the access list.
- org_
id str - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- api
Key StringId - Unique identifier for the Organization API Key for which you want to retrieve an access list entry.
*
->NOTE: You must set either the
cidr_block
attribute or theip_address
attribute. Don't set both. - ip
Address String - Single IP address to be added to the access list.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
getAccessListApiKey Result
The following output properties are available:
- Access
Count int - Api
Key stringId - Cidr
Block string - Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - Last
Used string - Last
Used stringAddress - Org
Id string
- Access
Count int - Api
Key stringId - Cidr
Block string - Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - Last
Used string - Last
Used stringAddress - Org
Id string
- access
Count Integer - api
Key StringId - cidr
Block String - created String
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - last
Used String - last
Used StringAddress - org
Id String
- access
Count number - api
Key stringId - cidr
Block string - created string
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - last
Used string - last
Used stringAddress - org
Id string
- access_
count int - api_
key_ strid - cidr_
block str - created str
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - last_
used str - last_
used_ straddress - org_
id str
- access
Count Number - api
Key StringId - cidr
Block String - created String
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - last
Used String - last
Used StringAddress - org
Id String
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.