Rules can be managed using REST API
A new rule can be created with REST API query /api/rule/create
https://hostname:8090/api/rule/create { "type": "0", "name": "rule1", "value": ".*", "profiles": ["14", "17"] } |
Where:
The rule can be changed with REST API query /api/rule/update
https://hostname:8090/api/rule/update { "id": "13", "type": "0", "name": "rule1", "value": ".*", "profiles": ["14", "17"] } |
Where:
The rule can be deleted with REST API query /api/rule/delete
https://hostname:8090/api/rule/delete { "id": "13" } |
Where:
The rule information can be obtained with REST API query /api/rule/list
https://hostname:8090/api/rule/list { "id": "13", "profile": "17" } |
Where:
If rule Id is set, the response will contain this rule information only. If profile Id is set, the response will contain information about rules applied to this profile metrics only. If none of Ids is set, the response will contain all the rules list on backend server.
The response contains the same fields for every rule as /api/rule/update response.