Viewing docs for OVHCloud v2.14.0
published on Monday, Jun 15, 2026 by OVHcloud
published on Monday, Jun 15, 2026 by OVHcloud
Viewing docs for OVHCloud v2.14.0
published on Monday, Jun 15, 2026 by OVHcloud
published on Monday, Jun 15, 2026 by OVHcloud
List the block storage volumes of a region in a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const volumes = ovh.getCloudStorageBlockVolumes({
serviceName: "xxxxxxxxx",
region: "GRA9",
});
import pulumi
import pulumi_ovh as ovh
volumes = ovh.get_cloud_storage_block_volumes(service_name="xxxxxxxxx",
region="GRA9")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ovh.GetCloudStorageBlockVolumes(ctx, &ovh.GetCloudStorageBlockVolumesArgs{
ServiceName: "xxxxxxxxx",
Region: "GRA9",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var volumes = Ovh.GetCloudStorageBlockVolumes.Invoke(new()
{
ServiceName = "xxxxxxxxx",
Region = "GRA9",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OvhFunctions;
import com.pulumi.ovh.inputs.GetCloudStorageBlockVolumesArgs;
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 volumes = OvhFunctions.getCloudStorageBlockVolumes(GetCloudStorageBlockVolumesArgs.builder()
.serviceName("xxxxxxxxx")
.region("GRA9")
.build());
}
}
variables:
volumes:
fn::invoke:
function: ovh:getCloudStorageBlockVolumes
arguments:
serviceName: xxxxxxxxx
region: GRA9
Example coming soon!
Using getCloudStorageBlockVolumes
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 getCloudStorageBlockVolumes(args: GetCloudStorageBlockVolumesArgs, opts?: InvokeOptions): Promise<GetCloudStorageBlockVolumesResult>
function getCloudStorageBlockVolumesOutput(args: GetCloudStorageBlockVolumesOutputArgs, opts?: InvokeOptions): Output<GetCloudStorageBlockVolumesResult>def get_cloud_storage_block_volumes(region: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudStorageBlockVolumesResult
def get_cloud_storage_block_volumes_output(region: pulumi.Input[Optional[str]] = None,
service_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudStorageBlockVolumesResult]func GetCloudStorageBlockVolumes(ctx *Context, args *GetCloudStorageBlockVolumesArgs, opts ...InvokeOption) (*GetCloudStorageBlockVolumesResult, error)
func GetCloudStorageBlockVolumesOutput(ctx *Context, args *GetCloudStorageBlockVolumesOutputArgs, opts ...InvokeOption) GetCloudStorageBlockVolumesResultOutput> Note: This function is named GetCloudStorageBlockVolumes in the Go SDK.
public static class GetCloudStorageBlockVolumes
{
public static Task<GetCloudStorageBlockVolumesResult> InvokeAsync(GetCloudStorageBlockVolumesArgs args, InvokeOptions? opts = null)
public static Output<GetCloudStorageBlockVolumesResult> Invoke(GetCloudStorageBlockVolumesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudStorageBlockVolumesResult> getCloudStorageBlockVolumes(GetCloudStorageBlockVolumesArgs args, InvokeOptions options)
public static Output<GetCloudStorageBlockVolumesResult> getCloudStorageBlockVolumes(GetCloudStorageBlockVolumesArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getCloudStorageBlockVolumes:getCloudStorageBlockVolumes
arguments:
# arguments dictionarydata "ovh_getcloudstorageblockvolumes" "name" {
# arguments
}The following arguments are supported:
- Region string
- The region where the volumes reside.
- Service
Name string - The id of the public cloud project.
- Region string
- The region where the volumes reside.
- Service
Name string - The id of the public cloud project.
- region string
- The region where the volumes reside.
- service_
name string - The id of the public cloud project.
- region String
- The region where the volumes reside.
- service
Name String - The id of the public cloud project.
- region string
- The region where the volumes reside.
- service
Name string - The id of the public cloud project.
- region str
- The region where the volumes reside.
- service_
name str - The id of the public cloud project.
- region String
- The region where the volumes reside.
- service
Name String - The id of the public cloud project.
getCloudStorageBlockVolumes Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Region.
- Service
Name string - Volumes
List<Get
Cloud Storage Block Volumes Volume> - List of volumes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Region.
- Service
Name string - Volumes
[]Get
Cloud Storage Block Volumes Volume - List of volumes:
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- Region.
- service_
name string - volumes list(object)
- List of volumes:
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Region.
- service
Name String - volumes
List<Get
Cloud Storage Block Volumes Volume> - List of volumes:
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- Region.
- service
Name string - volumes
Get
Cloud Storage Block Volumes Volume[] - List of volumes:
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- Region.
- service_
name str - volumes
Sequence[Get
Cloud Storage Block Volumes Volume] - List of volumes:
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Region.
- service
Name String - volumes List<Property Map>
- List of volumes:
Supporting Types
GetCloudStorageBlockVolumesVolume
- Attached
Instances List<GetCloud Storage Block Volumes Volume Attached Instance> - Instances the volume is attached to:
- Bootable bool
- Whether the volume is bootable.
- Encryption
Get
Cloud Storage Block Volumes Volume Encryption - Encryption configuration of the volume:
- Id string
- Instance ID.
- Location
Get
Cloud Storage Block Volumes Volume Location - Location of the volume:
- Name string
- Volume name.
- Resource
Status string - Volume readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - Size int
- Size of the volume in GB.
- Status string
- Volume status (
AVAILABLE,IN_USE,CREATING,DELETING,ATTACHING,DETACHING,EXTENDING,ERROR,ERROR_DELETING,ERROR_BACKING_UP,ERROR_RESTORING,ERROR_EXTENDING). - Volume
Type string - Volume type (
CLASSIC,HIGH_SPEED,HIGH_SPEED_GEN2).
- Attached
Instances []GetCloud Storage Block Volumes Volume Attached Instance - Instances the volume is attached to:
- Bootable bool
- Whether the volume is bootable.
- Encryption
Get
Cloud Storage Block Volumes Volume Encryption - Encryption configuration of the volume:
- Id string
- Instance ID.
- Location
Get
Cloud Storage Block Volumes Volume Location - Location of the volume:
- Name string
- Volume name.
- Resource
Status string - Volume readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - Size int
- Size of the volume in GB.
- Status string
- Volume status (
AVAILABLE,IN_USE,CREATING,DELETING,ATTACHING,DETACHING,EXTENDING,ERROR,ERROR_DELETING,ERROR_BACKING_UP,ERROR_RESTORING,ERROR_EXTENDING). - Volume
Type string - Volume type (
CLASSIC,HIGH_SPEED,HIGH_SPEED_GEN2).
- attached_
instances list(object) - Instances the volume is attached to:
- bootable bool
- Whether the volume is bootable.
- encryption object
- Encryption configuration of the volume:
- id string
- Instance ID.
- location object
- Location of the volume:
- name string
- Volume name.
- resource_
status string - Volume readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - size number
- Size of the volume in GB.
- status string
- Volume status (
AVAILABLE,IN_USE,CREATING,DELETING,ATTACHING,DETACHING,EXTENDING,ERROR,ERROR_DELETING,ERROR_BACKING_UP,ERROR_RESTORING,ERROR_EXTENDING). - volume_
type string - Volume type (
CLASSIC,HIGH_SPEED,HIGH_SPEED_GEN2).
- attached
Instances List<GetCloud Storage Block Volumes Volume Attached Instance> - Instances the volume is attached to:
- bootable Boolean
- Whether the volume is bootable.
- encryption
Get
Cloud Storage Block Volumes Volume Encryption - Encryption configuration of the volume:
- id String
- Instance ID.
- location
Get
Cloud Storage Block Volumes Volume Location - Location of the volume:
- name String
- Volume name.
- resource
Status String - Volume readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - size Integer
- Size of the volume in GB.
- status String
- Volume status (
AVAILABLE,IN_USE,CREATING,DELETING,ATTACHING,DETACHING,EXTENDING,ERROR,ERROR_DELETING,ERROR_BACKING_UP,ERROR_RESTORING,ERROR_EXTENDING). - volume
Type String - Volume type (
CLASSIC,HIGH_SPEED,HIGH_SPEED_GEN2).
- attached
Instances GetCloud Storage Block Volumes Volume Attached Instance[] - Instances the volume is attached to:
- bootable boolean
- Whether the volume is bootable.
- encryption
Get
Cloud Storage Block Volumes Volume Encryption - Encryption configuration of the volume:
- id string
- Instance ID.
- location
Get
Cloud Storage Block Volumes Volume Location - Location of the volume:
- name string
- Volume name.
- resource
Status string - Volume readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - size number
- Size of the volume in GB.
- status string
- Volume status (
AVAILABLE,IN_USE,CREATING,DELETING,ATTACHING,DETACHING,EXTENDING,ERROR,ERROR_DELETING,ERROR_BACKING_UP,ERROR_RESTORING,ERROR_EXTENDING). - volume
Type string - Volume type (
CLASSIC,HIGH_SPEED,HIGH_SPEED_GEN2).
- attached_
instances Sequence[GetCloud Storage Block Volumes Volume Attached Instance] - Instances the volume is attached to:
- bootable bool
- Whether the volume is bootable.
- encryption
Get
Cloud Storage Block Volumes Volume Encryption - Encryption configuration of the volume:
- id str
- Instance ID.
- location
Get
Cloud Storage Block Volumes Volume Location - Location of the volume:
- name str
- Volume name.
- resource_
status str - Volume readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - size int
- Size of the volume in GB.
- status str
- Volume status (
AVAILABLE,IN_USE,CREATING,DELETING,ATTACHING,DETACHING,EXTENDING,ERROR,ERROR_DELETING,ERROR_BACKING_UP,ERROR_RESTORING,ERROR_EXTENDING). - volume_
type str - Volume type (
CLASSIC,HIGH_SPEED,HIGH_SPEED_GEN2).
- attached
Instances List<Property Map> - Instances the volume is attached to:
- bootable Boolean
- Whether the volume is bootable.
- encryption Property Map
- Encryption configuration of the volume:
- id String
- Instance ID.
- location Property Map
- Location of the volume:
- name String
- Volume name.
- resource
Status String - Volume readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - size Number
- Size of the volume in GB.
- status String
- Volume status (
AVAILABLE,IN_USE,CREATING,DELETING,ATTACHING,DETACHING,EXTENDING,ERROR,ERROR_DELETING,ERROR_BACKING_UP,ERROR_RESTORING,ERROR_EXTENDING). - volume
Type String - Volume type (
CLASSIC,HIGH_SPEED,HIGH_SPEED_GEN2).
GetCloudStorageBlockVolumesVolumeAttachedInstance
- Id string
- Instance ID.
- Id string
- Instance ID.
- id string
- Instance ID.
- id String
- Instance ID.
- id string
- Instance ID.
- id str
- Instance ID.
- id String
- Instance ID.
GetCloudStorageBlockVolumesVolumeEncryption
- Enabled bool
- Whether the volume is encrypted at rest with LUKS.
- Enabled bool
- Whether the volume is encrypted at rest with LUKS.
- enabled bool
- Whether the volume is encrypted at rest with LUKS.
- enabled Boolean
- Whether the volume is encrypted at rest with LUKS.
- enabled boolean
- Whether the volume is encrypted at rest with LUKS.
- enabled bool
- Whether the volume is encrypted at rest with LUKS.
- enabled Boolean
- Whether the volume is encrypted at rest with LUKS.
GetCloudStorageBlockVolumesVolumeLocation
- Region string
- The region where the volumes reside.
- Region string
- The region where the volumes reside.
- region string
- The region where the volumes reside.
- region String
- The region where the volumes reside.
- region string
- The region where the volumes reside.
- region str
- The region where the volumes reside.
- region String
- The region where the volumes reside.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.14.0
published on Monday, Jun 15, 2026 by OVHcloud
published on Monday, Jun 15, 2026 by OVHcloud