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