Subscription Usages - Get

サブスクリプションの使用状況メトリックを取得します。

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

URI パラメーター

名前 / 必須 説明
locationName
path True

string

リソースが配置されているリージョンの名前。

subscriptionId
path True

string

Azure サブスクリプションを識別するサブスクリプション ID。

usageName
path True

string

返される使用状況メトリックの名前。

api-version
query True

string

要求で使用する API のバージョン。

応答

名前 説明
200 OK

SubscriptionUsage

特定のサブスクリプションの場所の使用状況が正常に取得されました。

Other Status Codes

エラー応答: ***

  • 400 InvalidLocation - 無効な場所が指定されました。

  • 404 SubscriptionNotFound - 要求されたサブスクリプションが見つかりませんでした。

  • 404 ResourceNotFound - 要求されたリソースが見つかりませんでした。

Get specific subscription usage in the given location.

Sample Request

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

Sample Response

{
  "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

ある場所でのサブスクリプションの使用状況メトリック。

名前 説明
id

string

リソースの ID

name

string

リソース名。

properties.currentValue

number

メトリックの現在の値。

properties.displayName

string

メトリックのユーザーが読み取り可能な名前。

properties.limit

number

メトリックの境界値。

properties.unit

string

メトリックの単位。

type

string

リソースの種類。