github.com/jrasell/terraform@v0.6.17-0.20160523115548-2652f5232949/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_id = "30b21801-d4b3-4174-852b-0c0f30bdbbfb"
    20    algorithm = "roundrobin"
    21    private_port = 80
    22    public_port = 80
    23    member_ids = ["f8141e2f-4e7e-4c63-9362-986c908b7ea7"]
    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_id` - (Required) Public IP address ID from where the network
    37      traffic will be load balanced from. Changing this forces a new resource
    38      to be 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_id` - (Optional) The network ID this rule will be created for.
    45      Required when public IP address is not associated with any network yet
    46      (VPC case).
    47  
    48  * `network` - (Optional, Deprecated) The network this rule will be created
    49      for. Required when public IP address is not associated with any network
    50      yet (VPC case).
    51  
    52  * `algorithm` - (Required) Load balancer rule algorithm (source, roundrobin,
    53      leastconn). Changing this forces a new resource to be created.
    54  
    55  * `private_port` - (Required) The private port of the private IP address 
    56      (virtual machine) where the network traffic will be load balanced to.
    57      Changing this forces a new resource to be created.
    58  
    59  * `public_port` - (Required) The public port from where the network traffic
    60      will be load balanced from. Changing this forces a new resource to be
    61      created.
    62  
    63  * `member_ids` - (Required) List of instance IDs to assign to the load balancer
    64      rule. Changing this forces a new resource to be created.
    65  
    66  * `members` - (Required, Deprecated) List of instances to assign to the load
    67      balancer rule. Changing this forces a new resource to be created.
    68  
    69  ## Attributes Reference
    70  
    71  The following attributes are exported:
    72  
    73  * `id` - The load balancer rule ID.
    74  * `description` - The description of the load balancer rule.