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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
conditionstringThe conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.
conditionVersionstringVersion of the condition. Currently accepted value is '2.0'.
createdOnstring (date-time)DateTime when role eligibility schedule was created.
endDateTimestring (date-time)End DateTime when role eligibility schedule.
expandedPropertiesobjectAdditional properties of principal, scope and role definition.
memberTypestringMembership type of the role eligibility schedule. Known values are: "Inherited", "Direct", and "Group". (Inherited, Direct, Group)
principalIdstringThe principal ID.
principalTypestringThe principal type of the assigned principal ID. Known values are: "User", "Group", "ServicePrincipal", "ForeignGroup", and "Device". (User, Group, ServicePrincipal, ForeignGroup, Device)
roleDefinitionIdstringThe role definition ID.
roleEligibilityScheduleRequestIdstringThe id of roleEligibilityScheduleRequest used to create this roleAssignmentSchedule.
scopestringThe role eligibility schedule scope.
startDateTimestring (date-time)Start DateTime when role eligibility schedule.
statusstringThe status of the role eligibility schedule. Known values are: "Accepted", "PendingEvaluation", "Granted", "Denied", "PendingProvisioning", "Provisioned", "PendingRevocation", "Revoked", "Canceled", "Failed", "PendingApprovalProvisioning", "PendingApproval", "FailedAsResourceIsLocked", "PendingAdminDecision", "AdminApproved", "AdminDenied", "TimedOut", "ProvisioningStarted", "Invalid", "PendingScheduleCreation", "ScheduleCreated", and "PendingExternalProvisioning". (Accepted, PendingEvaluation, Granted, Denied, PendingProvisioning, Provisioned, PendingRevocation, Revoked, Canceled, Failed, PendingApprovalProvisioning, PendingApproval, FailedAsResourceIsLocked, PendingAdminDecision, AdminApproved, AdminDenied, TimedOut, ProvisioningStarted, Invalid, PendingScheduleCreation, ScheduleCreated, PendingExternalProvisioning)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
updatedOnstring (date-time)DateTime when role eligibility schedule was modified.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, role_eligibility_schedule_nameGet 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
role_eligibility_schedule_namestringThe name (guid) of the role eligibility schedule to get. Required.
scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.
$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. Default value is None.

SELECT examples

Get the specified role eligibility schedule for a resource scope.

SELECT
id,
name,
condition,
conditionVersion,
createdOn,
endDateTime,
expandedProperties,
memberType,
principalId,
principalType,
roleDefinitionId,
roleEligibilityScheduleRequestId,
scope,
startDateTime,
status,
systemData,
type,
updatedOn
FROM azure.authorization.role_eligibility_schedules
WHERE scope = '{{ scope }}' -- required
AND role_eligibility_schedule_name = '{{ role_eligibility_schedule_name }}' -- required
;