1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. CloudStorageBlockVolume
Viewing docs for OVHCloud v2.14.0
published on Monday, Jun 15, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.14.0
published on Monday, Jun 15, 2026 by OVHcloud

    Creates a block storage volume in a public cloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const volume = new ovh.CloudStorageBlockVolume("volume", {
        serviceName: "xxxxxxxxxx",
        name: "my-volume",
        size: 10,
        region: "GRA1",
        volumeType: "CLASSIC",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    volume = ovh.CloudStorageBlockVolume("volume",
        service_name="xxxxxxxxxx",
        name="my-volume",
        size=10,
        region="GRA1",
        volume_type="CLASSIC")
    
    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.NewCloudStorageBlockVolume(ctx, "volume", &ovh.CloudStorageBlockVolumeArgs{
    			ServiceName: pulumi.String("xxxxxxxxxx"),
    			Name:        pulumi.String("my-volume"),
    			Size:        pulumi.Int(10),
    			Region:      pulumi.String("GRA1"),
    			VolumeType:  pulumi.String("CLASSIC"),
    		})
    		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 volume = new Ovh.CloudStorageBlockVolume("volume", new()
        {
            ServiceName = "xxxxxxxxxx",
            Name = "my-volume",
            Size = 10,
            Region = "GRA1",
            VolumeType = "CLASSIC",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.ovhcloud.pulumi.ovh.CloudStorageBlockVolume;
    import com.ovhcloud.pulumi.ovh.CloudStorageBlockVolumeArgs;
    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) {
            var volume = new CloudStorageBlockVolume("volume", CloudStorageBlockVolumeArgs.builder()
                .serviceName("xxxxxxxxxx")
                .name("my-volume")
                .size(10)
                .region("GRA1")
                .volumeType("CLASSIC")
                .build());
    
        }
    }
    
    resources:
      volume:
        type: ovh:CloudStorageBlockVolume
        properties:
          serviceName: xxxxxxxxxx
          name: my-volume
          size: 10
          region: GRA1
          volumeType: CLASSIC
    
    Example coming soon!
    

    Create from backup

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      restored:
        type: ovh:CloudStorageBlockVolume
        properties:
          serviceName: xxxxxxxxxx
          name: my-restored-volume
          size: 10
          region: GRA1
          volumeType: CLASSIC
          createFrom:
            backup_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    
    Example coming soon!
    

    Create CloudStorageBlockVolume Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CloudStorageBlockVolume(name: string, args: CloudStorageBlockVolumeArgs, opts?: CustomResourceOptions);
    @overload
    def CloudStorageBlockVolume(resource_name: str,
                                args: CloudStorageBlockVolumeArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudStorageBlockVolume(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                region: Optional[str] = None,
                                service_name: Optional[str] = None,
                                size: Optional[int] = None,
                                create_from: Optional[CloudStorageBlockVolumeCreateFromArgs] = None,
                                encryption: Optional[CloudStorageBlockVolumeEncryptionArgs] = None,
                                name: Optional[str] = None,
                                volume_type: Optional[str] = None)
    func NewCloudStorageBlockVolume(ctx *Context, name string, args CloudStorageBlockVolumeArgs, opts ...ResourceOption) (*CloudStorageBlockVolume, error)
    public CloudStorageBlockVolume(string name, CloudStorageBlockVolumeArgs args, CustomResourceOptions? opts = null)
    public CloudStorageBlockVolume(String name, CloudStorageBlockVolumeArgs args)
    public CloudStorageBlockVolume(String name, CloudStorageBlockVolumeArgs args, CustomResourceOptions options)
    
    type: ovh:CloudStorageBlockVolume
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ovh_cloudstorageblockvolume" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CloudStorageBlockVolumeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CloudStorageBlockVolumeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CloudStorageBlockVolumeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudStorageBlockVolumeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudStorageBlockVolumeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cloudStorageBlockVolumeResource = new Ovh.CloudStorageBlockVolume("cloudStorageBlockVolumeResource", new()
    {
        Region = "string",
        ServiceName = "string",
        Size = 0,
        CreateFrom = new Ovh.Inputs.CloudStorageBlockVolumeCreateFromArgs
        {
            BackupId = "string",
            ImageId = "string",
            SnapshotId = "string",
        },
        Encryption = new Ovh.Inputs.CloudStorageBlockVolumeEncryptionArgs
        {
            Enabled = false,
        },
        Name = "string",
        VolumeType = "string",
    });
    
    example, err := ovh.NewCloudStorageBlockVolume(ctx, "cloudStorageBlockVolumeResource", &ovh.CloudStorageBlockVolumeArgs{
    	Region:      pulumi.String("string"),
    	ServiceName: pulumi.String("string"),
    	Size:        pulumi.Int(0),
    	CreateFrom: &ovh.CloudStorageBlockVolumeCreateFromArgs{
    		BackupId:   pulumi.String("string"),
    		ImageId:    pulumi.String("string"),
    		SnapshotId: pulumi.String("string"),
    	},
    	Encryption: &ovh.CloudStorageBlockVolumeEncryptionArgs{
    		Enabled: pulumi.Bool(false),
    	},
    	Name:       pulumi.String("string"),
    	VolumeType: pulumi.String("string"),
    })
    
    resource "ovh_cloudstorageblockvolume" "cloudStorageBlockVolumeResource" {
      region       = "string"
      service_name = "string"
      size         = 0
      create_from = {
        backup_id   = "string"
        image_id    = "string"
        snapshot_id = "string"
      }
      encryption = {
        enabled = false
      }
      name        = "string"
      volume_type = "string"
    }
    
    var cloudStorageBlockVolumeResource = new CloudStorageBlockVolume("cloudStorageBlockVolumeResource", CloudStorageBlockVolumeArgs.builder()
        .region("string")
        .serviceName("string")
        .size(0)
        .createFrom(CloudStorageBlockVolumeCreateFromArgs.builder()
            .backupId("string")
            .imageId("string")
            .snapshotId("string")
            .build())
        .encryption(CloudStorageBlockVolumeEncryptionArgs.builder()
            .enabled(false)
            .build())
        .name("string")
        .volumeType("string")
        .build());
    
    cloud_storage_block_volume_resource = ovh.CloudStorageBlockVolume("cloudStorageBlockVolumeResource",
        region="string",
        service_name="string",
        size=0,
        create_from={
            "backup_id": "string",
            "image_id": "string",
            "snapshot_id": "string",
        },
        encryption={
            "enabled": False,
        },
        name="string",
        volume_type="string")
    
    const cloudStorageBlockVolumeResource = new ovh.CloudStorageBlockVolume("cloudStorageBlockVolumeResource", {
        region: "string",
        serviceName: "string",
        size: 0,
        createFrom: {
            backupId: "string",
            imageId: "string",
            snapshotId: "string",
        },
        encryption: {
            enabled: false,
        },
        name: "string",
        volumeType: "string",
    });
    
    type: ovh:CloudStorageBlockVolume
    properties:
        createFrom:
            backupId: string
            imageId: string
            snapshotId: string
        encryption:
            enabled: false
        name: string
        region: string
        serviceName: string
        size: 0
        volumeType: string
    

    CloudStorageBlockVolume Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CloudStorageBlockVolume resource accepts the following input properties:

    Region string
    Region where the volume will be created. Changing this value recreates the resource.
    ServiceName string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    Size int
    Size of the volume in GB.
    CreateFrom CloudStorageBlockVolumeCreateFrom
    Source to create the volume from. Changing this value recreates the resource.
    Encryption CloudStorageBlockVolumeEncryption
    Encryption configuration for the volume.
    Name string
    Volume name.
    VolumeType string
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    Region string
    Region where the volume will be created. Changing this value recreates the resource.
    ServiceName string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    Size int
    Size of the volume in GB.
    CreateFrom CloudStorageBlockVolumeCreateFromArgs
    Source to create the volume from. Changing this value recreates the resource.
    Encryption CloudStorageBlockVolumeEncryptionArgs
    Encryption configuration for the volume.
    Name string
    Volume name.
    VolumeType string
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    region string
    Region where the volume will be created. Changing this value recreates the resource.
    service_name string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    size number
    Size of the volume in GB.
    create_from object
    Source to create the volume from. Changing this value recreates the resource.
    encryption object
    Encryption configuration for the volume.
    name string
    Volume name.
    volume_type string
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    region String
    Region where the volume will be created. Changing this value recreates the resource.
    serviceName String
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    size Integer
    Size of the volume in GB.
    createFrom CloudStorageBlockVolumeCreateFrom
    Source to create the volume from. Changing this value recreates the resource.
    encryption CloudStorageBlockVolumeEncryption
    Encryption configuration for the volume.
    name String
    Volume name.
    volumeType String
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    region string
    Region where the volume will be created. Changing this value recreates the resource.
    serviceName string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    size number
    Size of the volume in GB.
    createFrom CloudStorageBlockVolumeCreateFrom
    Source to create the volume from. Changing this value recreates the resource.
    encryption CloudStorageBlockVolumeEncryption
    Encryption configuration for the volume.
    name string
    Volume name.
    volumeType string
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    region str
    Region where the volume will be created. Changing this value recreates the resource.
    service_name str
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    size int
    Size of the volume in GB.
    create_from CloudStorageBlockVolumeCreateFromArgs
    Source to create the volume from. Changing this value recreates the resource.
    encryption CloudStorageBlockVolumeEncryptionArgs
    Encryption configuration for the volume.
    name str
    Volume name.
    volume_type str
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    region String
    Region where the volume will be created. Changing this value recreates the resource.
    serviceName String
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    size Number
    Size of the volume in GB.
    createFrom Property Map
    Source to create the volume from. Changing this value recreates the resource.
    encryption Property Map
    Encryption configuration for the volume.
    name String
    Volume name.
    volumeType String
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CloudStorageBlockVolume resource produces the following output properties:

    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the volume.
    CurrentState CloudStorageBlockVolumeCurrentState
    Current state of the block storage volume:
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceStatus string
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    UpdatedAt string
    Last update date of the volume.
    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the volume.
    CurrentState CloudStorageBlockVolumeCurrentState
    Current state of the block storage volume:
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceStatus string
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    UpdatedAt string
    Last update date of the volume.
    checksum string
    Computed hash representing the current target specification value.
    created_at string
    Creation date of the volume.
    current_state object
    Current state of the block storage volume:
    id string
    The provider-assigned unique ID for this managed resource.
    resource_status string
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updated_at string
    Last update date of the volume.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the volume.
    currentState CloudStorageBlockVolumeCurrentState
    Current state of the block storage volume:
    id String
    The provider-assigned unique ID for this managed resource.
    resourceStatus String
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt String
    Last update date of the volume.
    checksum string
    Computed hash representing the current target specification value.
    createdAt string
    Creation date of the volume.
    currentState CloudStorageBlockVolumeCurrentState
    Current state of the block storage volume:
    id string
    The provider-assigned unique ID for this managed resource.
    resourceStatus string
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt string
    Last update date of the volume.
    checksum str
    Computed hash representing the current target specification value.
    created_at str
    Creation date of the volume.
    current_state CloudStorageBlockVolumeCurrentState
    Current state of the block storage volume:
    id str
    The provider-assigned unique ID for this managed resource.
    resource_status str
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updated_at str
    Last update date of the volume.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the volume.
    currentState Property Map
    Current state of the block storage volume:
    id String
    The provider-assigned unique ID for this managed resource.
    resourceStatus String
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt String
    Last update date of the volume.

    Look up Existing CloudStorageBlockVolume Resource

    Get an existing CloudStorageBlockVolume resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CloudStorageBlockVolumeState, opts?: CustomResourceOptions): CloudStorageBlockVolume
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            checksum: Optional[str] = None,
            create_from: Optional[CloudStorageBlockVolumeCreateFromArgs] = None,
            created_at: Optional[str] = None,
            current_state: Optional[CloudStorageBlockVolumeCurrentStateArgs] = None,
            encryption: Optional[CloudStorageBlockVolumeEncryptionArgs] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            resource_status: Optional[str] = None,
            service_name: Optional[str] = None,
            size: Optional[int] = None,
            updated_at: Optional[str] = None,
            volume_type: Optional[str] = None) -> CloudStorageBlockVolume
    func GetCloudStorageBlockVolume(ctx *Context, name string, id IDInput, state *CloudStorageBlockVolumeState, opts ...ResourceOption) (*CloudStorageBlockVolume, error)
    public static CloudStorageBlockVolume Get(string name, Input<string> id, CloudStorageBlockVolumeState? state, CustomResourceOptions? opts = null)
    public static CloudStorageBlockVolume get(String name, Output<String> id, CloudStorageBlockVolumeState state, CustomResourceOptions options)
    resources:  _:    type: ovh:CloudStorageBlockVolume    get:      id: ${id}
    import {
      to = ovh_cloudstorageblockvolume.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Checksum string
    Computed hash representing the current target specification value.
    CreateFrom CloudStorageBlockVolumeCreateFrom
    Source to create the volume from. Changing this value recreates the resource.
    CreatedAt string
    Creation date of the volume.
    CurrentState CloudStorageBlockVolumeCurrentState
    Current state of the block storage volume:
    Encryption CloudStorageBlockVolumeEncryption
    Encryption configuration for the volume.
    Name string
    Volume name.
    Region string
    Region where the volume will be created. Changing this value recreates the resource.
    ResourceStatus string
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    ServiceName string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    Size int
    Size of the volume in GB.
    UpdatedAt string
    Last update date of the volume.
    VolumeType string
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    Checksum string
    Computed hash representing the current target specification value.
    CreateFrom CloudStorageBlockVolumeCreateFromArgs
    Source to create the volume from. Changing this value recreates the resource.
    CreatedAt string
    Creation date of the volume.
    CurrentState CloudStorageBlockVolumeCurrentStateArgs
    Current state of the block storage volume:
    Encryption CloudStorageBlockVolumeEncryptionArgs
    Encryption configuration for the volume.
    Name string
    Volume name.
    Region string
    Region where the volume will be created. Changing this value recreates the resource.
    ResourceStatus string
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    ServiceName string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    Size int
    Size of the volume in GB.
    UpdatedAt string
    Last update date of the volume.
    VolumeType string
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    checksum string
    Computed hash representing the current target specification value.
    create_from object
    Source to create the volume from. Changing this value recreates the resource.
    created_at string
    Creation date of the volume.
    current_state object
    Current state of the block storage volume:
    encryption object
    Encryption configuration for the volume.
    name string
    Volume name.
    region string
    Region where the volume will be created. Changing this value recreates the resource.
    resource_status string
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    service_name string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    size number
    Size of the volume in GB.
    updated_at string
    Last update date of the volume.
    volume_type string
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    checksum String
    Computed hash representing the current target specification value.
    createFrom CloudStorageBlockVolumeCreateFrom
    Source to create the volume from. Changing this value recreates the resource.
    createdAt String
    Creation date of the volume.
    currentState CloudStorageBlockVolumeCurrentState
    Current state of the block storage volume:
    encryption CloudStorageBlockVolumeEncryption
    Encryption configuration for the volume.
    name String
    Volume name.
    region String
    Region where the volume will be created. Changing this value recreates the resource.
    resourceStatus String
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName String
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    size Integer
    Size of the volume in GB.
    updatedAt String
    Last update date of the volume.
    volumeType String
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    checksum string
    Computed hash representing the current target specification value.
    createFrom CloudStorageBlockVolumeCreateFrom
    Source to create the volume from. Changing this value recreates the resource.
    createdAt string
    Creation date of the volume.
    currentState CloudStorageBlockVolumeCurrentState
    Current state of the block storage volume:
    encryption CloudStorageBlockVolumeEncryption
    Encryption configuration for the volume.
    name string
    Volume name.
    region string
    Region where the volume will be created. Changing this value recreates the resource.
    resourceStatus string
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    size number
    Size of the volume in GB.
    updatedAt string
    Last update date of the volume.
    volumeType string
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    checksum str
    Computed hash representing the current target specification value.
    create_from CloudStorageBlockVolumeCreateFromArgs
    Source to create the volume from. Changing this value recreates the resource.
    created_at str
    Creation date of the volume.
    current_state CloudStorageBlockVolumeCurrentStateArgs
    Current state of the block storage volume:
    encryption CloudStorageBlockVolumeEncryptionArgs
    Encryption configuration for the volume.
    name str
    Volume name.
    region str
    Region where the volume will be created. Changing this value recreates the resource.
    resource_status str
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    service_name str
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    size int
    Size of the volume in GB.
    updated_at str
    Last update date of the volume.
    volume_type str
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    checksum String
    Computed hash representing the current target specification value.
    createFrom Property Map
    Source to create the volume from. Changing this value recreates the resource.
    createdAt String
    Creation date of the volume.
    currentState Property Map
    Current state of the block storage volume:
    encryption Property Map
    Encryption configuration for the volume.
    name String
    Volume name.
    region String
    Region where the volume will be created. Changing this value recreates the resource.
    resourceStatus String
    Volume readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName String
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    size Number
    Size of the volume in GB.
    updatedAt String
    Last update date of the volume.
    volumeType String
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).

    Supporting Types

    CloudStorageBlockVolumeCreateFrom, CloudStorageBlockVolumeCreateFromArgs

    BackupId string
    Identifier of a backup to restore the volume from.
    ImageId string
    UUID of a Glance image to create the volume from. The resulting volume will be bootable.
    SnapshotId string
    Identifier of a snapshot to create the volume from.
    BackupId string
    Identifier of a backup to restore the volume from.
    ImageId string
    UUID of a Glance image to create the volume from. The resulting volume will be bootable.
    SnapshotId string
    Identifier of a snapshot to create the volume from.
    backup_id string
    Identifier of a backup to restore the volume from.
    image_id string
    UUID of a Glance image to create the volume from. The resulting volume will be bootable.
    snapshot_id string
    Identifier of a snapshot to create the volume from.
    backupId String
    Identifier of a backup to restore the volume from.
    imageId String
    UUID of a Glance image to create the volume from. The resulting volume will be bootable.
    snapshotId String
    Identifier of a snapshot to create the volume from.
    backupId string
    Identifier of a backup to restore the volume from.
    imageId string
    UUID of a Glance image to create the volume from. The resulting volume will be bootable.
    snapshotId string
    Identifier of a snapshot to create the volume from.
    backup_id str
    Identifier of a backup to restore the volume from.
    image_id str
    UUID of a Glance image to create the volume from. The resulting volume will be bootable.
    snapshot_id str
    Identifier of a snapshot to create the volume from.
    backupId String
    Identifier of a backup to restore the volume from.
    imageId String
    UUID of a Glance image to create the volume from. The resulting volume will be bootable.
    snapshotId String
    Identifier of a snapshot to create the volume from.

    CloudStorageBlockVolumeCurrentState, CloudStorageBlockVolumeCurrentStateArgs

    AttachedInstances List<CloudStorageBlockVolumeCurrentStateAttachedInstance>
    Instances currently attached to this volume
    Bootable bool
    Whether the volume is bootable.
    Encryption CloudStorageBlockVolumeCurrentStateEncryption
    Encryption configuration for the volume.
    Location CloudStorageBlockVolumeCurrentStateLocation
    Current location:
    Name string
    Volume name.
    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).
    VolumeType string
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    AttachedInstances []CloudStorageBlockVolumeCurrentStateAttachedInstance
    Instances currently attached to this volume
    Bootable bool
    Whether the volume is bootable.
    Encryption CloudStorageBlockVolumeCurrentStateEncryption
    Encryption configuration for the volume.
    Location CloudStorageBlockVolumeCurrentStateLocation
    Current location:
    Name string
    Volume name.
    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).
    VolumeType string
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    attached_instances list(object)
    Instances currently attached to this volume
    bootable bool
    Whether the volume is bootable.
    encryption object
    Encryption configuration for the volume.
    location object
    Current location:
    name string
    Volume name.
    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). Can be changed after creation (triggers online retype).
    attachedInstances List<CloudStorageBlockVolumeCurrentStateAttachedInstance>
    Instances currently attached to this volume
    bootable Boolean
    Whether the volume is bootable.
    encryption CloudStorageBlockVolumeCurrentStateEncryption
    Encryption configuration for the volume.
    location CloudStorageBlockVolumeCurrentStateLocation
    Current location:
    name String
    Volume name.
    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).
    volumeType String
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    attachedInstances CloudStorageBlockVolumeCurrentStateAttachedInstance[]
    Instances currently attached to this volume
    bootable boolean
    Whether the volume is bootable.
    encryption CloudStorageBlockVolumeCurrentStateEncryption
    Encryption configuration for the volume.
    location CloudStorageBlockVolumeCurrentStateLocation
    Current location:
    name string
    Volume name.
    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).
    volumeType string
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
    attached_instances Sequence[CloudStorageBlockVolumeCurrentStateAttachedInstance]
    Instances currently attached to this volume
    bootable bool
    Whether the volume is bootable.
    encryption CloudStorageBlockVolumeCurrentStateEncryption
    Encryption configuration for the volume.
    location CloudStorageBlockVolumeCurrentStateLocation
    Current location:
    name str
    Volume name.
    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). Can be changed after creation (triggers online retype).
    attachedInstances List<Property Map>
    Instances currently attached to this volume
    bootable Boolean
    Whether the volume is bootable.
    encryption Property Map
    Encryption configuration for the volume.
    location Property Map
    Current location:
    name String
    Volume name.
    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).
    volumeType String
    Volume type (CLASSIC, HIGH_SPEED, HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).

    CloudStorageBlockVolumeCurrentStateAttachedInstance, CloudStorageBlockVolumeCurrentStateAttachedInstanceArgs

    Id string
    Volume ID.
    Id string
    Volume ID.
    id string
    Volume ID.
    id String
    Volume ID.
    id string
    Volume ID.
    id str
    Volume ID.
    id String
    Volume ID.

    CloudStorageBlockVolumeCurrentStateEncryption, CloudStorageBlockVolumeCurrentStateEncryptionArgs

    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.

    CloudStorageBlockVolumeCurrentStateLocation, CloudStorageBlockVolumeCurrentStateLocationArgs

    Region string
    Region where the volume will be created. Changing this value recreates the resource.
    Region string
    Region where the volume will be created. Changing this value recreates the resource.
    region string
    Region where the volume will be created. Changing this value recreates the resource.
    region String
    Region where the volume will be created. Changing this value recreates the resource.
    region string
    Region where the volume will be created. Changing this value recreates the resource.
    region str
    Region where the volume will be created. Changing this value recreates the resource.
    region String
    Region where the volume will be created. Changing this value recreates the resource.

    CloudStorageBlockVolumeEncryption, CloudStorageBlockVolumeEncryptionArgs

    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.

    Import

    A cloud storage block volume can be imported using the service_name and volume_id, separated by /:

    terraform

    import {

    to = ovh_cloud_storage_block_volume.volume

    id = “<service_name>/<volume_id>”

    }

    bash

    $ pulumi preview -generate-config-out=volume.tf

    $ pulumi up

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.14.0
    published on Monday, Jun 15, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial