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