Sdílet prostřednictvím


File Services - Get Service Usage

Gets the usage of file service in storage account including account limits, file share limits and constants used in recommendations and bursting formula.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/usages/default?api-version=2024-01-01

URI Parameters

Name In Required Type Description
accountName
path True

string

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

Regex pattern: ^[a-z0-9]+$

FileServicesName
path True

FileServicesName

The name of the file Service within the specified storage account. File Service Name must be "default"

fileServiceUsagesName
path True

fileServiceUsagesName

The name of the file service usage. File Service Usage Name must be "default"

Regex pattern: ^[a-z][a-z0-9]*$

resourceGroupName
path True

string

The name of the resource group within the user's subscription. The name is case insensitive.

Regex pattern: ^[-\w\._\(\)]+$

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

FileServiceUsage

OK -- returned the usage of a storage account’s File service.

Other Status Codes

CloudError

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

GetFileServiceUsage

Sample request

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/fileServices/default/usages/default?api-version=2024-01-01

Sample response

{
  "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/fileServices/default/usages/default",
  "name": "default",
  "type": "Microsoft.Storage/storageAccounts/fileServices/usages",
  "properties": {
    "storageAccountLimits": {
      "maxFileShares": 50,
      "maxProvisionedStorageGiB": 262144,
      "maxProvisionedIOPS": 102400,
      "maxProvisionedBandwidthMiBPerSec": 10340
    },
    "fileShareLimits": {
      "minProvisionedStorageGiB": 32,
      "maxProvisionedStorageGiB": 262144,
      "minProvisionedIOPS": 3000,
      "maxProvisionedIOPS": 102400,
      "minProvisionedBandwidthMiBPerSec": 125,
      "maxProvisionedBandwidthMiBPerSec": 10340
    },
    "fileShareRecommendations": {
      "baseIOPS": 3000,
      "ioScalar": 1,
      "baseBandwidthMiBPerSec": 125,
      "bandwidthScalar": 0.1
    },
    "burstingConstants": {
      "burstFloorIOPS": 10000,
      "burstIOScalar": 3,
      "burstTimeframeSeconds": 3600
    },
    "storageAccountUsage": {
      "liveShares": {
        "fileShareCount": 2,
        "provisionedStorageGiB": 64,
        "provisionedIOPS": 6064,
        "provisionedBandwidthMiBPerSec": 258
      },
      "softDeletedShares": {
        "fileShareCount": 1,
        "provisionedStorageGiB": 100,
        "provisionedIOPS": 3000,
        "provisionedBandwidthMiBPerSec": 125
      }
    }
  }
}

Definitions

Name Description
AccountLimits

Maximum provisioned storage, IOPS, bandwidth and number of file shares limits for the storage account.

AccountUsage

Usage of provisioned storage, IOPS, bandwidth and number of file shares across all live shares and soft-deleted shares in the account.

AccountUsageElements

Usage of provisioned storage, IOPS, bandwidth and number of file shares across all live shares or soft-deleted shares in the account.

BurstingConstants

Constants used for calculating included burst IOPS and maximum burst credits for IOPS for a file share in the storage account.

CloudError

An error response from the Storage service.

CloudErrorBody

An error response from the Storage service.

FileServicesName

The name of the file Service within the specified storage account. File Service Name must be "default"

FileServiceUsage

The usage of file service in storage account.

FileServiceUsageProperties

File service usage in storage account including account limits, file share limits and constants used in recommendations and bursting formula.

fileServiceUsagesName

The name of the file service usage. File Service Usage Name must be "default"

FileShareLimits

Minimum and maximum provisioned storage, IOPS and bandwidth limits for a file share in the storage account.

FileShareRecommendations

Constants used for calculating recommended provisioned IOPS and bandwidth for a file share in the storage account.

AccountLimits

Maximum provisioned storage, IOPS, bandwidth and number of file shares limits for the storage account.

Name Type Description
maxFileShares

integer

The maximum number of file shares limit for the storage account.

maxProvisionedBandwidthMiBPerSec

integer

The maximum provisioned bandwidth limit in mebibytes per second for the storage account.

maxProvisionedIOPS

integer

The maximum provisioned IOPS limit for the storage account.

maxProvisionedStorageGiB

integer

The maximum provisioned storage quota limit in gibibytes for the storage account.

AccountUsage

