Iot Hub Resource - Get Valid Skus
Get the list of valid SKUs for an IoT hub.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/skus?api-version=2023-06-30
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
resource
|
path | True |
string |
The name of the resource group that contains the IoT hub. |
|
resource
|
path | True |
string |
The name of the IoT hub. |
|
subscription
|
path | True |
string |
The subscription identifier. |
|
api-version
|
query | True |
string |
The version of the API. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
This is a synchronous operation. The body contains a JSON-serialized array of the valid SKUs for this IoT hub. |
|
| Other Status Codes |
DefaultErrorResponse |
Security
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 | impersonate your user account |
Examples
IotHubResource_GetValidSkus
Sample request
GET https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/skus?api-version=2023-06-30
Sample response
{
"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"
}
}
]
}
Definitions
| Name | Description |
|---|---|
|
Error |
Error details. |
|
Iot |
IoT Hub capacity information. |
|
Iot |
The type of the scaling enabled. |
|
Iot |
The name of the SKU. |
|
Iot |
SKU properties. |
|
Iot |
The JSON-serialized array of IotHubSkuDescription objects with a next link. |
|
Iot |
Information about the SKU of the IoT hub. |
|
Iot |
The billing tier for the IoT hub. |
ErrorDetails
Error details.
| Name | Type | Description |
|---|---|---|
| code |
string |
The error code. |
| details |
string |
The error details. |
| httpStatusCode |
string |
The HTTP status code. |
| message |
string |
The error message. |
IotHubCapacity
IoT Hub capacity information.
| Name | Type | Description |
|---|---|---|
| default |
integer (int64) |
The default number of units. |
| maximum |
integer (int64) |
The maximum number of units. |
| minimum |
integer (int64) minimum: 1maximum: 1 |
The minimum number of units. |
| scaleType |
The type of the scaling enabled. |
IotHubScaleType
The type of the scaling enabled.
| Value | Description |
|---|---|
| Automatic | |
| Manual | |
| None |
IotHubSku
The name of the SKU.
| Value | Description |
|---|---|
| F1 | |
| S1 | |
| S2 | |
| S3 | |
| B1 | |
| B2 | |
| B3 |
IotHubSkuDescription
SKU properties.
| Name | Type | Description |
|---|---|---|
| capacity |
IotHub capacity |
|
| resourceType |
string |
The type of the resource. |
| sku |
The type of the resource. |
IotHubSkuDescriptionListResult
The JSON-serialized array of IotHubSkuDescription objects with a next link.
| Name | Type | Description |
|---|---|---|
| nextLink |
string |
The next link. |
| value |
The array of IotHubSkuDescription. |
IotHubSkuInfo
Information about the SKU of the IoT hub.
| Name | Type | Description |
|---|---|---|
| capacity |
integer (int64) |
The number of provisioned IoT Hub units. See: https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits. |
| name |
The name of the SKU. |
|
| tier |
The billing tier for the IoT hub. |
IotHubSkuTier
The billing tier for the IoT hub.
| Value | Description |
|---|---|
| Free | |
| Standard | |
| Basic |