Skip to content
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

Added BeginGetAccess and EndGetAccess for diskRestorePoint to 2020-12-01 #14505

Merged
merged 4 commits into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,110 @@
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess": {
"post": {
"tags": [
"IncrementalRestorePoints"
],
"operationId": "DiskRestorePoint_GrantAccess",
"description": "Grants access to a diskRestorePoint.",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/RestorePointCollectionNameParameter"
},
{
"$ref": "#/parameters/VmRestorePointNameParameter"
},
{
"$ref": "#/parameters/DiskRestorePointNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "grantAccessData",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/GrantAccessData"
},
"description": "Access data object supplied in the body of the get disk access operation."
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/AccessUri"
}
},
"202": {
"description": "Accepted"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-examples": {
"Grants access to a diskRestorePoint.": {
"$ref": "./examples/BeginGetAccessDiskRestorePoint.json"
}
}
}
rytruong marked this conversation as resolved.
Show resolved Hide resolved
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess": {
"post": {
"tags": [
"IncrementalRestorePoints"
],
"operationId": "DiskRestorePoint_RevokeAccess",
"description": "Revokes access to a diskRestorePoint.",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/RestorePointCollectionNameParameter"
},
{
"$ref": "#/parameters/VmRestorePointNameParameter"
},
{
"$ref": "#/parameters/DiskRestorePointNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK"
},
"202": {
"description": "Accepted"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-examples": {
"Revokes access to a diskRestorePoint.": {
"$ref": "./examples/EndGetAccessDiskRestorePoint.json"
}
}
}
}
},
"definitions": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"restorePointCollectionName": "rpc",
"vmRestorePointName": "vmrp",
"diskRestorePointName": "TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745",
"api-version": "2020-12-01",
"grantAccessData": {
"access": "Read",
"durationInSeconds": 300
}
},
"responses": {
"200": {
"body": {
"accessSAS": "https://md-gpvmcxzlzxgd.partition.blob.storage.azure.net/xx3cqcx53f0v/abcd?sv=2014-02-14&sr=b&sk=key1&sig=XXX&st=2021-05-24T18:02:34Z&se=2021-05-24T18:19:14Z&sp=r"
}
},
"202": {}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"restorePointCollectionName": "rpc",
"vmRestorePointName": "vmrp",
"diskRestorePointName": "TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745",
"api-version": "2020-12-01"
},
"responses": {
"200": {},
"202": {}
}
}