1. Packages
  2. Mongodbatlas Provider
  3. API Docs
  4. getResourcePolicies
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>
Copy
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]
Copy
func LookupResourcePolicies(ctx *Context, args *LookupResourcePoliciesArgs, opts ...InvokeOption) (*LookupResourcePoliciesResult, error)
func LookupResourcePoliciesOutput(ctx *Context, args *LookupResourcePoliciesOutputArgs, opts ...InvokeOption) LookupResourcePoliciesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetResourcePoliciesResult> getResourcePolicies(GetResourcePoliciesArgs args, InvokeOptions options)
public static Output<GetResourcePoliciesResult> getResourcePolicies(GetResourcePoliciesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: mongodbatlas:index/getResourcePolicies:getResourcePolicies
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OrgId 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.
OrgId 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.
orgId 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.
orgId 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.
orgId 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.
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<GetResourcePoliciesResourcePolicy>

Deprecated: This parameter is deprecated. Please transition to results.

Results List<GetResourcePoliciesResult>
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 []GetResourcePoliciesResourcePolicy

Deprecated: This parameter is deprecated. Please transition to results.

Results []GetResourcePoliciesResult
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<GetResourcePoliciesResourcePolicy>

Deprecated: This parameter is deprecated. Please transition to results.

results List<GetResourcePoliciesResult>
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 GetResourcePoliciesResourcePolicy[]

Deprecated: This parameter is deprecated. Please transition to results.

results GetResourcePoliciesResult[]
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[GetResourcePoliciesResourcePolicy]

Deprecated: This parameter is deprecated. Please transition to results.

results Sequence[GetResourcePoliciesResult]
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>

Deprecated: This parameter is deprecated. Please transition to results.

results List<Property Map>
List of documents that MongoDB Cloud returns for this request.

Supporting Types

GetResourcePoliciesResourcePolicy

CreatedByUser This property is required. GetResourcePoliciesResourcePolicyCreatedByUser
The user that last updated the Atlas resource policy.
CreatedDate 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.
LastUpdatedByUser This property is required. GetResourcePoliciesResourcePolicyLastUpdatedByUser
The user that last updated the Atlas resource policy.
LastUpdatedDate 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.
OrgId 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<GetResourcePoliciesResourcePolicyPolicy>
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.
CreatedByUser This property is required. GetResourcePoliciesResourcePolicyCreatedByUser
The user that last updated the Atlas resource policy.
CreatedDate 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.
LastUpdatedByUser This property is required. GetResourcePoliciesResourcePolicyLastUpdatedByUser
The user that last updated the Atlas resource policy.
LastUpdatedDate 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.
OrgId 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. []GetResourcePoliciesResourcePolicyPolicy
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.
createdByUser This property is required. GetResourcePoliciesResourcePolicyCreatedByUser
The user that last updated the Atlas resource policy.
createdDate 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.
lastUpdatedByUser This property is required. GetResourcePoliciesResourcePolicyLastUpdatedByUser
The user that last updated the Atlas resource policy.
lastUpdatedDate 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.
orgId 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<GetResourcePoliciesResourcePolicyPolicy>
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.
createdByUser This property is required. GetResourcePoliciesResourcePolicyCreatedByUser
The user that last updated the Atlas resource policy.
createdDate 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.
lastUpdatedByUser This property is required. GetResourcePoliciesResourcePolicyLastUpdatedByUser
The user that last updated the Atlas resource policy.
lastUpdatedDate 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.
orgId 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. GetResourcePoliciesResourcePolicyPolicy[]
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. GetResourcePoliciesResourcePolicyCreatedByUser
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. GetResourcePoliciesResourcePolicyLastUpdatedByUser
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[GetResourcePoliciesResourcePolicyPolicy]
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.
createdByUser This property is required. Property Map
The user that last updated the Atlas resource policy.
createdDate 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.
lastUpdatedByUser This property is required. Property Map
The user that last updated the Atlas resource policy.
lastUpdatedDate 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.
orgId 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

Id This property is required. string
Unique 24-hexadecimal character string that identifies a user.
Name This property is required. string
Human-readable label that describes a user.
Id This property is required. string
Unique 24-hexadecimal character string that identifies a user.
Name This property is required. string
Human-readable label that describes a user.
id This property is required. String
Unique 24-hexadecimal character string that identifies a user.
name This property is required. String
Human-readable label that describes a user.
id This property is required. string
Unique 24-hexadecimal character string that identifies a user.
name This property is required. string
Human-readable label that describes a user.
id This property is required. str
Unique 24-hexadecimal character string that identifies a user.
name This property is required. str
Human-readable label that describes a user.
id This property is required. String
Unique 24-hexadecimal character string that identifies a user.
name This property is required. String
Human-readable label that describes a user.

GetResourcePoliciesResourcePolicyLastUpdatedByUser

Id This property is required. string
Unique 24-hexadecimal character string that identifies a user.
Name This property is required. string
Human-readable label that describes a user.
Id This property is required. string
Unique 24-hexadecimal character string that identifies a user.
Name This property is required. string
Human-readable label that describes a user.
id This property is required. String
Unique 24-hexadecimal character string that identifies a user.
name This property is required. String
Human-readable label that describes a user.
id This property is required. string
Unique 24-hexadecimal character string that identifies a user.
name This property is required. string
Human-readable label that describes a user.
id This property is required. str
Unique 24-hexadecimal character string that identifies a user.
name This property is required. str
Human-readable label that describes a user.
id This property is required. String
Unique 24-hexadecimal character string that identifies a user.
name This property is required. String
Human-readable label that describes a user.

GetResourcePoliciesResourcePolicyPolicy

Body This property is required. string
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
Id This property is required. string
Unique 24-hexadecimal character string that identifies the policy.
Body This property is required. string
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
Id This property is required. string
Unique 24-hexadecimal character string that identifies the policy.
body This property is required. String
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
id This property is required. String
Unique 24-hexadecimal character string that identifies the policy.
body This property is required. string
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
id This property is required. string
Unique 24-hexadecimal character string that identifies the policy.
body This property is required. str
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
id This property is required. str
Unique 24-hexadecimal character string that identifies the policy.
body This property is required. String
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
id This property is required. String
Unique 24-hexadecimal character string that identifies the policy.

GetResourcePoliciesResult

CreatedByUser This property is required. GetResourcePoliciesResultCreatedByUser
The user that last updated the Atlas resource policy.
CreatedDate 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.
LastUpdatedByUser This property is required. GetResourcePoliciesResultLastUpdatedByUser
The user that last updated the Atlas resource policy.
LastUpdatedDate 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.
OrgId 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<GetResourcePoliciesResultPolicy>
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.
CreatedByUser This property is required. GetResourcePoliciesResultCreatedByUser
The user that last updated the Atlas resource policy.
CreatedDate 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.
LastUpdatedByUser This property is required. GetResourcePoliciesResultLastUpdatedByUser
The user that last updated the Atlas resource policy.
LastUpdatedDate 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.
OrgId 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. []GetResourcePoliciesResultPolicy
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.
createdByUser This property is required. GetResourcePoliciesResultCreatedByUser
The user that last updated the Atlas resource policy.
createdDate 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.
lastUpdatedByUser This property is required. GetResourcePoliciesResultLastUpdatedByUser
The user that last updated the Atlas resource policy.
lastUpdatedDate 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.
orgId 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<GetResourcePoliciesResultPolicy>
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.
createdByUser This property is required. GetResourcePoliciesResultCreatedByUser
The user that last updated the Atlas resource policy.
createdDate 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.
lastUpdatedByUser This property is required. GetResourcePoliciesResultLastUpdatedByUser
The user that last updated the Atlas resource policy.
lastUpdatedDate 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.
orgId 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. GetResourcePoliciesResultPolicy[]
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. GetResourcePoliciesResultCreatedByUser
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. GetResourcePoliciesResultLastUpdatedByUser
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[GetResourcePoliciesResultPolicy]
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.
createdByUser This property is required. Property Map
The user that last updated the Atlas resource policy.
createdDate 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.
lastUpdatedByUser This property is required. Property Map
The user that last updated the Atlas resource policy.
lastUpdatedDate 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.
orgId 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

Id This property is required. string
Unique 24-hexadecimal character string that identifies a user.
Name This property is required. string
Human-readable label that describes a user.
Id This property is required. string
Unique 24-hexadecimal character string that identifies a user.
Name This property is required. string
Human-readable label that describes a user.
id This property is required. String
Unique 24-hexadecimal character string that identifies a user.
name This property is required. String
Human-readable label that describes a user.
id This property is required. string
Unique 24-hexadecimal character string that identifies a user.
name This property is required. string
Human-readable label that describes a user.
id This property is required. str
Unique 24-hexadecimal character string that identifies a user.
name This property is required. str
Human-readable label that describes a user.
id This property is required. String
Unique 24-hexadecimal character string that identifies a user.
name This property is required. String
Human-readable label that describes a user.

GetResourcePoliciesResultLastUpdatedByUser

Id This property is required. string
Unique 24-hexadecimal character string that identifies a user.
Name This property is required. string
Human-readable label that describes a user.
Id This property is required. string
Unique 24-hexadecimal character string that identifies a user.
Name This property is required. string
Human-readable label that describes a user.
id This property is required. String
Unique 24-hexadecimal character string that identifies a user.
name This property is required. String
Human-readable label that describes a user.
id This property is required. string
Unique 24-hexadecimal character string that identifies a user.
name This property is required. string
Human-readable label that describes a user.
id This property is required. str
Unique 24-hexadecimal character string that identifies a user.
name This property is required. str
Human-readable label that describes a user.
id This property is required. String
Unique 24-hexadecimal character string that identifies a user.
name This property is required. String
Human-readable label that describes a user.

GetResourcePoliciesResultPolicy

Body This property is required. string
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
Id This property is required. string
Unique 24-hexadecimal character string that identifies the policy.
Body This property is required. string
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
Id This property is required. string
Unique 24-hexadecimal character string that identifies the policy.
body This property is required. String
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
id This property is required. String
Unique 24-hexadecimal character string that identifies the policy.
body This property is required. string
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
id This property is required. string
Unique 24-hexadecimal character string that identifies the policy.
body This property is required. str
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
id This property is required. str
Unique 24-hexadecimal character string that identifies the policy.
body This property is required. String
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
id This property is required. String
Unique 24-hexadecimal character string that identifies the policy.

Package Details

Repository
MongoDB Atlas pulumi/pulumi-mongodbatlas
License
Apache-2.0
Notes
This Pulumi package is based on the mongodbatlas Terraform Provider.