1.9 KiB
1.9 KiB
| page_title | subcategory | description |
|---|---|---|
| stackit_volume Data Source - stackit | Volume resource schema. Must have a region specified in the provider configuration. |
stackit_volume (Data Source)
Volume resource schema. Must have a region specified in the provider configuration.
Example Usage
data "stackit_volume" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
volume_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Schema
Required
project_id(String) STACKIT project ID to which the volume is associated.volume_id(String) The volume ID.
Read-Only
availability_zone(String) The availability zone of the volume.description(String) The description of the volume.id(String) Terraform's internal resource ID. It is structured as "project_id,volume_id".labels(Map of String) Labels are key-value string pairs which can be attached to a resource containername(String) The name of the volume.performance_class(String) The performance class of the volume. Possible values are documented in Service plans BlockStorageserver_id(String) The server ID of the server to which the volume is attached to.size(Number) The size of the volume in GB. It can only be updated to a larger value than the current sizesource(Attributes) The source of the volume. It can be either a volume, an image, a snapshot or a backup (see below for nested schema)
Nested Schema for source
Read-Only:
id(String) The ID of the source, e.g. image IDtype(String) The type of the source. Possible values are:volume,image,snapshot,backup.