roma__CreateProduct
Create a product in Huawei Cloud ROMA Connect by specifying instance, project, protocol type, manufacturer, and model details.
Instructions
[ROMA] 创建产品
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>",
"instance_id": "<instance_id>",
"manufacturer_id": "<manufacturer_id>",
"manufacturer_name": "<manufacturer_name>",
"model": "<model>",
"name": "<name>",
"product_type": "<product_type>",
"project_id": "<project_id>",
"protocol_type": "<protocol_type>"
},
"name": "roma__CreateProduct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 产品名称,创建产品时租户内唯一,长度最大64,仅支持中文,英文字母,数字,下划线和中划线 | |
| model | Yes | 产品型号 | |
| app_id | Yes | 应用ID | |
| version | No | 模型版本 | |
| project_id | Yes | 项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。 | |
| data_format | No | 产品的数据格式 0-JSON 1-USER_DEFINED | |
| description | No | 产品描述,长度0-200 | |
| device_type | No | 产品的设备类型(默认Default) | |
| instance_id | Yes | 实例ID | |
| template_id | No | 关联产品模板ID(使用产品模板创建产品时使用,否则为空),自动向下取整 | |
| product_type | Yes | 产品类型,0-普通产品(不支持子设备) 1-网关产品 | |
| protocol_type | Yes | 产品的协议类型 0-mqtt 2-modbus 4-opcua | |
| manufacturer_id | Yes | 产品供应商ID | |
| manufacturer_name | Yes | 厂商名称 |