Proxmox Virtual Environment (Proxmox VE)

v2.1.0 published on Friday, Dec 2, 2022 by Daniel Muehlbachler-Pietrzykowski

getRole

Using getRole

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRole(args: GetRoleArgs, opts?: InvokeOptions): Promise<GetRoleResult>
function getRoleOutput(args: GetRoleOutputArgs, opts?: InvokeOptions): Output<GetRoleResult>
def get_role(role_id: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetRoleResult
def get_role_output(role_id: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetRoleResult]
func GetRole(ctx *Context, args *GetRoleArgs, opts ...InvokeOption) (*GetRoleResult, error)
func GetRoleOutput(ctx *Context, args *GetRoleOutputArgs, opts ...InvokeOption) GetRoleResultOutput

> Note: This function is named GetRole in the Go SDK.

public static class GetRole 
{
    public static Task<GetRoleResult> InvokeAsync(GetRoleArgs args, InvokeOptions? opts = null)
    public static Output<GetRoleResult> Invoke(GetRoleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRoleResult> getRole(GetRoleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: proxmoxve:Permission/getRole:getRole
  arguments:
    # arguments dictionary

The following arguments are supported:

RoleId string
RoleId string
roleId String
roleId string
roleId String

getRole Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Privileges List<string>
RoleId string
Id string

The provider-assigned unique ID for this managed resource.

Privileges []string
RoleId string
id String

The provider-assigned unique ID for this managed resource.

privileges List<String>
roleId String
id string

The provider-assigned unique ID for this managed resource.

privileges string[]
roleId string
id str

The provider-assigned unique ID for this managed resource.

privileges Sequence[str]
role_id str
id String

The provider-assigned unique ID for this managed resource.

privileges List<String>
roleId String

Package Details

Repository
https://github.com/muhlba91/pulumi-proxmoxve
License
Apache-2.0
Notes

This Pulumi package is based on the proxmoxve Terraform Provider.