RoleAssignmentScheduleCollection.GetAllAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets role assignment schedules for a resource scope.
- Request Path: /{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules
- Operation Id: RoleAssignmentSchedules_ListForScope
- Default Api Version: 2020-10-01
- Resource: RoleAssignmentScheduleResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Authorization.RoleAssignmentScheduleResource> GetAllAsync (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Authorization.RoleAssignmentScheduleResource>
override this.GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Authorization.RoleAssignmentScheduleResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of RoleAssignmentScheduleResource)
Parameters
- filter
- String
The filter to apply on the operation. Use $filter=atScope() to return all role assignment schedules at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role assignment schedules for the current user. Use $filter=asTarget() to return all role assignment schedules created for the current user.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of RoleAssignmentScheduleResource that may take multiple service requests to iterate over.
Applies to
Azure SDK for .NET