curl --request POST \
--url https://api.tenbytecloud.com/v1/network/load_balancers \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"display_name": "my LB",
"billing_account_id": 130157,
"network_uuid": "438ac62f-e97b-4ef0-8940-507b9e94af43",
"reserve_public_ip": true,
"rules": [
{
"source_port": 8080,
"target_port": 80
}
],
"targets": [
{
"target_uuid": "145cc106-e067-419a-85fd-333ded30f169",
"target_type": "vm"
},
{
"target_uuid": "e9717243-59df-4847-bd50-dca5b090432b",
"target_type": "vm"
}
]
}
'