2017-08-11 04:31:20 +08:00
|
|
|
---
|
2017-10-11 20:33:17 +08:00
|
|
|
name: DigitalOcean
|
|
|
|
title: DigitalOcean Provider
|
2017-08-11 04:31:20 +08:00
|
|
|
layout: default
|
|
|
|
jsId: DIGITALOCEAN
|
|
|
|
---
|
2017-10-11 20:33:17 +08:00
|
|
|
# DigitalOcean Provider
|
2017-08-11 04:31:20 +08:00
|
|
|
|
|
|
|
## Configuration
|
2017-10-12 01:13:31 +08:00
|
|
|
In your credentials file, you must provide your
|
2017-08-11 04:31:20 +08:00
|
|
|
[Digitalocean OAuth Token](https://cloud.digitalocean.com/settings/applications)
|
|
|
|
|
|
|
|
{% highlight json %}
|
|
|
|
{
|
2017-10-11 20:33:52 +08:00
|
|
|
"digitalocean": {
|
2017-08-11 04:31:20 +08:00
|
|
|
"token": "your-digitalocean-ouath-token"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{% endhighlight %}
|
|
|
|
|
|
|
|
## Metadata
|
2017-10-12 01:13:31 +08:00
|
|
|
This provider does not recognize any special metadata fields unique to DigitalOcean.
|
2017-08-11 04:31:20 +08:00
|
|
|
|
|
|
|
## Usage
|
2017-10-12 01:13:31 +08:00
|
|
|
Example Javascript:
|
2017-08-11 04:31:20 +08:00
|
|
|
|
|
|
|
{% highlight js %}
|
2017-10-11 20:33:52 +08:00
|
|
|
var REG_NONE = NewRegistrar('none', 'NONE')
|
|
|
|
var DIGITALOCEAN = NewDnsProvider("do", "DIGITALOCEAN");
|
2017-08-11 04:31:20 +08:00
|
|
|
|
2017-10-11 20:33:52 +08:00
|
|
|
D("example.tld", REG_NONE, DnsProvider(DIGITALOCEAN),
|
2017-08-11 04:31:20 +08:00
|
|
|
A("test","1.2.3.4")
|
|
|
|
);
|
|
|
|
{%endhighlight%}
|
|
|
|
|
|
|
|
## Activation
|
|
|
|
[Create OAuth Token](https://cloud.digitalocean.com/settings/applications)
|