你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Statistics - Get Device Statistics
获取IoT 中心标识注册表的设备统计信息,例如总设备计数。
GET https://fully-qualified-iothubname.azure-devices.net/statistics/devices?api-version=2021-04-12
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
api-version
|
query | True |
string |
Api 的版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
没问题。 |
定义
RegistryStatistics
名称 | 类型 | 说明 |
---|---|---|
disabledDeviceCount |
integer |
当前禁用的设备数。 |
enabledDeviceCount |
integer |
当前启用的设备数。 |
totalDeviceCount |
integer |
为IoT 中心注册的设备总数。 |