---
title: "Create a new load balancer"
method: POST
path: "/project/{project_id}/location/{location}/load-balancer/{load_balancer_reference}"
tags: ["Load Balancer"]
---

# Create a new load balancer

`POST /project/{project_id}/location/{location}/load-balancer/{load_balancer_reference}`

## Request body

- object
  - `algorithm` string, required — Algorithm of the Load Balancer
  - `stack` string — Networking stack of the Load Balancer (ipv4, ipv6, or dual)
  - `dst_port` integer, required — Destination port for the Load Balancer
  - `health_check_endpoint` string — Health check endpoint URL
  - `health_check_protocol` string, required — Health check endpoint protocol
  - `private_subnet_id` string, required — ID of Private Subnet
  - `src_port` integer, required — Source port for the Load Balancer
  - `cert_enabled` boolean — Whether SSL certificates are enabled for the Load Balancer

## Response `200`

A Load Balancer

- object
  - `algorithm` string, required — Algorithm of the Load Balancer
  - `stack` string — Networking stack of the Load Balancer (ipv4, ipv6, or dual)
  - `dst_port` integer, required — Destination port for the Load Balancer
  - `health_check_endpoint` string, required — Health check endpoint URL
  - `health_check_protocol` string, required — Health check endpoint protocol
  - `hostname` string, required — Hostname of the Load Balancer
  - `id` string, required — ID of the Load Balancer
  - `location` string, required — Location of the Load Balancer
  - `name` string, required — Name of the Load Balancer
  - `src_port` integer, required — Source port for the Load Balancer
  - `cert_enabled` boolean — Whether SSL certificate is enabled
  - `subnet` string, required — Subnet of the Load Balancer
  - `vms` Vm[], required
    - `boot_image` string, required — Boot image of the VM
    - `id` string, required — ID of the VM
    - `ip4` string, ipv4, nullable, required — IPv4 address
    - `ip4_enabled` boolean, required — Whether IPv4 is enabled
    - `ip6` string, ipv6, nullable, required — IPv6 address
    - `location` string, required — Location of the VM
    - `name` string, required — Name of the VM
    - `size` string, required — Size of the underlying VM
    - `state` string, required — State of the VM
    - `storage_size_gib` integer, required — Storage size in GiB
    - `unix_user` string, required — Unix user of the VM

## Other responses

- `default` — An error response

---

[API](https://skmtc.net/ubicloud/apis/clover-api.md) · [All operations](https://skmtc.net/ubicloud/apis/clover-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ubicloud/clover-api/versions/e8e5db50e9a6/schema)
