liveapicreator-admin-cli
Version:
The NodeJS command line utility for 'CA Live API Creator' DevOps Administration from CA Technologies
84 lines • 2.63 kB
JSON
[
{
"name": "MQTTListener",
"description": null,
"is_active": true,
"code": "// Listener code goes here or check out examples ( see top right dropdown menu ) \nlog.debug(\" Message \"+ message);\nvar connectionName = \"MQTTConnection\";\nvar topic =\"lacresponse\";\nvar options = null;\nvar m = {\"message\": message.toString() };\ntry {\n var success = listenerUtil.publishMessage(connectionName,topic,m,options);\n log.debug(success);\n}\ncatch(e){\n log.error('Error publishing message: ' + e);\n}\n",
"logging_level": 4,
"provider_ident": 3,
"connection": {
"ident": 2000,
"ts": "2018-03-30T12:50:32+00:00",
"name": "MQTTConnection",
"description": null,
"is_active": true,
"connect_code": null,
"disconnect_code": null,
"provider_ident": 3,
"project_ident": 2014,
"@metadata": {
"href": "http://localhost:8080/rest/abl/admin/v2/ListenerExport.connection/2000",
"checksum": "A:b5e617eb3f7ac9f0"
}
},
"ListenerParameters": [
{
"value": "lac",
"type_ident": 1,
"description": null,
"@metadata": {
"href": "http://localhost:8080/rest/abl/admin/v2/ListenerExport.ListenerParameters/2000",
"checksum": "A:3f13b8eaa52bea2b"
}
}
],
"@metadata": {
"action": "MERGE_INSERT",
"key": [
"project_ident",
"name"
]
}
},
{
"name": "MQTTResponse",
"description": null,
"is_active": true,
"code": "// Listener code goes here or check out examples ( see top right dropdown menu ) \nlog.debug(\"Response from published message \"+message);\n",
"logging_level": 4,
"provider_ident": 3,
"connection": {
"ident": 2000,
"ts": "2018-03-30T12:50:32+00:00",
"name": "MQTTConnection",
"description": null,
"is_active": true,
"connect_code": null,
"disconnect_code": null,
"provider_ident": 3,
"project_ident": 2014,
"@metadata": {
"href": "http://localhost:8080/rest/abl/admin/v2/ListenerExport.connection/2000",
"checksum": "A:b5e617eb3f7ac9f0"
}
},
"ListenerParameters": [
{
"value": "lacresponse",
"type_ident": 1,
"description": null,
"@metadata": {
"href": "http://localhost:8080/rest/abl/admin/v2/ListenerExport.ListenerParameters/2001",
"checksum": "A:285ed1b94ee8de80"
}
}
],
"@metadata": {
"action": "MERGE_INSERT",
"key": [
"project_ident",
"name"
]
}
}
]