github.com/bengesoff/terraform@v0.3.1-0.20141018223233-b25a53629922/website/source/docs/providers/do/r/record.html.markdown (about)

     1  ---
     2  layout: "digitalocean"
     3  page_title: "DigitalOcean: digitalocean_record"
     4  sidebar_current: "docs-do-resource-record"
     5  ---
     6  
     7  # digitalocean\_record
     8  
     9  Provides a DigitalOcean domain resource.
    10  
    11  ## Example Usage
    12  
    13  ```
    14  # Create a new domain record
    15  resource "digitalocean_domain" "default" {
    16      name = "www.example.com"
    17      ip_address = "${digitalocean_droplet.foo.ipv4_address}"
    18  }
    19  
    20  # Add a record to the domain
    21  resource "digitalocean_record" "foobar" {
    22      domain = "${digitalocean_domain.default.name}"
    23      type = "A"
    24      name = "foobar"
    25      value = "192.168.0.11"
    26  }
    27  ```
    28  
    29  ## Argument Reference
    30  
    31  The following arguments are supported:
    32  
    33  * `type` - (Required) The type of record
    34  * `domain` - (Required) The domain to add the record to
    35  * `value` - (Optional) The value of the record
    36  * `name` - (Optional) The name of the record
    37  * `weight` - (Optional) The weight of the record
    38  * `port` - (Optional) The port of the record
    39  * `priority` - (Optional) The priority of the record
    40  
    41  ## Attributes Reference
    42  
    43  The following attributes are exported:
    44  
    45  * `id` - The record ID
    46