CDN-домени
curl --request GET \
--url https://api.erlcrussia.com/v3/cdn/custom-domains \
--header 'erlcrussia-api-key: <api-key>'import requests
url = "https://api.erlcrussia.com/v3/cdn/custom-domains"
headers = {"erlcrussia-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'erlcrussia-api-key': '<api-key>'}};
fetch('https://api.erlcrussia.com/v3/cdn/custom-domains', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.erlcrussia.com/v3/cdn/custom-domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"erlcrussia-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.erlcrussia.com/v3/cdn/custom-domains"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("erlcrussia-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.erlcrussia.com/v3/cdn/custom-domains")
.header("erlcrussia-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erlcrussia.com/v3/cdn/custom-domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["erlcrussia-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "domain_example",
"domain": "files.example.com",
"teamId": "team_example",
"scope": "team",
"type": "cdn",
"userId": null,
"isVerified": true,
"cnameVerified": true,
"cfStatus": "active",
"cfSslStatus": "active",
"cfCustomHostnameId": "hostname_example",
"originUrl": null,
"deployHookToken": "REDACTED_DEPLOY_TOKEN",
"s3Backup": true,
"ownershipName": null,
"ownershipValue": null,
"sslTxtName": null,
"sslTxtValue": null,
"createdAt": "2026-10-15T10:00:00Z",
"updatedAt": "2026-10-15T10:00:00Z",
"_count": {
"shortLinks": 0
}
}
]
Свої домени
CDN-домени
Свої CDN-домени команди. Потрібне право керування CDN.
GET
/
cdn
/
custom-domains
CDN-домени
curl --request GET \
--url https://api.erlcrussia.com/v3/cdn/custom-domains \
--header 'erlcrussia-api-key: <api-key>'import requests
url = "https://api.erlcrussia.com/v3/cdn/custom-domains"
headers = {"erlcrussia-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'erlcrussia-api-key': '<api-key>'}};
fetch('https://api.erlcrussia.com/v3/cdn/custom-domains', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.erlcrussia.com/v3/cdn/custom-domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"erlcrussia-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.erlcrussia.com/v3/cdn/custom-domains"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("erlcrussia-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.erlcrussia.com/v3/cdn/custom-domains")
.header("erlcrussia-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erlcrussia.com/v3/cdn/custom-domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["erlcrussia-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "domain_example",
"domain": "files.example.com",
"teamId": "team_example",
"scope": "team",
"type": "cdn",
"userId": null,
"isVerified": true,
"cnameVerified": true,
"cfStatus": "active",
"cfSslStatus": "active",
"cfCustomHostnameId": "hostname_example",
"originUrl": null,
"deployHookToken": "REDACTED_DEPLOY_TOKEN",
"s3Backup": true,
"ownershipName": null,
"ownershipValue": null,
"sslTxtName": null,
"sslTxtValue": null,
"createdAt": "2026-10-15T10:00:00Z",
"updatedAt": "2026-10-15T10:00:00Z",
"_count": {
"shortLinks": 0
}
}
]
Авторизації
Користувальницький API-ключ. Зберігайте на сервері; не включайте у клієнтський JavaScript.
Відповідь
Успішна відповідь.
Allowed value:
"cdn"Show child attributes
Show child attributes
Чи була ця сторінка корисною?