POST /admin/iots

创建一个新的 Non-Human Identity (NHI) IoT Device

Admin/IoTs `bearerAuth` application/json

请求体

Schema: device_domain.CreateDeviceRequest

字段类型必填示例约束描述
name string 是
firmware_ver string 否
hardware_id string 否
manufacturer string 否
workload_subtype string 否

响应

状态描述Schema
201创建的 Deviceservice-core/base/dto.DataResponse-device_domain_DeviceInfo

引用的 Schema

device_domain.DeviceInfo

字段类型必填示例约束描述
created_at string 否
firmware_ver string 否
hardware_id string 否
identity_id string 否
manufacturer string 否
name string 否
owner_id string 否
owner_principal_id string 否 OwnerPrincipalID additive(json omitempty);保留 OwnerID 以向后兼容(C-4)。
pairing_code string 否
status string 否
updated_at string 否
workload_subtype string 否

service-core/base/dto.DataResponse-device_domain_DeviceInfo

字段类型必填示例约束描述
code integer 否
data device_domain.DeviceInfo 否
message string 否
timestamp string 否