POST /load_balancers/{id}/actions/remove_target

Removes a target from a Load Balancer.

Servers

Path parameters

Name Type Required Description
id Integer Yes

ID of the Load Balancer.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
label_selector Object No

Configuration for label selector targets, required if type is label_selector

label_selector.selector String Yes

Label selector

type String Yes

Type of the resource

Possible values:

  • "server"
  • "ip"
  • "label_selector"
server Object No

Configuration for type Server, required if type is server

server.id Integer Yes

ID of the Server

ip Object No

IP target where the traffic should be routed to. It is only possible to use the (Public or vSwitch) IPs of Hetzner Online Root Servers belonging to the project owner. IPs belonging to other users are blocked. Additionally IPs belonging to services provided by Hetzner Cloud (Servers, Load Balancers, ...) are blocked as well. Only present for target type ip.

ip.ip String Yes

IP of a server that belongs to the same customer (public IPv4/IPv6) or private IP in a subnet type vswitch.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.