Freigeben über


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
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);
static member GetAuthorizationRoleDefinitionAsync : Azure.ResourceManager.ArmResource * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>>
<Extension()>
Public Function GetAuthorizationRoleDefinitionAsync (armResource As ArmResource, roleDefinitionId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AuthorizationRoleDefinitionResource))

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:

GetAuthorizationRoleDefinitionAsync(ArmClient, ResourceIdentifier, ResourceIdentifier, CancellationToken)

Abrufen der Rollendefinition nach Name (GUID).

  • Anforderungspfad/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Vorgang IdRoleDefinitions_Get
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);
static member GetAuthorizationRoleDefinitionAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>>
<Extension()>
Public Function GetAuthorizationRoleDefinitionAsync (client As ArmClient, scope As ResourceIdentifier, roleDefinitionId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AuthorizationRoleDefinitionResource))

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: