access_review_instance_my_decisions
Creates, updates, deletes, gets or lists an access_review_instance_my_decisions resource.
Overview
| Name | access_review_instance_my_decisions |
| Type | Resource |
| Id | azure.authorization.access_review_instance_my_decisions |
Fields
The following fields are returned by SELECT queries:
- get_by_id
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
appliedBy | object | Details of the approver. |
appliedDateTime | string (date-time) | The date and time when the review decision was applied. |
applyResult | string | The outcome of applying the decision. Known values are: "New", "Applying", "AppliedSuccessfully", "AppliedWithUnknownFailure", "AppliedSuccessfullyButObjectNotFound", and "ApplyNotSupported". (New, Applying, AppliedSuccessfully, AppliedWithUnknownFailure, AppliedSuccessfullyButObjectNotFound, ApplyNotSupported) |
decision | string | The decision on the approval step. This value is initially set to NotReviewed. Approvers can take action of Approve/Deny. Known values are: "Approve", "Deny", "NotReviewed", "DontKnow", and "NotNotified". (Approve, Deny, NotReviewed, DontKnow, NotNotified) |
insights | array | This is the collection of insights for this decision item. |
justification | string | Justification provided by approvers for their action. |
principal | object | Principal associated with the decision record. Can be AccessReviewDecisionUserIdentity or AccessReviewDecisionServicePrincipalIdentity. |
principalResourceMembership | object | Details of the membership type. |
recommendation | string | The feature- generated recommendation shown to the reviewer. Known values are: "Approve", "Deny", and "NoInfoAvailable". (Approve, Deny, NoInfoAvailable) |
resource | object | Resource associated with this decision record. |
reviewedBy | object | Details of the approver. |
reviewedDateTime | string (date-time) | Date Time when a decision was taken. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
appliedBy | object | Details of the approver. |
appliedDateTime | string (date-time) | The date and time when the review decision was applied. |
applyResult | string | The outcome of applying the decision. Known values are: "New", "Applying", "AppliedSuccessfully", "AppliedWithUnknownFailure", "AppliedSuccessfullyButObjectNotFound", and "ApplyNotSupported". (New, Applying, AppliedSuccessfully, AppliedWithUnknownFailure, AppliedSuccessfullyButObjectNotFound, ApplyNotSupported) |
decision | string | The decision on the approval step. This value is initially set to NotReviewed. Approvers can take action of Approve/Deny. Known values are: "Approve", "Deny", "NotReviewed", "DontKnow", and "NotNotified". (Approve, Deny, NotReviewed, DontKnow, NotNotified) |
insights | array | This is the collection of insights for this decision item. |
justification | string | Justification provided by approvers for their action. |
principal | object | Principal associated with the decision record. Can be AccessReviewDecisionUserIdentity or AccessReviewDecisionServicePrincipalIdentity. |
principalResourceMembership | object | Details of the membership type. |
recommendation | string | The feature- generated recommendation shown to the reviewer. Known values are: "Approve", "Deny", and "NoInfoAvailable". (Approve, Deny, NoInfoAvailable) |
resource | object | Resource associated with this decision record. |
reviewedBy | object | Details of the approver. |
reviewedDateTime | string (date-time) | Date Time when a decision was taken. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_by_id | select | schedule_definition_id, id, decision_id | Get my single access review instance decision. | |
list | select | schedule_definition_id, id | $filter | Get my access review instance decisions. |
patch | exec | schedule_definition_id, id, decision_id | Record a decision. |
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 |
|---|---|---|
decision_id | string | The id of the decision record. Required. |
id | string | The id of the access review instance. Required. |
schedule_definition_id | string | The id of the access review schedule definition. Required. |
$filter | string | The 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. Default value is None. |
SELECT examples
- get_by_id
- list
Get my single access review instance decision.
SELECT
id,
name,
appliedBy,
appliedDateTime,
applyResult,
decision,
insights,
justification,
principal,
principalResourceMembership,
recommendation,
resource,
reviewedBy,
reviewedDateTime,
systemData,
type
FROM azure.authorization.access_review_instance_my_decisions
WHERE schedule_definition_id = '{{ schedule_definition_id }}' -- required
AND id = '{{ id }}' -- required
AND decision_id = '{{ decision_id }}' -- required
;
Get my access review instance decisions.
SELECT
id,
name,
appliedBy,
appliedDateTime,
applyResult,
decision,
insights,
justification,
principal,
principalResourceMembership,
recommendation,
resource,
reviewedBy,
reviewedDateTime,
systemData,
type
FROM azure.authorization.access_review_instance_my_decisions
WHERE schedule_definition_id = '{{ schedule_definition_id }}' -- required
AND id = '{{ id }}' -- required
AND $filter = '{{ $filter }}'
;
Lifecycle Methods
- patch
Record a decision.
EXEC azure.authorization.access_review_instance_my_decisions.patch
@schedule_definition_id='{{ schedule_definition_id }}' --required,
@id='{{ id }}' --required,
@decision_id='{{ decision_id }}' --required
@@json=
'{
"decision": "{{ decision }}",
"justification": "{{ justification }}",
"insights": "{{ insights }}"
}'
;