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

     1  ---
     2  layout: "powerdns"
     3  page_title: "PowerDNS: powerdns_record"
     4  sidebar_current: "docs-powerdns-resource-record"
     5  description: |-
     6    Provides a PowerDNS record resource.
     7  ---
     8  
     9  # powerdns\_record
    10  
    11  Provides a PowerDNS record resource.
    12  
    13  ## Example Usage
    14  
    15  Note that PowerDNS internally lowercases certain records (e.g. CNAME and AAAA), which can lead to resources being marked for a change in every singe plan.
    16  
    17  For the v1 API (PowerDNS version 4):
    18  
    19  ```hcl
    20  # Add a record to the zone
    21  resource "powerdns_record" "foobar" {
    22    zone    = "example.com."
    23    name    = "www.example.com"
    24    type    = "A"
    25    ttl     = 300
    26    records = ["192.168.0.11"]
    27  }
    28  ```
    29  
    30  For the legacy API (PowerDNS version 3.4):
    31  
    32  ```hcl
    33  # Add a record to the zone
    34  resource "powerdns_record" "foobar" {
    35    zone    = "example.com"
    36    name    = "www.example.com"
    37    type    = "A"
    38    ttl     = 300
    39    records = ["192.168.0.11"]
    40  }
    41  ```
    42  
    43  ## Argument Reference
    44  
    45  The following arguments are supported:
    46  
    47  * `zone` - (Required) The name of zone to contain this record.
    48  * `name` - (Required) The name of the record.
    49  * `type` - (Required) The record type.
    50  * `ttl` - (Required) The TTL of the record.
    51  * `records` - (Required) A string list of records.
    52