共用方式為


RoleEligibilityScheduleCollection.GetAllAsync Method

Definition

Gets role eligibility schedules for a resource scope.

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

Parameters

filter
String

The filter to apply on the operation. Use $filter=atScope() to return all role eligibility schedules at or above the scope. Use $filter=principalId eq {id} to return all role eligibility schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role eligibility schedules for the user. Use $filter=asTarget() to return all role eligibility schedules created for the current user.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to