Set or clear a custom domain's redirect
Changed on{"redirect": {"to": "www.example.com", "status": 308}} makes the domain redirect to another active domain of the frontend that serves it. {"redirect": null} makes it serve the frontend again. A domain other domains redirect to cannot become a redirect itself. status defaults to 308. Proxies apply the change within seconds.
Request
- Base URLhttps://api.volcano.dev
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
Project ID
Frontend ID
The custom domain's hostname, such as www.example.com
Request body
The redirect to set, or null to make the domain serve the frontend.
Example request
{
"redirect": {
"to": "www.example.com"
}
}Response
The updated custom domain
verified: the domain is served by a validated certificate. pending: it is not served yet, is being re-validated after its certificate material was withdrawn, or Volcano is retrying after a failure. failed: a failure left the domain unserved, alongside domain_status: failed; managed domains report the cause in failure_reason.
Certificate the domain serves, present only while it is active. uploaded: the BYOC certificate, including after the domain switched to managed TLS and until Volcano issues the managed one; failure_reason then reports an issuance failure. managed: a certificate Volcano issued.
Failure category, present when managed TLS setup has failed, or when issuance is failing for a domain that switched to managed TLS and still serves its uploaded certificate. Current values are provider, certificate, ownership, and internal; ownership means another account has already claimed the hostname through ownership verification. Treat unrecognized values as internal.
DNS records to publish now. For a managed domain whose hostname the account already owns, the create response names the _acme-challenge CNAME that authorizes certificate issuance and renewal. Otherwise it names the _volcano TXT record that proves ownership of the hostname's registrable domain, and reads return the CNAME once Volcano sees that record. Usually empty for BYOC.
Deprecated and no longer returned. Use routing_target_hostname as the DNS routing target.
DNS routing target hostname for this frontend. The DNS record type depends on whether the custom domain is a zone apex.
Where the domain redirects every request, or null when it serves the frontend.
Changes
- info
endpoint added
- info