共用方式為


Subscription Usages - Get

取得訂用帳戶使用計量。

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/usages/{usageName}?api-version=2021-11-01

URI 參數

名稱 位於 必要 類型 Description
locationName
path True

string

資源所在的區域名稱。

subscriptionId
path True

string

可識別 Azure 訂用帳戶的訂用帳戶識別碼。

usageName
path True

string

要傳回的使用計量名稱。

api-version
query True

string

要用於要求的 API 版本。

回應

名稱 類型 Description
200 OK

SubscriptionUsage

已成功擷取特定的訂用帳戶位置使用量。

Other Status Codes

錯誤回應: ≦

  • 400 InvalidLocation - 指定了無效的位置。

  • 404 SubscriptionNotFound - 找不到要求的訂用帳戶。

  • 404 ResourceNotFound - 找不到所要求的資源。

範例

Get specific subscription usage in the given location.

範例要求

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/WestUS/usages/ServerQuota?api-version=2021-11-01

範例回覆

{
  "properties": {
    "displayName": "Regional Server Quota for West US",
    "currentValue": 1,
    "limit": 20,
    "unit": "Count"
  },
  "id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/Onebox/usages/ServerQuota",
  "name": "ServerQuota",
  "type": "Microsoft.Sql/locations/usages"
}

定義

SubscriptionUsage

位置中訂用帳戶的使用計量。

名稱 類型 Description
id

string

資源識別碼。

name

string

資源名稱。

properties.currentValue

number

計量的目前值。

properties.displayName

string

計量的用戶可讀取名稱。

properties.limit

number

計量的界限值。

properties.unit

string

計量的單位。

type

string

資源類型。