Skip to main content

scope_access_review_instances

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

Overview

Namescope_access_review_instances
TypeResource
Idazure.authorization.scope_access_review_instances

Fields

The following fields are returned by SELECT queries:

Describe the result of a successful operation.

NameDatatypeDescription
idstringThe access review instance id.
namestringThe access review instance name.
propertiesobjectAccess Review properties.
typestringThe resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_idselectscope, scheduleDefinitionId, idGet access review instances
listselectscope, scheduleDefinitionId$filterGet access review instances
createinsertscope, scheduleDefinitionId, idUpdate access review instance.
stopexecscope, scheduleDefinitionId, idAn action to stop an access review instance.
record_all_decisionsexecscope, scheduleDefinitionId, idAn action to approve/deny all decisions for a review with certain filters.
reset_decisionsexecscope, scheduleDefinitionId, idAn action to reset all decisions for an access review instance.
apply_decisionsexecscope, scheduleDefinitionId, idAn action to apply all decisions for an access review instance.
send_remindersexecscope, scheduleDefinitionId, idAn action to send reminders for an access review instance.

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
idstringThe id of the access review instance.
scheduleDefinitionIdstringThe id of the access review schedule definition.
scopestringThe scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
$filterstringThe filter to apply on the operation. Other than standard filters, one custom filter option is supported : 'assignedToMeToReview()'. When one specified $filter=assignedToMeToReview(), only items that are assigned to the calling user to review are returned

SELECT examples

Get access review instances

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

INSERT examples

Update access review instance.

INSERT INTO azure.authorization.scope_access_review_instances (
data__startDateTime,
data__endDateTime,
data__reviewers,
data__backupReviewers,
scope,
scheduleDefinitionId,
id
)
SELECT
'{{ startDateTime }}',
'{{ endDateTime }}',
'{{ reviewers }}',
'{{ backupReviewers }}',
'{{ scope }}',
'{{ scheduleDefinitionId }}',
'{{ id }}'
RETURNING
id,
name,
properties,
type
;

Lifecycle Methods

An action to stop an access review instance.

EXEC azure.authorization.scope_access_review_instances.stop 
@scope='{{ scope }}' --required,
@scheduleDefinitionId='{{ scheduleDefinitionId }}' --required,
@id='{{ id }}' --required
;