How to Provision Vultr CDN Pull Zones

Updated on September 25, 2024

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, configure custom domains, and optimize content delivery using the Vultr Customer Portal, API, or CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products, click CDN, and then click Pull Zones.

    Pull Zone option in products sidebar

  2. Click Add CDN Pull Zone.

    Add CDN Button

  3. Provide a Label and an Origin URL.

    Add a Label for Pull Zones

  4. Optional: Enable features such as Cross-origin resource sharing (CORS), Gzip, Block AI Bots, and Block Potentially Malicious Bots.

    Enable CDN features

  5. Optional: Provide a Custom Domain along with its Domain-validated Certificate(SSL/TLS) and Domain-validated Certificate Secret Key certificate files, these files are only required if the origin URL uses an HTTPS scheme.

    Add a custom domain with certificate files

  6. Click Add CDN Pull Zones.

    Button for CDN Pull Zones Creation

  1. Send a POST request to the Create Pull Zones endpoint to create CDN Pull Zones service.

    Note
    The below API request uses http for origin-scheme, to use https as origin-scheme and vanity-domain together you will need to use ssl_cert and ssl_cert_key flags and provide certificate files.
    console
    $ curl "https://api.vultr.com/v2/cdns/pull-zones" \
        -X POST \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json" \
        -d '{
                "label": "example-label",
                "origin_scheme": "http", 
                "origin_domain": "<origin-domain>",
                "vanity_domain": "<custom-vanity-domain>"
            }'
    

    Visit the Create Pull Zone page to view additional attributes you can add to your request.s

  2. Send a GET request to the List Pull Zones endpoint to list all the available CDN Pull Zone services.

    console
    $ curl "https://api.vultr.com/v2/cdns/pull-zones" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  1. Create CDN Pull Zone service.

    console
    $ vultr-cli cdn pull create \
        --label "example-label" \
        --scheme "https" \
        --domain "example.com"
    

    Run vultr-cli cdn pull create --help to view additional options you can apply on your instance.

  2. List all available CDN Pull Zone services.

    console
    $ vultr-cli cdn pull list