mongodbatlas.getApiKeys
Explore with Pulumi AI
Example Usage
Using getApiKeys
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 getApiKeys(args: GetApiKeysArgs, opts?: InvokeOptions): Promise<GetApiKeysResult>
function getApiKeysOutput(args: GetApiKeysOutputArgs, opts?: InvokeOptions): Output<GetApiKeysResult>def get_api_keys(items_per_page: Optional[int] = None,
                 org_id: Optional[str] = None,
                 page_num: Optional[int] = None,
                 opts: Optional[InvokeOptions] = None) -> GetApiKeysResult
def get_api_keys_output(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[GetApiKeysResult]func LookupApiKeys(ctx *Context, args *LookupApiKeysArgs, opts ...InvokeOption) (*LookupApiKeysResult, error)
func LookupApiKeysOutput(ctx *Context, args *LookupApiKeysOutputArgs, opts ...InvokeOption) LookupApiKeysResultOutput> Note: This function is named LookupApiKeys in the Go SDK.
public static class GetApiKeys 
{
    public static Task<GetApiKeysResult> InvokeAsync(GetApiKeysArgs args, InvokeOptions? opts = null)
    public static Output<GetApiKeysResult> Invoke(GetApiKeysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetApiKeysResult> getApiKeys(GetApiKeysArgs args, InvokeOptions options)
public static Output<GetApiKeysResult> getApiKeys(GetApiKeysArgs args, InvokeOptions options)
fn::invoke:
  function: mongodbatlas:index/getApiKeys:getApiKeys
  arguments:
    # arguments dictionaryThe following arguments are supported:
- OrgId string
- Unique identifier for the organization whose API keys you want to retrieve.
- ItemsPer intPage 
- 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.
- OrgId string
- Unique identifier for the organization whose API keys you want to retrieve.
- ItemsPer intPage 
- 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.
- orgId String
- Unique identifier for the organization whose API keys you want to retrieve.
- itemsPer IntegerPage 
- 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.
- orgId string
- Unique identifier for the organization whose API keys you want to retrieve.
- itemsPer numberPage 
- 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.
- org_id str
- Unique identifier for the organization whose API keys you want to retrieve.
- 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.
- orgId String
- Unique identifier for the organization whose API keys you want to retrieve.
- itemsPer NumberPage 
- 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.
getApiKeys Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- OrgId string
- Results
List<GetApi Keys Result> 
- ItemsPer intPage 
- PageNum int
- Id string
- The provider-assigned unique ID for this managed resource.
- OrgId string
- Results
[]GetApi Keys Result 
- ItemsPer intPage 
- PageNum int
- id String
- The provider-assigned unique ID for this managed resource.
- orgId String
- results
List<GetApi Keys Result> 
- itemsPer IntegerPage 
- pageNum Integer
- id string
- The provider-assigned unique ID for this managed resource.
- orgId string
- results
GetApi Keys Result[] 
- itemsPer numberPage 
- pageNum number
- id str
- The provider-assigned unique ID for this managed resource.
- org_id str
- results
Sequence[GetApi Keys Result] 
- items_per_ intpage 
- page_num int
- id String
- The provider-assigned unique ID for this managed resource.
- orgId String
- results List<Property Map>
- itemsPer NumberPage 
- pageNum Number
Supporting Types
GetApiKeysResult   
- ApiKey stringId 
- Unique identifier for the API key you want to update. Use the /orgs/{ORG-ID}/apiKeys endpoint to retrieve all API keys to which the authenticated user has access for the specified organization.
- Description string
- Description of this Organization API key.
- PublicKey string
- RoleNames List<string>
- Name of the role. This resource returns all the roles the user has in Atlas. - The following are valid roles: - ORG_OWNER
- ORG_GROUP_CREATOR
- ORG_BILLING_ADMIN
- ORG_READ_ONLY
- ORG_MEMBER
 - See MongoDB Atlas API - Return All Organization API Keys - Documentation for more information. 
- ApiKey stringId 
- Unique identifier for the API key you want to update. Use the /orgs/{ORG-ID}/apiKeys endpoint to retrieve all API keys to which the authenticated user has access for the specified organization.
- Description string
- Description of this Organization API key.
- PublicKey string
- RoleNames []string
- Name of the role. This resource returns all the roles the user has in Atlas. - The following are valid roles: - ORG_OWNER
- ORG_GROUP_CREATOR
- ORG_BILLING_ADMIN
- ORG_READ_ONLY
- ORG_MEMBER
 - See MongoDB Atlas API - Return All Organization API Keys - Documentation for more information. 
- apiKey StringId 
- Unique identifier for the API key you want to update. Use the /orgs/{ORG-ID}/apiKeys endpoint to retrieve all API keys to which the authenticated user has access for the specified organization.
- description String
- Description of this Organization API key.
- publicKey String
- roleNames List<String>
- Name of the role. This resource returns all the roles the user has in Atlas. - The following are valid roles: - ORG_OWNER
- ORG_GROUP_CREATOR
- ORG_BILLING_ADMIN
- ORG_READ_ONLY
- ORG_MEMBER
 - See MongoDB Atlas API - Return All Organization API Keys - Documentation for more information. 
- apiKey stringId 
- Unique identifier for the API key you want to update. Use the /orgs/{ORG-ID}/apiKeys endpoint to retrieve all API keys to which the authenticated user has access for the specified organization.
- description string
- Description of this Organization API key.
- publicKey string
- roleNames string[]
- Name of the role. This resource returns all the roles the user has in Atlas. - The following are valid roles: - ORG_OWNER
- ORG_GROUP_CREATOR
- ORG_BILLING_ADMIN
- ORG_READ_ONLY
- ORG_MEMBER
 - See MongoDB Atlas API - Return All Organization API Keys - Documentation for more information. 
- api_key_ strid 
- Unique identifier for the API key you want to update. Use the /orgs/{ORG-ID}/apiKeys endpoint to retrieve all API keys to which the authenticated user has access for the specified organization.
- description str
- Description of this Organization API key.
- public_key str
- role_names Sequence[str]
- Name of the role. This resource returns all the roles the user has in Atlas. - The following are valid roles: - ORG_OWNER
- ORG_GROUP_CREATOR
- ORG_BILLING_ADMIN
- ORG_READ_ONLY
- ORG_MEMBER
 - See MongoDB Atlas API - Return All Organization API Keys - Documentation for more information. 
- apiKey StringId 
- Unique identifier for the API key you want to update. Use the /orgs/{ORG-ID}/apiKeys endpoint to retrieve all API keys to which the authenticated user has access for the specified organization.
- description String
- Description of this Organization API key.
- publicKey String
- roleNames List<String>
- Name of the role. This resource returns all the roles the user has in Atlas. - The following are valid roles: - ORG_OWNER
- ORG_GROUP_CREATOR
- ORG_BILLING_ADMIN
- ORG_READ_ONLY
- ORG_MEMBER
 - See MongoDB Atlas API - Return All Organization API Keys - Documentation for more information. 
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the mongodbatlasTerraform Provider.