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 abonnements-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 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

IoT Hub capaciteitsgegevens.

IotHubScaleType

Het type van de ingeschakelde schaalaanpassing.

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

IoT Hub capaciteitsgegevens.

Name Type Description
default

integer

Het standaardaantal eenheden.

maximum

integer

Het maximum aantal eenheden.

minimum

integer

Het minimum aantal eenheden.

scaleType

IotHubScaleType

Het type van de ingeschakelde schaalaanpassing.

IotHubScaleType

Het type van de ingeschakelde schaalaanpassing.

Name Type Description
Automatic

string

Manual

string

None

string

IotHubSku

De naam van de SKU.

Name Type Description
B1

string

B2

string

B3

string

F1

string

S1

string

S2

string

S3

string

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

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.

Name Type Description
Basic

string

Free

string

Standard

string