Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse
scaleway.getBlockVolume
Explore with Pulumi AI
The scaleway.BlockVolume
data source is used to retrieve information about a Block Storage volume.
Refer to the Block Storage product documentation and API documentation for more information.
Using getBlockVolume
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 getBlockVolume(args: GetBlockVolumeArgs, opts?: InvokeOptions): Promise<GetBlockVolumeResult>
function getBlockVolumeOutput(args: GetBlockVolumeOutputArgs, opts?: InvokeOptions): Output<GetBlockVolumeResult>
def get_block_volume(name: Optional[str] = None,
project_id: Optional[str] = None,
volume_id: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBlockVolumeResult
def get_block_volume_output(name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
volume_id: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBlockVolumeResult]
func LookupBlockVolume(ctx *Context, args *LookupBlockVolumeArgs, opts ...InvokeOption) (*LookupBlockVolumeResult, error)
func LookupBlockVolumeOutput(ctx *Context, args *LookupBlockVolumeOutputArgs, opts ...InvokeOption) LookupBlockVolumeResultOutput
> Note: This function is named LookupBlockVolume
in the Go SDK.
public static class GetBlockVolume
{
public static Task<GetBlockVolumeResult> InvokeAsync(GetBlockVolumeArgs args, InvokeOptions? opts = null)
public static Output<GetBlockVolumeResult> Invoke(GetBlockVolumeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBlockVolumeResult> getBlockVolume(GetBlockVolumeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getBlockVolume:getBlockVolume
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the volume. Only one of
name
andvolume_id
should be specified. - Project
Id string - The unique identifier of the Project to which the volume is associated.
- Volume
Id string - The unique identifier of the volume. Only one of
name
andvolume_id
should be specified. - Zone string
- ). The zone in which the volume exists.
- Name string
- The name of the volume. Only one of
name
andvolume_id
should be specified. - Project
Id string - The unique identifier of the Project to which the volume is associated.
- Volume
Id string - The unique identifier of the volume. Only one of
name
andvolume_id
should be specified. - Zone string
- ). The zone in which the volume exists.
- name String
- The name of the volume. Only one of
name
andvolume_id
should be specified. - project
Id String - The unique identifier of the Project to which the volume is associated.
- volume
Id String - The unique identifier of the volume. Only one of
name
andvolume_id
should be specified. - zone String
- ). The zone in which the volume exists.
- name string
- The name of the volume. Only one of
name
andvolume_id
should be specified. - project
Id string - The unique identifier of the Project to which the volume is associated.
- volume
Id string - The unique identifier of the volume. Only one of
name
andvolume_id
should be specified. - zone string
- ). The zone in which the volume exists.
- name str
- The name of the volume. Only one of
name
andvolume_id
should be specified. - project_
id str - The unique identifier of the Project to which the volume is associated.
- volume_
id str - The unique identifier of the volume. Only one of
name
andvolume_id
should be specified. - zone str
- ). The zone in which the volume exists.
- name String
- The name of the volume. Only one of
name
andvolume_id
should be specified. - project
Id String - The unique identifier of the Project to which the volume is associated.
- volume
Id String - The unique identifier of the volume. Only one of
name
andvolume_id
should be specified. - zone String
- ). The zone in which the volume exists.
getBlockVolume Result
The following output properties are available:
- id str
- The provider-assigned unique ID for this managed resource.
- iops int
- size_
in_ intgb - snapshot_
id str - Sequence[str]
- name str
- project_
id str - volume_
id str - zone str
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.