Files
opentf/website/source/docs/providers/clc/r/load_balancer.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

1.0 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
clc clc: clc_load_balancer docs-clc-resource-load-balancer Manages a CLC load balacner.

clc_load_balancer

Manages a CLC load balancer. Manage connected backends with clc_load_balancer_pool

See also Complete API documentation.

Example Usage

# Provision a load balancer
resource "clc_load_balancer" "api" {
  data_center = "${clc_group.frontends.location_id}"
  name        = "api"
  description = "api load balancer"
  status      = "enabled"
}

output "api_ip" {
  value = "clc_load_balancer.api.ip_address"
}

Argument Reference

The following arguments are supported:

  • name - (Required, string) The name of the load balancer.
  • data_center - (Required, string) The datacenter location of both parent group and this group.
  • status - (Required, string) Either "enabled" or "disabled"
  • description - (Optional, string) Description for server group (visible in control portal only)