-
Notifications
You must be signed in to change notification settings - Fork 5.6k
ResourceGuard Proxy related changes for MFA MUA #13477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
15aef61
MFA MUA V1 swagger changes
madhude c675cb4
Copying json from 2021-02-01 to 2021-02-01-preview
madhude 4db008b
Moving these details under Preview folder
madhude 9ffaef1
Fixing Avocado errors
madhude 83c5337
updated version in example json files
madhude e376cf3
ResourceGuardProxy related changes
madhude eb2ce71
Merge branch 'master' into master
deymadhumanti 79c1c65
Resolved spell check errors
madhude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -3916,6 +3916,263 @@ | |
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies": { | ||
| "get": { | ||
| "tags": [ | ||
| "ResourceGuardProxies" | ||
| ], | ||
| "description": "List the ResourceGuardProxies under vault", | ||
| "operationId": "ResourceGuardProxies_Get", | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersion" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/VaultName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ResourceGroupName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SubscriptionId" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/ResourceGuardProxyBaseResourceList" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| }, | ||
| "x-ms-examples": { | ||
| "Get VaultGuardProxies": { | ||
| "$ref": "./examples/ResourceGuardProxyCRUD/ListResourceGuardProxy.json" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}": { | ||
| "get": { | ||
| "tags": [ | ||
| "ResourceGuardProxy" | ||
| ], | ||
| "description": "Returns ResourceGuardProxy under vault and with the name referenced in request", | ||
| "operationId": "ResourceGuardProxy_Get", | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersion" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/VaultName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ResourceGroupName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SubscriptionId" | ||
| }, | ||
| { | ||
| "name": "resourceGuardProxyName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/ResourceGuardProxyBaseResource" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "Get ResourceGuardProxy": { | ||
| "$ref": "./examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json" | ||
| } | ||
| } | ||
| }, | ||
| "put": { | ||
| "tags": [ | ||
| "ResourceGuardProxy" | ||
| ], | ||
| "description": "Add or Update ResourceGuardProxy under vault\r\nSecures vault critical operations", | ||
| "operationId": "ResourceGuardProxy_Put", | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersion" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/VaultName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ResourceGroupName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SubscriptionId" | ||
| }, | ||
| { | ||
| "name": "resourceGuardProxyName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/ResourceGuardProxyBaseResource" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "Create ResourceGuardProxy": { | ||
| "$ref": "./examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json" | ||
| } | ||
| } | ||
| }, | ||
| "delete": { | ||
| "tags": [ | ||
| "ResourceGuardProxy" | ||
| ], | ||
| "description": "Delete ResourceGuardProxy under vault", | ||
| "operationId": "ResourceGuardProxy_Delete", | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersion" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/VaultName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ResourceGroupName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SubscriptionId" | ||
| }, | ||
| { | ||
| "name": "resourceGuardProxyName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK" | ||
| }, | ||
| "204": { | ||
| "description": "NoContent" | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "Delete ResourceGuardProxy": { | ||
| "$ref": "./examples/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}/unlockDelete": { | ||
| "post": { | ||
| "tags": [ | ||
| "ResourceGuardProxy" | ||
| ], | ||
| "description": "Secures delete ResourceGuardProxy operations.", | ||
| "operationId": "ResourceGuardProxy_UnlockDelete", | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersion" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/VaultName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ResourceGroupName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SubscriptionId" | ||
| }, | ||
| { | ||
| "name": "resourceGuardProxyName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "parameters", | ||
| "in": "body", | ||
| "description": "Request body for operation", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "#/definitions/UnlockDeleteRequest" | ||
| } | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/UnlockDeleteResponse" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "UnlockDelete ResourceGuardProxy": { | ||
| "$ref": "./examples/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
|
|
@@ -8315,6 +8572,13 @@ | |
| "name": "SoftDeleteFeatureState", | ||
| "modelAsString": true | ||
| } | ||
| }, | ||
| "resourceGuardOperationRequests": { | ||
| "description": "ResourceGuard Operation Requests", | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
|
|
@@ -11235,6 +11499,87 @@ | |
| } | ||
| } | ||
| } | ||
| }, | ||
| "UnlockDeleteRequest": { | ||
| "description": "Request body of unlock delete API.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceGuardOperationRequests": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "UnlockDeleteResponse": { | ||
| "description": "Response of Unlock Delete API.", | ||
| "type": "object", | ||
| "properties": { | ||
| "unlockDeleteExpiryTime": { | ||
| "description": "This is the time when unlock delete privileges will get expired.", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceGuardOperationDetail": { | ||
| "type": "object", | ||
| "properties": { | ||
| "vaultCriticalOperation": { | ||
| "type": "string" | ||
| }, | ||
| "defaultResourceRequest": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceGuardProxyBase": { | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceGuardResourceId": { | ||
| "type": "string" | ||
| }, | ||
| "resourceGuardOperationDetails": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/ResourceGuardOperationDetail" | ||
| } | ||
| }, | ||
| "lastUpdatedTime": { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mark properties as readonly where ever applicable. lastUpdatedTime isnt a property that customer can set. Please mark this and any other such as readOnly |
||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceGuardProxyBaseResource": { | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/Resource" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "properties": { | ||
| "$ref": "#/definitions/ResourceGuardProxyBase", | ||
| "description": "ResourceGuardProxyBaseResource properties" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceGuardProxyBaseResourceList": { | ||
| "description": "List of ResourceGuardProxyBase resources", | ||
| "type": "object", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/ResourceList" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "value": { | ||
| "description": "List of resources.", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/ResourceGuardProxyBaseResource" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
|
|
||
13 changes: 13 additions & 0 deletions
13
.../preview/2021-02-01-preview/examples/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json
This file contains hidden or 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,13 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", | ||
| "vaultName": "sampleVault", | ||
| "resourceGroupName": "SampleResourceGroup", | ||
| "resourceGuardProxyName": "swaggerExample", | ||
| "api-version": "2021-02-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "204": {} | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can any of these properties be enums? read only?