次の方法で共有


MockableAuthorizationResourceGroupResource.GetAzurePermissionsForResources Method

Definition

Gets all permissions the caller has for a resource.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions
  • Operation Id: AzurePermissionsForResource_List
  • Default Api Version: 2022-04-01
public virtual Azure.Pageable<Azure.ResourceManager.Authorization.Models.RoleDefinitionPermission> GetAzurePermissionsForResources (string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAzurePermissionsForResources : string * string * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Authorization.Models.RoleDefinitionPermission>
override this.GetAzurePermissionsForResources : string * string * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Authorization.Models.RoleDefinitionPermission>
Public Overridable Function GetAzurePermissionsForResources (resourceProviderNamespace As String, parentResourcePath As String, resourceType As String, resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of RoleDefinitionPermission)

Parameters

resourceProviderNamespace
String

The namespace of the resource provider.

parentResourcePath
String

The parent resource identity.

resourceType
String

The resource type of the resource.

resourceName
String

The name of the resource to get the permissions for.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of RoleDefinitionPermission that may take multiple service requests to iterate over.

Exceptions

resourceName is an empty string, and was expected to be non-empty.

resourceProviderNamespace, parentResourcePath, resourceType or resourceName is null.

Applies to