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