AuthorizationExtensions.GetAuthorizationRoleDefinitionAsync Methode

Definition

Überlädt

GetAuthorizationRoleDefinitionAsync(ArmResource, ResourceIdentifier, CancellationToken)

Abrufen der Rollendefinition nach Name (GUID).

  • Anforderungspfad/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Vorgang IdRoleDefinitions_Get
GetAuthorizationRoleDefinitionAsync(ArmClient, ResourceIdentifier, ResourceIdentifier, CancellationToken)

Abrufen der Rollendefinition nach Name (GUID).

  • Anforderungspfad/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Vorgang IdRoleDefinitions_Get

GetAuthorizationRoleDefinitionAsync(ArmResource, ResourceIdentifier, CancellationToken)

Abrufen der Rollendefinition nach Name (GUID).

  • Anforderungspfad/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Vorgang IdRoleDefinitions_Get
C#
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>> GetAuthorizationRoleDefinitionAsync (this Azure.ResourceManager.ArmResource armResource, Azure.Core.ResourceIdentifier roleDefinitionId, System.Threading.CancellationToken cancellationToken = default);

Parameter

armResource
ArmResource

Der ArmResource instance, für den die Methode ausgeführt wird.

roleDefinitionId
ResourceIdentifier

Die ID der Rollendefinition.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

roleDefinitionId ist NULL.

Gilt für:

Azure SDK for .NET Preview und Azure SDK for .NET Latest
Produkt Versionen
Azure SDK for .NET Latest, Preview

GetAuthorizationRoleDefinitionAsync(ArmClient, ResourceIdentifier, ResourceIdentifier, CancellationToken)

Abrufen der Rollendefinition nach Name (GUID).

  • Anforderungspfad/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Vorgang IdRoleDefinitions_Get
C#
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>> GetAuthorizationRoleDefinitionAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.Core.ResourceIdentifier roleDefinitionId, System.Threading.CancellationToken cancellationToken = default);

Parameter

client
ArmClient

Der ArmClient instance, für den die Methode ausgeführt wird.

scope
ResourceIdentifier

Der Bereich, für den die Ressource gilt.

roleDefinitionId
ResourceIdentifier

Die ID der Rollendefinition.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

roleDefinitionId ist NULL.

Gilt für:

Azure SDK for .NET Preview und Azure SDK for .NET Latest
Produkt Versionen
Azure SDK for .NET Latest, Preview