调用该接口create device entity。
Request
Request Body
v1DeviceEntityBasicInfo
| Name | Type | Description |
|---|
| customId | string | 设备自定义Id |
| description | string | 设备描述 |
| directConnection | boolean | 设备是否直连 |
| ext | Object | 设备扩展信息 |
| extBusiness | Object | 设备扩展业务 |
| name | string | 设备名称 |
| parentId | string | 设备组ID |
| parentName | string | 设备组名称 |
| selfLearn | boolean | 设备模板自学习 |
| templateId | string | 设备模板ID |
| templateName | string | 设备模板名称 |
Response
Response 200
v1CreateDeviceResponse
| Name | Type | Description |
|---|
| deviceObject | Object | 设备对象 |
Response default
| Code2 | Description | Type | Schema |
|---|
| default | An unexpected error response. | Object | rpcStatus |
rpcStatus
| Name | Type | Description |
|---|
| code | integer | |
| details | Array[protobufAny] | [ 具体参数可见下面 protobufAny ] |
| message | string | |
protobufAny
| Name | Type | Description |
|---|
| @type | string | |