Freigeben über


AuthorizationRoleDefinitionCollection.Get Methode

Definition

Abrufen der Rollendefinition nach Name (GUID).

  • Anforderungspfad/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Vorgangs-IdRoleDefinitions_Get
public virtual Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource> Get (Azure.Core.ResourceIdentifier roleDefinitionId, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>
override this.Get : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>
Public Overridable Function Get (roleDefinitionId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AuthorizationRoleDefinitionResource)

Parameter

roleDefinitionId
ResourceIdentifier

Die ID der Rollendefinition.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

roleDefinitionId ist NULL.

Gilt für: