Role Definitions - Get
Szerepkör-definíció lekérése név (GUID) alapján.
GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}?api-version=2022-04-01
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
role
|
path | True |
string |
A szerepkör-definíció azonosítója. |
scope
|
path | True |
string |
A szerepkör-definíció hatóköre. |
api-version
|
query | True |
string |
A művelethez használandó API-verzió. |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
OK – A szerepkör-definícióval kapcsolatos információkat adja vissza. |
|
Other Status Codes |
Hibaválasz, amely leírja, hogy a művelet miért hiúsult meg. |
Engedélyek
Az API meghívásához egy olyan szerepkörrel kell rendelnie, amely a következő engedélyekkel rendelkezik. További információ: Beépített Azure-szerepkörök.
Microsoft.Authorization/roleDefinitions/read
Biztonság
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | felhasználói fiók megszemélyesítése |
Példák
Get role definition by name
Sample Request
Sample Response
{
"properties": {
"roleName": "Role name",
"type": "roletype",
"description": "Role description",
"assignableScopes": [
"/subscriptions/subId"
],
"permissions": [
{
"actions": [
"action"
],
"notActions": [],
"dataActions": [
"dataAction"
],
"notDataActions": []
}
]
},
"id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId",
"type": "Microsoft.Authorization/roleDefinitions",
"name": "roleDefinitionId"
}
Definíciók
Name | Description |
---|---|
Error |
Az erőforrás-kezelési hiba további információi. |
Error |
A hiba részletei. |
Error |
Hibaválasz |
Permission |
Szerepkör-definíciós engedélyek. |
Role |
Szerepkör-definíció. |
ErrorAdditionalInfo
Az erőforrás-kezelési hiba további információi.
Name | Típus | Description |
---|---|---|
info |
object |
A további információk. |
type |
string |
A további adattípus. |
ErrorDetail
A hiba részletei.
Name | Típus | Description |
---|---|---|
additionalInfo |
A hiba további információi. |
|
code |
string |
A hibakód. |
details |
A hiba részletei. |
|
message |
string |
A hibaüzenet. |
target |
string |
A hiba célja. |
ErrorResponse
Hibaválasz
Name | Típus | Description |
---|---|---|
error |
A hibaobjektum. |
Permission
Szerepkör-definíciós engedélyek.
Name | Típus | Description |
---|---|---|
actions |
string[] |
Engedélyezett műveletek. |
dataActions |
string[] |
Engedélyezett adatműveletek. |
notActions |
string[] |
Megtagadott műveletek. |
notDataActions |
string[] |
Adatműveletek megtagadva. |
RoleDefinition
Szerepkör-definíció.
Name | Típus | Description |
---|---|---|
id |
string |
A szerepkör-definíció azonosítója. |
name |
string |
A szerepkör-definíció neve. |
properties.assignableScopes |
string[] |
Szerepkör-definícióhoz hozzárendelhető hatókörök. |
properties.createdBy |
string |
A hozzárendelést létrehozó felhasználó azonosítója |
properties.createdOn |
string |
Létrehozás időpontja |
properties.description |
string |
A szerepkör-definíció leírása. |
properties.permissions |
Szerepkör-definíciós engedélyek. |
|
properties.roleName |
string |
A szerepkör neve. |
properties.type |
string |
A szerepkör típusa. |
properties.updatedBy |
string |
A hozzárendelést módosító felhasználó azonosítója |
properties.updatedOn |
string |
Frissítés időpontja |
type |
string |
A szerepkör-definíció típusa. |