public OvhLoadBalancingTask loadBalancing_serviceName_backend_backend_backupState_POST ( String serviceName , String backend , Boolean backupStateSet , String mainBackendIp ) throws IOException { String qPath = "/ip/loadBalancing/{serviceName}/backend/{backend}/backupState" ; StringBuilder sb = path ( qPath , serviceName , backend ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "backupStateSet" , backupStateSet ) ; addBody ( o , "mainBackendIp" , mainBackendIp ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhLoadBalancingTask . class ) ; }
Set or unset the backend as a backup of another backend . Requests will be directed to the backup only if the main backend is in probe fail