curl --request POST \
--url https://api.gcore.com/cdn/aliases/{alias_id}/retry \
--header 'Authorization: <api-key>'import requests
url = "https://api.gcore.com/cdn/aliases/{alias_id}/retry"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://api.gcore.com/cdn/aliases/{alias_id}/retry', 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.gcore.com/cdn/aliases/{alias_id}/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: <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.gcore.com/cdn/aliases/{alias_id}/retry"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gcore.com/cdn/aliases/{alias_id}/retry")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/cdn/aliases/{alias_id}/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 123,
"cname": "shop.customer.com",
"resource_id": 4567,
"automated": true,
"ssl_id": 890,
"active": true,
"enabled": true,
"status": "active",
"created": "2026-09-01T10:00:00Z",
"updated": "2026-09-01T10:05:00Z",
"ssl_provisioning": {
"acme_delegation": {
"cname_name": "_acme-challenge.shop.customer.com",
"cname_target": "0a1b2c3d4e5f6789.le-challenges.gcorelabs.com"
}
}
}{
"errors": {
"field_name": [
"Error description."
]
}
}Retry alias certificate issuance
Start a new Let’s Encrypt certificate issuance attempt for an alias that has none running. Use it after
an attempt has failed and status is ssl_error.
The number of attempts you can start per hour is limited.
curl --request POST \
--url https://api.gcore.com/cdn/aliases/{alias_id}/retry \
--header 'Authorization: <api-key>'import requests
url = "https://api.gcore.com/cdn/aliases/{alias_id}/retry"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://api.gcore.com/cdn/aliases/{alias_id}/retry', 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.gcore.com/cdn/aliases/{alias_id}/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: <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.gcore.com/cdn/aliases/{alias_id}/retry"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gcore.com/cdn/aliases/{alias_id}/retry")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/cdn/aliases/{alias_id}/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 123,
"cname": "shop.customer.com",
"resource_id": 4567,
"automated": true,
"ssl_id": 890,
"active": true,
"enabled": true,
"status": "active",
"created": "2026-09-01T10:00:00Z",
"updated": "2026-09-01T10:05:00Z",
"ssl_provisioning": {
"acme_delegation": {
"cname_name": "_acme-challenge.shop.customer.com",
"cname_target": "0a1b2c3d4e5f6789.le-challenges.gcorelabs.com"
}
}
}{
"errors": {
"field_name": [
"Error description."
]
}
}Authorizations
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234_abcdef
Path Parameters
Alias ID.
Response
Successful.
Alias ID.
123
Alias hostname. Cannot be changed after creation.
"shop.customer.com"
ID of the CDN resource whose settings the alias is served with. Cannot be changed after creation.
4567
How the alias certificate is managed. Can be changed while the alias is served.
Possible values:
- true – A Let's Encrypt certificate is issued and renewed automatically.
- false – The certificate referenced by
ssl_idwas added by you.
true
ID of the SSL certificate served for the alias.
890
Whether you have enabled the alias. Enabling it does not by itself make it live: the alias is served only
while status is active, ssl_issuing or ssl_error.
Possible values:
- true – The alias is enabled and is served once its certificate is ready.
- false – The alias is paused and is not served.
true
Whether the alias is enabled by the system. Follows the state of the CDN resource.
Possible values:
- true – The alias can be served.
- false – The alias is not served because its CDN resource is not active.
true
Alias status.
Possible values:
- pending – The certificate has not been issued yet; the alias is not served.
- active – The alias is served with its certificate.
ssl_issuing– A new certificate is being issued; the current one keeps being served.ssl_error– Certificate issuance failed; a previously issued certificate keeps being served.- inactive – The alias or its CDN resource is disabled; the alias is not served.
pending, active, ssl_issuing, ssl_error, inactive "active"
Date and time when the alias was created (ISO 8601/RFC 3339 format, UTC.)
"2026-09-01T10:00:00Z"
Date and time when the alias was last changed (ISO 8601/RFC 3339 format, UTC.)
"2026-09-01T10:05:00Z"
DNS record delegating Let's Encrypt domain validation for the alias hostname. It is null for an
alias serving a certificate you added yourself, and until a delegation record has been prepared
for the hostname.
Show child attributes
Show child attributes
Was this page helpful?