curl --location --request POST 'https://api.hetzner.cloud/v1/load_balancers//actions/remove_target' \
--header 'Content-Type: application/json' \
--data-raw '{
"ip": {
"ip": "203.0.113.1"
},
"label_selector": {
"selector": "env=prod"
},
"server": {
"id": 80
},
"type": "server"
}'
{
"action": {
"command": "remove_target",
"error": {
"code": "action_failed",
"message": "Action failed"
},
"finished": "2016-01-30T23:56:00.000Z",
"id": 13,
"progress": 100,
"resources": [
{
"id": 4711,
"type": "load_balancer"
}
],
"started": "2016-01-30T23:55:00.000Z",
"status": "success"
}
}