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