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