diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/authorization-AccessReviewCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/authorization-AccessReviewCalls.json index da4cc8442a8e..629b058f35ba 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/authorization-AccessReviewCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/authorization-AccessReviewCalls.json @@ -1026,6 +1026,474 @@ } } } + }, + "/providers/Microsoft.Authorization/roleAssignmentApprovals": { + "get": { + "tags": [ + "ListRoleAssignmentApprovals" + ], + "operationId": "RoleAssignmentApproval_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetRoleAssignmentApprovals.json" + } + }, + "description": "Get role assignment approvals.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/providers/Microsoft.Authorization/roleAssignmentApprovals/{approvalId}": { + "get": { + "tags": [ + "GetRoleAssignmentApprovalById" + ], + "operationId": "RoleAssignmentApproval_GetById", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetRoleAssignmentApprovalById.json" + } + }, + "description": "Get role assignment approval.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApproval" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/providers/Microsoft.Authorization/roleAssignmentApprovals/{approvalId}/steps": { + "get": { + "tags": [ + "GetRoleAssignmentApprovalSteps" + ], + "operationId": "RoleAssignmentApprovalSteps_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetRoleAssignmentApprovalSteps.json" + } + }, + "description": "Get role assignment approval.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStepListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/providers/Microsoft.Authorization/roleAssignmentApprovals/{approvalId}/steps/{stepId}": { + "get": { + "tags": [ + "GetRoleAssignmentApprovalStepById" + ], + "operationId": "RoleAssignmentApprovalStep_GetById", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetRoleAssignmentApprovalStepById.json" + } + }, + "description": "Get role assignment approval.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "name": "stepId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval step." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + }, + "patch": { + "tags": [ + "PatchRoleAssignmentApprovalStep" + ], + "operationId": "RoleAssignmentApprovalStep_Patch", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/PatchRoleAssignmentApprovalStepById.json" + } + }, + "description": "Record a decision.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "name": "stepId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval step." + }, + { + "name": "properties", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStepProperties" + }, + "description": "Access review decision properties to patch." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/roleAssignmentApprovals": { + "get": { + "tags": [ + "ScopeListRoleAssignmentApprovals" + ], + "operationId": "ScopeRoleAssignmentApproval_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/ScopeGetRoleAssignmentApprovals.json" + } + }, + "description": "Get role assignment approvals.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the resource.", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/roleAssignmentApprovals/{approvalId}": { + "get": { + "tags": [ + "ScopeGetRoleAssignmentApprovalById" + ], + "operationId": "ScopeRoleAssignmentApproval_GetById", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/ScopeGetRoleAssignmentApprovalById.json" + } + }, + "description": "Get role assignment approval.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the resource.", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApproval" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/roleAssignmentApprovals/{approvalId}/steps": { + "get": { + "tags": [ + "ScopeGetRoleAssignmentApprovalSteps" + ], + "operationId": "ScopeRoleAssignmentApprovalSteps_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/ScopeGetRoleAssignmentApprovalSteps.json" + } + }, + "description": "Get role assignment approval.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the resource.", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStepListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/roleAssignmentApprovals/{approvalId}/steps/{stepId}": { + "get": { + "tags": [ + "ScopeGetRoleAssignmentApprovalStepById" + ], + "operationId": "ScopeRoleAssignmentApprovalStep_GetById", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/ScopeGetRoleAssignmentApprovalStepById.json" + } + }, + "description": "Get role assignment approval.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "name": "stepId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval step." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the resource.", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + }, + "patch": { + "tags": [ + "ScopePatchRoleAssignmentApprovalStep" + ], + "operationId": "ScopeRoleAssignmentApprovalStep_Patch", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/ScopePatchRoleAssignmentApprovalStepById.json" + } + }, + "description": "Record a decision.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "name": "stepId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval step." + }, + { + "name": "properties", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStepProperties" + }, + "description": "Access review decision properties to patch." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the resource.", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } } }, "definitions": { @@ -1679,6 +2147,165 @@ }, "description": "List of access review decisions." }, + "RoleAssignmentApproval": { + "x-ms-azure-resource": true, + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The role assignment approval id." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The role assignment approval unique id." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The resource type." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RoleAssignmentApprovalProperties", + "description": "Role Assignment Approval properties." + } + }, + "description": "Role Assignment Approval." + }, + "RoleAssignmentApprovalProperties": { + "properties": { + "steps": { + "type": "array", + "items": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + }, + "description": "This is the collection of steps returned when one does an expand on it." + } + }, + "description": "Role Assignment Approval properties." + }, + "RoleAssignmentApprovalListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RoleAssignmentApproval" + }, + "description": "Role Assignment Approval list." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of role assignment approvals." + }, + "RoleAssignmentApprovalStep": { + "x-ms-azure-resource": true, + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The role assignment approval step id." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The role assignment approval step name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The resource type." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RoleAssignmentApprovalStepProperties", + "description": "Role Assignment Approval Step properties." + } + }, + "description": "Role assignment approval step properties." + }, + "RoleAssignmentApprovalStepProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "The display name for the approval step." + }, + "status": { + "type": "string", + "readOnly": true, + "description": "This read-only field specifies the status of an approval.", + "enum": [ + "NotStarted", + "InProgress", + "Completed", + "Expired", + "Initializing", + "Escalating", + "Completing", + "Escalated" + ], + "x-ms-enum": { + "name": "RoleAssignmentApprovalStepStatus", + "modelAsString": true + } + }, + "assignedToMe": { + "description": "Indicates whether the step is assigned to me for review", + "type": "boolean" + }, + "reviewedBy": { + "readOnly": true, + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewActorIdentity", + "description": "Details of the approver.", + "x-nullable": true + }, + "reviewedDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "Date Time when a decision was taken.", + "x-nullable": true + }, + "reviewResult": { + "type": "string", + "description": "The decision on the approval step. This value is initially set to NotReviewed. Approvers can take action of Approve/Deny", + "enum": [ + "Approve", + "Deny", + "NotReviewed" + ], + "x-ms-enum": { + "name": "RoleAssignmentApprovalStepReviewResult", + "modelAsString": true + } + }, + "justification": { + "type": "string", + "description": "Justification provided by approvers for their action" + } + }, + "description": "Approval Step." + }, + "RoleAssignmentApprovalStepListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + }, + "description": "Role Assignment Approval Step list." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of role assignment approval step list." + }, "ErrorDefinition": { "type": "object", "title": "Error", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovalById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovalById.json new file mode 100644 index 000000000000..d5cef425f279 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovalById.json @@ -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": "" + } + } + ] + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovalStepById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovalStepById.json new file mode 100644 index 000000000000..6694cd2f95e8 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovalStepById.json @@ -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": "" + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovalSteps.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovalSteps.json new file mode 100644 index 000000000000..540bea17abea --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovalSteps.json @@ -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": "" + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovals.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovals.json new file mode 100644 index 000000000000..233f042d050f --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetRoleAssignmentApprovals.json @@ -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": "" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/PatchRoleAssignmentApprovalStepById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/PatchRoleAssignmentApprovalStepById.json new file mode 100644 index 000000000000..ea0583b3f718 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/PatchRoleAssignmentApprovalStepById.json @@ -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" + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovalById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovalById.json new file mode 100644 index 000000000000..b4d0b3141ce9 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovalById.json @@ -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": "" + } + } + ] + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovalStepById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovalStepById.json new file mode 100644 index 000000000000..4363333bc63b --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovalStepById.json @@ -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": "" + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovalSteps.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovalSteps.json new file mode 100644 index 000000000000..2c3f50c290e5 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovalSteps.json @@ -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": "" + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovals.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovals.json new file mode 100644 index 000000000000..c2f6a7a59a57 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopeGetRoleAssignmentApprovals.json @@ -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": "" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopePatchRoleAssignmentApprovalStepById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopePatchRoleAssignmentApprovalStepById.json new file mode 100644 index 000000000000..05ba772c3339 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/ScopePatchRoleAssignmentApprovalStepById.json @@ -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" + } + } + } + } +}