MongoDB Atlas v3.30.0 published on Friday, Mar 21, 2025 by Pulumi
mongodbatlas.getResourcePolicies
Explore with Pulumi AI
Example Usage
Using getResourcePolicies
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 getResourcePolicies(args: GetResourcePoliciesArgs, opts?: InvokeOptions): Promise<GetResourcePoliciesResult>
function getResourcePoliciesOutput(args: GetResourcePoliciesOutputArgs, opts?: InvokeOptions): Output<GetResourcePoliciesResult>def get_resource_policies(org_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetResourcePoliciesResult
def get_resource_policies_output(org_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetResourcePoliciesResult]func LookupResourcePolicies(ctx *Context, args *LookupResourcePoliciesArgs, opts ...InvokeOption) (*LookupResourcePoliciesResult, error)
func LookupResourcePoliciesOutput(ctx *Context, args *LookupResourcePoliciesOutputArgs, opts ...InvokeOption) LookupResourcePoliciesResultOutput> Note: This function is named LookupResourcePolicies in the Go SDK.
public static class GetResourcePolicies 
{
    public static Task<GetResourcePoliciesResult> InvokeAsync(GetResourcePoliciesArgs args, InvokeOptions? opts = null)
    public static Output<GetResourcePoliciesResult> Invoke(GetResourcePoliciesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetResourcePoliciesResult> getResourcePolicies(GetResourcePoliciesArgs args, InvokeOptions options)
public static Output<GetResourcePoliciesResult> getResourcePolicies(GetResourcePoliciesArgs args, InvokeOptions options)
fn::invoke:
  function: mongodbatlas:index/getResourcePolicies:getResourcePolicies
  arguments:
    # arguments dictionaryThe following arguments are supported:
- OrgId string
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- OrgId string
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- orgId String
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- orgId string
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- org_id str
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- orgId String
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
getResourcePolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- OrgId string
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- ResourcePolicies List<GetResource Policies Resource Policy> 
- Results
List<GetResource Policies Result> 
- List of documents that MongoDB Cloud returns for this request.
- Id string
- The provider-assigned unique ID for this managed resource.
- OrgId string
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- ResourcePolicies []GetResource Policies Resource Policy 
- Results
[]GetResource Policies Result 
- List of documents that MongoDB Cloud returns for this request.
- id String
- The provider-assigned unique ID for this managed resource.
- orgId String
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- resourcePolicies List<GetResource Policies Resource Policy> 
- results
List<GetResource Policies Result> 
- List of documents that MongoDB Cloud returns for this request.
- id string
- The provider-assigned unique ID for this managed resource.
- orgId string
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- resourcePolicies GetResource Policies Resource Policy[] 
- results
GetResource Policies Result[] 
- List of documents that MongoDB Cloud returns for this request.
- id str
- The provider-assigned unique ID for this managed resource.
- org_id str
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- resource_policies Sequence[GetResource Policies Resource Policy] 
- results
Sequence[GetResource Policies Result] 
- List of documents that MongoDB Cloud returns for this request.
- id String
- The provider-assigned unique ID for this managed resource.
- orgId String
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- resourcePolicies List<Property Map>
- results List<Property Map>
- List of documents that MongoDB Cloud returns for this request.
Supporting Types
GetResourcePoliciesResourcePolicy    
- CreatedBy GetUser Resource Policies Resource Policy Created By User 
- The user that last updated the Atlas resource policy.
- CreatedDate string
- Date and time in UTC when the Atlas resource policy was created.
- Id string
- Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- LastUpdated GetBy User Resource Policies Resource Policy Last Updated By User 
- The user that last updated the Atlas resource policy.
- LastUpdated stringDate 
- Date and time in UTC when the Atlas resource policy was last updated.
- Name string
- Human-readable label that describes the Atlas resource policy.
- OrgId string
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- Policies
List<GetResource Policies Resource Policy Policy> 
- List of policies that make up the Atlas resource policy.
- Version string
- A string that identifies the version of the Atlas resource policy.
- CreatedBy GetUser Resource Policies Resource Policy Created By User 
- The user that last updated the Atlas resource policy.
- CreatedDate string
- Date and time in UTC when the Atlas resource policy was created.
- Id string
- Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- LastUpdated GetBy User Resource Policies Resource Policy Last Updated By User 
- The user that last updated the Atlas resource policy.
- LastUpdated stringDate 
- Date and time in UTC when the Atlas resource policy was last updated.
- Name string
- Human-readable label that describes the Atlas resource policy.
- OrgId string
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- Policies
[]GetResource Policies Resource Policy Policy 
- List of policies that make up the Atlas resource policy.
- Version string
- A string that identifies the version of the Atlas resource policy.
- createdBy GetUser Resource Policies Resource Policy Created By User 
- The user that last updated the Atlas resource policy.
- createdDate String
- Date and time in UTC when the Atlas resource policy was created.
- id String
- Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- lastUpdated GetBy User Resource Policies Resource Policy Last Updated By User 
- The user that last updated the Atlas resource policy.
- lastUpdated StringDate 
- Date and time in UTC when the Atlas resource policy was last updated.
- name String
- Human-readable label that describes the Atlas resource policy.
- orgId String
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- policies
List<GetResource Policies Resource Policy Policy> 
- List of policies that make up the Atlas resource policy.
- version String
- A string that identifies the version of the Atlas resource policy.
- createdBy GetUser Resource Policies Resource Policy Created By User 
- The user that last updated the Atlas resource policy.
- createdDate string
- Date and time in UTC when the Atlas resource policy was created.
- id string
- Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- lastUpdated GetBy User Resource Policies Resource Policy Last Updated By User 
- The user that last updated the Atlas resource policy.
- lastUpdated stringDate 
- Date and time in UTC when the Atlas resource policy was last updated.
- name string
- Human-readable label that describes the Atlas resource policy.
- orgId string
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- policies
GetResource Policies Resource Policy Policy[] 
- List of policies that make up the Atlas resource policy.
- version string
- A string that identifies the version of the Atlas resource policy.
- created_by_ Getuser Resource Policies Resource Policy Created By User 
- The user that last updated the Atlas resource policy.
- created_date str
- Date and time in UTC when the Atlas resource policy was created.
- id str
- Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- last_updated_ Getby_ user Resource Policies Resource Policy Last Updated By User 
- The user that last updated the Atlas resource policy.
- last_updated_ strdate 
- Date and time in UTC when the Atlas resource policy was last updated.
- name str
- Human-readable label that describes the Atlas resource policy.
- org_id str
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- policies
Sequence[GetResource Policies Resource Policy Policy] 
- List of policies that make up the Atlas resource policy.
- version str
- A string that identifies the version of the Atlas resource policy.
- createdBy Property MapUser 
- The user that last updated the Atlas resource policy.
- createdDate String
- Date and time in UTC when the Atlas resource policy was created.
- id String
- Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- lastUpdated Property MapBy User 
- The user that last updated the Atlas resource policy.
- lastUpdated StringDate 
- Date and time in UTC when the Atlas resource policy was last updated.
- name String
- Human-readable label that describes the Atlas resource policy.
- orgId String
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- policies List<Property Map>
- List of policies that make up the Atlas resource policy.
- version String
- A string that identifies the version of the Atlas resource policy.
GetResourcePoliciesResourcePolicyCreatedByUser       
GetResourcePoliciesResourcePolicyLastUpdatedByUser        
GetResourcePoliciesResourcePolicyPolicy     
GetResourcePoliciesResult   
- CreatedBy GetUser Resource Policies Result Created By User 
- The user that last updated the Atlas resource policy.
- CreatedDate string
- Date and time in UTC when the Atlas resource policy was created.
- Id string
- Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- LastUpdated GetBy User Resource Policies Result Last Updated By User 
- The user that last updated the Atlas resource policy.
- LastUpdated stringDate 
- Date and time in UTC when the Atlas resource policy was last updated.
- Name string
- Human-readable label that describes the Atlas resource policy.
- OrgId string
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- Policies
List<GetResource Policies Result Policy> 
- List of policies that make up the Atlas resource policy.
- Version string
- A string that identifies the version of the Atlas resource policy.
- CreatedBy GetUser Resource Policies Result Created By User 
- The user that last updated the Atlas resource policy.
- CreatedDate string
- Date and time in UTC when the Atlas resource policy was created.
- Id string
- Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- LastUpdated GetBy User Resource Policies Result Last Updated By User 
- The user that last updated the Atlas resource policy.
- LastUpdated stringDate 
- Date and time in UTC when the Atlas resource policy was last updated.
- Name string
- Human-readable label that describes the Atlas resource policy.
- OrgId string
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- Policies
[]GetResource Policies Result Policy 
- List of policies that make up the Atlas resource policy.
- Version string
- A string that identifies the version of the Atlas resource policy.
- createdBy GetUser Resource Policies Result Created By User 
- The user that last updated the Atlas resource policy.
- createdDate String
- Date and time in UTC when the Atlas resource policy was created.
- id String
- Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- lastUpdated GetBy User Resource Policies Result Last Updated By User 
- The user that last updated the Atlas resource policy.
- lastUpdated StringDate 
- Date and time in UTC when the Atlas resource policy was last updated.
- name String
- Human-readable label that describes the Atlas resource policy.
- orgId String
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- policies
List<GetResource Policies Result Policy> 
- List of policies that make up the Atlas resource policy.
- version String
- A string that identifies the version of the Atlas resource policy.
- createdBy GetUser Resource Policies Result Created By User 
- The user that last updated the Atlas resource policy.
- createdDate string
- Date and time in UTC when the Atlas resource policy was created.
- id string
- Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- lastUpdated GetBy User Resource Policies Result Last Updated By User 
- The user that last updated the Atlas resource policy.
- lastUpdated stringDate 
- Date and time in UTC when the Atlas resource policy was last updated.
- name string
- Human-readable label that describes the Atlas resource policy.
- orgId string
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- policies
GetResource Policies Result Policy[] 
- List of policies that make up the Atlas resource policy.
- version string
- A string that identifies the version of the Atlas resource policy.
- created_by_ Getuser Resource Policies Result Created By User 
- The user that last updated the Atlas resource policy.
- created_date str
- Date and time in UTC when the Atlas resource policy was created.
- id str
- Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- last_updated_ Getby_ user Resource Policies Result Last Updated By User 
- The user that last updated the Atlas resource policy.
- last_updated_ strdate 
- Date and time in UTC when the Atlas resource policy was last updated.
- name str
- Human-readable label that describes the Atlas resource policy.
- org_id str
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- policies
Sequence[GetResource Policies Result Policy] 
- List of policies that make up the Atlas resource policy.
- version str
- A string that identifies the version of the Atlas resource policy.
- createdBy Property MapUser 
- The user that last updated the Atlas resource policy.
- createdDate String
- Date and time in UTC when the Atlas resource policy was created.
- id String
- Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- lastUpdated Property MapBy User 
- The user that last updated the Atlas resource policy.
- lastUpdated StringDate 
- Date and time in UTC when the Atlas resource policy was last updated.
- name String
- Human-readable label that describes the Atlas resource policy.
- orgId String
- Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- policies List<Property Map>
- List of policies that make up the Atlas resource policy.
- version String
- A string that identifies the version of the Atlas resource policy.
GetResourcePoliciesResultCreatedByUser      
GetResourcePoliciesResultLastUpdatedByUser       
GetResourcePoliciesResultPolicy    
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the mongodbatlasTerraform Provider.