How to get rule items?

Dear Sir/Madam,

We can get Camera and event items through GetItemsBySearch.

How to get Rule using GetItemsBySearch. What kind to use?

Or please advise other ways to get rule items. Thank you

jinmin

Rules are not represented as Items. You can only access rules through the configuration API, so please have a look at e.g. the Config API Client sample.

Please also note that with 2020 R1 only a very limited set of rules are supported in Config API. For 2020 R2 the support will be almost complete.

The type, Rule and RuleFolder do not appear under ItemTypes in 2020 R1 SDK, while, all the other type are available, like Camera, AlarmDefinition, UserDefinedEvent, AnalyticsEvent and etc. So, Config API Client sample also has no access to Rule and RuleFolde. Could you confirm Rule and RuleFolder are not available now and we are not able to get rules? Thank you.

I am not sure I follow you? I just checked MIP SDK 2020 R1 and ItemTypes.Rule and ItemTypes.RuleFolder are defined there. You can also find them in the documentation:

https://doc.developer.milestonesys.com/html/index.html?base=configapihelp/class_video_o_s_1_1_configuration_a_p_i_1_1_item_types.html&tree=tree_search.html?search=itemtypes+

Config API client sample should also support them.

Please note that both VMS and MIP SDK has to be 2020 R1 to support it and that only a few rules are supported in that release.