MongoDB Atlas v3.30.0 published on Friday, Mar 21, 2025 by Pulumi
mongodbatlas.getResourcePolicy
Explore with Pulumi AI
Example Usage
Using getResourcePolicy
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 getResourcePolicy(args: GetResourcePolicyArgs, opts?: InvokeOptions): Promise<GetResourcePolicyResult>
function getResourcePolicyOutput(args: GetResourcePolicyOutputArgs, opts?: InvokeOptions): Output<GetResourcePolicyResult>def get_resource_policy(id: Optional[str] = None,
                        org_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetResourcePolicyResult
def get_resource_policy_output(id: Optional[pulumi.Input[str]] = None,
                        org_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetResourcePolicyResult]func LookupResourcePolicy(ctx *Context, args *LookupResourcePolicyArgs, opts ...InvokeOption) (*LookupResourcePolicyResult, error)
func LookupResourcePolicyOutput(ctx *Context, args *LookupResourcePolicyOutputArgs, opts ...InvokeOption) LookupResourcePolicyResultOutput> Note: This function is named LookupResourcePolicy in the Go SDK.
public static class GetResourcePolicy 
{
    public static Task<GetResourcePolicyResult> InvokeAsync(GetResourcePolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetResourcePolicyResult> Invoke(GetResourcePolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetResourcePolicyResult> getResourcePolicy(GetResourcePolicyArgs args, InvokeOptions options)
public static Output<GetResourcePolicyResult> getResourcePolicy(GetResourcePolicyArgs args, InvokeOptions options)
fn::invoke:
  function: mongodbatlas:index/getResourcePolicy:getResourcePolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
getResourcePolicy Result
The following output properties are available:
- CreatedBy GetUser 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.
Supporting Types
GetResourcePolicyCreatedByUser     
GetResourcePolicyLastUpdatedByUser      
GetResourcePolicyPolicy   
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the mongodbatlasTerraform Provider.