API v2 Changelog

< Back to Changelog

Custom Subdomain Support for Spaces CDN Endpoints

Date: April 9, 2019

Tagged In: API v2

Author Andrew Starr-Bochicchio

Spaces, DigitalOcean’s object storage solution, includes a built-in CDN. Today we’ve added the ability to use custom subdomains with your CDN endpoints. When configuring your CDN via the API, you can now set the custom_domain attribute to use a subdomain with the endpoint. When a custom subdomain is in use, the certificate_id attribute is also required. Its value must be the the ID of a DigitalOcean managed SSL certificate. For example, the body of your request to enable a CDN might look like:

  "origin": "static-images.nyc3.digitaloceanspaces.com",
  "certificate_id": "892071a0-bb95-49bc-8021-3afd67a210bf",
  "custom_domain": "static.example.com"

See here for more information about using the API to configure Spaces CDN endpoints.