Uploading Files to Vultr CDN Push Zones enables you to directly transfer and store your content within the CDN infrastructure. Once your files are uploaded, they are distributed and cached across multiple edge servers within the Push Zones. This ensures that your content is delivered quickly and reliably to users from various locations worldwide. By utilizing this feature, you enhance the efficiency and performance of your content delivery, providing a better user experience through reduced load times and consistent availability.
Follow this guide to upload files to Vultr CDN Push Zones on your Vultr account using the Vultr Customer Portal, API, or CLI.
Navigate to Products, click CDN, and then click Push Zones.
Click your target CDN Push Zone service.
Click Files.
Click Upload Files.
Choose a file.
Provide a file name.
Click Upload File.
To delete a file, click on the Delete File icon.
Click Delete File on the confirmation prompt.
Send a GET
request to the List Push Zones endpoint and note the target Push Zone service's ID.
$ curl "https://api.vultr.com/v2/cdns/push-zones" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Create Push Zone Upload to create an upload endpoint.
$ curl "https://api.vultr.com/v2/cdns/push-zones/e0b2d7c5-28de-41bd-a370-cffd09d9dd16/files" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"name": "example-file.txt",
"size": 1024
}'
Send a GET
request to the Push Zone files to list all available files on the target Push Zone service.
$ curl "https://api.vultr.com/v2/cdns/push-zones/<pushzone-id>/files" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a DELETE
request to the Push Zone file to delete a Push Zone file on the Push Zone service.
$ curl "https://api.vultr.com/v2/cdns/push-zones/<pushzone-id>/files/<file-name>" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all available CDN Push Zone services and note the target Push Zone service's ID.
$ vultr-cli cdn push list
Create CDN Push Zone upload endpoint.
$ vultr-cli cdn push create-endpoint <pushzone-id> --name text.txt --size 1024
List all available files in the target Push Zone service.
$ vultr-cli cdn push list-files <pushzone-id>
Delete a file in the target Push Zone service.
$ vultr-cli cdn push delete-file <pushzone-id> <filename>