### Boot volume: Create from an image Source: https://github.com/gmo-internet/terraform-provider-conohavps/blob/main/docs/resources/volume.md Create a bootable volume from a saved image by providing the image reference ID. The size must be appropriate for a boot volume. ```terraform resource "conohavps_volume" "boot_volume" { name = "example-boot-volume" size = 100 volume_type = "c3j1-ds02-boot" image_ref = "11111111-1111-1111-1111-111111111111" # Replace with your saved image ID description = "Boot volume from image" } ``` -------------------------------- ### Restore: Create a volume from a backup Source: https://github.com/gmo-internet/terraform-provider-conohavps/blob/main/docs/resources/volume.md Restore a volume from a backup by providing the backup ID. The specified size must be equal to or greater than the size of the backup source. ```terraform resource "conohavps_volume" "restored_volume" { name = "example-restored-volume" size = 100 # Size must be equal to or greater than the backup source volume_type = "c3j1-ds02-boot" backup_id = "11111111-1111-1111-1111-111111111111" # Replace with your backup ID description = "Restored from backup" } ``` -------------------------------- ### Add volume: Create from saved image Source: https://github.com/gmo-internet/terraform-provider-conohavps/blob/main/docs/resources/volume.md Create an add volume using a saved image as a reference. Provide the image reference ID and ensure the volume type is set to 'add'. ```terraform resource "conohavps_volume" "add_volume_from_image" { name = "example-image-volume" size = 200 volume_type = "c3j1-ds02-add" image_ref = "11111111-1111-1111-1111-111111111111" # Replace with your saved image ID description = "Volume from saved image" } ``` -------------------------------- ### Clone: Create a volume from an existing volume Source: https://github.com/gmo-internet/terraform-provider-conohavps/blob/main/docs/resources/volume.md Clone an existing volume by specifying the source volume ID. The new volume will inherit the size and type of the source volume. ```terraform resource "conohavps_volume" "cloned_volume" { name = "example-cloned-volume" size = conohavps_volume.add_volume.size volume_type = conohavps_volume.add_volume.volume_type source_volid = conohavps_volume.add_volume.id description = "Cloned from volume" } ``` -------------------------------- ### Import Volume Source: https://github.com/gmo-internet/terraform-provider-conohavps/blob/main/docs/resources/volume.md Import an existing volume into Terraform management using its UUID. ```shell $ terraform import conohavps_volume.volume_1 {{volume_uuid}} ``` -------------------------------- ### Add volume: Create an add volume Source: https://github.com/gmo-internet/terraform-provider-conohavps/blob/main/docs/resources/volume.md Use this snippet to create a new add volume with a specified name, size, and type. Ensure the volume type is supported. ```terraform resource "conohavps_volume" "add_volume" { name = "example-add-volume" size = 200 volume_type = "c3j1-ds02-add" description = "Example add volume" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.