mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-15 20:55:34 +08:00
11f29e1dd7
Documentation fix to resolve, "Creating do dns provider: Digitalocean Token must be provided." error.
37 lines
824 B
Markdown
37 lines
824 B
Markdown
---
|
|
name: DigitalOcean
|
|
title: DigitalOcean Provider
|
|
layout: default
|
|
jsId: DIGITALOCEAN
|
|
---
|
|
# DigitalOcean Provider
|
|
|
|
## Configuration
|
|
In your credentials file, you must provide your
|
|
[Digitalocean OAuth Token](https://cloud.digitalocean.com/settings/applications)
|
|
|
|
{% highlight json %}
|
|
{
|
|
"digitalocean": {
|
|
"token": "your-digitalocean-ouath-token"
|
|
}
|
|
}
|
|
{% endhighlight %}
|
|
|
|
## Metadata
|
|
This provider does not recognize any special metadata fields unique to DigitalOcean.
|
|
|
|
## Usage
|
|
Example Javascript:
|
|
|
|
{% highlight js %}
|
|
var REG_NONE = NewRegistrar('none', 'NONE')
|
|
var DIGITALOCEAN = NewDnsProvider("digitalocean", "DIGITALOCEAN");
|
|
|
|
D("example.tld", REG_NONE, DnsProvider(DIGITALOCEAN),
|
|
A("test","1.2.3.4")
|
|
);
|
|
{%endhighlight%}
|
|
|
|
## Activation
|
|
[Create OAuth Token](https://cloud.digitalocean.com/settings/applications)
|