Role Definitions - List
Get all role definitions that are applicable at scope and above.
GET {vaultBaseUrl}/{scope}/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3
GET {vaultBaseUrl}/{scope}/providers/Microsoft.Authorization/roleDefinitions?$filter={$filter}&api-version=7.3
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
scope
|
path | True |
|
The scope of the role definition. |
|
vault
|
path | True |
|
The vault name, for example https://myvault.vault.azure.net. |
|
api-version
|
query | True |
|
Client API version. |
|
$filter
|
query |
|
The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK - Returns an array of role definitions. |
|
| Other Status Codes |
Key Vault error response describing why the operation failed. |
Examples
ListRoleDefinitions
Sample Request
GET https://myvault.vault.azure.net//keys/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3
Sample Response
{
"value": [
{
"properties": {
"roleName": "Role name",
"type": "roletype",
"description": "Role description",
"assignableScopes": [
"/keys"
],
"permissions": [
{
"actions": [
"get"
],
"notActions": []
}
]
},
"id": "/keys/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId",
"type": "Microsoft.Authorization/roleDefinitions",
"name": "roleDefinitionId"
}
]
}
Definitions
| Error |
The key vault server error. |
|
Key |
The key vault error exception. |
| Permission |
Role definition permissions. |
|
Role |
Role definition. |
|
Role |
Role definition list operation result. |
|
Role |
The role definition type. |
|
Role |
The role type. |
Error
The key vault server error.
| Name | Type | Description |
|---|---|---|
| code |
|
The error code. |
| innererror |
The key vault server error. |
|
| message |
|
The error message. |
KeyVaultError
The key vault error exception.
| Name | Type | Description |
|---|---|---|
| error |
The key vault server error. |
Permission
Role definition permissions.
| Name | Type | Description |
|---|---|---|
| actions |
|
Action permissions that are granted. |
| dataActions |
|
Data action permissions that are granted. |
| notActions |
|
Action permissions that are excluded but not denied. They may be granted by other role definitions assigned to a principal. |
| notDataActions |
|
Data action permissions that are excluded but not denied. They may be granted by other role definitions assigned to a principal. |
RoleDefinition
Role definition.
| Name | Type | Description |
|---|---|---|
| id |
|
The role definition ID. |
| name |
|
The role definition name. |
| properties.assignableScopes |
|
Role definition assignable scopes. |
| properties.description |
|
The role definition description. |
| properties.permissions |
Role definition permissions. |
|
| properties.roleName |
|
The role name. |
| properties.type |
The role type. |
|
| type |
The role definition type. |
RoleDefinitionListResult
Role definition list operation result.
| Name | Type | Description |
|---|---|---|
| nextLink |
|
The URL to use for getting the next set of results. |
| value |
Role definition list. |
RoleDefinitionType
The role definition type.
| Name | Type | Description |
|---|---|---|
| Microsoft.Authorization/roleDefinitions |
|
RoleType
The role type.
| Name | Type | Description |
|---|---|---|
| AKVBuiltInRole |
|
Built in role. |
| CustomRole |
|
Custom role. |