Usage of provisioned storage, IOPS, bandwidth and number of file shares across all live shares and soft-deleted shares in the account.

Name Type Description
liveShares

AccountUsageElements

Usage of provisioned storage, IOPS, bandwidth and number of file shares across all live shares or soft-deleted shares in the account.

softDeletedShares

AccountUsageElements

Usage of provisioned storage, IOPS, bandwidth and number of file shares across all live shares or soft-deleted shares in the account.

AccountUsageElements

Usage of provisioned storage, IOPS, bandwidth and number of file shares across all live shares or soft-deleted shares in the account.

Name Type Description
fileShareCount

integer

The total number of file shares.

provisionedBandwidthMiBPerSec

integer

The total provisioned bandwidth in mebibytes per second.

provisionedIOPS

integer

The total provisioned IOPS.

provisionedStorageGiB

integer

The total provisioned storage quota in gibibytes.

BurstingConstants

Constants used for calculating included burst IOPS and maximum burst credits for IOPS for a file share in the storage account.

Name Type Description
burstFloorIOPS

integer

The guaranteed floor of burst IOPS for small file shares.

burstIOScalar

number

The scalar against provisioned IOPS in the file share included burst IOPS formula.

burstTimeframeSeconds

integer

The time frame for bursting in seconds in the file share maximum burst credits for IOPS formula.

CloudError

An error response from the Storage service.

Name Type Description
error

CloudErrorBody

An error response from the Storage service.

CloudErrorBody

An error response from the Storage service.

Name Type Description
code

string

An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

details

CloudErrorBody[]

A list of additional details about the error.

message

string

A message describing the error, intended to be suitable for display in a user interface.

target

string

The target of the particular error. For example, the name of the property in error.

FileServicesName

The name of the file Service within the specified storage account. File Service Name must be "default"

Value Description
default

FileServiceUsage

The usage of file service in storage account.

Name Type Description
id

string

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

The name of the resource

properties

FileServiceUsageProperties

File service usage in storage account including account limits, file share limits and constants used in recommendations and bursting formula.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

FileServiceUsageProperties

File service usage in storage account including account limits, file share limits and constants used in recommendations and bursting formula.

Name Type Description
burstingConstants

BurstingConstants

Constants used for calculating included burst IOPS and maximum burst credits for IOPS for a file share in the storage account.

fileShareLimits

FileShareLimits

Minimum and maximum provisioned storage, IOPS and bandwidth limits for a file share in the storage account.

fileShareRecommendations

FileShareRecommendations

Constants used for calculating recommended provisioned IOPS and bandwidth for a file share in the storage account.

storageAccountLimits

AccountLimits

Maximum provisioned storage, IOPS, bandwidth and number of file shares limits for the storage account.

storageAccountUsage

AccountUsage

Usage of provisioned storage, IOPS, bandwidth and number of file shares across all live shares and soft-deleted shares in the account.

fileServiceUsagesName

The name of the file service usage. File Service Usage Name must be "default"

Value Description
default

FileShareLimits

Minimum and maximum provisioned storage, IOPS and bandwidth limits for a file share in the storage account.

Name Type Description
maxProvisionedBandwidthMiBPerSec

integer

The maximum provisioned bandwidth limit in mebibytes per second for a file share in the storage account.

maxProvisionedIOPS

integer

The maximum provisioned IOPS limit for a file share in the storage account.

maxProvisionedStorageGiB

integer

The maximum provisioned storage quota limit in gibibytes for a file share in the storage account.

minProvisionedBandwidthMiBPerSec

integer

The minimum provisioned bandwidth limit in mebibytes per second for a file share in the storage account.

minProvisionedIOPS

integer

The minimum provisioned IOPS limit for a file share in the storage account.

minProvisionedStorageGiB

integer

The minimum provisioned storage quota limit in gibibytes for a file share in the storage account.

FileShareRecommendations

Constants used for calculating recommended provisioned IOPS and bandwidth for a file share in the storage account.

Name Type Description
bandwidthScalar

number

The scalar for bandwidth in the file share provisioned bandwidth recommendation formula.

baseBandwidthMiBPerSec

integer

The base bandwidth in the file share provisioned bandwidth recommendation formula.

baseIOPS

integer

The base IOPS in the file share provisioned IOPS recommendation formula.

ioScalar

number

The scalar for IO in the file share provisioned IOPS recommendation formula.