Show / Hide Table of Contents

Class RoleAssignment

Manages a V3 Role assignment within OpenStack Keystone.

Note: You must have admin privileges in your OpenStack cloud to use this resource.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var project1 = new OpenStack.Identity.Project("project1", new OpenStack.Identity.ProjectArgs
    {
    });
    var user1 = new OpenStack.Identity.User("user1", new OpenStack.Identity.UserArgs
    {
        DefaultProjectId = project1.Id,
    });
    var role1 = new OpenStack.Identity.Role("role1", new OpenStack.Identity.RoleArgs
    {
    });
    var roleAssignment1 = new OpenStack.Identity.RoleAssignment("roleAssignment1", new OpenStack.Identity.RoleAssignmentArgs
    {
        ProjectId = project1.Id,
        RoleId = role1.Id,
        UserId = user1.Id,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
RoleAssignment
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
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.OpenStack.Identity
Assembly: Pulumi.OpenStack.dll
Syntax
public class RoleAssignment : CustomResource

Constructors

View Source

RoleAssignment(String, RoleAssignmentArgs, CustomResourceOptions)

Create a RoleAssignment resource with the given unique name, arguments, and options.

Declaration
public RoleAssignment(string name, RoleAssignmentArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

RoleAssignmentArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

DomainId

The domain to assign the role in.

Declaration
public Output<string> DomainId { get; }
Property Value
Type Description
Output<System.String>
View Source

GroupId

The group to assign the role to.

Declaration
public Output<string> GroupId { get; }
Property Value
Type Description
Output<System.String>
View Source

ProjectId

The project to assign the role in.

Declaration
public Output<string> ProjectId { get; }
Property Value
Type Description
Output<System.String>
View Source

Region

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>
View Source

RoleId

The role to assign.

Declaration
public Output<string> RoleId { get; }
Property Value
Type Description
Output<System.String>
View Source

UserId

The user to assign the role to.

Declaration
public Output<string> UserId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, RoleAssignmentState, CustomResourceOptions)

Get an existing RoleAssignment resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static RoleAssignment Get(string name, Input<string> id, RoleAssignmentState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

RoleAssignmentState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
RoleAssignment
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.