Skip to content

Commit

Permalink
docs: Add source_file as new argument
Browse files Browse the repository at this point in the history
Signed-off-by: SpiffyEight77 <[email protected]>
  • Loading branch information
SpiffyEight77 committed Nov 19, 2024
1 parent 2bb7dc8 commit 921774e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/resources/storage_volume.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ resource "incus_storage_volume" "volume1_copy" {
}
```

## Example to create volume from backup file

```hcl
resource "incus_storage_volume" "volume_from_backup" {
name = "restored-volume"
pool = "default"
source_file = "/path/to/volume.backup"
}
```

## Argument Reference

* `name` - **Required** - Name of the storage volume.
Expand All @@ -52,6 +62,8 @@ resource "incus_storage_volume" "volume1_copy" {

* `source_volume` - *Optional* - The source volume from which the volume will be created. See reference below.

* `source_file` - *Optional* - Path to a backup file from which the volume will be created.

The `source_volume` block supports:

* `name` - **Required** - Name of the storage volume.
Expand Down

0 comments on commit 921774e

Please sign in to comment.