Skip to main content

scope_access_review_history_definitions

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

Overview

Namescope_access_review_history_definitions
TypeResource
Idazure.authorization.scope_access_review_history_definitions

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.
createdByobjectThe user or other identity who created this history definition.
createdDateTimestring (date-time)Date time when history definition was created.
decisionsarrayCollection of review decisions which the history data should be filtered on. For example if Approve and Deny are supplied the data will only contain review results in which the decision maker approved or denied a review request.
displayNamestringThe display name for the history definition.
instancesarraySet of access review history instances for this history definition.
reviewHistoryPeriodEndDateTimestring (date-time)Date time used when selecting review data, all reviews included in data end on or before this date. For use only with one-time/non-recurring reports.
reviewHistoryPeriodStartDateTimestring (date-time)Date time used when selecting review data, all reviews included in data start on or after this date. For use only with one-time/non-recurring reports.
scopesarrayA collection of scopes used when selecting review history data.
settingsobjectRecurrence settings for recurring history reports, skip for one-time reports.
statusstringThis read-only field specifies the of the requested review history data. This is either requested, in-progress, done or error. Known values are: "Requested", "InProgress", "Done", and "Error". (Requested, InProgress, Done, Error)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_idselectscope, history_definition_idGet access review history definition by definition Id.
listselectscope$filterLists the accessReviewHistoryDefinitions available from this provider, definition instances are only available for 30 days after creation.

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
history_definition_idstringThe id of the access review history definition. Required.
scopestringThe scope of the resource. Required.
$filterstringThe filter to apply on the operation. Only standard filters on definition name and created date are supported. Default value is None.

SELECT examples

Get access review history definition by definition Id.

SELECT
id,
name,
createdBy,
createdDateTime,
decisions,
displayName,
instances,
reviewHistoryPeriodEndDateTime,
reviewHistoryPeriodStartDateTime,
scopes,
settings,
status,
systemData,
type
FROM azure.authorization.scope_access_review_history_definitions
WHERE scope = '{{ scope }}' -- required
AND history_definition_id = '{{ history_definition_id }}' -- required
;