rule-chain-controller
Export Rule Chains
Exports all tenant rule chains as one JSON.
Available for users with 'TENANT_ADMIN' authority.
get/api/ruleChains/export
Query parameters
limitinteger required
A limit of rule chains to export.
Response
OK
Example response
{
"ruleChains": [
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "RULE_CHAIN"
},
"createdTime": 1609459200000,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"name": "Humidity data processing",
"type": "A4B72CCDFF33",
"firstRuleNodeId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "RULE_NODE"
},
"configuration": {},
"additionalInfo": {}
}
],
"metadata": [
{
"ruleChainId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "RULE_CHAIN"
},
"nodes": [
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "RULE_NODE"
},
"createdTime": 1609459200000,
"ruleChainId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "RULE_CHAIN"
},
"type": "com.mycompany.iot.rule.engine.ProcessingNode",
"name": "Process sensor reading",
"queueName": "Main",
"configuration": {},
"externalId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "RULE_NODE"
},
"additionalInfo": {}
}
],
"ruleChainConnections": [
{
"targetRuleChainId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "RULE_CHAIN"
},
"additionalInfo": {}
}
]
}
]
}