Cobra Forum

Plesk Panel => Web Application => Topic started by: Suhitha on Sep 09, 2025, 01:46 AM

Title: How to Provision Vultr Block Storage Volume
Post by: Suhitha on Sep 09, 2025, 01:46 AM
Question: How to Provision Vultr Block Storage Volume


Vultr Block Storage volume is a mountable HDD or NVMe disk volume you can attach to Vultr Cloud Compute instances. These high-speed volumes offer raw block-level storage to expand your application storage needs for databases, images, audio, and video-based applications. To attach Vultr Block Storage volume to Vultr Cloud Compute instance, both resources must be in the same Vultr Location. Vultr Block Storage volumes support up to 10 TB of data encrypted with Advanced Encryption Standard (AES-256).

Follow this guide to provision Vultr Block Storage volume using the Vultr Customer Portal, API, CLI, or Terraform.

Vultr Customer Portal

1.Navigate to Products and select Cloud Storage.

2.Click Block Storage and select Add Block Storage.

3.Select a HDD or NVMe storage type.

4.Choose a storage location depending on where you've provisioned the Vultr Cloud Compute instances.

5.Move the slider to customize the storage size.

6.Enter a label and click Add Block Storage.


Vultr API

1.Send a GET request to the List Regions endpoint and note the ID of your preferred region. For instance, ewr for the New Jersey region.
[b]
console
[/b]

$ curl "https://api.vultr.com/v2/regions" \
    -X GET \
    -H "Authorization: Bearer ${VULTR_API_KEY}"

2.Send a POST request to the Create Block Storage endpoint to create a Vultr Block Storage volume.

[color=blue]console[/color]


$ curl "https://api.vultr.com/v2/blocks" \
    -X POST \
    -H "Authorization: Bearer ${VULTR_API_KEY}" \
    -H "Content-Type: application/json" \
    --data '{
        "region" : "ewr",
        "size_gb" : 80,
        "label" : "Remote-Block-Storage",
        "block_type": "high_perf"
    }'
Visit the Create Block Storage endpoint to view additional attributes to add to your request.

3.Send a GET request to the List Block Storages endpoint to list all Vultr Block Storage volumes.

[color=blue]console[/color]


$ curl "https://api.vultr.com/v2/blocks" \
    -X GET \
    -H "Authorization: Bearer ${VULTR_API_KEY}" \
    -H "Content-Type: application/json"


Vultr CLI

1.List the available Vultr Block Storage volume regions and choose your preferred region. For instance ewr for the New Jersey region.

[color=blue]console[/color]


$ vultr-cli regions list
2.Create a new Vultr Block Storage volume.

[color=blue]console[/color]


$ vultr-cli block-storage create \
--block-type high_perf \
--region ewr \
--size 80 \
--label Remote-Block-Storage

3.List all Vultr Block Storage volumes.

[color=blue]console[/color]


$ vultr-cli block-storage list
Run vultr-cli block-storage create --help to view all options.


Terraform

1.Ensure the Vultr Terraform provider is configured in your Terraform project.

2.Define the Block Storage volume resource.

[color=blue]terraform[/color]


terraform {
    required_providers {
        vultr = {
            source  = "vultr/vultr"
            version = "~> 2.23"
        }
    }
}

provider "vultr" {}

resource "vultr_block" "remote_block_storage" {
    region     = "ewr"
    size_gb    = 80
    label      = "Remote-Block-Storage"
    block_type = "high_perf"
}

3.Apply the configuration and observe the following output:

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.