This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.authorization.getRoleDefinition
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Get role definition by ID (GUID). Azure REST API version: 2022-05-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)
public static Output<GetRoleDefinitionResult> getRoleDefinition(GetRoleDefinitionArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:authorization:getRoleDefinition
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RoleDefinition stringId 
- The ID of the role definition.
- Scope string
- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
- RoleDefinition stringId 
- The ID of the role definition.
- Scope string
- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
- roleDefinition StringId 
- The ID of the role definition.
- scope String
- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
- roleDefinition stringId 
- The ID of the role definition.
- scope string
- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
- role_definition_ strid 
- The ID of the role definition.
- scope str
- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
- roleDefinition StringId 
- The ID of the role definition.
- scope String
- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
getRoleDefinition Result
The following output properties are available:
- CreatedBy string
- Id of the user who created the assignment
- CreatedOn string
- Time it was created
- Id string
- The role definition ID.
- Name string
- The role definition name.
- Type string
- The role definition type.
- UpdatedBy string
- Id of the user who updated the assignment
- UpdatedOn string
- Time it was updated
- AssignableScopes List<string>
- Role definition assignable scopes.
- Description string
- The role definition description.
- Permissions
List<Pulumi.Azure Native. Authorization. Outputs. Permission Response> 
- Role definition permissions.
- RoleName string
- The role name.
- RoleType string
- The role type.
- CreatedBy string
- Id of the user who created the assignment
- CreatedOn string
- Time it was created
- Id string
- The role definition ID.
- Name string
- The role definition name.
- Type string
- The role definition type.
- UpdatedBy string
- Id of the user who updated the assignment
- UpdatedOn string
- Time it was updated
- 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.
- createdBy String
- Id of the user who created the assignment
- createdOn String
- Time it was created
- id String
- The role definition ID.
- name String
- The role definition name.
- type String
- The role definition type.
- updatedBy String
- Id of the user who updated the assignment
- updatedOn String
- Time it was updated
- 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.
- createdBy string
- Id of the user who created the assignment
- createdOn string
- Time it was created
- id string
- The role definition ID.
- name string
- The role definition name.
- type string
- The role definition type.
- updatedBy string
- Id of the user who updated the assignment
- updatedOn string
- Time it was updated
- 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.
- created_by str
- Id of the user who created the assignment
- created_on str
- Time it was created
- id str
- The role definition ID.
- name str
- The role definition name.
- type str
- The role definition type.
- updated_by str
- Id of the user who updated the assignment
- updated_on str
- Time it was updated
- 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.
- createdBy String
- Id of the user who created the assignment
- createdOn String
- Time it was created
- id String
- The role definition ID.
- name String
- The role definition name.
- type String
- The role definition type.
- updatedBy String
- Id of the user who updated the assignment
- updatedOn String
- Time it was updated
- 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 
- Condition string
- The conditions on the role definition. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- ConditionVersion string
- Version of the condition. Currently the only accepted value is '2.0'
- Actions List<string>
- Allowed actions.
- DataActions List<string>
- Allowed Data actions.
- NotActions List<string>
- Denied actions.
- NotData List<string>Actions 
- Denied Data actions.
- Condition string
- The conditions on the role definition. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- ConditionVersion string
- Version of the condition. Currently the only accepted value is '2.0'
- Actions []string
- Allowed actions.
- DataActions []string
- Allowed Data actions.
- NotActions []string
- Denied actions.
- NotData []stringActions 
- Denied Data actions.
- condition String
- The conditions on the role definition. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- conditionVersion String
- Version of the condition. Currently the only accepted value is '2.0'
- actions List<String>
- Allowed actions.
- dataActions List<String>
- Allowed Data actions.
- notActions List<String>
- Denied actions.
- notData List<String>Actions 
- Denied Data actions.
- condition string
- The conditions on the role definition. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- conditionVersion string
- Version of the condition. Currently the only accepted value is '2.0'
- actions string[]
- Allowed actions.
- dataActions string[]
- Allowed Data actions.
- notActions string[]
- Denied actions.
- notData string[]Actions 
- Denied Data actions.
- condition str
- The conditions on the role definition. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- condition_version str
- Version of the condition. Currently the only accepted value is '2.0'
- actions Sequence[str]
- Allowed actions.
- data_actions Sequence[str]
- Allowed Data actions.
- not_actions Sequence[str]
- Denied actions.
- not_data_ Sequence[str]actions 
- Denied Data actions.
- condition String
- The conditions on the role definition. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- conditionVersion String
- Version of the condition. Currently the only accepted value is '2.0'
- actions List<String>
- Allowed actions.
- dataActions List<String>
- Allowed Data actions.
- notActions List<String>
- Denied actions.
- notData List<String>Actions 
- Denied Data actions.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi