github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/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    ipaddress = "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  * `ipaddress` - (Required) Public ip address from where the network traffic will be load balanced from.
    37      Changing this forces a new resource to be created.
    38  
    39  * `network` - (Optional) The guest network this rule will be created for. Required when public Ip address is
    40      not associated with any Guest network yet (VPC case).
    41  
    42  * `algorithm` - (Required) Load balancer rule algorithm (source, roundrobin, leastconn).Changing this forces
    43      a new resource to be created.
    44  
    45  * `private_port` - (Required) The private port of the private ip address/virtual machine where the network
    46      traffic will be load balanced to. Changing this forces a new resource to be created.
    47  
    48  * `public_port` - (Required) The public port from where the network traffic will be load balanced from.
    49      Changing this forces a new resource to be created.
    50  
    51  * `members` - (Required) List of instances to assign to the load balancer rule. Changing this forces a new
    52      resource to be created.
    53  
    54  ## Attributes Reference
    55  
    56  The following attributes are exported:
    57  
    58  * `id` - The load balancer rule ID.
    59  * `description` - The description of the load balancer rule.