How to Provision Vultr CDN Pull Zones
-
by Blog Admin
- 10
How to Provision Vultr CDN Pull Zones
The process of setting up and configuring a new Vultr server or service to make it ready for use.
Vultr CDN Pull Zones streamline content delivery by automatically fetching content from your origin server and distributing it globally across Vultr’s edge network, which spans 32 locations worldwide. This setup ensures that your content is delivered quickly and reliably to users regardless of their location. Additionally, Vultr CDN Pull Zones support custom domains, allowing you to serve content under your own branded domain while leveraging the performance and scalability of the CDN.
Follow this guide to provision Vultr CDN Pull Zones on your Vultr account, set up custom domains, and optimize content delivery using the Vultr Customer Portal, API, or CLI.
Vultr Customer Portal
- Navigate to Products, click CDN, and then click Pull Zones.
- Click Add CDN Pull Zone.
- Provide a Label and an Origin URL.
- Optional: Enable features such as Cross-Origin Resource Sharing (CORS), Gzip, Block AI Bots, and Block Potentially Malicious Bots.
- Optional: Provide a Custom Domain along with its Domain-validated Certificate(SSL/TLS) and Secret Key files. These files are only required if the Origin URL uses the HTTPS scheme.
- Click Add CDN Pull Zone.
Vultr API
- Send a
POSTrequest to the Create CDN Pull Zones endpoint to create a CDN Pull Zone subscription.NoteWhen configuring a custom domain, for the
HTTPSorigin scheme, you must provide a Domain-validated SSL/TLS certificate and the corresponding Private Key. However, forHTTPorigin scheme, these certificates are not required.console$ curl "https://api.vultr.com/v2/cdns/pull-zones" \ -X POST \ -H "Authorization: Bearer ${VULTR_API_KEY}" \ -H "Content-Type: application/json" \ --data '{ "label": "{label}", "origin_scheme": "{http_or_https}", "origin_domain": "{origin-domain}", "vanity_domain": "{custom-vanity-domain}", "ssl_cert": {BASE64_ENCODED_SSL_CERT_CONTENT}", "ssl_cert_key": "{BASE64_ENCODED_SSL_KEY_CONTENT}", "cors": false, "gzip": false, "block_ai": false, "block_bad_bots": false }'
- Send a
GETrequest to the List CDN Pull Zones endpoint to list all the available Vultr CDN Pull Zone subscriptions.console$ curl "https://api.vultr.com/v2/cdns/pull-zones" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
Vultr CLI
- Create a CDN Pull Zone subscription.
console
$ vultr-cli cdn pull create \ --label "<label>" \ --scheme "<http_or_https>" \ --domain "<origin-domain>"
Run
vultr-cli cdn pull create --helpto view additional options for enabling features like Cross-Origin Resource Sharing (CORS), Gzip, Block AI Bots, and Block Potentially Malicious Bots. - List all available CDN Pull Zone subscriptions.
console
$ vultr-cli cdn pull list
How to Provision Vultr CDN Pull Zones The process of setting up and configuring a new Vultr server or service to make it ready for use. Vultr CDN Pull Zones streamline content delivery by automatically fetching content from your origin server and distributing it globally across Vultr’s edge network, which…
How to Provision Vultr CDN Pull Zones The process of setting up and configuring a new Vultr server or service to make it ready for use. Vultr CDN Pull Zones streamline content delivery by automatically fetching content from your origin server and distributing it globally across Vultr’s edge network, which…