public static base_response disable ( nitro_service client , servicegroup resource ) throws Exception { servicegroup disableresource = new servicegroup ( ) ; disableresource . servicegroupname = resource . servicegroupname ; disableresource . servername = resource . servername ; disableresource . port = resource . port ; disableresource . delay = resource . delay ; disableresource . graceful = resource . graceful ; return disableresource . perform_operation ( client , "disable" ) ; }
Use this API to disable servicegroup .