@@ -1005,6 +1005,46 @@ True. Instances created from this service offering will have their disks reset
1005
1005
upon reboot. See `“Creating a New Compute
1006
1006
Offering” <service_offerings.html#creating-a-new-compute-offering> `_.
1007
1007
1008
+ Volume delete protection
1009
+ ~~~~~~~~~~~~~~~~~~~~~~~~
1010
+
1011
+ CloudStack protects volumes from accidental deletion using a delete protection
1012
+ flag, which is false by default. When delete protection is enabled for a volume,
1013
+ it cannot be deleted through the UI or API. It can only be deleted after
1014
+ removing delete protection from the volume.
1015
+
1016
+ Delete protection can be enabled for a volume via updateVirtualMachine API.
1017
+
1018
+ .. code :: bash
1019
+
1020
+ cmk update volume id=< volume id> deleteprotection=true
1021
+
1022
+ To remove delete protection, use the following command:
1023
+
1024
+ .. code :: bash
1025
+
1026
+ cmk update volume id=< volume id> deleteprotection=false
1027
+
1028
+ To enable/disable delete protection for a volume using the UI, follow these steps:
1029
+
1030
+ #. Log in to the CloudStack UI as a User or admin.
1031
+
1032
+ #. In the navigation menu on the left, click Volumes under Storage.
1033
+
1034
+ #. Choose the volume for which you want to enable/disable delete protection.
1035
+
1036
+ #. Click on the Edit button |EditButton.png |
1037
+
1038
+ #. Toggle the Delete Protection switch to enable or disable delete protection.
1039
+
1040
+ #. Click Ok button to save the changes.
1041
+
1042
+ .. note ::
1043
+ The volume delete protection is only considered when the volume is being
1044
+ deleted through the UI or via `deleteVolume ` or `destroyVolume ` API. If the
1045
+ domain/project is deleted, the volumes under the domain/project will be
1046
+ deleted irrespective of the delete protection status.
1047
+
1008
1048
1009
1049
Volume Deletion and Garbage Collection
1010
1050
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1614,6 +1654,8 @@ as well if they wish. Attaching and detaching a disk is not allowed on a Shared
1614
1654
:alt: Object store file upload
1615
1655
.. |delete-button.png| image:: /_static/images/delete-button.png
1616
1656
:alt: Delete button
1657
+ .. |EditButton.png| image:: /_static/images/edit-icon.png
1658
+ :alt: button to edit the properties of a volume
1617
1659
.. |upload-button.png| image:: /_static/images/upload-button.png
1618
1660
:alt: Upload button
1619
1661
.. |adding-local-pool-via-ui.png| image:: /_static/images/adding-local-pool-via-ui.png
0 commit comments