Iot Hub Resource - Get Valid Skus
获取 IoT 中心的有效 SKU 列表。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/skus?api-version=2023-06-30
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
resource
|
path | True |
string |
包含 IoT 中心的资源组的名称。 |
|
resource
|
path | True |
string |
IoT 中心的名称。 |
|
subscription
|
path | True |
string |
订阅标识符。 |
|
api-version
|
query | True |
string |
API 的版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
这是一个同步作。 正文包含此 IoT 中心有效 SKU 的 JSON 序列化数组。 |
|
| Other Status Codes |
DefaultErrorResponse |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
IotHubResource_GetValidSkus
示例请求
GET https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/skus?api-version=2023-06-30
示例响应
{
"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"
}
}
]
}
定义
| 名称 | 说明 |
|---|---|
|
Error |
错误详细信息。 |
|
Iot |
IoT 中心容量信息。 |
|
Iot |
已启用缩放的类型。 |
|
Iot |
SKU 的名称。 |
|
Iot |
SKU 属性。 |
|
Iot |
带有下一个链接的 IotHubSkuDescription 对象的 JSON 序列化数组。 |
|
Iot |
有关 IoT 中心的 SKU 的信息。 |
|
Iot |
IoT 中心的计费层。 |
ErrorDetails
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误代码。 |
| details |
string |
错误详细信息。 |
| httpStatusCode |
string |
HTTP 状态代码。 |
| message |
string |
错误消息。 |
IotHubCapacity
IoT 中心容量信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| default |
integer (int64) |
默认单位数。 |
| maximum |
integer (int64) |
最大单位数。 |
| minimum |
integer (int64) minimum: 1maximum: 1 |
最小单位数。 |
| scaleType |
已启用缩放的类型。 |
IotHubScaleType
已启用缩放的类型。
| 值 | 说明 |
|---|---|
| Automatic | |
| Manual | |
| None |
IotHubSku
SKU 的名称。
| 值 | 说明 |
|---|---|
| F1 | |
| S1 | |
| S2 | |
| S3 | |
| B1 | |
| B2 | |
| B3 |
IotHubSkuDescription
SKU 属性。
| 名称 | 类型 | 说明 |
|---|---|---|
| capacity |
IotHub 容量 |
|
| resourceType |
string |
资源的类型。 |
| sku |
资源的类型。 |
IotHubSkuDescriptionListResult
带有下一个链接的 IotHubSkuDescription 对象的 JSON 序列化数组。
| 名称 | 类型 | 说明 |
|---|---|---|
| nextLink |
string |
下一个链接。 |
| value |
IotHubSkuDescription 的数组。 |
IotHubSkuInfo
有关 IoT 中心的 SKU 的信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| capacity |
integer (int64) |
预配的 IoT 中心单元数。 请参阅:https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits。 |
| name |
SKU 的名称。 |
|
| tier |
IoT 中心的计费层。 |
IotHubSkuTier
IoT 中心的计费层。
| 值 | 说明 |
|---|---|
| Free | |
| Standard | |
| Basic |