curl --request POST \
--url https://api.ubicloud.com/project/{project_id}/location/{location}/load-balancer/{load_balancer_reference}/detach-vm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"vm_id": "<string>"
}'
{
"algorithm": "<string>",
"stack": "<string>",
"dst_port": 123,
"health_check_endpoint": "<string>",
"health_check_protocol": "<string>",
"hostname": "<string>",
"id": "1bhw8r4pn73t1m5f7rn7a5pej2",
"location": "<string>",
"name": "<string>",
"src_port": 123,
"subnet": "<string>",
"vms": [
{
"id": "vmhfy8gff8c67hasb0eez2k1pd",
"ip4": "127.0.0.1",
"ip4_enabled": true,
"ip6": "2606:4700:3108::ac42:2835",
"location": "eu-central-h1",
"name": "my-vm-name",
"size": "<string>",
"state": "<string>",
"storage_size_gib": 123,
"unix_user": "<string>"
}
]
}
curl --request POST \
--url https://api.ubicloud.com/project/{project_id}/location/{location}/load-balancer/{load_balancer_reference}/detach-vm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"vm_id": "<string>"
}'
{
"algorithm": "<string>",
"stack": "<string>",
"dst_port": 123,
"health_check_endpoint": "<string>",
"health_check_protocol": "<string>",
"hostname": "<string>",
"id": "1bhw8r4pn73t1m5f7rn7a5pej2",
"location": "<string>",
"name": "<string>",
"src_port": 123,
"subnet": "<string>",
"vms": [
{
"id": "vmhfy8gff8c67hasb0eez2k1pd",
"ip4": "127.0.0.1",
"ip4_enabled": true,
"ip6": "2606:4700:3108::ac42:2835",
"location": "eu-central-h1",
"name": "my-vm-name",
"size": "<string>",
"state": "<string>",
"storage_size_gib": 123,
"unix_user": "<string>"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the project
"pjkkmx0f2vke4h36nk9cm8v8q0"
The Ubicloud location/region
"eu-central-h1"
Load balancer ID or name
A Load Balancer
The response is of type object
.