1. Packages
  2. Scaleway
  3. API Docs
  4. instance
  5. getVolume
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.instance.getVolume

Explore with Pulumi AI

Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

Gets information about an instance volume.

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>
Copy
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]
Copy
func LookupVolume(ctx *Context, args *LookupVolumeArgs, opts ...InvokeOption) (*LookupVolumeResult, error)
func LookupVolumeOutput(ctx *Context, args *LookupVolumeOutputArgs, opts ...InvokeOption) LookupVolumeResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetVolumeResult> getVolume(GetVolumeArgs args, InvokeOptions options)
public static Output<GetVolumeResult> getVolume(GetVolumeArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: scaleway:instance/getVolume:getVolume
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name string
The volume name. Only one of name and volume_id should be specified.
ProjectId string
The ID of the project the volume is associated with.
VolumeId string
The volume id. Only one of name and volume_id should be specified.
Zone string
zone) The zone in which the volume exists.
Name string
The volume name. Only one of name and volume_id should be specified.
ProjectId string
The ID of the project the volume is associated with.
VolumeId string
The volume id. Only one of name and volume_id should be specified.
Zone string
zone) The zone in which the volume exists.
name String
The volume name. Only one of name and volume_id should be specified.
projectId String
The ID of the project the volume is associated with.
volumeId String
The volume id. Only one of name and volume_id should be specified.
zone String
zone) The zone in which the volume exists.
name string
The volume name. Only one of name and volume_id should be specified.
projectId string
The ID of the project the volume is associated with.
volumeId string
The volume id. Only one of name and volume_id should be specified.
zone string
zone) The zone in which the volume exists.
name str
The volume name. Only one of name and volume_id should be specified.
project_id str
The ID of the project the volume is associated with.
volume_id str
The volume id. Only one of name and volume_id should be specified.
zone str
zone) The zone in which the volume exists.
name String
The volume name. Only one of name and volume_id should be specified.
projectId String
The ID of the project the volume is associated with.
volumeId String
The volume id. Only one of name and volume_id should be specified.
zone String
zone) The zone in which the volume exists.

getVolume Result

The following output properties are available:

FromSnapshotId string
Id string
The provider-assigned unique ID for this managed resource.
MigrateToSbs bool
OrganizationId string
The ID of the organization the volume is associated with.
ServerId string
SizeInGb int
Tags List<string>
Type string
Name string
ProjectId string
VolumeId string
Zone string
FromSnapshotId string
Id string
The provider-assigned unique ID for this managed resource.
MigrateToSbs bool
OrganizationId string
The ID of the organization the volume is associated with.
ServerId string
SizeInGb int
Tags []string
Type string
Name string
ProjectId string
VolumeId string
Zone string
fromSnapshotId String
id String
The provider-assigned unique ID for this managed resource.
migrateToSbs Boolean
organizationId String
The ID of the organization the volume is associated with.
serverId String
sizeInGb Integer
tags List<String>
type String
name String
projectId String
volumeId String
zone String
fromSnapshotId string
id string
The provider-assigned unique ID for this managed resource.
migrateToSbs boolean
organizationId string
The ID of the organization the volume is associated with.
serverId string
sizeInGb number
tags string[]
type string
name string
projectId string
volumeId string
zone string
from_snapshot_id str
id str
The provider-assigned unique ID for this managed resource.
migrate_to_sbs bool
organization_id str
The ID of the organization the volume is associated with.
server_id str
size_in_gb int
tags Sequence[str]
type str
name str
project_id str
volume_id str
zone str
fromSnapshotId String
id String
The provider-assigned unique ID for this managed resource.
migrateToSbs Boolean
organizationId String
The ID of the organization the volume is associated with.
serverId String
sizeInGb Number
tags List<String>
type 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 scaleway Terraform Provider.
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse