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: Ruihua Wen <[email protected]>
  • Loading branch information
SpiffyEight77 committed Nov 21, 2024
1 parent d086060 commit 99c2b6d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/resources/storage_bucket.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ resource "incus_storage_bucket" "bucket1" {
}
```

## Example to create bucket from backup file

```hcl
resource "incus_storage_bucket" "bucket_from_backup" {
name = "restored-bucket"
pool = "default"
source_file = "/path/to/backup.tar.gz"
}
```

## Argument Reference

* `name` - **Required** - Name of the storage bucket.
Expand All @@ -35,6 +45,8 @@ resource "incus_storage_bucket" "bucket1" {

* `target` - *Optional* - Specify a target node in a cluster.

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


## Attribute Reference

Expand Down

0 comments on commit 99c2b6d

Please sign in to comment.