* Use this API to count the filtered set of vpnglobal_authenticationldappolicy_binding resources.
* filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
*/
public static long count_filtered(nitro_service service, String filter) throws Exception{
vpnglobal_authenticationldappolicy_binding obj = new vpnglobal_authenticationldappolicy_binding();
options option = new options();
option.set_count(true);
option.set_filter(filter);
vpnglobal_authenticationldappolicy_binding[] response = (vpnglobal_authenticationldappolicy_binding[]) obj.getfiltered(service, option);
if (response != null) {
return response[0].__count;
}
return 0;