Dela via


Iot Hub Resource - Get Quota Metrics

Hämta kvotmåtten för en IoT-hubb.

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

URI-parametrar

Name I Obligatorisk Typ Description
resourceGroupName
path True

string

Namnet på resursgruppen som innehåller IoT-hubben.

resourceName
path True

string

Namnet på IoT-hubben.

subscriptionId
path True

string

Prenumerationsidentifieraren.

api-version
query True

string

Versionen av API:et.

Svar

Name Typ Description
200 OK

IotHubQuotaMetricInfoListResult

Det här är en synkron åtgärd. Svaret innehåller en JSON-serialiserad matris med kvotmåtten för IoT-hubben.

Other Status Codes

ErrorDetails

DefaultErrorResponse

Säkerhet

azure_auth

Azure Active Directory OAuth2 Flow

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

Scopes

Name Description
user_impersonation personifiera ditt användarkonto

Exempel

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
    }
  ]
}

Definitioner

Name Description
ErrorDetails

Felinformation.

IotHubQuotaMetricInfo

Egenskaper för kvotmått.

IotHubQuotaMetricInfoListResult

Den JSON-serialiserade matrisen med IotHubQuotaMetricInfo-objekt med nästa länk.

ErrorDetails

Felinformation.

Name Typ Description
code

string

Felkoden.

details

string

Felinformationen.

httpStatusCode

string

HTTP-statuskoden.

message

string

Felmeddelandet.

IotHubQuotaMetricInfo

Egenskaper för kvotmått.

Name Typ Description
currentValue

integer

Det aktuella värdet för kvotmåttet.

maxValue

integer

Det maximala värdet för kvotmåttet.

name

string

Namnet på kvotmåttet.

IotHubQuotaMetricInfoListResult

Den JSON-serialiserade matrisen med IotHubQuotaMetricInfo-objekt med nästa länk.

Name Typ Description
nextLink

string

Nästa länk.

value

IotHubQuotaMetricInfo[]

Matrisen med kvotmåttobjekt.