Class GetAuthBackendRoleId
Inheritance
System.Object
GetAuthBackendRoleId
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.Vault.AppRole
Assembly: Pulumi.Vault.dll
Syntax
public static class GetAuthBackendRoleId
Methods
View SourceInvokeAsync(GetAuthBackendRoleIdArgs, InvokeOptions)
Reads the Role ID of an AppRole from a Vault server.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var role = Output.Create(Vault.AppRole.GetAuthBackendRoleId.InvokeAsync(new Vault.AppRole.GetAuthBackendRoleIdArgs
{
Backend = "my-approle-backend",
RoleName = "my-role",
}));
this.Role_id = role.Apply(role => role.RoleId);
}
[Output("role-id")]
public Output<string> Role_id { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetAuthBackendRoleIdResult> InvokeAsync(GetAuthBackendRoleIdArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAuthBackendRoleIdArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetAuthBackendRoleIdResult> |