get https://rulesservice-dev.aylanetworks.com/rulesservice/v1/rules/devices.json
This API returns an array of all the device DSNs that appear in all your rule expressions. If a DSN does not appear in a rule expression, but does appear as a parameter in an action associated with a rule, the API does not include the DSN in the list of device DSNs.