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+
}

0 commit comments

Comments
 (0)