2017-01-18 15:43:09 +01:00
|
|
|
---
|
|
|
|
layout: "profitbricks"
|
|
|
|
page_title: "ProfitBricks: profitbricks_loadbalancer"
|
2017-01-26 18:28:01 +01:00
|
|
|
sidebar_current: "docs-profitbricks-resource-loadbalancer"
|
2017-01-18 15:43:09 +01:00
|
|
|
description: |-
|
|
|
|
Creates and manages Load Balancers
|
|
|
|
---
|
|
|
|
|
|
|
|
# profitbricks\_loadbalancer
|
|
|
|
|
|
|
|
Manages a Load Balancers on ProfitBricks
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2017-04-17 12:17:54 +02:00
|
|
|
```hcl
|
2017-01-18 15:43:09 +01:00
|
|
|
resource "profitbricks_loadbalancer" "example" {
|
|
|
|
datacenter_id = "${profitbricks_datacenter.example.id}"
|
2017-02-18 23:48:50 +01:00
|
|
|
nic_id = "${profitbricks_nic.example.id}"
|
|
|
|
name = "load balancer name"
|
|
|
|
dhcp = true
|
2017-01-18 15:43:09 +01:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
##Argument reference
|
|
|
|
|
|
|
|
* `datacenter_id` - (Required)[string]
|
2017-02-18 23:48:50 +01:00
|
|
|
* `nic_id` - (Required)[string]
|
2017-01-18 15:43:09 +01:00
|
|
|
* `dhcp` - (Optional) [boolean] Indicates if the load balancer will reserve an IP using DHCP.
|
|
|
|
* `ip` - (Optional) [string] IPv4 address of the load balancer.
|
|
|
|
|