Working with Custom Balancers

Registering a Custom Balancer

Use provision-custom-balancer-register operation to register a custom balancer.

Request
<packet>
  <extension>
    <call>
      <plesk-multi-server>
        <provision-custom-balancer-register>
          <class>Modules_PleskHubCloudProviders_Balancer\DeployedVpsBalancer</class>
        </provision-custom-balancer-register>
      </plesk-multi-server>
    </call>
  </extension>
</packet>
Response
<packet>
  <extension>
    <call>
      <result>
        <status>ok</status>
        <plesk-multi-server>
          <provision-custom-balancer-register/>
        </plesk-multi-server>
      </result>
    </call>
  </extension>
</packet>

Reseting a Custom Balancer

Use provision-custom-balancer-reset operation to reset a custom balancer and return to the default one.

Request
<packet>
  <extension>
    <call>
      <plesk-multi-server>
        <provision-custom-balancer-reset/>
      </plesk-multi-server>
    </call>
  </extension>
</packet>
Response
<packet>
  <extension>
    <call>
      <result>
        <status>ok</status>
        <plesk-multi-server>
          <provision-custom-balancer-reset/>
        </plesk-multi-server>
      </result>
    </call>
  </extension>
</packet>