-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Access Reviews Schema addendum | Expose reviewer and statistics APIs
- Loading branch information
1 parent
9efaec3
commit 1b97f33
Showing
12 changed files
with
815 additions
and
0 deletions.
There are no files selected for viewing
462 changes: 462 additions & 0 deletions
462
...r/Microsoft.Authorization/preview/2018-05-01-preview/authorization-AccessReviewCalls.json
Large diffs are not rendered by default.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...zation/preview/2018-05-01-preview/examples/AccessReviewInstanceAcceptRecommendations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"id": "d9b9e056-7004-470b-bf21-1635e98487da" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
...ion/preview/2018-05-01-preview/examples/GetAccessReviewInstanceAssignedForMyApproval.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"id": "4135f961-be78-4005-8101-c72a5af307a2" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval", | ||
"name": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"properties": { | ||
"status": "Applied", | ||
"startDateTime": "2018-08-03T21:02:30.667Z", | ||
"endDateTime": "2018-08-03T21:17:30.513Z", | ||
"definition": { | ||
"id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"type": "Microsoft.Authorization/accessReviewScheduleDefinitions", | ||
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"properties": { | ||
"displayName": "Hello world", | ||
"status": "InProgress", | ||
"descriptionForAdmins": "asdfasdf", | ||
"descriptionForReviewers": "asdfasdf", | ||
"createdBy": { | ||
"principalType": "user", | ||
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"principalName": "Shubham Gupta", | ||
"userPrincipalName": "shugup@microsoft.com" | ||
}, | ||
"scope": { | ||
"resourceId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"roleDefinitionId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/roleDefinitions/b225c7ff-4338-4cdc-a790-6b34d987f7cd" | ||
}, | ||
"reviewers": [ | ||
{ | ||
"principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d ", | ||
"principalType": "user" | ||
} | ||
], | ||
"reviewersType": "Assigned", | ||
"settings": { | ||
"mailNotificationsEnabled": true, | ||
"reminderNotificationsEnabled": true, | ||
"justificationRequiredOnApproval": true, | ||
"recommendationsEnabled": true, | ||
"instanceDurationInDays": 30, | ||
"recurrence": { | ||
"range": { | ||
"type": "endDate", | ||
"numberOfOccurrences": 1, | ||
"startDate": "2018-08-03T21:02:30.667Z", | ||
"endDate": "2018-08-03T21:17:30.513Z" | ||
} | ||
}, | ||
"defaultDecisionEnabled": true, | ||
"defaultDecision": "Approve", | ||
"autoApplyDecisionsEnabled": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...zation/preview/2018-05-01-preview/examples/GetAccessReviewInstanceDecisionStatistics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"id": "4135f961-be78-4005-8101-c72a5af307a2" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"totalCount": 20, | ||
"decisionsSummary": [ | ||
{ | ||
"decision": "NotReviewed", | ||
"count": 4 | ||
}, | ||
{ | ||
"decision": "Approve", | ||
"count": 4 | ||
} | ||
], | ||
"recommendationsSummary": [ | ||
{ | ||
"recommendation": "Approve", | ||
"count": 4 | ||
}, | ||
{ | ||
"decision": "Deny", | ||
"count": 4 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...horization/preview/2018-05-01-preview/examples/GetAccessReviewInstanceMyDecisionById.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"id": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"decisionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/4135f961-be78-4005-8101-c72a5af307a2/decisions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"type": "Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/decisions", | ||
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"properties": { | ||
"reviewedBy": { | ||
"principalType": "user", | ||
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"principalName": "Shubham Gupta", | ||
"userPrincipalName": "shugup@microsoft.com" | ||
}, | ||
"reviewedDateTime": "2018-08-03T21:02:30.667Z", | ||
"decision": "Deny", | ||
"justification": "This person has left this team", | ||
"appliedBy": { | ||
"principalType": "user", | ||
"principalId": "36777fc8-4ec2-49ea-a56c-cec0bd47d83a", | ||
"principalName": "Amit Ghosh", | ||
"userPrincipalName": "amitgho@microsoft.com" | ||
}, | ||
"appliedDateTime": "2018-10-03T21:02:30.667Z", | ||
"applyResult": "Success", | ||
"recommendation": "Deny", | ||
"target": { | ||
"type": "user", | ||
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"principalName": "Shubham Gupta", | ||
"userPrincipalName": "shugup@microsoft.com" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...Authorization/preview/2018-05-01-preview/examples/GetAccessReviewInstanceMyDecisions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"id": "4135f961-be78-4005-8101-c72a5af307a2" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/4135f961-be78-4005-8101-c72a5af307a2/decisions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"type": "Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/decisions", | ||
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"properties": { | ||
"reviewedBy": { | ||
"principalType": "user", | ||
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"principalName": "Shubham Gupta", | ||
"userPrincipalName": "shugup@microsoft.com" | ||
}, | ||
"reviewedDateTime": "2018-08-03T21:02:30.667Z", | ||
"decision": "Deny", | ||
"justification": "This person has left this team", | ||
"appliedBy": { | ||
"principalType": "user", | ||
"principalId": "36777fc8-4ec2-49ea-a56c-cec0bd47d83a", | ||
"principalName": "Amit Ghosh", | ||
"userPrincipalName": "amitgho@microsoft.com" | ||
}, | ||
"appliedDateTime": "2018-10-03T21:02:30.667Z", | ||
"applyResult": "Success", | ||
"recommendation": "Deny", | ||
"target": { | ||
"type": "user", | ||
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"principalName": "Shubham Gupta", | ||
"userPrincipalName": "shugup@microsoft.com" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
...on/preview/2018-05-01-preview/examples/GetAccessReviewInstancesAssignedForMyApproval.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval", | ||
"name": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"properties": { | ||
"status": "Applied", | ||
"startDateTime": "2018-08-03T21:02:30.667Z", | ||
"endDateTime": "2018-08-03T21:17:30.513Z", | ||
"definition": { | ||
"id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"type": "Microsoft.Authorization/accessReviewScheduleDefinitions", | ||
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"properties": { | ||
"displayName": "Hello world", | ||
"status": "InProgress", | ||
"descriptionForAdmins": "asdfasdf", | ||
"descriptionForReviewers": "asdfasdf", | ||
"createdBy": { | ||
"principalType": "user", | ||
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"principalName": "Shubham Gupta", | ||
"userPrincipalName": "shugup@microsoft.com" | ||
}, | ||
"scope": { | ||
"resourceId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"roleDefinitionId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/roleDefinitions/b225c7ff-4338-4cdc-a790-6b34d987f7cd" | ||
}, | ||
"reviewers": [ | ||
{ | ||
"principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d ", | ||
"principalType": "user" | ||
} | ||
], | ||
"reviewersType": "Assigned", | ||
"settings": { | ||
"mailNotificationsEnabled": true, | ||
"reminderNotificationsEnabled": true, | ||
"justificationRequiredOnApproval": true, | ||
"recommendationsEnabled": true, | ||
"instanceDurationInDays": 30, | ||
"recurrence": { | ||
"range": { | ||
"type": "endDate", | ||
"numberOfOccurrences": 1, | ||
"startDate": "2018-08-03T21:02:30.667Z", | ||
"endDate": "2018-08-03T21:17:30.513Z" | ||
} | ||
}, | ||
"defaultDecisionEnabled": true, | ||
"defaultDecision": "Approve", | ||
"autoApplyDecisionsEnabled": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...tion/preview/2018-05-01-preview/examples/GetAccessReviewMyInstanceDecisionStatistics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"id": "4135f961-be78-4005-8101-c72a5af307a2" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"totalCount": 20, | ||
"decisionsSummary": [ | ||
{ | ||
"decision": "NotReviewed", | ||
"count": 4 | ||
}, | ||
{ | ||
"decision": "Approve", | ||
"count": 4 | ||
} | ||
], | ||
"recommendationsSummary": [ | ||
{ | ||
"recommendation": "Approve", | ||
"count": 4 | ||
}, | ||
{ | ||
"decision": "Deny", | ||
"count": 4 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...rization/preview/2018-05-01-preview/examples/PatchAccessReviewInstanceMyDecisionById.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"id": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"decisionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"properties": {}, | ||
"body": { | ||
"properties": { | ||
"decision": "Approve", | ||
"justification": "I trust this person." | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/4135f961-be78-4005-8101-c72a5af307a2/decisions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"type": "Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/decisions", | ||
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"properties": { | ||
"reviewedBy": { | ||
"principalType": "user", | ||
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"principalName": "Shubham Gupta", | ||
"userPrincipalName": "shugup@microsoft.com" | ||
}, | ||
"reviewedDateTime": "2018-08-03T21:02:30.667Z", | ||
"decision": "Deny", | ||
"justification": "This person has left this team", | ||
"appliedBy": { | ||
"principalType": "user", | ||
"principalId": "36777fc8-4ec2-49ea-a56c-cec0bd47d83a", | ||
"principalName": "Amit Ghosh", | ||
"userPrincipalName": "amitgho@microsoft.com" | ||
}, | ||
"appliedDateTime": "2018-10-03T21:02:30.667Z", | ||
"applyResult": "Success", | ||
"recommendation": "Deny", | ||
"target": { | ||
"type": "user", | ||
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"principalName": "Shubham Gupta", | ||
"userPrincipalName": "shugup@microsoft.com" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters