Skip to content

Commit

Permalink
add storage disk examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurVerrept committed Apr 11, 2024
1 parent a1354a5 commit 6472f46
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/data-sources/storage_disk.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ description: |-

Disk data source

## Example Usage

```terraform
data "cudo_storage_disk" "storage_disk_datasource" {
id = "my-disk"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down
10 changes: 9 additions & 1 deletion docs/resources/storage_disk.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ description: |-

Storage disk resource


## Example Usage

```terraform
resource "cudo_storage_disk" "my-storage-disk" {
data_center_id = "gb-bournemouth-1"
id = "my-disk"
size_gib = 100
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down
3 changes: 3 additions & 0 deletions examples/data-sources/cudo_storage_disk/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "cudo_storage_disk" "storage_disk_datasource" {
id = "my-disk"
}
5 changes: 5 additions & 0 deletions examples/resources/cudo_storage_disk/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resource "cudo_storage_disk" "my-storage-disk" {
data_center_id = "gb-bournemouth-1"
id = "my-disk"
size_gib = 100
}

0 comments on commit 6472f46

Please sign in to comment.