github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/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  ```hcl
    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  * `network_id` - (Optional) The network ID this rule will be created for.
    41      Required when public IP address is not associated with any network yet
    42      (VPC case).
    43  
    44  * `algorithm` - (Required) Load balancer rule algorithm (source, roundrobin,
    45      leastconn). Changing this forces a new resource to be created.
    46  
    47  * `private_port` - (Required) The private port of the private IP address
    48      (virtual machine) where the network traffic will be load balanced to.
    49      Changing this forces a new resource to be created.
    50  
    51  * `public_port` - (Required) The public port from where the network traffic
    52      will be load balanced from. Changing this forces a new resource to be
    53      created.
    54  
    55  * `member_ids` - (Required) List of instance IDs to assign to the load balancer
    56      rule. Changing this forces a new resource to be created.
    57  
    58  * `project` - (Optional) The name or ID of the project to deploy this
    59      instance to. Changing this forces a new resource to be created.
    60  
    61  ## Attributes Reference
    62  
    63  The following attributes are exported:
    64  
    65  * `id` - The load balancer rule ID.
    66  * `description` - The description of the load balancer rule.