1. Packages
  2. Grafana Cloud
  3. API Docs
  4. getRole
Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse

grafana.getRole

Explore with Pulumi AI

grafana logo
Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse

    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(name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetRoleResult
    def get_role_output(name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetRoleResult]
    func LookupRole(ctx *Context, args *LookupRoleArgs, opts ...InvokeOption) (*LookupRoleResult, error)
    func LookupRoleOutput(ctx *Context, args *LookupRoleOutputArgs, opts ...InvokeOption) LookupRoleResultOutput

    > Note: This function is named LookupRole 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: grafana:index/getRole:getRole
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name string
    name String
    name string
    name str
    name String

    getRole Result

    The following output properties are available:

    Description string
    DisplayName string
    Global bool
    Group string
    Hidden bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    OrgId string
    Permissions List<Pulumiverse.Grafana.Outputs.GetRolePermission>
    Uid string
    Version int
    Description string
    DisplayName string
    Global bool
    Group string
    Hidden bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    OrgId string
    Permissions []GetRolePermission
    Uid string
    Version int
    description String
    displayName String
    global Boolean
    group String
    hidden Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    orgId String
    permissions List<GetRolePermission>
    uid String
    version Integer
    description string
    displayName string
    global boolean
    group string
    hidden boolean
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    orgId string
    permissions GetRolePermission[]
    uid string
    version number
    description str
    display_name str
    global_ bool
    group str
    hidden bool
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    org_id str
    permissions Sequence[GetRolePermission]
    uid str
    version int
    description String
    displayName String
    global Boolean
    group String
    hidden Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    orgId String
    permissions List<Property Map>
    uid String
    version Number

    Supporting Types

    GetRolePermission

    Action string
    Specific action users granted with the role will be allowed to perform (for example: users:read)
    Scope string
    Scope to restrict the action to a set of resources (for example: users:* or roles:customrole1)
    Action string
    Specific action users granted with the role will be allowed to perform (for example: users:read)
    Scope string
    Scope to restrict the action to a set of resources (for example: users:* or roles:customrole1)
    action String
    Specific action users granted with the role will be allowed to perform (for example: users:read)
    scope String
    Scope to restrict the action to a set of resources (for example: users:* or roles:customrole1)
    action string
    Specific action users granted with the role will be allowed to perform (for example: users:read)
    scope string
    Scope to restrict the action to a set of resources (for example: users:* or roles:customrole1)
    action str
    Specific action users granted with the role will be allowed to perform (for example: users:read)
    scope str
    Scope to restrict the action to a set of resources (for example: users:* or roles:customrole1)
    action String
    Specific action users granted with the role will be allowed to perform (for example: users:read)
    scope String
    Scope to restrict the action to a set of resources (for example: users:* or roles:customrole1)

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse