Load Balancer

Create a new load balancer

post/project/{project_id}/location/{location}/load-balancer/{load_balancer_reference}

Request body

algorithmstring required

Algorithm of the Load Balancer

stackstring

Networking stack of the Load Balancer (ipv4, ipv6, or dual)

dst_portinteger required

Destination port for the Load Balancer

health_check_endpointstring

Health check endpoint URL

health_check_protocolstring required

Health check endpoint protocol

private_subnet_idstring required

ID of Private Subnet

src_portinteger required

Source port for the Load Balancer

cert_enabledboolean

Whether SSL certificates are enabled for the Load Balancer

Response

A Load Balancer

algorithmstring required

Algorithm of the Load Balancer

stackstring

Networking stack of the Load Balancer (ipv4, ipv6, or dual)

dst_portinteger required

Destination port for the Load Balancer

health_check_endpointstring required

Health check endpoint URL

health_check_protocolstring required

Health check endpoint protocol

hostnamestring required

Hostname of the Load Balancer

idstring required

ID of the Load Balancer

locationstring required

Location of the Load Balancer

namestring required

Name of the Load Balancer

src_portinteger required

Source port for the Load Balancer

cert_enabledboolean

Whether SSL certificate is enabled

subnetstring required

Subnet of the Load Balancer

Example response

{
  "id": "1bhw8r4pn73t1m5f7rn7a5pej2",
  "vms": [
    {
      "id": "vmhfy8gff8c67hasb0eez2k1pd",
      "location": "eu-central-h1",
      "name": "my-vm-name"
    }
  ]
}

Changes

Changed in 2 of the 59 revisions of this API.3

    • added the required property allOf[subschema #2]/vms/items/boot_image to the response with the 200 status

      response-required-property-added

    • added the new optional request property cert_enabled

      new-optional-request-property

    • added the optional property allOf[LoadBalancer]/cert_enabled to the response with the 200 status

      response-optional-property-added