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