-
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.
Exposing RoleAssignmentApproval APIs
- Loading branch information
1 parent
88aae44
commit 46fbc01
Showing
11 changed files
with
950 additions
and
0 deletions.
There are no files selected for viewing
627 changes: 627 additions & 0 deletions
627
...r/Microsoft.Authorization/preview/2018-05-01-preview/authorization-AccessReviewCalls.json
Large diffs are not rendered by default.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
...soft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovalById.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,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"properties": { | ||
"steps": [ | ||
{ | ||
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"properties": { | ||
"displayName": "Vice President Approval Step", | ||
"assignedToMe": true, | ||
"status": "InProgress", | ||
"reviewedBy": null, | ||
"reviewedDateTime": null, | ||
"reviewResult": "NotReviewed", | ||
"justification": "" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
....Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovalStepById.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,25 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"stepId": "4135f961-be78-4005-8101-c72a5af307a2" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"properties": { | ||
"displayName": "Vice President Approval Step", | ||
"assignedToMe": true, | ||
"status": "InProgress", | ||
"reviewedBy": null, | ||
"reviewedDateTime": null, | ||
"reviewResult": "NotReviewed", | ||
"justification": "" | ||
} | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...oft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovalSteps.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,28 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"properties": { | ||
"displayName": "Vice President Approval Step", | ||
"assignedToMe": true, | ||
"status": "InProgress", | ||
"reviewedBy": null, | ||
"reviewedDateTime": null, | ||
"reviewResult": "NotReviewed", | ||
"justification": "" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...crosoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovals.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,36 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"properties": { | ||
"steps": [ | ||
{ | ||
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"properties": { | ||
"displayName": "Vice President Approval Step", | ||
"assignedToMe": true, | ||
"status": "InProgress", | ||
"reviewedBy": null, | ||
"reviewedDateTime": null, | ||
"reviewResult": "NotReviewed", | ||
"justification": "" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...uthorization/preview/2018-05-01-preview/examples/PatchRoleAssignmentApprovalStepById.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,37 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"stepId": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"properties": {}, | ||
"body": { | ||
"properties": { | ||
"reviewResult": "Approve", | ||
"justification": "I trust this person." | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"properties": { | ||
"displayName": "Vice President Approval Step", | ||
"status": "Completed", | ||
"assignedToMe": true, | ||
"reviewedBy": { | ||
"principalType": "user", | ||
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"principalName": "Shubham Gupta", | ||
"userPrincipalName": "shugup@microsoft.com" | ||
}, | ||
"reviewedDateTime": "2018-08-03T21:02:30.667Z", | ||
"reviewResult": "Approve", | ||
"justification": "I trust this person" | ||
} | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovalById.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", | ||
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"properties": { | ||
"steps": [ | ||
{ | ||
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"properties": { | ||
"displayName": "Vice President Approval Step", | ||
"assignedToMe": true, | ||
"status": "InProgress", | ||
"reviewedBy": null, | ||
"reviewedDateTime": null, | ||
"reviewResult": "NotReviewed", | ||
"justification": "" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...orization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovalStepById.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,26 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"stepId": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"properties": { | ||
"displayName": "Vice President Approval Step", | ||
"assignedToMe": true, | ||
"status": "InProgress", | ||
"reviewedBy": null, | ||
"reviewedDateTime": null, | ||
"reviewResult": "NotReviewed", | ||
"justification": "" | ||
} | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...uthorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovalSteps.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,29 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"properties": { | ||
"displayName": "Vice President Approval Step", | ||
"assignedToMe": true, | ||
"status": "InProgress", | ||
"reviewedBy": null, | ||
"reviewedDateTime": null, | ||
"reviewResult": "NotReviewed", | ||
"justification": "" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...ft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovals.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,37 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"properties": { | ||
"steps": [ | ||
{ | ||
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"properties": { | ||
"displayName": "Vice President Approval Step", | ||
"assignedToMe": true, | ||
"status": "InProgress", | ||
"reviewedBy": null, | ||
"reviewedDateTime": null, | ||
"reviewResult": "NotReviewed", | ||
"justification": "" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...ization/preview/2018-05-01-preview/examples/ScopePatchRoleAssignmentApprovalStepById.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,38 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-01-preview", | ||
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"stepId": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea", | ||
"properties": {}, | ||
"body": { | ||
"properties": { | ||
"reviewResult": "Approve", | ||
"justification": "I trust this person." | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps", | ||
"name": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"properties": { | ||
"displayName": "Vice President Approval Step", | ||
"status": "Completed", | ||
"assignedToMe": true, | ||
"reviewedBy": { | ||
"principalType": "user", | ||
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"principalName": "Shubham Gupta", | ||
"userPrincipalName": "shugup@microsoft.com" | ||
}, | ||
"reviewedDateTime": "2018-08-03T21:02:30.667Z", | ||
"reviewResult": "Approve", | ||
"justification": "I trust this person" | ||
} | ||
} | ||
} | ||
} | ||
} |