public static long count ( nitro_service service , String zonename ) throws Exception { dnszone_domain_binding obj = new dnszone_domain_binding ( ) ; obj . set_zonename ( zonename ) ; options option = new options ( ) ; option . set_count ( true ) ; dnszone_domain_binding response [ ] = ( dnszone_domain_binding [ ] ) obj . get_resources ( service , option ) ; if ( response != null ) { return response [ 0 ] . __count ; } return 0 ; }
Use this API to count dnszone_domain_binding resources configued on NetScaler .