providers/dns/derak/internal/readme.md
ex: https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/dnsrecords
| The name of the parameter | Description |
|---|---|
| dnsType | dnsType query |
| content | The Host value of the DNS record |
| type error | Error code |
|---|---|
| ForbiddenError | 1003 |
| RateLimitExceeded | 1013 |
curl -X GET --user "api:YOUR_API_KEY" \
https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/dnsrecords
curl -X GET --user "api:api-MbmnxdpIBvk14nk5LFFdG1CV9PdMDfqi3tZAixBZLXYzM3qc187d7ede2de" \
https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/dnsrecords \
-F dnsType="TXT"
ex: https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/dnsrecords
| The name of the parameter | Description |
|---|---|
| *type | DNS record type [of types Aand AAAAand CNAMEand MXand NSand CAAand TXTand SPFand PTRand SRV] |
| *host | The Host value of the DNS record |
| *content | The Host value of the DNS record |
| ttl | TTL of DNS record [default: 0] |
| cloud | This parameter specifies whether the traffic of this record passes through the cloud or not [Default: false] |
| priority | Priority of MX and SRV records [Default: 0] |
| service | SRV record service |
| protocol | SRV record protocol [default: _tcp] |
| weight | SRV Record Weight [Default: 0] |
| port | Priority of MX and SRV records [Default: 0] |
| advanced | This parameter specifies whether this record has advanced settings or not [default: false] |
| upstreamPort | Upstream Port of DNS record [Default: 80] |
| upstreamProtocol | Upstream protocol related to DNS records. Note that if you change these settings for another record of the same subdomain, the settings will be overwritten. [Default: http] |
| customSSLType | Custom SSL related DNS record. Note that if you change these settings for another record of the same subdomain, the settings will be overwritten. |
| type error | Error code |
|---|---|
| ForbiddenError | 1003 |
| RateLimitExceeded | 1013 |
| DNSValidationError | 1008 |
curl -X PUT --user "api:YOUR_API_KEY" \
https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/dnsrecords \
-F type="A" \
-F host="app" \
-F content="1.2.3.4"
ex: https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/dnsrecords/:recordId
| type error | Error code |
|---|---|
| ForbiddenError | 1003 |
| RateLimitExceeded | 1013 |
| RecordNotFoundError | 1021 |
curl -X GET --user "api:YOUR_API_KEY" \
https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/dnsrecords/:recordId
https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/dnsrecords/:recordId
| The name of the parameter | Description |
|---|---|
| type | DNS record type [of types Aand AAAAand CNAMEand MXand NSand CAAand TXTand SPFand PTRand SRV] |
| host | The Host value of the DNS record |
| content | The Host value of the DNS record |
| ttl | TTL of DNS record [default: 0] |
| cloud | This parameter specifies whether the traffic of this record passes through the cloud or not [Default: false] |
| priority | Priority of MX and SRV records [Default: 0] |
| service | SRV record service |
| protocol | SRV record protocol [default: _tcp] |
| weight | SRV Record Weight [Default: 0] |
| port | Priority of MX and SRV records [Default: 0] |
| advanced | This parameter specifies whether this record has advanced settings or not [default: false] |
| upstreamPort | Upstream Port of DNS record [Default: 80] |
| upstreamProtocol | Upstream protocol related to DNS records. Note that if you change these settings for another record of the same subdomain, the settings will be overwritten. [Default: http] |
| customSSLType | Custom SSL related DNS record. Note that if you change these settings for another record of the same subdomain, the settings will be overwritten. |
| type error | Error code |
|---|---|
| ForbiddenError | 1003 |
| RateLimitExceeded | 1013 |
| RecordNotFoundError | 1021 |
| DNSValidationError | 1008 |
curl -X PATCH --user "api:YOUR_API_KEY" \
https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/dnsrecords/:recordId \
-F cloud="true"
ex: https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/dnsrecords/:recordId
| type error | Error code |
|---|---|
| ForbiddenError | 1003 |
| RateLimitExceeded | 1013 |
| RecordNotFoundError | 1021 |
curl -X DELETE --user "api:YOUR_API_KEY" \
https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/dnsrecords/:recordId
ex: https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/cache/purge
| The name of the parameter | Description |
|---|---|
| hostname | The hostname to be deleted |
| hostnames | An array of hostnames to be cleared |
| url | The URL to be deleted |
| urls | An array of URLs to be purged |
| type error | Error code |
|---|---|
| ForbiddenError | 1003 |
| RateLimitExceeded | 1013 |
Purge URLS:
curl -X POST --user "api:YOUR_API_KEY" \
https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/cache/purge \
-F urls[]="https://www.derak.cloud/post/1" \
-F urls[]="https://www.derak.cloud/post/2"
Purge HOSTNAMES:
curl -X POST --user "api:YOUR_API_KEY" \
https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/cache/purge \
-F hostnames[]="www.derak.cloud" \
-F hostnames[]="app.derak.cloud"
Purge EVERYTHING:
curl -X POST --user "api:YOUR_API_KEY" \
https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/cache/purge
ex: https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/ssl/
| type error | Error code |
|---|---|
| ForbiddenError | 1003 |
curl -X PUT --user "api:YOUR_API_KEY" \
https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/ssl/
ex: https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/ssl/
| type error | Error code |
|---|---|
| ForbiddenError | 1003 |
curl -X DELETE --user "api:YOUR_API_KEY" \
https://api.derak.cloud/v1.0/zones/47c0ecf6c91243308c649ad1d2d618dd/ssl/