Delen via


Iot Hub Resource - Get Valid Skus

Haal de lijst met geldige SKU's voor een IoT-hub op.

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

URI-parameters

Name In Vereist Type Description
resourceGroupName
path True

string

De naam van de resourcegroep die de IoT-hub bevat.

resourceName
path True

string

De naam van de IoT-hub.

subscriptionId
path True

string

De abonnement-ID.

api-version
query True

string

De versie van de API.

Antwoorden

Name Type Description
200 OK

IotHubSkuDescriptionListResult

Dit is een synchrone bewerking. De hoofdtekst bevat een door JSON geserialiseerde matrix van de geldige SKU's voor deze IoT-hub.

Other Status Codes

ErrorDetails

DefaultErrorResponse

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

IotHubResource_GetValidSkus

Voorbeeldaanvraag

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

Voorbeeldrespons

{
  "value": [
    {
      "resourceType": "Microsoft.Devices/IotHubs",
      "sku": {
        "name": "S1",
        "tier": "Standard"
      },
      "capacity": {
        "default": 1,
        "scaleType": "Manual"
      }
    },
    {
      "resourceType": "Microsoft.Devices/IotHubs",
      "sku": {
        "name": "S2",
        "tier": "Standard"
      },
      "capacity": {
        "minimum": 1,
        "maximum": 200,
        "default": 1,
        "scaleType": "Manual"
      }
    },
    {
      "resourceType": "Microsoft.Devices/IotHubs",
      "sku": {
        "name": "S3",
        "tier": "Standard"
      },
      "capacity": {
        "minimum": 1,
        "maximum": 10,
        "default": 1,
        "scaleType": "Manual"
      }
    }
  ]
}

Definities

Name Description
ErrorDetails

Foutdetails.

IotHubCapacity

Informatie over ioT Hub-capaciteit.

IotHubScaleType

Het type schaalaanpassing ingeschakeld.

IotHubSku

De naam van de SKU.

IotHubSkuDescription

SKU-eigenschappen.

IotHubSkuDescriptionListResult

De JSON-geserialiseerde matrix van IotHubSkuDescription-objecten met een volgende koppeling.

IotHubSkuInfo

Informatie over de SKU van de IoT-hub.

IotHubSkuTier

De factureringslaag voor de IoT-hub.

ErrorDetails

Foutdetails.

Name Type Description
code

string

De foutcode.

details

string

De foutdetails.

httpStatusCode

string

De HTTP-statuscode.

message

string

Het foutbericht.

IotHubCapacity

Informatie over ioT Hub-capaciteit.

Name Type Description
default

integer (int64)

Het standaardaantal eenheden.

maximum

integer (int64)

Het maximum aantal eenheden.

minimum

integer (int64)

minimum: 1
maximum: 1

Het minimum aantal eenheden.

scaleType

IotHubScaleType

Het type schaalaanpassing ingeschakeld.

IotHubScaleType

Het type schaalaanpassing ingeschakeld.

Waarde Description
Automatic
Manual
None

IotHubSku

De naam van de SKU.

Waarde Description
B1
B2
B3
F1
S1
S2
S3

IotHubSkuDescription

SKU-eigenschappen.

Name Type Description
capacity

IotHubCapacity

IotHub-capaciteit

resourceType

string

Het type resource.

sku

IotHubSkuInfo

Het type resource.

IotHubSkuDescriptionListResult

De JSON-geserialiseerde matrix van IotHubSkuDescription-objecten met een volgende koppeling.

Name Type Description
nextLink

string

De volgende koppeling.

value

IotHubSkuDescription[]

De matrix van IotHubSkuDescription.

IotHubSkuInfo

Informatie over de SKU van de IoT-hub.

Name Type Description
capacity

integer (int64)

Het aantal ingerichte IoT Hub-eenheden. Zie: https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits.

name

IotHubSku

De naam van de SKU.

tier

IotHubSkuTier

De factureringslaag voor de IoT-hub.

IotHubSkuTier

De factureringslaag voor de IoT-hub.

Waarde Description
Basic
Free
Standard