Freigeben über


AuthorizationExtensions.GetAzurePermissionsForResourcesAsync Methode

Definition

Ruft alle Berechtigungen ab, über die der Aufrufer für eine Ressource verfügt.

  • Anforderungspfad/abonnements/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions
  • Vorgangs-IdAzurePermissionsForResource_List
public static Azure.AsyncPageable<Azure.ResourceManager.Authorization.Models.RoleDefinitionPermission> GetAzurePermissionsForResourcesAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, System.Threading.CancellationToken cancellationToken = default);
static member GetAzurePermissionsForResourcesAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Authorization.Models.RoleDefinitionPermission>
<Extension()>
Public Function GetAzurePermissionsForResourcesAsync (resourceGroupResource As ResourceGroupResource, resourceProviderNamespace As String, parentResourcePath As String, resourceType As String, resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of RoleDefinitionPermission)

Parameter

resourceGroupResource
ResourceGroupResource

Der ResourceGroupResource instance die -Methode ausgeführt wird.

resourceProviderNamespace
String

Der Namespace des Ressourcenanbieters.

parentResourcePath
String

Die identität der übergeordneten Ressource.

resourceType
String

Der Ressourcentyp der Ressource.

resourceName
String

Der Name der Ressource, für die die Berechtigungen abgerufen werden sollen.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Eine asynchrone Auflistung von RoleDefinitionPermission , die mehrere Dienstanforderungen durchlaufen kann.

Ausnahmen

resourceName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

resourceProviderNamespace, parentResourcePath, resourceType oder resourceName ist NULL.

Gilt für: