Skip to content

Commit a4d7a85

Browse files
Exposing membershipType property from Access review APIs (#16919)
* Cloned version 2021-07-01-preview to create version 2021-12-01-preview * Exposing membershipTypes in accessReviewInstanceDecisionItem
1 parent fbe071b commit a4d7a85

File tree

36 files changed

+5114
-1
lines changed

36 files changed

+5114
-1
lines changed

specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-12-01-preview/authorization-AccessReviewCalls.json

Lines changed: 3871 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scheduleDefinitionId": "488a6d0e-0a63-4946-86e3-1f5bbc934661",
5+
"id": "d9b9e056-7004-470b-bf21-1635e98487da"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scope": "subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
5+
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
6+
"id": "d9b9e056-7004-470b-bf21-1635e98487da"
7+
},
8+
"responses": {
9+
"204": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scope": "subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
5+
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
6+
"id": "d9b9e056-7004-470b-bf21-1635e98487da",
7+
"properties": {},
8+
"body": {
9+
"properties": {
10+
"decision": "Approve",
11+
"principalId": "89ff94f6-029c-429c-9037-6cf4fe2f4a13",
12+
"resourceId": "c4e183de-8ebd-418f-8864-7d0b82800707",
13+
"justification": "I trust this person"
14+
}
15+
}
16+
},
17+
"responses": {
18+
"204": {}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scope": "subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
5+
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
6+
"id": "d9b9e056-7004-470b-bf21-1635e98487da"
7+
},
8+
"responses": {
9+
"204": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scope": "subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
5+
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
6+
"id": "d9b9e056-7004-470b-bf21-1635e98487da"
7+
},
8+
"responses": {
9+
"204": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scope": "subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
5+
"historyDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d"
6+
},
7+
"responses": {
8+
"200": {},
9+
"204": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scope": "subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
5+
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d"
6+
},
7+
"responses": {
8+
"200": {},
9+
"204": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scope": "subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewSettings/default",
10+
"type": "Microsoft.Authorization/accessReviewSettings",
11+
"name": "default",
12+
"properties": {
13+
"mailNotificationsEnabled": true,
14+
"reminderNotificationsEnabled": true,
15+
"justificationRequiredOnApproval": true,
16+
"recommendationsEnabled": true,
17+
"instanceDurationInDays": 30,
18+
"recurrence": {
19+
"range": {
20+
"type": "endDate",
21+
"numberOfOccurrences": 1,
22+
"startDate": "2018-08-03T21:02:30.667Z",
23+
"endDate": "2018-08-03T21:17:30.513Z"
24+
}
25+
},
26+
"defaultDecisionEnabled": true,
27+
"defaultDecision": "Approve",
28+
"autoApplyDecisionsEnabled": true
29+
}
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scope": "subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a",
5+
"historyDefinitionId": "44724910-d7a5-4c29-b28f-db73e717165a"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/44724910-d7a5-4c29-b28f-db73e717165a",
11+
"name": "44724910-d7a5-4c29-b28f-db73e717165a",
12+
"type": "Microsoft.Authorization/accessReviewHistoryDefinition",
13+
"properties": {
14+
"displayName": "Hello world name",
15+
"reviewHistoryPeriodStartDateTime": "2021-10-01T00:00:00-07:00",
16+
"reviewHistoryPeriodEndDateTime": "2021-12-01T00:00:00-08:00",
17+
"decisions": [
18+
"Approve",
19+
"Deny",
20+
"NotReviewed",
21+
"DontKnow",
22+
"NotNotified"
23+
],
24+
"status": "Done",
25+
"createdDateTime": "2021-12-23T00:27:33.6905189+00:00",
26+
"createdBy": {
27+
"principalId": "673ad0d8-7b0e-4201-aaeb-74cdcbf22af9",
28+
"principalType": null,
29+
"principalName": "levi",
30+
"userPrincipalName": "levi"
31+
},
32+
"scopes": [
33+
{
34+
"resourceId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a",
35+
"roleDefinitionId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a/providers/Microsoft.Authorization/roleDefinitions",
36+
"principalType": "user",
37+
"assignmentState": null,
38+
"inactiveDuration": null,
39+
"expandNestedMemberships": true
40+
},
41+
{
42+
"resourceId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a",
43+
"roleDefinitionId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a/providers/Microsoft.Authorization/roleDefinitions/1562cf42-00b9-457c-86ef-5702d4132904",
44+
"principalType": "user",
45+
"assignmentState": null,
46+
"inactiveDuration": null,
47+
"expandNestedMemberships": false
48+
}
49+
],
50+
"settings": {
51+
"range": {
52+
"type": "endDate",
53+
"numberOfOccurrences": 1,
54+
"startDate": "2021-12-01T00:00:00-08:00",
55+
"endDate": "2023-12-01T00:00:00-08:00"
56+
}
57+
}
58+
}
59+
}
60+
}
61+
}
62+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scope": "subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a",
5+
"historyDefinitionId": "44724910-d7a5-4c29-b28f-db73e717165a"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "44724910-d7a5-4c29-b28f-db73e717165a",
13+
"name": "44724910-d7a5-4c29-b28f-db73e717165a",
14+
"type": "Microsoft.Authorization/accessReviewHistoryInstance",
15+
"properties": {
16+
"reviewHistoryPeriodStartDateTime": "2021-10-01T00:00:00-07:00",
17+
"reviewHistoryPeriodEndDateTime": "2021-12-01T00:00:00-08:00",
18+
"displayName": "Hello world name",
19+
"status": "Requested",
20+
"runDateTime": "2021-12-23T00:27:33.6905189+00:00",
21+
"fulfilledDateTime": "2021-12-23T00:28:33.6905189+00:00",
22+
"expiration": "2022-01-22T00:28:33.6905189+00:00"
23+
}
24+
}
25+
],
26+
"nextLink": null
27+
}
28+
}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scope": "subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/44724910-d7a5-4c29-b28f-db73e717165a",
12+
"name": "44724910-d7a5-4c29-b28f-db73e717165a",
13+
"type": "Microsoft.Authorization/accessReviewHistoryDefinition",
14+
"properties": {
15+
"displayName": "Hello world name",
16+
"reviewHistoryPeriodStartDateTime": "2021-10-01T00:00:00-07:00",
17+
"reviewHistoryPeriodEndDateTime": "2021-12-01T00:00:00-08:00",
18+
"decisions": [
19+
"Approve",
20+
"Deny",
21+
"NotReviewed",
22+
"DontKnow",
23+
"NotNotified"
24+
],
25+
"status": "Done",
26+
"createdDateTime": "2021-12-23T00:27:33.6905189+00:00",
27+
"createdBy": {
28+
"principalId": "673ad0d8-7b0e-4201-aaeb-74cdcbf22af9",
29+
"principalType": null,
30+
"principalName": "levi",
31+
"userPrincipalName": "levi"
32+
},
33+
"scopes": [
34+
{
35+
"resourceId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a",
36+
"roleDefinitionId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a/providers/Microsoft.Authorization/roleDefinitions",
37+
"principalType": "user",
38+
"assignmentState": null,
39+
"inactiveDuration": null,
40+
"expandNestedMemberships": true
41+
},
42+
{
43+
"resourceId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a",
44+
"roleDefinitionId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a/providers/Microsoft.Authorization/roleDefinitions/1562cf42-00b9-457c-86ef-5702d4132904",
45+
"principalType": "user",
46+
"assignmentState": null,
47+
"inactiveDuration": null,
48+
"expandNestedMemberships": false
49+
}
50+
],
51+
"settings": {
52+
"range": {
53+
"type": "endDate",
54+
"numberOfOccurrences": 1,
55+
"startDate": "2021-12-01T00:00:00-08:00",
56+
"endDate": "2023-12-01T00:00:00-08:00"
57+
}
58+
}
59+
}
60+
}
61+
],
62+
"nextLink": null
63+
}
64+
}
65+
}
66+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scope": "subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
5+
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
6+
"id": "4135f961-be78-4005-8101-c72a5af307a2"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/instances/4135f961-be78-4005-8101-c72a5af307a2",
12+
"type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances",
13+
"name": "4135f961-be78-4005-8101-c72a5af307a2",
14+
"properties": {
15+
"status": "Applied",
16+
"startDateTime": "2018-08-03T21:02:30.667Z",
17+
"endDateTime": "2018-08-03T21:17:30.513Z"
18+
}
19+
}
20+
}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scheduleDefinitionId": "488a6d0e-0a63-4946-86e3-1f5bbc934661",
5+
"id": "4135f961-be78-4005-8101-c72a5af307a2",
6+
"$filter": "assignedToMeToReview()"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/488a6d0e-0a63-4946-86e3-1f5bbc934661/instances/4135f961-be78-4005-8101-c72a5af307a2",
12+
"type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances",
13+
"name": "4135f961-be78-4005-8101-c72a5af307a2",
14+
"properties": {
15+
"status": "Applied",
16+
"startDateTime": "2018-08-03T21:02:30.667Z",
17+
"endDateTime": "2018-08-03T21:17:30.513Z"
18+
}
19+
}
20+
}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"scope": "subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
5+
"scheduleDefinitionId": "265785a7-a81f-4201-8a18-bb0db95982b7",
6+
"id": "f25ed880-9c31-4101-bc57-825d8df3b58c"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/instances/f8882fec-7d56-4e97-ad6d-5e3f4557971d/contactedReviewers/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
14+
"type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances/contactedReviewers",
15+
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
16+
"properties": {
17+
"userDisplayName": "Bob",
18+
"userPrincipalName": "[email protected]",
19+
"createdDateTime": "2018-08-03T21:02:30.667Z"
20+
}
21+
}
22+
]
23+
}
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)