2022-11-15 11:40:08 -06:00
|
|
|
## Configuration
|
|
|
|
|
|
|
|
To use this provider, add an entry to `creds.json` with `TYPE` set to `GCORE`
|
|
|
|
along with a Gcore account API token.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2023-03-02 22:17:27 +01:00
|
|
|
{% code title="creds.json" %}
|
2022-11-15 11:40:08 -06:00
|
|
|
```json
|
|
|
|
{
|
|
|
|
"gcore": {
|
|
|
|
"TYPE": "GCORE",
|
|
|
|
"api-key": "your-gcore-api-key"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
2023-03-02 22:17:27 +01:00
|
|
|
{% endcode %}
|
2022-11-15 11:40:08 -06:00
|
|
|
|
|
|
|
## Metadata
|
|
|
|
This provider does not recognize any special metadata fields unique to Gcore.
|
|
|
|
|
|
|
|
## Usage
|
2023-03-11 14:42:01 +01:00
|
|
|
An example configuration:
|
2022-11-15 11:40:08 -06:00
|
|
|
|
2023-03-11 14:42:01 +01:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 13:56:20 +01:00
|
|
|
```javascript
|
2023-05-21 19:31:35 +02:00
|
|
|
var REG_NONE = NewRegistrar("none");
|
|
|
|
var DSP_GCORE = NewDnsProvider("gcore");
|
2022-11-15 11:40:08 -06:00
|
|
|
|
2023-06-17 14:58:17 +02:00
|
|
|
D("example.com", REG_NONE, DnsProvider(DSP_GCORE),
|
2022-11-15 11:40:08 -06:00
|
|
|
A("test", "1.2.3.4")
|
|
|
|
);
|
|
|
|
```
|
2023-03-11 14:42:01 +01:00
|
|
|
{% endcode %}
|
2022-11-15 11:40:08 -06:00
|
|
|
|
|
|
|
## Activation
|
|
|
|
|
|
|
|
DNSControl depends on a Gcore account API token.
|
|
|
|
|
|
|
|
You can obtain your API token on this page: <https://accounts.gcore.com/profile/api-tokens>
|