1. Packages
  2. Exoscale
  3. API Docs
  4. getBlockStorageVolume
Exoscale v0.59.0 published on Monday, May 20, 2024 by Pulumiverse

exoscale.getBlockStorageVolume

Explore with Pulumi AI

exoscale logo
Exoscale v0.59.0 published on Monday, May 20, 2024 by Pulumiverse

    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.GetBlockStorageVolumeTimeouts
    Id string
    Volume ID to match.
    Zone string
    The Exoscale Zone name.
    Timeouts GetBlockStorageVolumeTimeouts
    id String
    Volume ID to match.
    zone String
    The Exoscale Zone name.
    timeouts GetBlockStorageVolumeTimeouts
    id string
    Volume ID to match.
    zone string
    The Exoscale Zone name.
    timeouts GetBlockStorageVolumeTimeouts
    id str
    Volume ID to match.
    zone str
    The Exoscale Zone name.
    timeouts GetBlockStorageVolumeTimeouts
    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.
    CreatedAt string
    Volume creation date.
    Id string
    Volume ID to match.
    Instance Pulumiverse.Exoscale.Outputs.GetBlockStorageVolumeInstance
    Volume attached instance.
    Labels Dictionary<string, string>
    Resource labels.
    Name string
    Volume name.
    Size int
    Volume size in GB.
    Snapshots List<Pulumiverse.Exoscale.Outputs.GetBlockStorageVolumeSnapshot>
    Volume snapshots.
    State string
    Volume state.
    Zone string
    The Exoscale Zone name.
    Timeouts Pulumiverse.Exoscale.Outputs.GetBlockStorageVolumeTimeouts
    Blocksize int
    Volume block size.
    CreatedAt string
    Volume creation date.
    Id string
    Volume ID to match.
    Instance GetBlockStorageVolumeInstance
    Volume attached instance.
    Labels map[string]string
    Resource labels.
    Name string
    Volume name.
    Size int
    Volume size in GB.
    Snapshots []GetBlockStorageVolumeSnapshotType
    Volume snapshots.
    State string
    Volume state.
    Zone string
    The Exoscale Zone name.
    Timeouts GetBlockStorageVolumeTimeouts
    blocksize Integer
    Volume block size.
    createdAt String
    Volume creation date.
    id String
    Volume ID to match.
    instance GetBlockStorageVolumeInstance
    Volume attached instance.
    labels Map<String,String>
    Resource labels.
    name String
    Volume name.
    size Integer
    Volume size in GB.
    snapshots List<GetBlockStorageVolumeSnapshot>
    Volume snapshots.
    state String
    Volume state.
    zone String
    The Exoscale Zone name.
    timeouts GetBlockStorageVolumeTimeouts
    blocksize number
    Volume block size.
    createdAt string
    Volume creation date.
    id string
    Volume ID to match.
    instance GetBlockStorageVolumeInstance
    Volume attached instance.
    labels {[key: string]: string}
    Resource labels.
    name string
    Volume name.
    size number
    Volume size in GB.
    snapshots GetBlockStorageVolumeSnapshot[]
    Volume snapshots.
    state string
    Volume state.
    zone string
    The Exoscale Zone name.
    timeouts GetBlockStorageVolumeTimeouts
    blocksize int
    Volume block size.
    created_at str
    Volume creation date.
    id str
    Volume ID to match.
    instance GetBlockStorageVolumeInstance
    Volume attached instance.
    labels Mapping[str, str]
    Resource labels.
    name str
    Volume name.
    size int
    Volume size in GB.
    snapshots Sequence[GetBlockStorageVolumeSnapshot]
    Volume snapshots.
    state str
    Volume state.
    zone str
    The Exoscale Zone name.
    timeouts GetBlockStorageVolumeTimeouts
    blocksize Number
    Volume block size.
    createdAt 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.
    exoscale logo
    Exoscale v0.59.0 published on Monday, May 20, 2024 by Pulumiverse