MongoDB Atlas v3.7.2, Mar 31 23
MongoDB Atlas v3.7.2, Mar 31 23
mongodbatlas.getProjectApiKeys
Explore with Pulumi AI
Using getProjectApiKeys
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 getProjectApiKeys(args: GetProjectApiKeysArgs, opts?: InvokeOptions): Promise<GetProjectApiKeysResult>
function getProjectApiKeysOutput(args: GetProjectApiKeysOutputArgs, opts?: InvokeOptions): Output<GetProjectApiKeysResult>
def get_project_api_keys(items_per_page: Optional[int] = None,
page_num: Optional[int] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectApiKeysResult
def get_project_api_keys_output(items_per_page: Optional[pulumi.Input[int]] = None,
page_num: Optional[pulumi.Input[int]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectApiKeysResult]
func LookupProjectApiKeys(ctx *Context, args *LookupProjectApiKeysArgs, opts ...InvokeOption) (*LookupProjectApiKeysResult, error)
func LookupProjectApiKeysOutput(ctx *Context, args *LookupProjectApiKeysOutputArgs, opts ...InvokeOption) LookupProjectApiKeysResultOutput
> Note: This function is named LookupProjectApiKeys
in the Go SDK.
public static class GetProjectApiKeys
{
public static Task<GetProjectApiKeysResult> InvokeAsync(GetProjectApiKeysArgs args, InvokeOptions? opts = null)
public static Output<GetProjectApiKeysResult> Invoke(GetProjectApiKeysInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectApiKeysResult> getProjectApiKeys(GetProjectApiKeysArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getProjectApiKeys:getProjectApiKeys
arguments:
# arguments dictionary
The following arguments are supported:
- Project
Id string Unique identifier for the project whose API keys you want to retrieve. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- 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
.
- Project
Id string Unique identifier for the project whose API keys you want to retrieve. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- 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
.
- project
Id String Unique identifier for the project whose API keys you want to retrieve. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- 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
.
- project
Id string Unique identifier for the project whose API keys you want to retrieve. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- 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
.
- project_
id str Unique identifier for the project whose API keys you want to retrieve. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- 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
.
- project
Id String Unique identifier for the project whose API keys you want to retrieve. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- 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
.
getProjectApiKeys Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Project
Id string - Results
List<Get
Project Api Keys Result> - Items
Per intPage - Page
Num int
- Id string
The provider-assigned unique ID for this managed resource.
- Project
Id string - Results
[]Get
Project Api Keys Result - Items
Per intPage - Page
Num int
- id String
The provider-assigned unique ID for this managed resource.
- project
Id String - results
List<Get
Project Api Keys Result> - items
Per IntegerPage - page
Num Integer
- id string
The provider-assigned unique ID for this managed resource.
- project
Id string - results
Get
Project Api Keys Result[] - items
Per numberPage - page
Num number
- id str
The provider-assigned unique ID for this managed resource.
- project_
id str - results
Sequence[Get
Project Api Keys Result] - items_
per_ intpage - page_
num int
- id String
The provider-assigned unique ID for this managed resource.
- project
Id String - results List<Property Map>
- items
Per NumberPage - page
Num Number
Supporting Types
GetProjectApiKeysResult
- Api
Key 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 Project API key.
- Private
Key string - Public
Key string - Role
Names List<string> Name of the role. This resource returns all the roles the user has in Atlas. The following are valid roles:
- Api
Key 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 Project API key.
- Private
Key string - Public
Key string - Role
Names []string Name of the role. This resource returns all the roles the user has in Atlas. The following are valid roles:
- api
Key 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 Project API key.
- private
Key String - public
Key String - role
Names List<String> Name of the role. This resource returns all the roles the user has in Atlas. The following are valid roles:
- api
Key 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 Project API key.
- private
Key string - public
Key string - role
Names string[] Name of the role. This resource returns all the roles the user has in Atlas. The following are valid roles:
- 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 Project API key.
- private_
key str - 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:
- api
Key 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 Project API key.
- private
Key String - public
Key String - role
Names List<String> Name of the role. This resource returns all the roles the user has in Atlas. The following are valid roles:
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
mongodbatlas
Terraform Provider.