Skip to content

Commit

Permalink
[Storage] File share snapshots CRUD (Azure#11372)
Browse files Browse the repository at this point in the history
  • Loading branch information
zfchen95 authored and giromm2ms committed Dec 20, 2020
1 parent f8b3f74 commit a2c2ec4
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res9290",
"accountName": "sto1590",
"$expand": "snapshots",
"api-version": "2020-08-01-preview",
"monitor": "true"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto1590/fileServices/default/shares/share4052",
"name": "share4052",
"type": "Microsoft.Storage/storageAccounts/fileServices/shares",
"etag": "\"0x8D589847DAB5AF9\"",
"properties": {
"lastModifiedTime": "2020-10-26T05:47:05.0000000Z",
"shareQuota": 1024
}
},
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto1590/fileServices/default/shares/share4052",
"name": "share4052",
"type": "Microsoft.Storage/storageAccounts/fileServices/shares",
"etag": "\"0x8D589847DAB5AF9\"",
"properties": {
"lastModifiedTime": "2020-10-26T05:47:05.0000000Z",
"shareQuota": 1024,
"snapshotTime": "2020-10-26T05:48:07.0000000Z"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@
},
"ListDeletedShares": {
"$ref": "./examples/DeletedFileSharesList.json"
},
"ListShareSnapshots": {
"$ref": "./examples/FileShareSnapshotsList.json"
}
},
"description": "Lists all shares.",
Expand Down Expand Up @@ -204,7 +207,8 @@
"required": false,
"type": "string",
"enum": [
"deleted"
"deleted",
"snapshots"
],
"x-ms-enum": {
"name": "ListSharesExpand",
Expand Down Expand Up @@ -269,6 +273,20 @@
},
"description": "Properties of the file share to create."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
"enum": [
"snapshots"
],
"x-ms-enum": {
"name": "PutSharesExpand",
"modelAsString": false
},
"description": "Optional, used to create a snapshot."
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
Expand Down Expand Up @@ -393,6 +411,13 @@
"modelAsString": false
},
"description": "Optional, used to expand the properties within share's properties."
},
{
"name": "x-ms-snapshot",
"in": "header",
"required": false,
"type": "string",
"description": "Optional, used to retrieve properties of a snapshot."
}
],
"responses": {
Expand Down Expand Up @@ -436,6 +461,13 @@
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"name": "x-ms-snapshot",
"in": "header",
"required": false,
"type": "string",
"description": "Optional, used to delete a snapshot."
}
],
"responses": {
Expand Down Expand Up @@ -746,6 +778,12 @@
"format": "int64",
"readOnly": true,
"description": "The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files."
},
"snapshotTime": {
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "Creation time of share snapshot returned in the response of list shares with expand param \"snapshots\"."
}
},
"description": "The properties of the file share."
Expand Down

0 comments on commit a2c2ec4

Please sign in to comment.