Delen via


Role Definitions - Get By Id

Hiermee haalt u een roldefinitie op basis van id op.

GET https://management.azure.com/{roleId}?disambiguation_dummy&api-version=2022-04-01

URI-parameters

Name In Vereist Type Description
roleId
path True

string

De volledig gekwalificeerde roldefinitie-id. Gebruik de indeling /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} voor roldefinities op abonnementsniveau of /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} voor roldefinities op tenantniveau.

api-version
query True

string

minLength: 1

De API-versie die voor deze bewerking moet worden gebruikt.

Antwoorden

Name Type Description
200 OK

RoleDefinition

OK: retourneert informatie over de roldefinitie.

Other Status Codes

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Get role definition by ID

Voorbeeldaanvraag

GET https://management.azure.com/roleDefinitionId?disambiguation_dummy&api-version=2022-04-01

Voorbeeldrespons

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

Definities

Name Description
ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

Permission

Machtigingen voor roldefinities.

RoleDefinition

Roldefinitie.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

Permission

Machtigingen voor roldefinities.

Name Type Description
actions

string[]

Toegestane acties.

dataActions

string[]

Toegestane gegevensacties.

notActions

string[]

Geweigerde acties.

notDataActions

string[]

Gegevensacties geweigerd.

RoleDefinition

Roldefinitie.

Name Type Description
id

string

De id van de roldefinitie.

name

string

De naam van de roldefinitie.

properties.assignableScopes

string[]

Toewijsbare bereiken voor roldefinities.

properties.createdBy

string

Id van de gebruiker die de toewijzing heeft gemaakt

properties.createdOn

string (date-time)

Tijdstip waarop het is gemaakt

properties.description

string

De beschrijving van de roldefinitie.

properties.permissions

Permission[]

Machtigingen voor roldefinities.

properties.roleName

string

De naam van de rol.

properties.type

string

Het roltype.

properties.updatedBy

string

Id van de gebruiker die de toewijzing heeft bijgewerkt

properties.updatedOn

string (date-time)

Tijdstip waarop het is bijgewerkt

type

string

Het type roldefinitie.