Freigeben über


AuthorizationExtensions.GetAzurePermissionsForResources Methode

Definition

Ruft alle Berechtigungen ab, die der Aufrufer für eine Ressource hat.

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

Parameter

resourceGroupResource
ResourceGroupResource

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

resourceProviderNamespace
String

Der Namespace des Ressourcenanbieters.

parentResourcePath
String

Die übergeordnete Ressourcenidentität.

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 Sammlung von, bei der RoleDefinitionPermission möglicherweise mehrere Dienstanforderungen zum Durchlaufen verwendet werden.

Ausnahmen

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

resourceProviderNamespace, parentResourcePath, resourceType oder resourceName ist NULL.

Gilt für: