Show / Hide Table of Contents

Class GetCustomDbRoles

Inheritance
System.Object
GetCustomDbRoles
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Mongodbatlas
Assembly: Pulumi.Mongodbatlas.dll
Syntax
public static class GetCustomDbRoles

Methods

View Source

InvokeAsync(GetCustomDbRolesArgs, InvokeOptions)

mongodbatlas..getCustomDbRoles describe all Custom DB Roles. This represents a custom db roles.

NOTE: Groups and projects are synonymous terms. You may find groupId in the official documentation.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;

class MyStack : Stack
{
public MyStack()
{
    var testDatabaseUser = new Mongodbatlas.DatabaseUser("testDatabaseUser", new Mongodbatlas.DatabaseUserArgs
    {
        DatabaseName = "admin",
        Password = "test-acc-password",
        ProjectId = "<PROJECT-ID>",
        Roles = 
        {
            new Mongodbatlas.Inputs.DatabaseUserRoleArgs
            {
                DatabaseName = "admin",
                RoleName = "readWrite",
            },
            new Mongodbatlas.Inputs.DatabaseUserRoleArgs
            {
                DatabaseName = "admin",
                RoleName = "atlasAdmin",
            },
        },
        Username = "test-acc-username",
    });
    var testCustomDbRoles = Output.Create(Mongodbatlas.GetCustomDbRoles.InvokeAsync(new Mongodbatlas.GetCustomDbRolesArgs
    {
        ProjectId = mongodbatlas_custom_db_role.Test.Project_id,
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetCustomDbRolesResult> InvokeAsync(GetCustomDbRolesArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetCustomDbRolesArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetCustomDbRolesResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.