次の方法で共有


Iot Hub Resource - Get Quota Metrics

IoT ハブのクォータ メトリックを取得します。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/quotaMetrics?api-version=2023-06-30

URI パラメーター

名前 / 必須 説明
resourceGroupName
path True

string

IoT ハブを含むリソース グループの名前。

resourceName
path True

string

IoT ハブの名前。

subscriptionId
path True

string

サブスクリプションの識別子です。

api-version
query True

string

API のバージョン。

応答

名前 説明
200 OK

IotHubQuotaMetricInfoListResult

これは同期操作です。 応答には、IoT ハブのクォータ メトリックの JSON でシリアル化された配列が含まれています。

Other Status Codes

ErrorDetails

DefaultErrorResponse

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

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

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

IotHubResource_GetQuotaMetrics

Sample Request

GET https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/quotaMetrics?api-version=2023-06-30

Sample Response

{
  "value": [
    {
      "name": "TotalMessages",
      "currentValue": 0,
      "maxValue": 400000
    },
    {
      "name": "TotalDeviceCount",
      "currentValue": 0,
      "maxValue": 500000
    }
  ]
}

定義

名前 説明
ErrorDetails

エラーの詳細。

IotHubQuotaMetricInfo

クォータ メトリックのプロパティ。

IotHubQuotaMetricInfoListResult

次のリンクを含む IotHubQuotaMetricInfo オブジェクトの JSON でシリアル化された配列。

ErrorDetails

エラーの詳細。

名前 説明
code

string

エラー コード。

details

string

エラーの詳細です。

httpStatusCode

string

HTTP 状態コード。

message

string

エラー メッセージ。

IotHubQuotaMetricInfo

クォータ メトリックのプロパティ。

名前 説明
currentValue

integer

クォータ メトリックの現在の値。

maxValue

integer

クォータ メトリックの最大値。

name

string

クォータ メトリックの名前。

IotHubQuotaMetricInfoListResult

次のリンクを含む IotHubQuotaMetricInfo オブジェクトの JSON でシリアル化された配列。

名前 説明
nextLink

string

次のリンク。

value

IotHubQuotaMetricInfo[]

クォータ メトリック オブジェクトの配列。