---
title: pydo.cdn
description: Content hosted in DigitalOcean&rsquo;s object storage solution, Spaces, can optionally be served by our globally distributed Content Delivery Network …
product: Reference
url: https://docs.digitalocean.com/reference/pydo/reference/cdn/
last_updated: "2026-10-01"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# pydo.cdn

Generated on 1 Oct 2026 from `pydo` version [`v0.43.0`](https://github.com/digitalocean/pydo/releases/tag/v0.43.0v0.43.0)

Content hosted in DigitalOcean’s object storage solution, [Spaces](https://docs.digitalocean.com/products/spaces/index.html.md), can optionally be served by our globally distributed Content Delivery Network (CDN).

By sending requests to [`/v2/cdn/endpoints`](https://docs.digitalocean.com/reference/api/reference/cdn-endpoints/index.html.md), you can list, create, or delete CDN Endpoints as well as purge cached content. To use a custom subdomain to access the CDN Endpoint, provide the ID of a DigitalOcean managed TLS certificate and the fully qualified domain name for the custom subdomain.

CDN endpoints have a rate limit of five requests per 10 seconds.

[pydo.cdn.create_endpoint()](https://docs.digitalocean.com/reference/pydo/reference/cdn/create_endpoint/index.html.md): Create a New CDN Endpoint

[pydo.cdn.delete_endpoint()](https://docs.digitalocean.com/reference/pydo/reference/cdn/delete_endpoint/index.html.md): Delete a CDN Endpoint

[pydo.cdn.get_endpoint()](https://docs.digitalocean.com/reference/pydo/reference/cdn/get_endpoint/index.html.md): Retrieve an Existing CDN Endpoint

[pydo.cdn.list_endpoints()](https://docs.digitalocean.com/reference/pydo/reference/cdn/list_endpoints/index.html.md): List All CDN Endpoints

[pydo.cdn.purge_cache()](https://docs.digitalocean.com/reference/pydo/reference/cdn/purge_cache/index.html.md): Purge the Cache for an Existing CDN Endpoint

[pydo.cdn.update_endpoints()](https://docs.digitalocean.com/reference/pydo/reference/cdn/update_endpoints/index.html.md): Update a CDN Endpoint