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 dictionary
The following arguments are supported:
- Org
Id This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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.
- org
Id This property is required. 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.
- Org
Id 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.
- Resource
Policies List<GetResource Policies Resource Policy> - Results
List<Get
Resource Policies Result> - List of documents that MongoDB Cloud returns for this request.
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id 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.
- Resource
Policies []GetResource Policies Resource Policy - Results
[]Get
Resource Policies Result - List of documents that MongoDB Cloud returns for this request.
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id 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.
- resource
Policies List<GetResource Policies Resource Policy> - results
List<Get
Resource Policies Result> - List of documents that MongoDB Cloud returns for this request.
- id string
- The provider-assigned unique ID for this managed resource.
- org
Id 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.
- resource
Policies GetResource Policies Resource Policy[] - results
Get
Resource 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[Get
Resource Policies Result] - List of documents that MongoDB Cloud returns for this request.
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id 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.
- resource
Policies List<Property Map> - results List<Property Map>
- List of documents that MongoDB Cloud returns for this request.
Supporting Types
GetResourcePoliciesResourcePolicy
- Created
By User This property is required. GetResource Policies Resource Policy Created By User - The user that last updated the Atlas resource policy.
- Created
Date This property is required. string - Date and time in UTC when the Atlas resource policy was created.
- Id
This property is required. string - Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- Last
Updated By User This property is required. GetResource Policies Resource Policy Last Updated By User - The user that last updated the Atlas resource policy.
- Last
Updated Date This property is required. string - Date and time in UTC when the Atlas resource policy was last updated.
- Name
This property is required. string - Human-readable label that describes the Atlas resource policy.
- Org
Id This property is required. 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
This property is required. List<GetResource Policies Resource Policy Policy> - List of policies that make up the Atlas resource policy.
- Version
This property is required. string - A string that identifies the version of the Atlas resource policy.
- Created
By User This property is required. GetResource Policies Resource Policy Created By User - The user that last updated the Atlas resource policy.
- Created
Date This property is required. string - Date and time in UTC when the Atlas resource policy was created.
- Id
This property is required. string - Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- Last
Updated By User This property is required. GetResource Policies Resource Policy Last Updated By User - The user that last updated the Atlas resource policy.
- Last
Updated Date This property is required. string - Date and time in UTC when the Atlas resource policy was last updated.
- Name
This property is required. string - Human-readable label that describes the Atlas resource policy.
- Org
Id This property is required. 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
This property is required. []GetResource Policies Resource Policy Policy - List of policies that make up the Atlas resource policy.
- Version
This property is required. string - A string that identifies the version of the Atlas resource policy.
- created
By User This property is required. GetResource Policies Resource Policy Created By User - The user that last updated the Atlas resource policy.
- created
Date This property is required. String - Date and time in UTC when the Atlas resource policy was created.
- id
This property is required. String - Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- last
Updated By User This property is required. GetResource Policies Resource Policy Last Updated By User - The user that last updated the Atlas resource policy.
- last
Updated Date This property is required. String - Date and time in UTC when the Atlas resource policy was last updated.
- name
This property is required. String - Human-readable label that describes the Atlas resource policy.
- org
Id This property is required. 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
This property is required. List<GetResource Policies Resource Policy Policy> - List of policies that make up the Atlas resource policy.
- version
This property is required. String - A string that identifies the version of the Atlas resource policy.
- created
By User This property is required. GetResource Policies Resource Policy Created By User - The user that last updated the Atlas resource policy.
- created
Date This property is required. string - Date and time in UTC when the Atlas resource policy was created.
- id
This property is required. string - Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- last
Updated By User This property is required. GetResource Policies Resource Policy Last Updated By User - The user that last updated the Atlas resource policy.
- last
Updated Date This property is required. string - Date and time in UTC when the Atlas resource policy was last updated.
- name
This property is required. string - Human-readable label that describes the Atlas resource policy.
- org
Id This property is required. 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
This property is required. GetResource Policies Resource Policy Policy[] - List of policies that make up the Atlas resource policy.
- version
This property is required. string - A string that identifies the version of the Atlas resource policy.
- created_
by_ user This property is required. GetResource Policies Resource Policy Created By User - The user that last updated the Atlas resource policy.
- created_
date This property is required. str - Date and time in UTC when the Atlas resource policy was created.
- id
This property is required. str - Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- last_
updated_ by_ user This property is required. GetResource Policies Resource Policy Last Updated By User - The user that last updated the Atlas resource policy.
- last_
updated_ date This property is required. str - Date and time in UTC when the Atlas resource policy was last updated.
- name
This property is required. str - Human-readable label that describes the Atlas resource policy.
- org_
id This property is required. 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
This property is required. Sequence[GetResource Policies Resource Policy Policy] - List of policies that make up the Atlas resource policy.
- version
This property is required. str - A string that identifies the version of the Atlas resource policy.
- created
By User This property is required. Property Map - The user that last updated the Atlas resource policy.
- created
Date This property is required. String - Date and time in UTC when the Atlas resource policy was created.
- id
This property is required. String - Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- last
Updated By User This property is required. Property Map - The user that last updated the Atlas resource policy.
- last
Updated Date This property is required. String - Date and time in UTC when the Atlas resource policy was last updated.
- name
This property is required. String - Human-readable label that describes the Atlas resource policy.
- org
Id This property is required. 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
This property is required. List<Property Map> - List of policies that make up the Atlas resource policy.
- version
This property is required. String - A string that identifies the version of the Atlas resource policy.
GetResourcePoliciesResourcePolicyCreatedByUser
GetResourcePoliciesResourcePolicyLastUpdatedByUser
GetResourcePoliciesResourcePolicyPolicy
GetResourcePoliciesResult
- Created
By User This property is required. GetResource Policies Result Created By User - The user that last updated the Atlas resource policy.
- Created
Date This property is required. string - Date and time in UTC when the Atlas resource policy was created.
- Id
This property is required. string - Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- Last
Updated By User This property is required. GetResource Policies Result Last Updated By User - The user that last updated the Atlas resource policy.
- Last
Updated Date This property is required. string - Date and time in UTC when the Atlas resource policy was last updated.
- Name
This property is required. string - Human-readable label that describes the Atlas resource policy.
- Org
Id This property is required. 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
This property is required. List<GetResource Policies Result Policy> - List of policies that make up the Atlas resource policy.
- Version
This property is required. string - A string that identifies the version of the Atlas resource policy.
- Created
By User This property is required. GetResource Policies Result Created By User - The user that last updated the Atlas resource policy.
- Created
Date This property is required. string - Date and time in UTC when the Atlas resource policy was created.
- Id
This property is required. string - Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- Last
Updated By User This property is required. GetResource Policies Result Last Updated By User - The user that last updated the Atlas resource policy.
- Last
Updated Date This property is required. string - Date and time in UTC when the Atlas resource policy was last updated.
- Name
This property is required. string - Human-readable label that describes the Atlas resource policy.
- Org
Id This property is required. 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
This property is required. []GetResource Policies Result Policy - List of policies that make up the Atlas resource policy.
- Version
This property is required. string - A string that identifies the version of the Atlas resource policy.
- created
By User This property is required. GetResource Policies Result Created By User - The user that last updated the Atlas resource policy.
- created
Date This property is required. String - Date and time in UTC when the Atlas resource policy was created.
- id
This property is required. String - Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- last
Updated By User This property is required. GetResource Policies Result Last Updated By User - The user that last updated the Atlas resource policy.
- last
Updated Date This property is required. String - Date and time in UTC when the Atlas resource policy was last updated.
- name
This property is required. String - Human-readable label that describes the Atlas resource policy.
- org
Id This property is required. 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
This property is required. List<GetResource Policies Result Policy> - List of policies that make up the Atlas resource policy.
- version
This property is required. String - A string that identifies the version of the Atlas resource policy.
- created
By User This property is required. GetResource Policies Result Created By User - The user that last updated the Atlas resource policy.
- created
Date This property is required. string - Date and time in UTC when the Atlas resource policy was created.
- id
This property is required. string - Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- last
Updated By User This property is required. GetResource Policies Result Last Updated By User - The user that last updated the Atlas resource policy.
- last
Updated Date This property is required. string - Date and time in UTC when the Atlas resource policy was last updated.
- name
This property is required. string - Human-readable label that describes the Atlas resource policy.
- org
Id This property is required. 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
This property is required. GetResource Policies Result Policy[] - List of policies that make up the Atlas resource policy.
- version
This property is required. string - A string that identifies the version of the Atlas resource policy.
- created_
by_ user This property is required. GetResource Policies Result Created By User - The user that last updated the Atlas resource policy.
- created_
date This property is required. str - Date and time in UTC when the Atlas resource policy was created.
- id
This property is required. str - Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- last_
updated_ by_ user This property is required. GetResource Policies Result Last Updated By User - The user that last updated the Atlas resource policy.
- last_
updated_ date This property is required. str - Date and time in UTC when the Atlas resource policy was last updated.
- name
This property is required. str - Human-readable label that describes the Atlas resource policy.
- org_
id This property is required. 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
This property is required. Sequence[GetResource Policies Result Policy] - List of policies that make up the Atlas resource policy.
- version
This property is required. str - A string that identifies the version of the Atlas resource policy.
- created
By User This property is required. Property Map - The user that last updated the Atlas resource policy.
- created
Date This property is required. String - Date and time in UTC when the Atlas resource policy was created.
- id
This property is required. String - Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
- last
Updated By User This property is required. Property Map - The user that last updated the Atlas resource policy.
- last
Updated Date This property is required. String - Date and time in UTC when the Atlas resource policy was last updated.
- name
This property is required. String - Human-readable label that describes the Atlas resource policy.
- org
Id This property is required. 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
This property is required. List<Property Map> - List of policies that make up the Atlas resource policy.
- version
This property is required. 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
mongodbatlas
Terraform Provider.