Sets the state of a host

Changed on

Sets the state of a host which can have multiple endpoints. The state affects traffic forwarding only for load-balancer rules created with monitor set to true; rules without it keep forwarding to the host regardless of this state

post/config/endpointhoststate

Request

  • Base URL
    http://0.0.0.0:11111/netlox/v1
  • URL
    http://0.0.0.0:11111/netlox/v1/config/endpointhoststate
  • Auth
    API key in header Authorization

Request body

hostNamestring

Host name in CIDR

epPortinteger

The end-point port (0 if not applicable)

epProtostring

The end-point prototype (tcp,udp,sctp,icmp,http(s), empty if not applicable)

statestring

Host state string ("green", "yellow", "red" )

Response

OK

Changes