github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/ultradns/r/tcpool.html.markdown (about)

     1  ---
     2  layout: "ultradns"
     3  page_title: "UltraDNS: ultradns_tcpool"
     4  sidebar_current: "docs-ultradns-resource-tcpool"
     5  description: |-
     6    Provides an UltraDNS Traffic Controller pool resource.
     7  ---
     8  
     9  # ultradns\_tcpool
    10  
    11  Provides an UltraDNS Traffic Controller pool resource.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  # Create a Traffic Controller pool
    17  resource "ultradns_tcpool" "pool" {
    18    zone        = "${var.ultradns_domain}"
    19    name        = "terraform-tcpool"
    20    ttl         = 300
    21    description = "Minimal TC Pool"
    22  
    23    rdata {
    24      host = "192.168.0.10"
    25    }
    26  }
    27  ```
    28  
    29  ## Argument Reference
    30  
    31  See [related part of UltraDNS Docs](https://restapi.ultradns.com/v1/docs#post-rrset) for details about valid values.
    32  
    33  The following arguments are supported:
    34  
    35  * `zone` - (Required) The domain to add the record to
    36  * `name` - (Required) The name of the record
    37  * `rdata` - (Required) a list of rdata blocks, one for each member in the pool. Record Data documented below.
    38  * `description` - (Required) Description of the Traffic Controller pool. Valid values are strings less than 256 characters.
    39  * `ttl` - (Optional) The TTL of the record. Default: `3600`.
    40  * `run_probes` - (Optional) Boolean to run probes for this pool. Default: `true`.
    41  * `act_on_probes` - (Optional) Boolean to enable and disable pool records when probes are run. Default: `true`.
    42  * `max_to_lb` - (Optional) Determines the number of records to balance between. Valid values are integers  `0` - `len(rdata)`. Default: `0`.
    43  * `backup_record_rdata` - (Optional) IPv4 address or CNAME for the backup record. Default: `nil`.
    44  * `backup_record_failover_delay` - (Optional) Time in minutes that Traffic Controller waits after detecting that the pool record has failed before activating primary records. Valid values are integers `0` - `30`. Default: `0`.
    45  
    46  Record Data blocks support the following:
    47  
    48  * `host` - (Required) IPv4 address or CNAME for the pool member.
    49  * `failover_delay` - (Optional) Time in minutes that Traffic Controller waits after detecting that the pool record has failed before activating secondary records. `0` will activate the secondary records immediately. Integer. Range: `0` - `30`. Default: `0`.
    50  * `priority` - (Optional) Indicates the serving preference for this pool record. Valid values are integers `1` or greater. Default: `1`.
    51  * `run_probes` - (Optional) Whether probes are run for this pool record. Boolean. Default: `true`.
    52  * `state` - (Optional) Current state of the pool record. String. Must be one of `"NORMAL"`, `"ACTIVE"`, or `"INACTIVE"`. Default: `"NORMAL"`.
    53  * `threshold` - (Optional) How many probes must agree before the record state is changed. Valid values are integers `1` - `len(probes)`. Default: `1`.
    54  * `weight` - (Optional) Traffic load to send to each server in the Traffic Controller pool. Valid values are integers `2` - `100`. Default: `2`
    55  
    56  ## Attributes Reference
    57  
    58  The following attributes are exported:
    59  
    60  * `id` - The record ID
    61  * `hostname` - The FQDN of the record