POST /iots/pair

通过 user_code 配对 Non-Human Identity (NHI) IoT Device

IoTs None application/json

请求体

Schema: device_domain.PairDeviceRequest

字段类型必填示例约束描述
user_code string 否

响应

状态描述Schema
200配对后的 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 否