你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Usages - List By Location

获取订阅下位置的当前使用情况计数和资源限制。

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages?api-version=2023-01-01

URI 参数

名称 必需 类型 说明
location
path True

string

Azure 存储资源的位置。

subscriptionId
path True

string

目标订阅的 ID。

api-version
query True

string

要用于此操作的 API 版本。

响应

名称 类型 说明
200 OK

UsageListResult

正常 -- 已成功检索并返回当前使用情况计数和限制。

安全性

azure_auth

Azure Active Directory OAuth2 流

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

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

UsageList

Sample Request

GET https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Storage/locations/eastus2(stage)/usages?api-version=2023-01-01

Sample Response

{
  "value": [
    {
      "unit": "Count",
      "currentValue": 55,
      "limit": 250,
      "name": {
        "value": "StorageAccounts",
        "localizedValue": "Storage Accounts"
      }
    }
  ]
}

定义

名称 说明
Usage

介绍存储资源使用情况。

UsageListResult

“列出使用情况”操作的响应。

UsageName

可以使用的用法名称;当前仅限于 StorageAccount。

UsageUnit

获取度量单位。

Usage

介绍存储资源使用情况。

名称 类型 说明
currentValue

integer

获取订阅中已分配资源的当前计数。

limit

integer

获取可在订阅中分配的资源的最大计数。

name

UsageName

获取使用类型的名称。

unit

UsageUnit

获取度量单位。

UsageListResult

“列出使用情况”操作的响应。

名称 类型 说明
value

Usage[]

获取或设置存储资源使用情况列表。

UsageName

可以使用的用法名称;当前仅限于 StorageAccount。

名称 类型 说明
localizedValue

string

获取描述资源名称的本地化字符串。

value

string

获取描述资源名称的字符串。

UsageUnit

获取度量单位。

名称 类型 说明
Bytes

string

BytesPerSecond

string

Count

string

CountsPerSecond

string

Percent

string

Seconds

string