Class LoadBalancerPoolFailsafePolicyPrototype

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

    public class LoadBalancerPoolFailsafePolicyPrototype
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    LoadBalancerPoolFailsafePolicyPrototype.
    • 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 LoadBalancerPoolIdentity 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`. - Have a `failsafe_policy.action` of `fail` or `drop` If specified, `action` must be `forward`.
        Returns:
        the target