Response ‒ Rules/Get (Specific)
For the requested Rule, the response provides the properties in Rules/Post.
Example JSON Rules/Get (Specific) Response
Status 200 – OK
{
“@odata.context”: “https://dev-axonizeapi-axonize.dev-ase-axonize.p.azurewebsites.net/odata/$metadata#Rules/$entity”,
“name”: “New Rule”,
“description”: “New Rule Description”,
“active”: true,
“severity”: “Warning”,
“cronSchedule”: null,
“type”: “Conditional”,
“timezone”:”Asia/Jerusalem”
“category”: null,
“level”: “ByApp”,
“automaticallyDismiss”: false,
“notifyOnRestore”: false,
“tenantId”: “580c7cfbcb597ad4e824e1fd”,
“id”: “5873c267fce97a28389d3aa1”,
“appId”: “fe8c3dfa-74a3-4a89-ad01-0b1dc5abbca2”,
“createDate”: “0001-01-01T00:00:00Z”,
“createUser”: null,
“updateDate”: “0001-01-01T00:00:00Z”,
“updateUser”: null,
“actions”: [
{
“id”: “5873c267fce97a28389d3a9f”,
“type”: “EventLogEntry”,
“emailProperties”: null,
“smsProperties”: null,
“phoneCallProperties”: null,
“alarmInstanceProperties”: null,
“eventLogEntryProperties”: null,
“commandProperties”: null,
“webServiceProperties”: null,
“ruleRecurrenceSettings”: null,
“additionalPropertyProperties”: null
},
{
“id”: “5873c267fce97a28389d3aa0”,
“type”: “AlarmInstance”,
“emailProperties”: null,
“smsProperties”: null,
“phoneCallProperties”: null,
“alarmInstanceProperties”: null,
“eventLogEntryProperties”: null,
“commandProperties”: null,
“webServiceProperties”: null,
“ruleRecurrenceSettings”: null,
“additionalPropertyProperties”: null
},
{
“id”: “5a73085321b5bc23f44878c1”,
“type”: “SMS”,
“emailProperties”: null,
“smsProperties”: {
“message”: “{severity} alarm from {deviceName} – {triggeringEvent} {operator} {threshold} on value {value}”,
“userIds”: [
“58346e394e418c088069d384”,
“583589234e418c088069d48e”
],
“userDetails”: []
},
“phoneCallProperties”: null,
“alarmInstanceProperties”: null,
“eventLogEntryProperties”: null,
“commandProperties”: null,
“webServiceProperties”: null,
“ruleRecurrenceSettings”: null,
“additionalPropertyProperties”: null
}
],
“restoreActions”: [],
“schedule”: null,
“weeklySchedule”: null,
“conditions”: [
{
“id”: “5a73084621b5bc23f44878bf”,
“appIdForRule”: “f51df5bf-8d3c-4ba5-9574-3f3b8d6a26be”,
“productId”: null,
“eventName”: “Temperature”,
“typeCode”: 7,
“threshold”: “12”,
“operator”: “>”,
“durationInMinutes”: 0,
“conditionCount”: 0,
“isRelative”: false,
“type”: “Threshold”,
“name”: “asfsaf”,
“ruleTarget”: “App Level Rule”,
“targetId”: “f51df5bf-8d3c-4ba5-9574-3f3b8d6a26be”,
“eventProductId”: null,
“devices”: [],
“locationConditionSettings”: null
}
],
“ruleRecurrenceSettings”: null
}