MongoDB Atlas v4.2.0 published on Friday, Jan 23, 2026 by Pulumi
MongoDB Atlas v4.2.0 published on Friday, Jan 23, 2026 by Pulumi
Example Usage
Using getProjectServiceAccounts
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 getProjectServiceAccounts(args: GetProjectServiceAccountsArgs, opts?: InvokeOptions): Promise<GetProjectServiceAccountsResult>
function getProjectServiceAccountsOutput(args: GetProjectServiceAccountsOutputArgs, opts?: InvokeOptions): Output<GetProjectServiceAccountsResult>def get_project_service_accounts(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectServiceAccountsResult
def get_project_service_accounts_output(project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectServiceAccountsResult]func LookupProjectServiceAccounts(ctx *Context, args *LookupProjectServiceAccountsArgs, opts ...InvokeOption) (*LookupProjectServiceAccountsResult, error)
func LookupProjectServiceAccountsOutput(ctx *Context, args *LookupProjectServiceAccountsOutputArgs, opts ...InvokeOption) LookupProjectServiceAccountsResultOutput> Note: This function is named LookupProjectServiceAccounts in the Go SDK.
public static class GetProjectServiceAccounts
{
public static Task<GetProjectServiceAccountsResult> InvokeAsync(GetProjectServiceAccountsArgs args, InvokeOptions? opts = null)
public static Output<GetProjectServiceAccountsResult> Invoke(GetProjectServiceAccountsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProjectServiceAccountsResult> getProjectServiceAccounts(GetProjectServiceAccountsArgs args, InvokeOptions options)
public static Output<GetProjectServiceAccountsResult> getProjectServiceAccounts(GetProjectServiceAccountsArgs args, InvokeOptions options)
fn::invoke:
function: mongodbatlas:index/getProjectServiceAccounts:getProjectServiceAccounts
arguments:
# arguments dictionaryThe following arguments are supported:
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
getProjectServiceAccounts Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Results
List<Get
Project Service Accounts Result> - List of returned documents that MongoDB Cloud provides when completing this request.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Results
[]Get
Project Service Accounts Result - List of returned documents that MongoDB Cloud provides when completing this request.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- results
List<Get
Project Service Accounts Result> - List of returned documents that MongoDB Cloud provides when completing this request.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- results
Get
Project Service Accounts Result[] - List of returned documents that MongoDB Cloud provides when completing this request.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- results
Sequence[Get
Project Service Accounts Result] - List of returned documents that MongoDB Cloud provides when completing this request.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- results List<Property Map>
- List of returned documents that MongoDB Cloud provides when completing this request.
Supporting Types
GetProjectServiceAccountsResult
- Client
Id string - The Client ID of the Service Account.
- Created
At string - The date that the Service Account was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Description string
- Human readable description for the Service Account.
- Name string
- Human-readable name for the Service Account.
- Roles List<string>
- A list of Project roles associated with the Service Account.
- Secrets
List<Get
Project Service Accounts Result Secret> - A list of secrets associated with the specified Service Account.
- Client
Id string - The Client ID of the Service Account.
- Created
At string - The date that the Service Account was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Description string
- Human readable description for the Service Account.
- Name string
- Human-readable name for the Service Account.
- Roles []string
- A list of Project roles associated with the Service Account.
- Secrets
[]Get
Project Service Accounts Result Secret - A list of secrets associated with the specified Service Account.
- client
Id String - The Client ID of the Service Account.
- created
At String - The date that the Service Account was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- description String
- Human readable description for the Service Account.
- name String
- Human-readable name for the Service Account.
- roles List<String>
- A list of Project roles associated with the Service Account.
- secrets
List<Get
Project Service Accounts Result Secret> - A list of secrets associated with the specified Service Account.
- client
Id string - The Client ID of the Service Account.
- created
At string - The date that the Service Account was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- description string
- Human readable description for the Service Account.
- name string
- Human-readable name for the Service Account.
- roles string[]
- A list of Project roles associated with the Service Account.
- secrets
Get
Project Service Accounts Result Secret[] - A list of secrets associated with the specified Service Account.
- client_
id str - The Client ID of the Service Account.
- created_
at str - The date that the Service Account was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- description str
- Human readable description for the Service Account.
- name str
- Human-readable name for the Service Account.
- roles Sequence[str]
- A list of Project roles associated with the Service Account.
- secrets
Sequence[Get
Project Service Accounts Result Secret] - A list of secrets associated with the specified Service Account.
- client
Id String - The Client ID of the Service Account.
- created
At String - The date that the Service Account was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- description String
- Human readable description for the Service Account.
- name String
- Human-readable name for the Service Account.
- roles List<String>
- A list of Project roles associated with the Service Account.
- secrets List<Property Map>
- A list of secrets associated with the specified Service Account.
GetProjectServiceAccountsResultSecret
- Created
At string - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Expires
At string - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Last
Used stringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Masked
Secret stringValue - The masked Service Account secret.
- Secret
Id string - Unique 24-hexadecimal digit string that identifies the secret.
- Created
At string - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Expires
At string - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Last
Used stringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Masked
Secret stringValue - The masked Service Account secret.
- Secret
Id string - Unique 24-hexadecimal digit string that identifies the secret.
- created
At String - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- expires
At String - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- last
Used StringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked
Secret StringValue - The masked Service Account secret.
- secret
Id String - Unique 24-hexadecimal digit string that identifies the secret.
- created
At string - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- expires
At string - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- last
Used stringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked
Secret stringValue - The masked Service Account secret.
- secret
Id string - Unique 24-hexadecimal digit string that identifies the secret.
- created_
at str - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- expires_
at str - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- last_
used_ strat - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked_
secret_ strvalue - The masked Service Account secret.
- secret_
id str - Unique 24-hexadecimal digit string that identifies the secret.
- created
At String - The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- expires
At String - The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- last
Used StringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked
Secret StringValue - The masked Service Account secret.
- secret
Id String - Unique 24-hexadecimal digit string that identifies the secret.
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.2.0 published on Friday, Jan 23, 2026 by Pulumi
