Subscription Usages - Get
サブスクリプションの使用状況メトリックを取得します。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/usages/{usageName}?api-version=2023-08-01
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
location
|
path | True |
string |
リソースが配置されているリージョンの名前。 |
|
subscription
|
path | True |
string |
Azure サブスクリプションを識別するサブスクリプション ID。 |
|
usage
|
path | True |
string |
返される使用状況メトリックの名前。 |
|
api-version
|
query | True |
string |
要求に使用する API バージョン。 |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 200 OK |
特定のサブスクリプションの場所の使用状況が正常に取得されました。 |
|
| Other Status Codes |
エラー応答: ***
|
例
Get specific subscription usage in the given location.
要求のサンプル
応答のサンプル
{
"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"
}
定義
| 名前 | 説明 |
|---|---|
|
Error |
リソース管理エラーの追加情報。 |
|
Error |
エラーの詳細。 |
|
Error |
エラー応答 |
|
Subscription |
場所内のサブスクリプションの使用状況メトリック。 |
ErrorAdditionalInfo
リソース管理エラーの追加情報。
| 名前 | 型 | 説明 |
|---|---|---|
| info |
object |
追加情報。 |
| type |
string |
追加情報の種類。 |
ErrorDetail
エラーの詳細。
| 名前 | 型 | 説明 |
|---|---|---|
| additionalInfo |
エラーの追加情報。 |
|
| code |
string |
エラー コード。 |
| details |
エラーの詳細。 |
|
| message |
string |
エラー メッセージ。 |
| target |
string |
エラーターゲット。 |
ErrorResponse
エラー応答
| 名前 | 型 | 説明 |
|---|---|---|
| error |
エラー オブジェクト。 |
SubscriptionUsage
場所内のサブスクリプションの使用状況メトリック。
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string |
リソース ID。 |
| name |
string |
リソース名。 |
| properties.currentValue |
number (double) |
メトリックの現在の値。 |
| properties.displayName |
string |
メトリックのユーザーが読み取り可能な名前。 |
| properties.limit |
number (double) |
メトリックの境界値。 |
| properties.unit |
string |
メトリックの単位。 |
| type |
string |
リソースの種類。 |