Change alias
Changed onChange an alias. The hostname and the CDN resource of an alias cannot be changed; delete the alias and create a new one instead.
Set active to false to stop serving the alias; certificate issuance stops, though an attempt already being processed completes. Set it back to true to resume. Resuming an alias without a valid Let's Encrypt certificate starts a new issuance attempt, which is rate-limited, so it cannot be combined with automated in one request. A renewal stopped by the pause is started again by the scheduled renewal after the alias is resumed.
For an alias with your own certificate, pass a new certificate ID in ssl_id to replace it. The new certificate must cover the alias hostname.
Pass automated to switch how the certificate is managed. Switching to your own certificate takes effect at once and the Let's Encrypt certificate issued for the alias is removed. Switching to a Let's Encrypt certificate starts an issuance attempt while your certificate keeps being served, and the alias starts serving the new certificate once it is issued; if the attempt fails, ssl_status becomes failed and your certificate keeps being served. The certificate mode cannot be changed while the alias is paused — resume it first.
Pass challenge_type to change how the Let's Encrypt certificate's domain is validated. It cannot be changed while the alias is paused, or together with active. While no valid certificate is served, the change cancels the running issuance attempt and starts a new one; this is rate-limited like resuming, and is refused while that attempt is being processed. Otherwise the new method is used from the next attempt.
Request
- Base URLhttps://api.gcore.com
- URLhttps://api.gcore.com/cdn/aliases/{alias_id}
- AuthHTTP apikey
Path parameters
Alias ID.
Request body
Example request
{
"automated": true,
"challenge_type": "http_01",
"ssl_id": 891
}Response
Successful.
Example response
{
"id": 123,
"cname": "shop.example.com",
"resource_id": 4567,
"automated": true,
"challenge_type": "http_01",
"ssl_id": 890,
"active": true,
"enabled": true,
"status": "active",
"ssl_status": "issued",
"ssl_validity_not_after": "2027-01-01T10:00:00Z",
"created": "2026-09-01T10:00:00Z",
"updated": "2026-09-01T10:05:00Z",
"ssl_provisioning": {
"acme_delegation": {
"cname_name": "_acme-challenge.shop.example.com",
"cname_target": "0a1b2c3d4e5f6789.le-challenges.example.net"
},
"http_validation": {
"cname_name": "_acme-challenge.shop.example.com",
"cname_target": "0a1b2c3d4e5f6789.le-challenges.example.net"
}
}
}Changes
- breaking
the
//response's property type changed fromobjectto no type for status - warning
removed the optional property
///from the response with the status - warning
removed the optional property
///from the response with the status - warning
added the new
http_onlyenum value to the////response property for the response status - info
added the new optional request property
- info
added the optional property
////to the response with the status - info
added the optional property
//to the response with the status - info
added to the
//response propertyallOflist for the response status - info
removed the
ssl_errorenum value from the////response property for the response status - info
removed the
ssl_issuingenum value from the////response property for the response status
- breaking
- breaking
the response's body type changed from
objectto no type for status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the new optional request property
- info
added
subschema #2to the response bodyallOflist for the response status - info
added the non-success response with the status
- breaking