Role Definitions - Get

Role definition by name (GUID) değerini alın.

GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}?api-version=2022-04-01

URI Parametreleri

Name İçinde Gerekli Tür Description
roleDefinitionId
path True

string

Rol tanımının kimliği.

scope
path True

string

Rol tanımının kapsamı.

api-version
query True

string

Bu işlem için kullanılacak API sürümü.

Yanıtlar

Name Tür Description
200 OK

RoleDefinition

Tamam - Rol tanımı hakkındaki bilgileri döndürür.

Other Status Codes

ErrorResponse

İşlemin neden başarısız olduğunu açıklayan hata yanıtı.

İzinler

Bu API’yi çağırmak için aşağıdaki izinlere sahip bir rol atanması gerekir. Daha fazla bilgi için bkz. Azure yerleşik rolleri.

Microsoft.Authorization/roleDefinitions/read

Güvenlik

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 kullanıcı hesabınızın kimliğine bürünme

Örnekler

Get role definition by name

Sample Request

GET https://management.azure.com/scope/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId?api-version=2022-04-01

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"
}

Tanımlar

Name Description
ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

ErrorDetail

Hata ayrıntısı.

ErrorResponse

Hata yanıtı

Permission

Rol tanımı izinleri.

RoleDefinition

Rol tanımı.

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

Name Tür Description
info

object

Ek bilgiler.

type

string

Ek bilgi türü.

ErrorDetail

Hata ayrıntısı.

Name Tür Description
additionalInfo

ErrorAdditionalInfo[]

Hata ek bilgileri.

code

string

Hata kodu.

details

ErrorDetail[]

Hata ayrıntıları.

message

string

Hata iletisi.

target

string

Hata hedefi.

ErrorResponse

Hata yanıtı

Name Tür Description
error

ErrorDetail

Hata nesnesi.

Permission

Rol tanımı izinleri.

Name Tür Description
actions

string[]

İzin verilen eylemler.

dataActions

string[]

İzin Verilen Veri eylemleri.

notActions

string[]

Reddedilen eylemler.

notDataActions

string[]

Reddedilen Veri eylemleri.

RoleDefinition

Rol tanımı.

Name Tür Description
id

string

Rol tanımı kimliği.

name

string

Rol tanımı adı.

properties.assignableScopes

string[]

Rol tanımı atanabilir kapsamlar.

properties.createdBy

string

Atamayı oluşturan kullanıcının kimliği

properties.createdOn

string

Oluşturulduğu saat

properties.description

string

Rol tanımı açıklaması.

properties.permissions

Permission[]

Rol tanımı izinleri.

properties.roleName

string

Rol adı.

properties.type

string

Rol türü.

properties.updatedBy

string

Atamayı güncelleştiren kullanıcının kimliği

properties.updatedOn

string

Güncelleştirme zamanı

type

string

Rol tanımı türü.