RoleEligibilityScheduleRequestCollection.GetAllAsync Method

Definition

Gets role eligibility schedule requests for a scope.

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

Parameters

filter
String

The filter to apply on the operation. Use $filter=atScope() to return all role eligibility schedule requests at or above the scope. Use $filter=principalId eq {id} to return all role eligibility schedule requests at, above or below the scope for the specified principal. Use $filter=asRequestor() to return all role eligibility schedule requests requested by the current user. Use $filter=asTarget() to return all role eligibility schedule requests created for the current user. Use $filter=asApprover() to return all role eligibility schedule requests where the current user is an approver.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to