1. Packages
  2. Azure Native v1
  3. API Docs
  4. authorization
  5. getRoleDefinition
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.authorization.getRoleDefinition

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Get role definition by name (GUID). API Version: 2018-01-01-preview.

    Using getRoleDefinition

    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 getRoleDefinition(args: GetRoleDefinitionArgs, opts?: InvokeOptions): Promise<GetRoleDefinitionResult>
    function getRoleDefinitionOutput(args: GetRoleDefinitionOutputArgs, opts?: InvokeOptions): Output<GetRoleDefinitionResult>
    def get_role_definition(role_definition_id: Optional[str] = None,
                            scope: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetRoleDefinitionResult
    def get_role_definition_output(role_definition_id: Optional[pulumi.Input[str]] = None,
                            scope: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetRoleDefinitionResult]
    func LookupRoleDefinition(ctx *Context, args *LookupRoleDefinitionArgs, opts ...InvokeOption) (*LookupRoleDefinitionResult, error)
    func LookupRoleDefinitionOutput(ctx *Context, args *LookupRoleDefinitionOutputArgs, opts ...InvokeOption) LookupRoleDefinitionResultOutput

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

    public static class GetRoleDefinition 
    {
        public static Task<GetRoleDefinitionResult> InvokeAsync(GetRoleDefinitionArgs args, InvokeOptions? opts = null)
        public static Output<GetRoleDefinitionResult> Invoke(GetRoleDefinitionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRoleDefinitionResult> getRoleDefinition(GetRoleDefinitionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:authorization:getRoleDefinition
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RoleDefinitionId string
    The ID of the role definition.
    Scope string
    The scope of the role definition.
    RoleDefinitionId string
    The ID of the role definition.
    Scope string
    The scope of the role definition.
    roleDefinitionId String
    The ID of the role definition.
    scope String
    The scope of the role definition.
    roleDefinitionId string
    The ID of the role definition.
    scope string
    The scope of the role definition.
    role_definition_id str
    The ID of the role definition.
    scope str
    The scope of the role definition.
    roleDefinitionId String
    The ID of the role definition.
    scope String
    The scope of the role definition.

    getRoleDefinition Result

    The following output properties are available:

    Id string
    The role definition ID.
    Name string
    The role definition name.
    Type string
    The role definition type.
    AssignableScopes List<string>
    Role definition assignable scopes.
    Description string
    The role definition description.
    Permissions List<Pulumi.AzureNative.Authorization.Outputs.PermissionResponse>
    Role definition permissions.
    RoleName string
    The role name.
    RoleType string
    The role type.
    Id string
    The role definition ID.
    Name string
    The role definition name.
    Type string
    The role definition type.
    AssignableScopes []string
    Role definition assignable scopes.
    Description string
    The role definition description.
    Permissions []PermissionResponse
    Role definition permissions.
    RoleName string
    The role name.
    RoleType string
    The role type.
    id String
    The role definition ID.
    name String
    The role definition name.
    type String
    The role definition type.
    assignableScopes List<String>
    Role definition assignable scopes.
    description String
    The role definition description.
    permissions List<PermissionResponse>
    Role definition permissions.
    roleName String
    The role name.
    roleType String
    The role type.
    id string
    The role definition ID.
    name string
    The role definition name.
    type string
    The role definition type.
    assignableScopes string[]
    Role definition assignable scopes.
    description string
    The role definition description.
    permissions PermissionResponse[]
    Role definition permissions.
    roleName string
    The role name.
    roleType string
    The role type.
    id str
    The role definition ID.
    name str
    The role definition name.
    type str
    The role definition type.
    assignable_scopes Sequence[str]
    Role definition assignable scopes.
    description str
    The role definition description.
    permissions Sequence[PermissionResponse]
    Role definition permissions.
    role_name str
    The role name.
    role_type str
    The role type.
    id String
    The role definition ID.
    name String
    The role definition name.
    type String
    The role definition type.
    assignableScopes List<String>
    Role definition assignable scopes.
    description String
    The role definition description.
    permissions List<Property Map>
    Role definition permissions.
    roleName String
    The role name.
    roleType String
    The role type.

    Supporting Types

    PermissionResponse

    Actions List<string>
    Allowed actions.
    DataActions List<string>
    Allowed Data actions.
    NotActions List<string>
    Denied actions.
    NotDataActions List<string>
    Denied Data actions.
    Actions []string
    Allowed actions.
    DataActions []string
    Allowed Data actions.
    NotActions []string
    Denied actions.
    NotDataActions []string
    Denied Data actions.
    actions List<String>
    Allowed actions.
    dataActions List<String>
    Allowed Data actions.
    notActions List<String>
    Denied actions.
    notDataActions List<String>
    Denied Data actions.
    actions string[]
    Allowed actions.
    dataActions string[]
    Allowed Data actions.
    notActions string[]
    Denied actions.
    notDataActions string[]
    Denied Data actions.
    actions Sequence[str]
    Allowed actions.
    data_actions Sequence[str]
    Allowed Data actions.
    not_actions Sequence[str]
    Denied actions.
    not_data_actions Sequence[str]
    Denied Data actions.
    actions List<String>
    Allowed actions.
    dataActions List<String>
    Allowed Data actions.
    notActions List<String>
    Denied actions.
    notDataActions List<String>
    Denied Data actions.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi