Scaleway v1.25.0 published on Saturday, Mar 22, 2025 by pulumiverse
scaleway.block.getVolume
Explore with Pulumi AI
The scaleway.block.Volume 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 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(name: Optional[str] = None,
               project_id: Optional[str] = None,
               volume_id: Optional[str] = None,
               zone: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetVolumeResult
def get_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[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: scaleway:block/getVolume:getVolume
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The name of the volume. Only one of nameandvolume_idshould be specified.
- ProjectId string
- The unique identifier of the Project to which the volume is associated.
- VolumeId string
- The unique identifier of the volume. Only one of nameandvolume_idshould be specified.
- Zone string
- ). The zone in which the volume exists.
- Name string
- The name of the volume. Only one of nameandvolume_idshould be specified.
- ProjectId string
- The unique identifier of the Project to which the volume is associated.
- VolumeId string
- The unique identifier of the volume. Only one of nameandvolume_idshould be specified.
- Zone string
- ). The zone in which the volume exists.
- name String
- The name of the volume. Only one of nameandvolume_idshould be specified.
- projectId String
- The unique identifier of the Project to which the volume is associated.
- volumeId String
- The unique identifier of the volume. Only one of nameandvolume_idshould be specified.
- zone String
- ). The zone in which the volume exists.
- name string
- The name of the volume. Only one of nameandvolume_idshould be specified.
- projectId string
- The unique identifier of the Project to which the volume is associated.
- volumeId string
- The unique identifier of the volume. Only one of nameandvolume_idshould be specified.
- zone string
- ). The zone in which the volume exists.
- name str
- The name of the volume. Only one of nameandvolume_idshould 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 nameandvolume_idshould be specified.
- zone str
- ). The zone in which the volume exists.
- name String
- The name of the volume. Only one of nameandvolume_idshould be specified.
- projectId String
- The unique identifier of the Project to which the volume is associated.
- volumeId String
- The unique identifier of the volume. Only one of nameandvolume_idshould be specified.
- zone String
- ). The zone in which the volume exists.
getVolume Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceVolume stringId 
- Iops int
- SizeIn intGb 
- SnapshotId string
- List<string>
- Name string
- ProjectId string
- VolumeId string
- Zone string
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceVolume stringId 
- Iops int
- SizeIn intGb 
- SnapshotId string
- []string
- Name string
- ProjectId string
- VolumeId string
- Zone string
- id String
- The provider-assigned unique ID for this managed resource.
- instanceVolume StringId 
- iops Integer
- sizeIn IntegerGb 
- snapshotId String
- List<String>
- name String
- projectId String
- volumeId String
- zone String
- id string
- The provider-assigned unique ID for this managed resource.
- instanceVolume stringId 
- iops number
- sizeIn numberGb 
- snapshotId string
- string[]
- name string
- projectId string
- volumeId string
- zone string
- id str
- The provider-assigned unique ID for this managed resource.
- instance_volume_ strid 
- iops int
- size_in_ intgb 
- snapshot_id str
- Sequence[str]
- name str
- project_id str
- volume_id str
- zone str
- id String
- The provider-assigned unique ID for this managed resource.
- instanceVolume StringId 
- iops Number
- sizeIn NumberGb 
- snapshotId String
- List<String>
- name String
- projectId String
- volumeId String
- zone String
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the scalewayTerraform Provider.
