» vultr_block_storage

Get information about a Vultr block storage subscription.

» Example Usage

Get the information for a block storage subscription by label:

data "vultr_block_storage" "my_block_storage" {
  filter {
    name = "label"
    values = ["my-block-storage-label"]
  }
}

» Argument Reference

The following arguments are supported:

  • filter - (Required) Query parameters for finding block storage subscriptions.

The filter block supports the following:

  • name - Attribute name to filter with.
  • values - One or more values filter with.

» Attributes Reference

The following attributes are exported:

  • label - The label of the block storage subscription.
  • cost_per_month - The cost per month of the block storage subscription in USD.
  • status - The status of the block storage subscription.
  • size_gb - The size of the block storage subscription in GB.
  • region_id - The region ID (DCID in the Vultr API) of the block storage subscription.
  • attached_to_vps - The ID of the VPS the block storage subscription is attached to.
  • date_created - The date the block storage subscription was added to your Vultr account.