Skip to main content
POST
/
network
/
load_balancers
Create load balancer
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"
    }
  ]
}
'
{
  "uuid": "438ac62f-e97b-4ef0-8940-507b9e94af43",
  "display_name": "my LB",
  "billing_account_id": 130157,
  "private_address": "10.112.231.192"
}

Authorizations

apikey
string
header
required

Body

application/json
display_name
string
billing_account_id
integer
network_uuid
string
reserve_public_ip
boolean
rules
object[]

JSON

targets
object[]

JSON

Response

200 - application/json

Created load balancer

The response is of type object.