Show / Hide Table of Contents

Class GetRole

Inheritance
System.Object
GetRole
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.OpenStack.Identity
Assembly: Pulumi.OpenStack.dll
Syntax
public static class GetRole

Methods

View Source

InvokeAsync(GetRoleArgs, InvokeOptions)

Use this data source to get the ID of an OpenStack role.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var admin = Output.Create(OpenStack.Identity.GetRole.InvokeAsync(new OpenStack.Identity.GetRoleArgs
    {
        Name = "admin",
    }));
}

}

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

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