public static base_responses disable ( nitro_service client , lbmonitor resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { lbmonitor disableresources [ ] = new lbmonitor [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { disableresources [ i ] = new lbmonitor ( ) ; disableresources [ i ] . servicename = resources [ i ] . servicename ; disableresources [ i ] . servicegroupname = resources [ i ] . servicegroupname ; disableresources [ i ] . monitorname = resources [ i ] . monitorname ; } result = perform_operation_bulk_request ( client , disableresources , "disable" ) ; } return result ; }
Use this API to disable lbmonitor resources .