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,
});
}
}
Inherited Members
Namespace: Pulumi.OpenStack.Identity
Assembly: Pulumi.OpenStack.dll
Syntax
public class RoleAssignment : CustomResource
Constructors
View SourceRoleAssignment(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 SourceDomainId
The domain to assign the role in.
Declaration
public Output<string> DomainId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GroupId
The group to assign the role to.
Declaration
public Output<string> GroupId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ProjectId
The project to assign the role in.
Declaration
public Output<string> ProjectId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RoleId
The role to assign.
Declaration
public Output<string> RoleId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UserId
The user to assign the role to.
Declaration
public Output<string> UserId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |