mirror of
https://github.com/go-acme/lego.git
synced 2024-11-25 00:56:20 +02:00
arvancloud: replace arvancloud.com by arvancloud.ir (#1771)
This commit is contained in:
parent
a7b11e0447
commit
300f42d084
@ -6,7 +6,7 @@ slug: arvancloud
|
|||||||
dnsprovider:
|
dnsprovider:
|
||||||
since: "v3.8.0"
|
since: "v3.8.0"
|
||||||
code: "arvancloud"
|
code: "arvancloud"
|
||||||
url: "https://arvancloud.com"
|
url: "https://arvancloud.ir"
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
||||||
@ -14,7 +14,7 @@ dnsprovider:
|
|||||||
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
||||||
|
|
||||||
|
|
||||||
Configuration for [ArvanCloud](https://arvancloud.com).
|
Configuration for [ArvanCloud](https://arvancloud.ir).
|
||||||
|
|
||||||
|
|
||||||
<!--more-->
|
<!--more-->
|
||||||
@ -60,7 +60,7 @@ More information [here]({{< ref "dns#configuration-and-credentials" >}}).
|
|||||||
|
|
||||||
## More information
|
## More information
|
||||||
|
|
||||||
- [API documentation](https://www.arvancloud.com/docs/api/cdn/4.0)
|
- [API documentation](https://www.arvancloud.ir/docs/api/cdn/4.0)
|
||||||
|
|
||||||
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
||||||
<!-- providers/dns/arvancloud/arvancloud.toml -->
|
<!-- providers/dns/arvancloud/arvancloud.toml -->
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name = "ArvanCloud"
|
Name = "ArvanCloud"
|
||||||
Description = ''''''
|
Description = ''''''
|
||||||
URL = "https://arvancloud.com"
|
URL = "https://arvancloud.ir"
|
||||||
Code = "arvancloud"
|
Code = "arvancloud"
|
||||||
Since = "v3.8.0"
|
Since = "v3.8.0"
|
||||||
|
|
||||||
@ -19,4 +19,4 @@ lego --email you@example.com --dns arvancloud --domains my.example.org run
|
|||||||
ARVANCLOUD_HTTP_TIMEOUT = "API request timeout"
|
ARVANCLOUD_HTTP_TIMEOUT = "API request timeout"
|
||||||
|
|
||||||
[Links]
|
[Links]
|
||||||
API = "https://www.arvancloud.com/docs/api/cdn/4.0"
|
API = "https://www.arvancloud.ir/docs/api/cdn/4.0"
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// defaultBaseURL represents the API endpoint to call.
|
// defaultBaseURL represents the API endpoint to call.
|
||||||
const defaultBaseURL = "https://napi.arvancloud.com"
|
const defaultBaseURL = "https://napi.arvancloud.ir"
|
||||||
|
|
||||||
const authHeader = "Authorization"
|
const authHeader = "Authorization"
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ func (c *Client) GetTxtRecord(domain, name, value string) (*DNSRecord, error) {
|
|||||||
return nil, fmt.Errorf("could not find record: Domain: %s; Record: %s", domain, name)
|
return nil, fmt.Errorf("could not find record: Domain: %s; Record: %s", domain, name)
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://www.arvancloud.com/docs/api/cdn/4.0#operation/dns_records.list
|
// https://www.arvancloud.ir/docs/api/cdn/4.0#operation/dns_records.list
|
||||||
func (c *Client) getRecords(domain, search string) ([]DNSRecord, error) {
|
func (c *Client) getRecords(domain, search string) ([]DNSRecord, error) {
|
||||||
endpoint, err := c.createEndpoint("cdn", "4.0", "domains", domain, "dns-records")
|
endpoint, err := c.createEndpoint("cdn", "4.0", "domains", domain, "dns-records")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -95,7 +95,7 @@ func (c *Client) getRecords(domain, search string) ([]DNSRecord, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CreateRecord creates a DNS record.
|
// CreateRecord creates a DNS record.
|
||||||
// https://www.arvancloud.com/docs/api/cdn/4.0#operation/dns_records.create
|
// https://www.arvancloud.ir/docs/api/cdn/4.0#operation/dns_records.create
|
||||||
func (c *Client) CreateRecord(domain string, record DNSRecord) (*DNSRecord, error) {
|
func (c *Client) CreateRecord(domain string, record DNSRecord) (*DNSRecord, error) {
|
||||||
reqBody, err := json.Marshal(record)
|
reqBody, err := json.Marshal(record)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -137,7 +137,7 @@ func (c *Client) CreateRecord(domain string, record DNSRecord) (*DNSRecord, erro
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DeleteRecord deletes a DNS record.
|
// DeleteRecord deletes a DNS record.
|
||||||
// https://www.arvancloud.com/docs/api/cdn/4.0#operation/dns_records.remove
|
// https://www.arvancloud.ir/docs/api/cdn/4.0#operation/dns_records.remove
|
||||||
func (c *Client) DeleteRecord(domain, id string) error {
|
func (c *Client) DeleteRecord(domain, id string) error {
|
||||||
endpoint, err := c.createEndpoint("cdn", "4.0", "domains", domain, "dns-records", id)
|
endpoint, err := c.createEndpoint("cdn", "4.0", "domains", domain, "dns-records", id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -227,8 +227,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"links": {
|
"links": {
|
||||||
"first": "https://napi.arvancloud.com/4.0/domains/example.ir/dns-records?page=1",
|
"first": "https://napi.arvancloud.ir/4.0/domains/example.ir/dns-records?page=1",
|
||||||
"last": "https://napi.arvancloud.com/4.0/domains/example.ir/dns-records?page=1",
|
"last": "https://napi.arvancloud.ir/4.0/domains/example.ir/dns-records?page=1",
|
||||||
"prev": null,
|
"prev": null,
|
||||||
"next": null
|
"next": null
|
||||||
},
|
},
|
||||||
@ -236,7 +236,7 @@
|
|||||||
"current_page": 1,
|
"current_page": 1,
|
||||||
"from": 1,
|
"from": 1,
|
||||||
"last_page": 1,
|
"last_page": 1,
|
||||||
"path": "https://napi.arvancloud.com/4.0/domains/example.ir/dns-records",
|
"path": "https://napi.arvancloud.ir/4.0/domains/example.ir/dns-records",
|
||||||
"per_page": 300,
|
"per_page": 300,
|
||||||
"to": 8,
|
"to": 8,
|
||||||
"total": 8
|
"total": 8
|
||||||
|
Loading…
Reference in New Issue
Block a user