github.com/simonswine/terraform@v0.9.0-beta2/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  # Create a Traffic Controller pool
    16  resource "ultradns_tcpool" "pool" {
    17    zone        = "${var.ultradns_domain}"
    18    name        = "terraform-tcpool"
    19    ttl         = 300
    20    description = "Minimal TC Pool"
    21  
    22    rdata {
    23      host = "192.168.0.10"
    24    }
    25  }
    26  ```
    27  
    28  ## Argument Reference
    29  
    30  See [related part of UltraDNS Docs](https://restapi.ultradns.com/v1/docs#post-rrset) for details about valid values.
    31  
    32  The following arguments are supported:
    33  
    34  * `zone` - (Required) The domain to add the record to
    35  * `name` - (Required) The name of the record
    36  * `rdata` - (Required) a list of rdata blocks, one for each member in the pool. Record Data documented below.
    37  * `description` - (Required) Description of the Traffic Controller pool. Valid values are strings less than 256 characters.
    38  * `ttl` - (Optional) The TTL of the record. Default: `3600`.
    39  * `run_probes` - (Optional) Boolean to run probes for this pool. Default: `true`.
    40  * `act_on_probes` - (Optional) Boolean to enable and disable pool records when probes are run. Default: `true`.
    41  * `max_to_lb` - (Optional) Determines the number of records to balance between. Valid values are integers  `0` - `len(rdata)`. Default: `0`.
    42  * `backup_record_rdata` - (Optional) IPv4 address or CNAME for the backup record. Default: `nil`.
    43  * `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`.
    44  
    45  Record Data blocks support the following:
    46  
    47  * `host` - (Required) IPv4 address or CNAME for the pool member.
    48  * `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`.
    49  * `priority` - (Optional) Indicates the serving preference for this pool record. Valid values are integers `1` or greater. Default: `1`.
    50  * `run_probes` - (Optional) Whether probes are run for this pool record. Boolean. Default: `true`.
    51  * `state` - (Optional) Current state of the pool record. String. Must be one of `"NORMAL"`, `"ACTIVE"`, or `"INACTIVE"`. Default: `"NORMAL"`.
    52  * `threshold` - (Optional) How many probes must agree before the record state is changed. Valid values are integers `1` - `len(probes)`. Default: `1`.
    53  * `weight` - (Optional) Traffic load to send to each server in the Traffic Controller pool. Valid values are integers `2` - `100`. Default: `2`
    54  
    55  ## Attributes Reference
    56  
    57  The following attributes are exported:
    58  
    59  * `id` - The record ID
    60  * `hostname` - The FQDN of the record