stackit v0.0.4 published on Friday, Feb 20, 2026 by stackitcloud
stackit v0.0.4 published on Friday, Feb 20, 2026 by stackitcloud
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"
}
Using getVolume
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVolume(args: GetVolumeArgs, opts?: InvokeOptions): Promise<GetVolumeResult>
function getVolumeOutput(args: GetVolumeOutputArgs, opts?: InvokeOptions): Output<GetVolumeResult>def get_volume(project_id: Optional[str] = None,
region: Optional[str] = None,
volume_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVolumeResult
def get_volume_output(project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
volume_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVolumeResult]func LookupVolume(ctx *Context, args *LookupVolumeArgs, opts ...InvokeOption) (*LookupVolumeResult, error)
func LookupVolumeOutput(ctx *Context, args *LookupVolumeOutputArgs, opts ...InvokeOption) LookupVolumeResultOutput> Note: This function is named LookupVolume in the Go SDK.
public static class GetVolume
{
public static Task<GetVolumeResult> InvokeAsync(GetVolumeArgs args, InvokeOptions? opts = null)
public static Output<GetVolumeResult> Invoke(GetVolumeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVolumeResult> getVolume(GetVolumeArgs args, InvokeOptions options)
public static Output<GetVolumeResult> getVolume(GetVolumeArgs args, InvokeOptions options)
fn::invoke:
function: stackit:index/getVolume:getVolume
arguments:
# arguments dictionaryThe following arguments are supported:
- project_
id str - STACKIT project ID to which the volume is associated.
- volume_
id str - The volume ID.
- region str
- The resource region. If not defined, the provider region is used.
getVolume Result
The following output properties are available:
- Availability
Zone string - The availability zone of the volume.
- Description string
- The description of the volume.
- Encrypted bool
- Indicates if the volume is encrypted.
- Id string
- Labels Dictionary<string, string>
- Labels are key-value string pairs which can be attached to a resource container
- Name string
- The name of the volume.
- Performance
Class string - The performance class of the volume. Possible values are documented in Service plans BlockStorage
- Project
Id string - STACKIT project ID to which the volume is associated.
- Server
Id string - The server ID of the server to which the volume is attached to.
- Size int
- The size of the volume in GB. It can only be updated to a larger value than the current size
- Source
Get
Volume Source - The source of the volume. It can be either a volume, an image, a snapshot or a backup
- Volume
Id string - The volume ID.
- Region string
- The resource region. If not defined, the provider region is used.
- Availability
Zone string - The availability zone of the volume.
- Description string
- The description of the volume.
- Encrypted bool
- Indicates if the volume is encrypted.
- Id string
- Labels map[string]string
- Labels are key-value string pairs which can be attached to a resource container
- Name string
- The name of the volume.
- Performance
Class string - The performance class of the volume. Possible values are documented in Service plans BlockStorage
- Project
Id string - STACKIT project ID to which the volume is associated.
- Server
Id string - The server ID of the server to which the volume is attached to.
- Size int
- The size of the volume in GB. It can only be updated to a larger value than the current size
- Source
Get
Volume Source - The source of the volume. It can be either a volume, an image, a snapshot or a backup
- Volume
Id string - The volume ID.
- Region string
- The resource region. If not defined, the provider region is used.
- availability
Zone String - The availability zone of the volume.
- description String
- The description of the volume.
- encrypted Boolean
- Indicates if the volume is encrypted.
- id String
- labels Map<String,String>
- Labels are key-value string pairs which can be attached to a resource container
- name String
- The name of the volume.
- performance
Class String - The performance class of the volume. Possible values are documented in Service plans BlockStorage
- project
Id String - STACKIT project ID to which the volume is associated.
- server
Id String - The server ID of the server to which the volume is attached to.
- size Integer
- The size of the volume in GB. It can only be updated to a larger value than the current size
- source
Get
Volume Source - The source of the volume. It can be either a volume, an image, a snapshot or a backup
- volume
Id String - The volume ID.
- region String
- The resource region. If not defined, the provider region is used.
- availability
Zone string - The availability zone of the volume.
- description string
- The description of the volume.
- encrypted boolean
- Indicates if the volume is encrypted.
- id string
- labels {[key: string]: string}
- Labels are key-value string pairs which can be attached to a resource container
- name string
- The name of the volume.
- performance
Class string - The performance class of the volume. Possible values are documented in Service plans BlockStorage
- project
Id string - STACKIT project ID to which the volume is associated.
- server
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 size
- source
Get
Volume Source - The source of the volume. It can be either a volume, an image, a snapshot or a backup
- volume
Id string - The volume ID.
- region string
- The resource region. If not defined, the provider region is used.
- availability_
zone str - The availability zone of the volume.
- description str
- The description of the volume.
- encrypted bool
- Indicates if the volume is encrypted.
- id str
- labels Mapping[str, str]
- Labels are key-value string pairs which can be attached to a resource container
- name str
- The name of the volume.
- performance_
class str - The performance class of the volume. Possible values are documented in Service plans BlockStorage
- project_
id str - STACKIT project ID to which the volume is associated.
- server_
id str - The server ID of the server to which the volume is attached to.
- size int
- The size of the volume in GB. It can only be updated to a larger value than the current size
- source
Get
Volume Source - The source of the volume. It can be either a volume, an image, a snapshot or a backup
- volume_
id str - The volume ID.
- region str
- The resource region. If not defined, the provider region is used.
- availability
Zone String - The availability zone of the volume.
- description String
- The description of the volume.
- encrypted Boolean
- Indicates if the volume is encrypted.
- id String
- labels Map<String>
- Labels are key-value string pairs which can be attached to a resource container
- name String
- The name of the volume.
- performance
Class String - The performance class of the volume. Possible values are documented in Service plans BlockStorage
- project
Id String - STACKIT project ID to which the volume is associated.
- server
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 size
- source Property Map
- The source of the volume. It can be either a volume, an image, a snapshot or a backup
- volume
Id String - The volume ID.
- region String
- The resource region. If not defined, the provider region is used.
Supporting Types
GetVolumeSource
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
stackit v0.0.4 published on Friday, Feb 20, 2026 by stackitcloud
