Rule.list
Description
Returns a list of all the rules that belong to the user account used to authenticate the request.
Request specification
- Method: GET
- URL:
/rules
Example Request
- Request URL:
https://www.lhings.com/laas/api/v1/rules
- Request headers:
X-Api-Key: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
- Request method: GET
Example Response
- HTTP status: 200 OK
- Response body:
[{ "id": "1", "name": "rule1", "sourceDevice": "d9a2fc03-5f17-42b9-af1f-c5a25cd3d56a", "targetDevice": "f7920698-f5ad-4913-b3d1-1ae83f0cccac", "sourceApp": null, "targetApp": null, "targetAction": "action1", "sourceEvent": "event1", "targetActionArgs": [{ "name": "string parameter name", "value": "hello" }, { "name": "boolean parameter name", "value": true }, { "name": "float parameter name", "value": 5.0 }] }]
Error summary
- 200: success.
- 401: Api key not provided or invalid.