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 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
resource
|
path | True |
string |
包含IoT中樞的資源群組名稱。 |
resource
|
path | True |
string |
IoT 中樞的名稱。 |
subscription
|
path | True |
string |
訂用帳戶標識碼。 |
api-version
|
query | True |
string |
API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
這是同步作業。 本文包含此 IoT 中樞有效 SKU 的 JSON 串行化陣列。 |
|
Other Status Codes |
DefaultErrorResponse |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
IotHubResource_GetValidSkus
範例要求
範例回覆
{
"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"
}
}
]
}
定義
名稱 | Description |
---|---|
Error |
錯誤詳細數據。 |
Iot |
IoT 中樞容量資訊。 |
Iot |
啟用調整的類型。 |
Iot |
SKU 的名稱。 |
Iot |
SKU 屬性。 |
Iot |
具有下一個連結的 IotHubSkuDescription 物件的 JSON 串行化數位。 |
Iot |
IoT 中樞 SKU 的相關信息。 |
Iot |
IoT 中樞的計費層。 |
ErrorDetails
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
details |
string |
錯誤詳細數據。 |
httpStatusCode |
string |
HTTP 狀態代碼。 |
message |
string |
錯誤訊息。 |
IotHubCapacity
IoT 中樞容量資訊。
名稱 | 類型 | Description |
---|---|---|
default |
integer (int64) |
默認單位數目。 |
maximum |
integer (int64) |
單位數目上限。 |
minimum |
integer (int64) minimum: 1maximum: 1 |
單位數目下限。 |
scaleType |
啟用調整的類型。 |
IotHubScaleType
啟用調整的類型。
值 | Description |
---|---|
Automatic | |
Manual | |
None |
IotHubSku
SKU 的名稱。
值 | Description |
---|---|
B1 | |
B2 | |
B3 | |
F1 | |
S1 | |
S2 | |
S3 |
IotHubSkuDescription
SKU 屬性。
名稱 | 類型 | Description |
---|---|---|
capacity |
IotHub 容量 |
|
resourceType |
string |
資源的型別。 |
sku |
資源的型別。 |
IotHubSkuDescriptionListResult
具有下一個連結的 IotHubSkuDescription 物件的 JSON 串行化數位。
名稱 | 類型 | Description |
---|---|---|
nextLink |
string |
下一個連結。 |
value |
IotHubSkuDescription 的陣列。 |
IotHubSkuInfo
IoT 中樞 SKU 的相關信息。
名稱 | 類型 | Description |
---|---|---|
capacity |
integer (int64) |
布建的IoT中樞單位數目。 請參閱:https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits。 |
name |
SKU 的名稱。 |
|
tier |
IoT 中樞的計費層。 |
IotHubSkuTier
IoT 中樞的計費層。
值 | Description |
---|---|
Basic | |
Free | |
Standard |