Home / Servers / DigitalOcean API / load_balancers_create

Create a New Load Balancer

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Create a New Load Balancer To create a new load balancer instance, send a POST request to /v2/load_balancers. You can specify the Droplets that will sit behind the load balancer using one of two methods: * Set droplet_ids to… [POST /v2/load_balancers]

Name on the gateway: digitalocean_api__load_balancers_create · may change things.

Parameters

NameTypeDescription
droplet_ids requiredarrayAn array containing the IDs of the Droplets assigned to the load balancer.
ipstringAn optional IP address to assign to the load balancer from one of your Bring…
region requiredams1 | ams2 | ams3 | blr1 | fra1 | lon1 | nyc1 | nyc2 | nyc3 | sfo1 | sfo2 | sfo3 | sgp1 | tor1 | syd1The slug identifier for the region where the resource will initially be…
idstringA unique ID that can be used to identify and reference a load balancer.
namestringA human-readable name for a load balancer instance.
project_idstringThe ID of the project that the load balancer is associated with. If no ID is…
ipv6stringAn attribute containing the public-facing IPv6 address of the load balancer.
size_unitintegerHow many nodes the load balancer contains. Each additional node increases the…
sizelb-small | lb-medium | lb-largeThis field has been replaced by the size_unit field for all regions except in…
algorithmround_robin | least_connectionsThis field has been deprecated. You can no longer specify an algorithm for…
statusnew | active | erroredA status string indicating the current state of the load balancer. This can be…
created_atstringA time value given in ISO8601 combined date and time format that represents…
forwarding_rules requiredarrayAn array of objects specifying the forwarding rules for a load balancer.
health_checkobjectAn object specifying health check settings for the load balancer.
sticky_sessionsobjectAn object specifying sticky sessions settings for the load balancer.
redirect_http_to_httpsbooleanA boolean value indicating whether HTTP requests to the load balancer on port…
enable_proxy_protocolbooleanA boolean value indicating whether PROXY Protocol is in use.
enable_backend_keepalivebooleanA boolean value indicating whether HTTP keepalive connections are maintained…
http_idle_timeout_secondsintegerAn integer value which configures the idle timeout for HTTP requests to the…
vpc_uuidstringA string specifying the UUID of the VPC to which the load balancer is assigned.
subnet_uuidstringA string specifying the UUID of the VPC subnet to which the load balancer is…
disable_lets_encrypt_dns_recordsbooleanA boolean value indicating whether to disable automatic DNS record creation…
firewallobjectAn object specifying allow and deny rules to control traffic to the load…
networkEXTERNAL | INTERNALA string indicating whether the load balancer should be external or internal.…
network_stackIPV4 | DUALSTACKA string indicating whether the load balancer will support IPv4 or both IPv4…
typeREGIONAL | REGIONAL_NETWORK | GLOBALA string indicating whether the load balancer should be a standard regional…
domainsarrayAn array of objects specifying the domain configurations for a Global load…
glb_settingsobjectAn object specifying forwarding configurations for a Global load balancer.
target_load_balancer_idsarrayAn array containing the UUIDs of the Regional load balancers to be used as…
tls_cipher_policyDEFAULT | STRONGA string indicating the policy for the TLS cipher suites used by the load…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__load_balancers_create",
  "arguments": {
    "droplet_ids": [],
    "region": "…",
    "forwarding_rules": []
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a new load balancer tool with droplet_ids set to ….

More from DigitalOcean API