共用方式為


RoleAssignmentCollection.GetAllAsync Method

Definition

List all role assignments that apply to a scope.

  • Request Path: /{scope}/providers/Microsoft.Authorization/roleAssignments
  • Operation Id: RoleAssignments_ListForScope
  • Default Api Version: 2022-04-01
  • Resource: RoleAssignmentResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Authorization.RoleAssignmentResource> GetAllAsync (string filter = default, string tenantId = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Authorization.RoleAssignmentResource>
override this.GetAllAsync : string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Authorization.RoleAssignmentResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional tenantId As String = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of RoleAssignmentResource)

Parameters

filter
String

The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.

tenantId
String

Tenant ID for cross-tenant request.

skipToken
String

The skipToken to apply on the operation. Use $skipToken={skiptoken} to return paged role assignments following the skipToken passed. Only supported on provider level calls.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of RoleAssignmentResource that may take multiple service requests to iterate over.

Applies to