* filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
*/
public static long count_filtered(nitro_service service, String vservername, String filter) throws Exception{
sslvserver_sslcertkey_binding obj = new sslvserver_sslcertkey_binding();
obj.set_vservername(vservername);
options option = new options();
option.set_count(true);
option.set_filter(filter);
sslvserver_sslcertkey_binding[] response = (sslvserver_sslcertkey_binding[]) obj.getfiltered(service, option);
if (response != null) {
return response[0].__count;
}
return 0;