Viewing docs for outscale 1.5.0
published on Wednesday, Apr 1, 2026 by outscale
published on Wednesday, Apr 1, 2026 by outscale
Viewing docs for outscale 1.5.0
published on Wednesday, Apr 1, 2026 by outscale
published on Wednesday, Apr 1, 2026 by outscale
Provides information about a volume.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const outscaleVolume01 = outscale.getVolume({
filters: [{
name: "volume_ids",
values: ["vol-12345678"],
}],
});
import pulumi
import pulumi_outscale as outscale
outscale_volume01 = outscale.get_volume(filters=[{
"name": "volume_ids",
"values": ["vol-12345678"],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := outscale.LookupVolume(ctx, &outscale.LookupVolumeArgs{
Filters: []outscale.GetVolumeFilter{
{
Name: "volume_ids",
Values: []string{
"vol-12345678",
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() =>
{
var outscaleVolume01 = Outscale.GetVolume.Invoke(new()
{
Filters = new[]
{
new Outscale.Inputs.GetVolumeFilterInputArgs
{
Name = "volume_ids",
Values = new[]
{
"vol-12345678",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetVolumeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var outscaleVolume01 = OutscaleFunctions.getVolume(GetVolumeArgs.builder()
.filters(GetVolumeFilterArgs.builder()
.name("volume_ids")
.values("vol-12345678")
.build())
.build());
}
}
variables:
outscaleVolume01:
fn::invoke:
function: outscale:getVolume
arguments:
filters:
- name: volume_ids
values:
- vol-12345678
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(filters: Optional[Sequence[GetVolumeFilter]] = None,
id: Optional[str] = None,
request_id: Optional[str] = None,
volume_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVolumeResult
def get_volume_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetVolumeFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
request_id: Optional[pulumi.Input[str]] = None,
volume_id: 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: outscale:index/getVolume:getVolume
arguments:
# arguments dictionaryThe following arguments are supported:
- Filters
List<Get
Volume Filter> - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- Request
Id string - Volume
Id string - The ID of the volume.
- Filters
[]Get
Volume Filter - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- Request
Id string - Volume
Id string - The ID of the volume.
- filters
List<Get
Volume Filter> - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- request
Id String - volume
Id String - The ID of the volume.
- filters
Get
Volume Filter[] - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id string
- request
Id string - volume
Id string - The ID of the volume.
- filters
Sequence[Get
Volume Filter] - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id str
- request_
id str - volume_
id str - The ID of the volume.
- filters List<Property Map>
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- request
Id String - volume
Id String - The ID of the volume.
getVolume Result
The following output properties are available:
- Creation
Date string - The date and time (UTC) at which the volume was created.
- Id string
- Iops double
- The number of I/O operations per second (IOPS):- For
io1volumes, the number of provisioned IOPS.- Forgp2volumes, the baseline performance of the volume. - Linked
Volumes List<GetVolume Linked Volume> - Information about your volume attachment.
- Size double
- The size of the volume, in gibibytes (GiB).
- Snapshot
Id string - The snapshot from which the volume was created.
- State string
- The state of the volume (
creating|available|in-use|deleting|error). - Subregion
Name string - The Subregion in which the volume was created.
-
List<Get
Volume Tag> - One or more tags associated with the volume.
- Volume
Type string - The type of the volume (
standard|gp2|io1). - Filters
List<Get
Volume Filter> - Request
Id string - Volume
Id string - The ID of the volume.
- Creation
Date string - The date and time (UTC) at which the volume was created.
- Id string
- Iops float64
- The number of I/O operations per second (IOPS):- For
io1volumes, the number of provisioned IOPS.- Forgp2volumes, the baseline performance of the volume. - Linked
Volumes []GetVolume Linked Volume - Information about your volume attachment.
- Size float64
- The size of the volume, in gibibytes (GiB).
- Snapshot
Id string - The snapshot from which the volume was created.
- State string
- The state of the volume (
creating|available|in-use|deleting|error). - Subregion
Name string - The Subregion in which the volume was created.
-
[]Get
Volume Tag - One or more tags associated with the volume.
- Volume
Type string - The type of the volume (
standard|gp2|io1). - Filters
[]Get
Volume Filter - Request
Id string - Volume
Id string - The ID of the volume.
- creation
Date String - The date and time (UTC) at which the volume was created.
- id String
- iops Double
- The number of I/O operations per second (IOPS):- For
io1volumes, the number of provisioned IOPS.- Forgp2volumes, the baseline performance of the volume. - linked
Volumes List<GetVolume Linked Volume> - Information about your volume attachment.
- size Double
- The size of the volume, in gibibytes (GiB).
- snapshot
Id String - The snapshot from which the volume was created.
- state String
- The state of the volume (
creating|available|in-use|deleting|error). - subregion
Name String - The Subregion in which the volume was created.
-
List<Get
Volume Tag> - One or more tags associated with the volume.
- volume
Type String - The type of the volume (
standard|gp2|io1). - filters
List<Get
Volume Filter> - request
Id String - volume
Id String - The ID of the volume.
- creation
Date string - The date and time (UTC) at which the volume was created.
- id string
- iops number
- The number of I/O operations per second (IOPS):- For
io1volumes, the number of provisioned IOPS.- Forgp2volumes, the baseline performance of the volume. - linked
Volumes GetVolume Linked Volume[] - Information about your volume attachment.
- size number
- The size of the volume, in gibibytes (GiB).
- snapshot
Id string - The snapshot from which the volume was created.
- state string
- The state of the volume (
creating|available|in-use|deleting|error). - subregion
Name string - The Subregion in which the volume was created.
-
Get
Volume Tag[] - One or more tags associated with the volume.
- volume
Type string - The type of the volume (
standard|gp2|io1). - filters
Get
Volume Filter[] - request
Id string - volume
Id string - The ID of the volume.
- creation_
date str - The date and time (UTC) at which the volume was created.
- id str
- iops float
- The number of I/O operations per second (IOPS):- For
io1volumes, the number of provisioned IOPS.- Forgp2volumes, the baseline performance of the volume. - linked_
volumes Sequence[GetVolume Linked Volume] - Information about your volume attachment.
- size float
- The size of the volume, in gibibytes (GiB).
- snapshot_
id str - The snapshot from which the volume was created.
- state str
- The state of the volume (
creating|available|in-use|deleting|error). - subregion_
name str - The Subregion in which the volume was created.
-
Sequence[Get
Volume Tag] - One or more tags associated with the volume.
- volume_
type str - The type of the volume (
standard|gp2|io1). - filters
Sequence[Get
Volume Filter] - request_
id str - volume_
id str - The ID of the volume.
- creation
Date String - The date and time (UTC) at which the volume was created.
- id String
- iops Number
- The number of I/O operations per second (IOPS):- For
io1volumes, the number of provisioned IOPS.- Forgp2volumes, the baseline performance of the volume. - linked
Volumes List<Property Map> - Information about your volume attachment.
- size Number
- The size of the volume, in gibibytes (GiB).
- snapshot
Id String - The snapshot from which the volume was created.
- state String
- The state of the volume (
creating|available|in-use|deleting|error). - subregion
Name String - The Subregion in which the volume was created.
- List<Property Map>
- One or more tags associated with the volume.
- volume
Type String - The type of the volume (
standard|gp2|io1). - filters List<Property Map>
- request
Id String - volume
Id String - The ID of the volume.
Supporting Types
GetVolumeFilter
GetVolumeLinkedVolume
- Delete
On boolVm Deletion - If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
- Device
Name string - The name of the device.
- State string
- The state of the volume (
creating|available|in-use|deleting|error). - Vm
Id string - The ID of the VM.
- Volume
Id string - The ID of the volume.
- Delete
On boolVm Deletion - If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
- Device
Name string - The name of the device.
- State string
- The state of the volume (
creating|available|in-use|deleting|error). - Vm
Id string - The ID of the VM.
- Volume
Id string - The ID of the volume.
- delete
On BooleanVm Deletion - If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
- device
Name String - The name of the device.
- state String
- The state of the volume (
creating|available|in-use|deleting|error). - vm
Id String - The ID of the VM.
- volume
Id String - The ID of the volume.
- delete
On booleanVm Deletion - If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
- device
Name string - The name of the device.
- state string
- The state of the volume (
creating|available|in-use|deleting|error). - vm
Id string - The ID of the VM.
- volume
Id string - The ID of the volume.
- delete_
on_ boolvm_ deletion - If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
- device_
name str - The name of the device.
- state str
- The state of the volume (
creating|available|in-use|deleting|error). - vm_
id str - The ID of the VM.
- volume_
id str - The ID of the volume.
- delete
On BooleanVm Deletion - If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
- device
Name String - The name of the device.
- state String
- The state of the volume (
creating|available|in-use|deleting|error). - vm
Id String - The ID of the VM.
- volume
Id String - The ID of the volume.
GetVolumeTag
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscaleTerraform Provider.
Viewing docs for outscale 1.5.0
published on Wednesday, Apr 1, 2026 by outscale
published on Wednesday, Apr 1, 2026 by outscale
