github.com/koding/terraform@v0.6.4-0.20170608090606-5d7e0339779d/website/source/docs/providers/openstack/r/dns_zone_v2.html.markdown (about) 1 --- 2 layout: "openstack" 3 page_title: "OpenStack: openstack_dns_zone_v2" 4 sidebar_current: "docs-openstack-resource-dns-zone-v2" 5 description: |- 6 Manages a DNS zone in the OpenStack DNS Service 7 --- 8 9 # openstack\_dns\_zone_v2 10 11 Manages a DNS zone in the OpenStack DNS Service. 12 13 ## Example Usage 14 15 ### Automatically detect the correct network 16 17 ```hcl 18 resource "openstack_dns_zone_v2" "example.com" { 19 name = "example.com." 20 email = "jdoe@example.com" 21 description = "An example zone" 22 ttl = 3000 23 type = "PRIMARY" 24 } 25 ``` 26 27 ## Argument Reference 28 29 The following arguments are supported: 30 31 * `region` - (Required) The region in which to obtain the V2 Compute client. 32 Keypairs are associated with accounts, but a Compute client is needed to 33 create one. If omitted, the `OS_REGION_NAME` environment variable is used. 34 Changing this creates a new DNS zone. 35 36 * `name` - (Required) The name of the zone. Note the `.` at the end of the name. 37 Changing this creates a new DNS zone. 38 39 * `email` - (Optional) The email contact for the zone record. 40 41 * `type` - (Optional) The type of zone. Can either be `PRIMARY` or `SECONDARY`. 42 Changing this creates a new zone. 43 44 * `attributes` - (Optional) Attributes for the DNS Service scheduler. 45 Changing this creates a new zone. 46 47 * `ttl` - (Optional) The time to live (TTL) of the zone. 48 49 * `description` - (Optional) A description of the zone. 50 51 * `masters` - (Optional) An array of master DNS servers. For when `type` is 52 `SECONDARY`. 53 54 * `value_specs` - (Optional) Map of additional options. Changing this creates a 55 new zone. 56 57 ## Attributes Reference 58 59 The following attributes are exported: 60 61 * `region` - See Argument Reference above. 62 * `name` - See Argument Reference above. 63 * `email` - See Argument Reference above. 64 * `type` - See Argument Reference above. 65 * `attributes` - See Argument Reference above. 66 * `ttl` - See Argument Reference above. 67 * `description` - See Argument Reference above. 68 * `masters` - See Argument Reference above. 69 * `value_specs` - See Argument Reference above. 70 71 ## Import 72 73 This resource can be imported by specifying the zone ID: 74 75 ``` 76 $ terraform import openstack_dns_zone_v2.zone_1 <zone_id> 77 ```