roma__CreateNotification
Creates device operation notifications for a ROMA application instance and subscribes online, offline, add, delete, or change events to a specified MQS topic.
Instructions
[ROMA] 该接口用于创建指定实例下对应的应用下的设备操作,订阅到指定的topic
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>",
"project_id": "<project_id>",
"status": "<status>",
"topic": "<topic>",
"type": "<type>"
},
"name": "roma__CreateNotification"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | 通知类型 0-设备上线通知 1-设备下线通知 2-设备添加通知 3-设备删除通知 4-设备变更通知 | |
| topic | Yes | 通知发送的主题名,该主题需要在MQS存在 | |
| app_id | Yes | 通知归属的应用ID | |
| status | Yes | 启停状态 0-启用 1-停用 | |
| project_id | Yes | 项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。 | |
| instance_id | Yes | 实例ID |