access_reviews_history_definitions_instances
Creates, updates, deletes, gets or lists an access_reviews_history_definitions_instances resource.
Overview
| Name | access_reviews_history_definitions_instances |
| Type | Resource |
| Id | entra_id.identity_governance.access_reviews_history_definitions_instances |
Fields
The following fields are returned by SELECT queries:
- get
- list
Retrieved navigation property
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier for an entity. Read-only. |
downloadUri | string | Uri that can be used to retrieve review history data. This URI will be active for 24 hours after being generated. Required. |
expirationDateTime | string (date-time) | Timestamp when this instance and associated data expires and the history is deleted. Required. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$) |
fulfilledDateTime | string (date-time) | Timestamp when all of the available data for this instance was collected and is set after this instance's status is set to done. Required. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$) |
reviewHistoryPeriodEndDateTime | string (date-time) | Timestamp reviews ending on or before this date will be included in the fetched history data. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$) |
reviewHistoryPeriodStartDateTime | string (date-time) | Timestamp reviews starting on or after this date will be included in the fetched history data. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$) |
runDateTime | string (date-time) | Timestamp when the instance's history data is scheduled to be generated. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$) |
status | | Represents the status of the review history data collection. The possible values are: done, inProgress, error, requested, unknownFutureValue. Once the status has been marked as done, a link can be generated to retrieve the instance's data by calling generateDownloadUri method. |
Retrieved collection
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier for an entity. Read-only. |
downloadUri | string | Uri that can be used to retrieve review history data. This URI will be active for 24 hours after being generated. Required. |
expirationDateTime | string (date-time) | Timestamp when this instance and associated data expires and the history is deleted. Required. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$) |
fulfilledDateTime | string (date-time) | Timestamp when all of the available data for this instance was collected and is set after this instance's status is set to done. Required. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$) |
reviewHistoryPeriodEndDateTime | string (date-time) | Timestamp reviews ending on or before this date will be included in the fetched history data. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$) |
reviewHistoryPeriodStartDateTime | string (date-time) | Timestamp reviews starting on or after this date will be included in the fetched history data. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$) |
runDateTime | string (date-time) | Timestamp when the instance's history data is scheduled to be generated. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$) |
status | | Represents the status of the review history data collection. The possible values are: done, inProgress, error, requested, unknownFutureValue. Once the status has been marked as done, a link can be generated to retrieve the instance's data by calling generateDownloadUri method. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | access_review_history_definition_id, access_review_history_instance_id | If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance. | |
list | select | access_review_history_definition_id | Retrieve the instances of an access review history definition created in the last 30 days. | |
insert | insert | access_review_history_definition_id | ||
update | update | access_review_history_definition_id, access_review_history_instance_id | ||
delete | delete | access_review_history_definition_id, access_review_history_instance_id | If-Match | |
generate_download_uri | exec | access_review_history_definition_id, access_review_history_instance_id | Generates a URI for an accessReviewHistoryInstance object the status for which is done. Each URI can be used to retrieve the instance's review history data. Each URI is valid for 24 hours and can be retrieved by fetching the downloadUri property from the accessReviewHistoryInstance object. |
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.
| Name | Datatype | Description |
|---|---|---|
access_review_history_definition_id | string | The unique identifier of accessReviewHistoryDefinition |
access_review_history_instance_id | string | The unique identifier of accessReviewHistoryInstance |
If-Match | string | ETag |
SELECT examples
- get
- list
If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance.
SELECT
id,
downloadUri,
expirationDateTime,
fulfilledDateTime,
reviewHistoryPeriodEndDateTime,
reviewHistoryPeriodStartDateTime,
runDateTime,
status
FROM entra_id.identity_governance.access_reviews_history_definitions_instances
WHERE access_review_history_definition_id = '{{ access_review_history_definition_id }}' -- required
AND access_review_history_instance_id = '{{ access_review_history_instance_id }}' -- required
;
Retrieve the instances of an access review history definition created in the last 30 days.
SELECT
id,
downloadUri,
expirationDateTime,
fulfilledDateTime,
reviewHistoryPeriodEndDateTime,
reviewHistoryPeriodStartDateTime,
runDateTime,
status
FROM entra_id.identity_governance.access_reviews_history_definitions_instances
WHERE access_review_history_definition_id = '{{ access_review_history_definition_id }}' -- required
;
INSERT examples
- insert
- Manifest
No description available.
INSERT INTO entra_id.identity_governance.access_reviews_history_definitions_instances (
id,
downloadUri,
expirationDateTime,
fulfilledDateTime,
reviewHistoryPeriodEndDateTime,
reviewHistoryPeriodStartDateTime,
runDateTime,
status,
access_review_history_definition_id
)
SELECT
'{{ id }}',
'{{ downloadUri }}',
'{{ expirationDateTime }}',
'{{ fulfilledDateTime }}',
'{{ reviewHistoryPeriodEndDateTime }}',
'{{ reviewHistoryPeriodStartDateTime }}',
'{{ runDateTime }}',
'{{ status }}',
'{{ access_review_history_definition_id }}'
RETURNING
id,
downloadUri,
expirationDateTime,
fulfilledDateTime,
reviewHistoryPeriodEndDateTime,
reviewHistoryPeriodStartDateTime,
runDateTime,
status
;
# Description fields are for documentation purposes
- name: access_reviews_history_definitions_instances
props:
- name: access_review_history_definition_id
value: "{{ access_review_history_definition_id }}"
description: Required parameter for the access_reviews_history_definitions_instances resource.
- name: id
value: "{{ id }}"
description: |
The unique identifier for an entity. Read-only.
- name: downloadUri
value: "{{ downloadUri }}"
description: |
Uri that can be used to retrieve review history data. This URI will be active for 24 hours after being generated. Required.
- name: expirationDateTime
value: "{{ expirationDateTime }}"
description: |
Timestamp when this instance and associated data expires and the history is deleted. Required.
- name: fulfilledDateTime
value: "{{ fulfilledDateTime }}"
description: |
Timestamp when all of the available data for this instance was collected and is set after this instance's status is set to done. Required.
- name: reviewHistoryPeriodEndDateTime
value: "{{ reviewHistoryPeriodEndDateTime }}"
description: |
Timestamp reviews ending on or before this date will be included in the fetched history data.
- name: reviewHistoryPeriodStartDateTime
value: "{{ reviewHistoryPeriodStartDateTime }}"
description: |
Timestamp reviews starting on or after this date will be included in the fetched history data.
- name: runDateTime
value: "{{ runDateTime }}"
description: |
Timestamp when the instance's history data is scheduled to be generated.
- name: status
value: "{{ status }}"
description: |
Represents the status of the review history data collection. The possible values are: done, inProgress, error, requested, unknownFutureValue. Once the status has been marked as done, a link can be generated to retrieve the instance's data by calling generateDownloadUri method.
UPDATE examples
- update
No description available.
UPDATE entra_id.identity_governance.access_reviews_history_definitions_instances
SET
id = '{{ id }}',
downloadUri = '{{ downloadUri }}',
expirationDateTime = '{{ expirationDateTime }}',
fulfilledDateTime = '{{ fulfilledDateTime }}',
reviewHistoryPeriodEndDateTime = '{{ reviewHistoryPeriodEndDateTime }}',
reviewHistoryPeriodStartDateTime = '{{ reviewHistoryPeriodStartDateTime }}',
runDateTime = '{{ runDateTime }}',
status = '{{ status }}'
WHERE
access_review_history_definition_id = '{{ access_review_history_definition_id }}' --required
AND access_review_history_instance_id = '{{ access_review_history_instance_id }}' --required
RETURNING
id,
downloadUri,
expirationDateTime,
fulfilledDateTime,
reviewHistoryPeriodEndDateTime,
reviewHistoryPeriodStartDateTime,
runDateTime,
status;
DELETE examples
- delete
No description available.
DELETE FROM entra_id.identity_governance.access_reviews_history_definitions_instances
WHERE access_review_history_definition_id = '{{ access_review_history_definition_id }}' --required
AND access_review_history_instance_id = '{{ access_review_history_instance_id }}' --required
AND If-Match = '{{ If-Match }}'
;
Lifecycle Methods
- generate_download_uri
Generates a URI for an accessReviewHistoryInstance object the status for which is done. Each URI can be used to retrieve the instance's review history data. Each URI is valid for 24 hours and can be retrieved by fetching the downloadUri property from the accessReviewHistoryInstance object.
EXEC entra_id.identity_governance.access_reviews_history_definitions_instances.generate_download_uri
@access_review_history_definition_id='{{ access_review_history_definition_id }}' --required,
@access_review_history_instance_id='{{ access_review_history_instance_id }}' --required
;