Skip to main content

role_eligibility_schedules

Creates, updates, deletes, gets or lists a role_eligibility_schedules resource.

Overview

Namerole_eligibility_schedules
TypeResource
Idazure.authorization.role_eligibility_schedules

Fields

The following fields are returned by SELECT queries:

OK - Returns information about the role eligibility schedule.

NameDatatypeDescription
idstringThe role eligibility schedule Id.
namestringThe role eligibility schedule name.
propertiesobjectrole eligibility schedule properties.
typestringThe role eligibility schedule type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, roleEligibilityScheduleNameGet the specified role eligibility schedule for a resource scope
list_for_scopeselectscope$filterGets role eligibility schedules for a resource scope.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
roleEligibilityScheduleNamestringThe name (guid) of the role eligibility schedule to get.
scopestringThe scope of the role eligibility schedules.
$filterstringThe 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.

SELECT examples

Get the specified role eligibility schedule for a resource scope

SELECT
id,
name,
properties,
type
FROM azure.authorization.role_eligibility_schedules
WHERE scope = '{{ scope }}' -- required
AND roleEligibilityScheduleName = '{{ roleEligibilityScheduleName }}' -- required
;