Create Vultr Block Storage snapshots via API for cloning and backup workflows efficiently.
A Block Storage Snapshot captures the state of a block storage volume at a point in time. Snapshots are independent objects retained until explicitly deleted. Use a snapshot as the source image to clone a Bootable Block Storage volume for VX1™ instance provisioning.
Follow this guide to create a Block Storage Snapshot using the Vultr API.
Send a GET request to the List Block Storages endpoint and note the id of the Bootable Block Storage volume to snapshot.
$ curl "https://api.vultr.com/v2/blocks" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST request to the Create Block Storage Snapshot endpoint to create a snapshot. Replace BLOCK-ID with the volume ID from the previous step, and SNAPSHOT-DESCRIPTION with a description for the snapshot.
$ curl "https://api.vultr.com/v2/blocks/snapshots" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"block_id": "BLOCK-ID",
"description": "SNAPSHOT-DESCRIPTION"
}'
Note the id from the response. The snapshot is ready to use when the state field shows COMPLETE.