Exoscale v0.59.2 published on Monday, Jul 22, 2024 by Pulumiverse
exoscale.getBlockStorageVolume
Explore with Pulumi AI
Fetch Exoscale Block Storage Volume.
Block Storage offers persistent externally attached volumes for your workloads.
Corresponding resource: exoscale_block_storage_volume.
Using getBlockStorageVolume
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 getBlockStorageVolume(args: GetBlockStorageVolumeArgs, opts?: InvokeOptions): Promise<GetBlockStorageVolumeResult>
function getBlockStorageVolumeOutput(args: GetBlockStorageVolumeOutputArgs, opts?: InvokeOptions): Output<GetBlockStorageVolumeResult>
def get_block_storage_volume(id: Optional[str] = None,
timeouts: Optional[GetBlockStorageVolumeTimeouts] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBlockStorageVolumeResult
def get_block_storage_volume_output(id: Optional[pulumi.Input[str]] = None,
timeouts: Optional[pulumi.Input[GetBlockStorageVolumeTimeoutsArgs]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBlockStorageVolumeResult]
func LookupBlockStorageVolume(ctx *Context, args *LookupBlockStorageVolumeArgs, opts ...InvokeOption) (*LookupBlockStorageVolumeResult, error)
func LookupBlockStorageVolumeOutput(ctx *Context, args *LookupBlockStorageVolumeOutputArgs, opts ...InvokeOption) LookupBlockStorageVolumeResultOutput
> Note: This function is named LookupBlockStorageVolume
in the Go SDK.
public static class GetBlockStorageVolume
{
public static Task<GetBlockStorageVolumeResult> InvokeAsync(GetBlockStorageVolumeArgs args, InvokeOptions? opts = null)
public static Output<GetBlockStorageVolumeResult> Invoke(GetBlockStorageVolumeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBlockStorageVolumeResult> getBlockStorageVolume(GetBlockStorageVolumeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: exoscale:index/getBlockStorageVolume:getBlockStorageVolume
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Volume ID to match.
- Zone string
- The Exoscale Zone name.
- Timeouts
Pulumiverse.
Exoscale. Inputs. Get Block Storage Volume Timeouts
- Id string
- Volume ID to match.
- Zone string
- The Exoscale Zone name.
- Timeouts
Get
Block Storage Volume Timeouts
- id String
- Volume ID to match.
- zone String
- The Exoscale Zone name.
- timeouts
Get
Block Storage Volume Timeouts
- id string
- Volume ID to match.
- zone string
- The Exoscale Zone name.
- timeouts
Get
Block Storage Volume Timeouts
- id str
- Volume ID to match.
- zone str
- The Exoscale Zone name.
- timeouts
Get
Block Storage Volume Timeouts
- id String
- Volume ID to match.
- zone String
- The Exoscale Zone name.
- timeouts Property Map
getBlockStorageVolume Result
The following output properties are available:
- Blocksize int
- Volume block size.
- Created
At string - Volume creation date.
- Id string
- Volume ID to match.
- Instance
Pulumiverse.
Exoscale. Outputs. Get Block Storage Volume Instance - Volume attached instance.
- Labels Dictionary<string, string>
- Resource labels.
- Name string
- Volume name.
- Size int
- Volume size in GB.
- Snapshots
List<Pulumiverse.
Exoscale. Outputs. Get Block Storage Volume Snapshot> - Volume snapshots.
- State string
- Volume state.
- Zone string
- The Exoscale Zone name.
- Timeouts
Pulumiverse.
Exoscale. Outputs. Get Block Storage Volume Timeouts
- Blocksize int
- Volume block size.
- Created
At string - Volume creation date.
- Id string
- Volume ID to match.
- Instance
Get
Block Storage Volume Instance - Volume attached instance.
- Labels map[string]string
- Resource labels.
- Name string
- Volume name.
- Size int
- Volume size in GB.
- Snapshots
[]Get
Block Storage Volume Snapshot Type - Volume snapshots.
- State string
- Volume state.
- Zone string
- The Exoscale Zone name.
- Timeouts
Get
Block Storage Volume Timeouts
- blocksize Integer
- Volume block size.
- created
At String - Volume creation date.
- id String
- Volume ID to match.
- instance
Get
Block Storage Volume Instance - Volume attached instance.
- labels Map<String,String>
- Resource labels.
- name String
- Volume name.
- size Integer
- Volume size in GB.
- snapshots
List<Get
Block Storage Volume Snapshot> - Volume snapshots.
- state String
- Volume state.
- zone String
- The Exoscale Zone name.
- timeouts
Get
Block Storage Volume Timeouts
- blocksize number
- Volume block size.
- created
At string - Volume creation date.
- id string
- Volume ID to match.
- instance
Get
Block Storage Volume Instance - Volume attached instance.
- labels {[key: string]: string}
- Resource labels.
- name string
- Volume name.
- size number
- Volume size in GB.
- snapshots
Get
Block Storage Volume Snapshot[] - Volume snapshots.
- state string
- Volume state.
- zone string
- The Exoscale Zone name.
- timeouts
Get
Block Storage Volume Timeouts
- blocksize int
- Volume block size.
- created_
at str - Volume creation date.
- id str
- Volume ID to match.
- instance
Get
Block Storage Volume Instance - Volume attached instance.
- labels Mapping[str, str]
- Resource labels.
- name str
- Volume name.
- size int
- Volume size in GB.
- snapshots
Sequence[Get
Block Storage Volume Snapshot] - Volume snapshots.
- state str
- Volume state.
- zone str
- The Exoscale Zone name.
- timeouts
Get
Block Storage Volume Timeouts
- blocksize Number
- Volume block size.
- created
At String - Volume creation date.
- id String
- Volume ID to match.
- instance Property Map
- Volume attached instance.
- labels Map<String>
- Resource labels.
- name String
- Volume name.
- size Number
- Volume size in GB.
- snapshots List<Property Map>
- Volume snapshots.
- state String
- Volume state.
- zone String
- The Exoscale Zone name.
- timeouts Property Map
Supporting Types
GetBlockStorageVolumeInstance
- Id string
- Instance ID.
- Id string
- Instance ID.
- id String
- Instance ID.
- id string
- Instance ID.
- id str
- Instance ID.
- id String
- Instance ID.
GetBlockStorageVolumeSnapshot
- Id string
- Snapshot ID.
- Id string
- Snapshot ID.
- id String
- Snapshot ID.
- id string
- Snapshot ID.
- id str
- Snapshot ID.
- id String
- Snapshot ID.
GetBlockStorageVolumeTimeouts
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
Package Details
- Repository
- exoscale pulumiverse/pulumi-exoscale
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
exoscale
Terraform Provider.