Microsoft.Storage (stable:2024-01-01)

2025/02/26 • 4 updated methods

FileShares_List (updated)
Description Lists all shares.
Reference Link ¶

⚶ Changes

{
  "#id": "FileShares_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "#name": "nextAllowedQuotaDowngradeTime",
                "Format": {
                  "new": "date-time-rfc1123",
                  "old": "date-time"
                }
              },
              {
                "#name": "nextAllowedProvisionedIopsDowngradeTime",
                "Format": {
                  "new": "date-time-rfc1123",
                  "old": "date-time"
                }
              },
              {
                "#name": "nextAllowedProvisionedBandwidthDowngradeTime",
                "Format": {
                  "new": "date-time-rfc1123",
                  "old": "date-time"
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares
{
resourceGroupName: string ,
accountName: string ,
api-version: string ,
subscriptionId: string ,
$maxpagesize: string ,
$filter: string ,
$expand: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
lastModifiedTime: string ,
metadata: object ,
shareQuota: integer ,
provisionedIops: integer ,
provisionedBandwidthMibps: integer ,
includedBurstIops: integer ,
maxBurstCreditsForIops: integer ,
nextAllowedQuotaDowngradeTime: string ,
nextAllowedProvisionedIopsDowngradeTime: string ,
nextAllowedProvisionedBandwidthDowngradeTime: string ,
enabledProtocols: enum ,
rootSquash: enum ,
version: string ,
deleted: boolean ,
deletedTime: string ,
remainingRetentionDays: integer ,
accessTier: enum ,
accessTierChangeTime: string ,
accessTierStatus: string ,
shareUsageBytes: integer ,
leaseStatus: enum ,
leaseState: enum ,
leaseDuration: enum ,
signedIdentifiers:
[
{
id: string ,
accessPolicy:
{
startTime: string ,
expiryTime: string ,
permission: string ,
}
,
}
,
]
,
snapshotTime: string ,
fileSharePaidBursting:
{
paidBurstingEnabled: boolean ,
paidBurstingMaxIops: integer ,
paidBurstingMaxBandwidthMibps: integer ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
FileShares_Create (updated)
Description Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
Reference Link ¶

⚶ Changes

{
  "#id": "FileShares_Create",
  "$parameters": {
    "fileShare": {
      "$properties": {
        "properties": [
          {
            "#name": "nextAllowedQuotaDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          },
          {
            "#name": "nextAllowedProvisionedIopsDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          },
          {
            "#name": "nextAllowedProvisionedBandwidthDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "201": {
      "$properties": {
        "properties": [
          {
            "#name": "nextAllowedQuotaDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          },
          {
            "#name": "nextAllowedProvisionedIopsDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          },
          {
            "#name": "nextAllowedProvisionedBandwidthDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          }
        ]
      }
    },
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "nextAllowedQuotaDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          },
          {
            "#name": "nextAllowedProvisionedIopsDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          },
          {
            "#name": "nextAllowedProvisionedBandwidthDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}
{
resourceGroupName: string ,
accountName: string ,
shareName: string ,
fileShare:
{
properties:
{
lastModifiedTime: string ,
metadata: object ,
shareQuota: integer ,
provisionedIops: integer ,
provisionedBandwidthMibps: integer ,
includedBurstIops: integer ,
maxBurstCreditsForIops: integer ,
nextAllowedQuotaDowngradeTime: string ,
nextAllowedProvisionedIopsDowngradeTime: string ,
nextAllowedProvisionedBandwidthDowngradeTime: string ,
enabledProtocols: enum ,
rootSquash: enum ,
version: string ,
deleted: boolean ,
deletedTime: string ,
remainingRetentionDays: integer ,
accessTier: enum ,
accessTierChangeTime: string ,
accessTierStatus: string ,
shareUsageBytes: integer ,
leaseStatus: enum ,
leaseState: enum ,
leaseDuration: enum ,
signedIdentifiers:
[
{
id: string ,
accessPolicy:
{
startTime: string ,
expiryTime: string ,
permission: string ,
}
,
}
,
]
,
snapshotTime: string ,
fileSharePaidBursting:
{
paidBurstingEnabled: boolean ,
paidBurstingMaxIops: integer ,
paidBurstingMaxBandwidthMibps: integer ,
}
,
}
,
}
,
$expand: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (201)

{
properties:
{
lastModifiedTime: string ,
metadata: object ,
shareQuota: integer ,
provisionedIops: integer ,
provisionedBandwidthMibps: integer ,
includedBurstIops: integer ,
maxBurstCreditsForIops: integer ,
nextAllowedQuotaDowngradeTime: string ,
nextAllowedProvisionedIopsDowngradeTime: string ,
nextAllowedProvisionedBandwidthDowngradeTime: string ,
enabledProtocols: enum ,
rootSquash: enum ,
version: string ,
deleted: boolean ,
deletedTime: string ,
remainingRetentionDays: integer ,
accessTier: enum ,
accessTierChangeTime: string ,
accessTierStatus: string ,
shareUsageBytes: integer ,
leaseStatus: enum ,
leaseState: enum ,
leaseDuration: enum ,
signedIdentifiers:
[
{
id: string ,
accessPolicy:
{
startTime: string ,
expiryTime: string ,
permission: string ,
}
,
}
,
]
,
snapshotTime: string ,
fileSharePaidBursting:
{
paidBurstingEnabled: boolean ,
paidBurstingMaxIops: integer ,
paidBurstingMaxBandwidthMibps: integer ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
lastModifiedTime: string ,
metadata: object ,
shareQuota: integer ,
provisionedIops: integer ,
provisionedBandwidthMibps: integer ,
includedBurstIops: integer ,
maxBurstCreditsForIops: integer ,
nextAllowedQuotaDowngradeTime: string ,
nextAllowedProvisionedIopsDowngradeTime: string ,
nextAllowedProvisionedBandwidthDowngradeTime: string ,
enabledProtocols: enum ,
rootSquash: enum ,
version: string ,
deleted: boolean ,
deletedTime: string ,
remainingRetentionDays: integer ,
accessTier: enum ,
accessTierChangeTime: string ,
accessTierStatus: string ,
shareUsageBytes: integer ,
leaseStatus: enum ,
leaseState: enum ,
leaseDuration: enum ,
signedIdentifiers:
[
{
id: string ,
accessPolicy:
{
startTime: string ,
expiryTime: string ,
permission: string ,
}
,
}
,
]
,
snapshotTime: string ,
fileSharePaidBursting:
{
paidBurstingEnabled: boolean ,
paidBurstingMaxIops: integer ,
paidBurstingMaxBandwidthMibps: integer ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
FileShares_Update (updated)
Description Updates share properties as specified in request body. Properties not mentioned in the request will not be changed. Update fails if the specified share does not already exist.
Reference Link ¶

⚶ Changes

{
  "#id": "FileShares_Update",
  "$parameters": {
    "fileShare": {
      "$properties": {
        "properties": [
          {
            "#name": "nextAllowedQuotaDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          },
          {
            "#name": "nextAllowedProvisionedIopsDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          },
          {
            "#name": "nextAllowedProvisionedBandwidthDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "nextAllowedQuotaDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          },
          {
            "#name": "nextAllowedProvisionedIopsDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          },
          {
            "#name": "nextAllowedProvisionedBandwidthDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}
{
resourceGroupName: string ,
accountName: string ,
shareName: string ,
fileShare:
{
properties:
{
lastModifiedTime: string ,
metadata: object ,
shareQuota: integer ,
provisionedIops: integer ,
provisionedBandwidthMibps: integer ,
includedBurstIops: integer ,
maxBurstCreditsForIops: integer ,
nextAllowedQuotaDowngradeTime: string ,
nextAllowedProvisionedIopsDowngradeTime: string ,
nextAllowedProvisionedBandwidthDowngradeTime: string ,
enabledProtocols: enum ,
rootSquash: enum ,
version: string ,
deleted: boolean ,
deletedTime: string ,
remainingRetentionDays: integer ,
accessTier: enum ,
accessTierChangeTime: string ,
accessTierStatus: string ,
shareUsageBytes: integer ,
leaseStatus: enum ,
leaseState: enum ,
leaseDuration: enum ,
signedIdentifiers:
[
{
id: string ,
accessPolicy:
{
startTime: string ,
expiryTime: string ,
permission: string ,
}
,
}
,
]
,
snapshotTime: string ,
fileSharePaidBursting:
{
paidBurstingEnabled: boolean ,
paidBurstingMaxIops: integer ,
paidBurstingMaxBandwidthMibps: integer ,
}
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
lastModifiedTime: string ,
metadata: object ,
shareQuota: integer ,
provisionedIops: integer ,
provisionedBandwidthMibps: integer ,
includedBurstIops: integer ,
maxBurstCreditsForIops: integer ,
nextAllowedQuotaDowngradeTime: string ,
nextAllowedProvisionedIopsDowngradeTime: string ,
nextAllowedProvisionedBandwidthDowngradeTime: string ,
enabledProtocols: enum ,
rootSquash: enum ,
version: string ,
deleted: boolean ,
deletedTime: string ,
remainingRetentionDays: integer ,
accessTier: enum ,
accessTierChangeTime: string ,
accessTierStatus: string ,
shareUsageBytes: integer ,
leaseStatus: enum ,
leaseState: enum ,
leaseDuration: enum ,
signedIdentifiers:
[
{
id: string ,
accessPolicy:
{
startTime: string ,
expiryTime: string ,
permission: string ,
}
,
}
,
]
,
snapshotTime: string ,
fileSharePaidBursting:
{
paidBurstingEnabled: boolean ,
paidBurstingMaxIops: integer ,
paidBurstingMaxBandwidthMibps: integer ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
FileShares_Get (updated)
Description Gets properties of a specified share.
Reference Link ¶

⚶ Changes

{
  "#id": "FileShares_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "nextAllowedQuotaDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          },
          {
            "#name": "nextAllowedProvisionedIopsDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          },
          {
            "#name": "nextAllowedProvisionedBandwidthDowngradeTime",
            "Format": {
              "new": "date-time-rfc1123",
              "old": "date-time"
            }
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}
{
resourceGroupName: string ,
accountName: string ,
shareName: string ,
api-version: string ,
subscriptionId: string ,
$expand: string ,
x-ms-snapshot: string ,
}

⚐ Response (200)

{
properties:
{
lastModifiedTime: string ,
metadata: object ,
shareQuota: integer ,
provisionedIops: integer ,
provisionedBandwidthMibps: integer ,
includedBurstIops: integer ,
maxBurstCreditsForIops: integer ,
nextAllowedQuotaDowngradeTime: string ,
nextAllowedProvisionedIopsDowngradeTime: string ,
nextAllowedProvisionedBandwidthDowngradeTime: string ,
enabledProtocols: enum ,
rootSquash: enum ,
version: string ,
deleted: boolean ,
deletedTime: string ,
remainingRetentionDays: integer ,
accessTier: enum ,
accessTierChangeTime: string ,
accessTierStatus: string ,
shareUsageBytes: integer ,
leaseStatus: enum ,
leaseState: enum ,
leaseDuration: enum ,
signedIdentifiers:
[
{
id: string ,
accessPolicy:
{
startTime: string ,
expiryTime: string ,
permission: string ,
}
,
}
,
]
,
snapshotTime: string ,
fileSharePaidBursting:
{
paidBurstingEnabled: boolean ,
paidBurstingMaxIops: integer ,
paidBurstingMaxBandwidthMibps: integer ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}