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

NameDatatypeDescription
idtextThe access review history definition id.
nametextThe access review history definition unique id.
created_bytextfield from the properties object
created_date_timetextfield from the properties object
decisionstextfield from the properties object
display_nametextfield from the properties object
historyDefinitionIdtextfield from the properties object
instancestextfield from the properties object
review_history_period_end_date_timetextfield from the properties object
review_history_period_start_date_timetextfield from the properties object
scopetextfield from the properties object
scopestextfield from the properties object
settingstextfield from the properties object
statustextfield from the properties object
typetextThe resource type.

Methods

NameAccessible byRequired ParamsDescription
get_by_idSELECThistoryDefinitionId, scopeGet access review history definition by definition Id
listSELECTscopeLists the accessReviewHistoryDefinitions available from this provider, definition instances are only available for 30 days after creation.
createINSERThistoryDefinitionId, scopeCreate a scheduled or one-time Access Review History Definition
delete_by_idDELETEhistoryDefinitionId, scopeDelete an access review history definition

SELECT examples

Lists the accessReviewHistoryDefinitions available from this provider, definition instances are only available for 30 days after creation.

SELECT
id,
name,
created_by,
created_date_time,
decisions,
display_name,
historyDefinitionId,
instances,
review_history_period_end_date_time,
review_history_period_start_date_time,
scope,
scopes,
settings,
status,
type
FROM azure.authorization.vw_scope_access_review_history_definitions
WHERE scope = '{{ scope }}';

INSERT example

Use the following StackQL query and manifest file to create a new scope_access_review_history_definitions resource.

/*+ create */
INSERT INTO azure.authorization.scope_access_review_history_definitions (
historyDefinitionId,
scope,
displayName,
decisions,
scopes,
settings,
instances
)
SELECT
'{{ historyDefinitionId }}',
'{{ scope }}',
'{{ displayName }}',
'{{ decisions }}',
'{{ scopes }}',
'{{ settings }}',
'{{ instances }}'
;

DELETE example

Deletes the specified scope_access_review_history_definitions resource.

/*+ delete */
DELETE FROM azure.authorization.scope_access_review_history_definitions
WHERE historyDefinitionId = '{{ historyDefinitionId }}'
AND scope = '{{ scope }}';