Enable/Disable rules via API
AnsweredUsing the API, can I enable all rules containing the phrase e.g. "RSTUV" with one http, curl or other command? I have about 500 cameras in several systems, so enabling rules for several thousand cameras is very tedious and time-consuming.
-
Hi
Please refer to this article.
https://meta.nxvms.com/docs/developers/knowledgebase/300-how-to-enabledisable-analytic-rules-via-the-vmsname-server-api0 -
Yes, you can enable all rules containing the phrase "RSTUV" with a single command using the API. You can use a script to automate this process. Here's an example using
curl
: FLVS - Florida Virtual Schoolbash
curl -X POST -H "Content-Type: application/json" -d '{"rule": "RSTUV"}' http://your-api-endpoint/enable-rules
This command sends a POST request to your API endpoint with the rule "RSTUV" in the request body. Adjust the URL and parameters as needed for your specific API. This should help streamline the process for your 500 cameras.
0
Please sign in to leave a comment.
Comments
2 comments