mirror of https://github.com/hashicorp/terraform
parent
decc837fa3
commit
a5098f167c
@ -0,0 +1,37 @@
|
||||
---
|
||||
layout: "dnsimple"
|
||||
page_title: "Provider: DNSimple"
|
||||
sidebar_current: "docs-dnsimple-index"
|
||||
---
|
||||
|
||||
# DNSimple Provider
|
||||
|
||||
The DNSimple provider is used to interact with the
|
||||
resources supported by DNSimple. The provider needs to be configured
|
||||
with the proper credentials before it can be used.
|
||||
|
||||
Use the navigation to the left to read about the available resources.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
# Configure the DNSimple provider
|
||||
provider "dnsimple" {
|
||||
token = "${var.dnsimple_token}"
|
||||
email = "${var.dnsimple_email}"
|
||||
}
|
||||
|
||||
# Create a record
|
||||
resource "dnsimple_record" "www" {
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
## Argument Reference
|
||||
|
||||
The following arguments are supported:
|
||||
|
||||
* `token` - (Required) The DNSimple API token
|
||||
* `email` - (Required) The email associated with the token
|
||||
|
||||
|
||||
@ -0,0 +1,46 @@
|
||||
---
|
||||
layout: "dnsimple"
|
||||
page_title: "DNSimple: dnsimple_record"
|
||||
sidebar_current: "docs-dnsimple-resource-record"
|
||||
---
|
||||
|
||||
# dnsimple\_record
|
||||
|
||||
Provides a DNSimple record resource.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
# Add a record to the domain
|
||||
resource "dnsimple_record" "foobar" {
|
||||
domain = "${var.dnsimple_domain}"
|
||||
name = "terraform"
|
||||
value = "192.168.0.11"
|
||||
type = "A"
|
||||
ttl = 3600
|
||||
}
|
||||
```
|
||||
|
||||
## Argument Reference
|
||||
|
||||
The following arguments are supported:
|
||||
|
||||
* `domain` - (Required) The domain to add the record to
|
||||
* `name` - (Required) The name of the record
|
||||
* `value` - (Required) The value of the record
|
||||
* `type` - (Required) The type of the record
|
||||
* `ttl` - (Optional) The TTL of the record
|
||||
|
||||
## Attributes Reference
|
||||
|
||||
The following attributes are exported:
|
||||
|
||||
* `id` - The record ID
|
||||
* `name` - The name of the record
|
||||
* `value` - The value of the record
|
||||
* `type` - The type of the record
|
||||
* `ttl` - The ttl of the record
|
||||
* `priority` - The priority of the record
|
||||
* `domain_id` - The domain ID of the record
|
||||
* `hostname` - The FQDN of the record
|
||||
|
||||
@ -0,0 +1,26 @@
|
||||
<% wrap_layout :inner do %>
|
||||
<% content_for :sidebar do %>
|
||||
<div class="docs-sidebar hidden-print affix-top" role="complementary">
|
||||
<ul class="nav docs-sidenav">
|
||||
<li<%= sidebar_current("docs-home") %>>
|
||||
<a href="/docs/index.html">« Documentation Home</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-dnsimple-index") %>>
|
||||
<a href="/docs/providers/dnsimple/index.html">DNSimple Provider</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-dnsimple-resource") %>>
|
||||
<a href="#">Resources</a>
|
||||
<ul class="nav nav-visible">
|
||||
<li<%= sidebar_current("docs-dnsimple-resource-record") %>>
|
||||
<a href="/docs/providers/dnsimple/r/record.html">dnsimple_record</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= yield %>
|
||||
<% end %>
|
||||
Loading…
Reference in new issue