Skip to content

Commit df87c90

Browse files
committed
added two more examples
1 parent 680b782 commit df87c90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

examples/storage_volumes.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@
5454
datacrunch.volumes.increase_size(nvme_volume_id, 300)
5555

5656
# clone volume
57-
datacrunch.volumes.clonse(nvme_volume_id)
57+
datacrunch.volumes.clone(nvme_volume_id)
58+
59+
# clone volume and give it a new name and storage type (from NVMe to HDD)
60+
datacrunch.volumes.clone(nvme_volume_id, name="my-cloned-volume", type=HDD)
61+
62+
# clone multiple volumes at once
63+
datacrunch.volumes.clone([nvme_volume_id, hdd_volume_id])
5864

5965
# delete volumes
6066
datacrunch.volumes.delete([nvme_volume_id, hdd_volume_id])

0 commit comments

Comments
 (0)