RoleAssignmentScheduleCollection.GetAll(String, CancellationToken) 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.Pageable<Azure.ResourceManager.Authorization.RoleAssignmentScheduleResource> GetAll (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Authorization.RoleAssignmentScheduleResource>
override this.GetAll : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Authorization.RoleAssignmentScheduleResource>
Public Overridable Function GetAll (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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
A collection of RoleAssignmentScheduleResource that may take multiple service requests to iterate over.