Class LoadBalancerPoolFailsafePolicyPatch

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class LoadBalancerPoolFailsafePolicyPatch
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    The failsafe policy for this load balancer pool.
    • Method Detail

      • action

        public String action()
        Gets the action. A load balancer failsafe policy action: - `bypass`: Bypasses the members and sends requests directly to their destination IPs. If specified, this load balancer must have `route_mode` enabled. - `drop`: Drops requests. If specified, the pool protocol must be `tcp`. - `fail`: Fails requests with an HTTP `503` status code. If specified, the pool protocol must be `http` or `https`. - `forward`: Forwards requests to the `target` pool. If specified, the pool protocol must be `http` or `https`. The specified value must be listed in the `failsafe_policy_actions` for this pool's load balancer.
        Returns:
        the action
      • target

        public LoadBalancerPoolFailsafePolicyTargetPatch target()
        Gets the target. The failsafe target pool to forward to. The specified pool must: - Belong to this load balancer - Have the same `protocol` as this pool, or have a compatible protocol. At present, the compatible protocols are `http` and `https`. - Not have a `failsafe_policy.action` of `forward` or `bypass`. If specified, `action` must be `forward`. Specify `null` to remove an existing failsafe target pool.
        Returns:
        the target