published on Monday, Jun 15, 2026 by OVHcloud
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.
- Service
Name 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.
- Create
From CloudStorage Block Volume Create From - Source to create the volume from. Changing this value recreates the resource.
- Encryption
Cloud
Storage Block Volume Encryption - 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.
- Service
Name 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.
- Create
From CloudStorage Block Volume Create From Args - Source to create the volume from. Changing this value recreates the resource.
- Encryption
Cloud
Storage Block Volume Encryption Args - 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.
- 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.
- service
Name 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.
- create
From CloudStorage Block Volume Create From - Source to create the volume from. Changing this value recreates the resource.
- encryption
Cloud
Storage Block Volume Encryption - 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.
- 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 CloudStorage Block Volume Create From - Source to create the volume from. Changing this value recreates the resource.
- encryption
Cloud
Storage Block Volume Encryption - 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 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 CloudStorage Block Volume Create From Args - Source to create the volume from. Changing this value recreates the resource.
- encryption
Cloud
Storage Block Volume Encryption Args - 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.
- 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 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.
- volume
Type 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.
- Created
At string - Creation date of the volume.
- Current
State CloudStorage Block Volume Current State - 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.
- Created
At string - Creation date of the volume.
- Current
State CloudStorage Block Volume Current State - 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.
- 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.
- created
At String - Creation date of the volume.
- current
State CloudStorage Block Volume Current State - 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.
- created
At string - Creation date of the volume.
- current
State CloudStorage Block Volume Current State - 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 str
- Computed hash representing the current target specification value.
- created_
at str - Creation date of the volume.
- current_
state CloudStorage Block Volume Current State - 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.
- created
At String - Creation date of the volume.
- current
State Property Map - 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.
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) -> CloudStorageBlockVolumefunc 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.
- Checksum string
- Computed hash representing the current target specification value.
- Create
From CloudStorage Block Volume Create From - Source to create the volume from. Changing this value recreates the resource.
- Created
At string - Creation date of the volume.
- Current
State CloudStorage Block Volume Current State - Current state of the block storage volume:
- Encryption
Cloud
Storage Block Volume Encryption - 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 int
- 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.
- Create
From CloudStorage Block Volume Create From Args - Source to create the volume from. Changing this value recreates the resource.
- Created
At string - Creation date of the volume.
- Current
State CloudStorage Block Volume Current State Args - Current state of the block storage volume:
- Encryption
Cloud
Storage Block Volume Encryption Args - 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 int
- 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.
- 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.
- create
From CloudStorage Block Volume Create From - Source to create the volume from. Changing this value recreates the resource.
- created
At String - Creation date of the volume.
- current
State CloudStorage Block Volume Current State - Current state of the block storage volume:
- encryption
Cloud
Storage Block Volume Encryption - 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 Integer
- 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.
- create
From CloudStorage Block Volume Create From - Source to create the volume from. Changing this value recreates the resource.
- created
At string - Creation date of the volume.
- current
State CloudStorage Block Volume Current State - Current state of the block storage volume:
- encryption
Cloud
Storage Block Volume Encryption - 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 str
- Computed hash representing the current target specification value.
- create_
from CloudStorage Block Volume Create From Args - Source to create the volume from. Changing this value recreates the resource.
- created_
at str - Creation date of the volume.
- current_
state CloudStorage Block Volume Current State Args - Current state of the block storage volume:
- encryption
Cloud
Storage Block Volume Encryption Args - 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.
- create
From Property Map - Source to create the volume from. Changing this value recreates the resource.
- created
At String - Creation date of the volume.
- current
State 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.
- 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).
Supporting Types
CloudStorageBlockVolumeCreateFrom, CloudStorageBlockVolumeCreateFromArgs
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
CloudStorageBlockVolumeCurrentState, CloudStorageBlockVolumeCurrentStateArgs
- Attached
Instances List<CloudStorage Block Volume Current State Attached Instance> - Instances currently attached to this volume
- Bootable bool
- Whether the volume is bootable.
- Encryption
Cloud
Storage Block Volume Current State Encryption - Encryption configuration for the volume.
- Location
Cloud
Storage Block Volume Current State Location - 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). - Volume
Type string - Volume type (
CLASSIC,HIGH_SPEED,HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
- Attached
Instances []CloudStorage Block Volume Current State Attached Instance - Instances currently attached to this volume
- Bootable bool
- Whether the volume is bootable.
- Encryption
Cloud
Storage Block Volume Current State Encryption - Encryption configuration for the volume.
- Location
Cloud
Storage Block Volume Current State Location - 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). - Volume
Type 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).
- attached
Instances List<CloudStorage Block Volume Current State Attached Instance> - Instances currently attached to this volume
- bootable Boolean
- Whether the volume is bootable.
- encryption
Cloud
Storage Block Volume Current State Encryption - Encryption configuration for the volume.
- location
Cloud
Storage Block Volume Current State Location - 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). - volume
Type String - Volume type (
CLASSIC,HIGH_SPEED,HIGH_SPEED_GEN2). Can be changed after creation (triggers online retype).
- attached
Instances CloudStorage Block Volume Current State Attached Instance[] - Instances currently attached to this volume
- bootable boolean
- Whether the volume is bootable.
- encryption
Cloud
Storage Block Volume Current State Encryption - Encryption configuration for the volume.
- location
Cloud
Storage Block Volume Current State Location - 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).
- attached_
instances Sequence[CloudStorage Block Volume Current State Attached Instance] - Instances currently attached to this volume
- bootable bool
- Whether the volume is bootable.
- encryption
Cloud
Storage Block Volume Current State Encryption - Encryption configuration for the volume.
- location
Cloud
Storage Block Volume Current State Location - 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).
- attached
Instances 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). - volume
Type 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
ovhTerraform Provider.
published on Monday, Jun 15, 2026 by OVHcloud