Skip to content

Commit 1591626

Browse files
RyanRyan Truong
andauthored
Added BeginGetAccess and EndGetAccess for diskRestorePoint to 2020-12-01 (#14505)
* Added BeginGetAccess and EndGetAccess for diskRestorePoint * minor fix * added examples * Fixed LintDiff and Prettier errors Co-authored-by: Ryan Truong <rytruong@microsoft.com>
1 parent da98983 commit 1591626

File tree

3 files changed

+152
-0
lines changed

3 files changed

+152
-0
lines changed

specification/compute/resource-manager/Microsoft.Compute/stable/2020-12-01/disk.json

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,6 +1668,122 @@
16681668
"nextLinkName": "nextLink"
16691669
}
16701670
}
1671+
},
1672+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess": {
1673+
"post": {
1674+
"tags": [
1675+
"IncrementalRestorePoints"
1676+
],
1677+
"operationId": "DiskRestorePoint_GrantAccess",
1678+
"description": "Grants access to a diskRestorePoint.",
1679+
"parameters": [
1680+
{
1681+
"$ref": "#/parameters/SubscriptionIdParameter"
1682+
},
1683+
{
1684+
"$ref": "#/parameters/ResourceGroupNameParameter"
1685+
},
1686+
{
1687+
"$ref": "#/parameters/RestorePointCollectionNameParameter"
1688+
},
1689+
{
1690+
"$ref": "#/parameters/VmRestorePointNameParameter"
1691+
},
1692+
{
1693+
"$ref": "#/parameters/DiskRestorePointNameParameter"
1694+
},
1695+
{
1696+
"$ref": "#/parameters/ApiVersionParameter"
1697+
},
1698+
{
1699+
"name": "grantAccessData",
1700+
"in": "body",
1701+
"required": true,
1702+
"schema": {
1703+
"$ref": "#/definitions/GrantAccessData"
1704+
},
1705+
"description": "Access data object supplied in the body of the get disk access operation."
1706+
}
1707+
],
1708+
"responses": {
1709+
"200": {
1710+
"description": "OK",
1711+
"schema": {
1712+
"$ref": "#/definitions/AccessUri"
1713+
}
1714+
},
1715+
"202": {
1716+
"description": "Accepted"
1717+
},
1718+
"default": {
1719+
"description": "Error response describing why the operation failed.",
1720+
"schema": {
1721+
"$ref": "#/definitions/CloudError"
1722+
}
1723+
}
1724+
},
1725+
"x-ms-long-running-operation": true,
1726+
"x-ms-long-running-operation-options": {
1727+
"final-state-via": "location"
1728+
},
1729+
"x-ms-examples": {
1730+
"Grants access to a diskRestorePoint.": {
1731+
"$ref": "./examples/BeginGetAccessDiskRestorePoint.json"
1732+
}
1733+
}
1734+
}
1735+
},
1736+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess": {
1737+
"post": {
1738+
"tags": [
1739+
"IncrementalRestorePoints"
1740+
],
1741+
"operationId": "DiskRestorePoint_RevokeAccess",
1742+
"description": "Revokes access to a diskRestorePoint.",
1743+
"parameters": [
1744+
{
1745+
"$ref": "#/parameters/SubscriptionIdParameter"
1746+
},
1747+
{
1748+
"$ref": "#/parameters/ResourceGroupNameParameter"
1749+
},
1750+
{
1751+
"$ref": "#/parameters/RestorePointCollectionNameParameter"
1752+
},
1753+
{
1754+
"$ref": "#/parameters/VmRestorePointNameParameter"
1755+
},
1756+
{
1757+
"$ref": "#/parameters/DiskRestorePointNameParameter"
1758+
},
1759+
{
1760+
"$ref": "#/parameters/ApiVersionParameter"
1761+
}
1762+
],
1763+
"responses": {
1764+
"200": {
1765+
"description": "OK"
1766+
},
1767+
"202": {
1768+
"description": "Accepted"
1769+
},
1770+
"default": {
1771+
"description": "Error response describing why the operation failed.",
1772+
"schema": {
1773+
"$ref": "#/definitions/CloudError"
1774+
}
1775+
}
1776+
},
1777+
"x-ms-long-running-operation": true,
1778+
"x-ms-long-running-operation-options": {
1779+
"final-state-via": "location"
1780+
},
1781+
"x-ms-examples": {
1782+
"Revokes access to a diskRestorePoint.": {
1783+
"$ref": "./examples/EndGetAccessDiskRestorePoint.json"
1784+
}
1785+
}
1786+
}
16711787
}
16721788
},
16731789
"definitions": {
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "myResourceGroup",
5+
"restorePointCollectionName": "rpc",
6+
"vmRestorePointName": "vmrp",
7+
"diskRestorePointName": "TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745",
8+
"api-version": "2020-12-01",
9+
"grantAccessData": {
10+
"access": "Read",
11+
"durationInSeconds": 300
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"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"
18+
}
19+
},
20+
"202": {}
21+
}
22+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "myResourceGroup",
5+
"restorePointCollectionName": "rpc",
6+
"vmRestorePointName": "vmrp",
7+
"diskRestorePointName": "TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745",
8+
"api-version": "2020-12-01"
9+
},
10+
"responses": {
11+
"200": {},
12+
"202": {}
13+
}
14+
}

0 commit comments

Comments
 (0)