github.com/andresvia/terraform@v0.6.15-0.20160412045437-d51c75946785/website/source/docs/providers/cloudstack/r/loadbalancer_rule.html.markdown (about) 1 --- 2 layout: "cloudstack" 3 page_title: "CloudStack: cloudstack_loadbalancer_rule" 4 sidebar_current: "docs-cloudstack-resource-loadbalancer-rule" 5 description: |- 6 Creates a load balancer rule. 7 --- 8 9 # cloudstack\_loadbalancer\_rule 10 11 Creates a loadbalancer rule. 12 13 ## Example Usage 14 15 ``` 16 resource "cloudstack_loadbalancer_rule" "default" { 17 name = "loadbalancer-rule-1" 18 description = "Loadbalancer rule 1" 19 ip_address = "192.168.0.1" 20 algorithm = "roundrobin" 21 private_port = 80 22 public_port = 80 23 members = ["server-1", "server-2"] 24 } 25 ``` 26 27 ## Argument Reference 28 29 The following arguments are supported: 30 31 * `name` - (Required) Name of the loadbalancer rule. 32 Changing this forces a new resource to be created. 33 34 * `description` - (Optional) The description of the load balancer rule. 35 36 * `ip_address` - (Required) Public ip address from where the network traffic 37 will be load balanced from. Changing this forces a new resource to be 38 created. 39 40 * `ipaddress` - (Required, Deprecated) Public ip address from where the 41 network traffic will be load balanced from. Changing this forces a new 42 resource to be created. 43 44 * `network` - (Optional) The guest network this rule will be created for. 45 Required when public IP address is not associated with any Guest network 46 yet (VPC case). 47 48 * `algorithm` - (Required) Load balancer rule algorithm (source, roundrobin, 49 leastconn). Changing this forces a new resource to be created. 50 51 * `private_port` - (Required) The private port of the private IP address 52 (virtual machine) where the network traffic will be load balanced to. 53 Changing this forces a new resource to be created. 54 55 * `public_port` - (Required) The public port from where the network traffic 56 will be load balanced from. Changing this forces a new resource to be 57 created. 58 59 * `members` - (Required) List of instances to assign to the load balancer rule. 60 Changing this forces a new resource to be created. 61 62 ## Attributes Reference 63 64 The following attributes are exported: 65 66 * `id` - The load balancer rule ID. 67 * `description` - The description of the load balancer rule.