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

[Storage] File share snapshots CRUD #11372

Merged
merged 1 commit into from
Nov 10, 2020
Merged
Show file tree
Hide file tree
Changes from all 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
@@ -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