@@ -1005,6 +1005,46 @@ True. Instances created from this service offering will have their disks reset
10051005upon reboot. See `“Creating a New Compute
10061006Offering” <service_offerings.html#creating-a-new-compute-offering> `_.
10071007
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> deletionprotection=true
1021+
1022+ To remove delete protection, use the following command:
1023+
1024+ .. code :: bash
1025+
1026+ cmk update volume id=< volume id> deletionprotection=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+
10081048
10091049Volume Deletion and Garbage Collection
10101050~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1515,6 +1555,8 @@ Deleting objects from a bucket
15151555 :alt: Object store file upload
15161556.. |delete-button.png| image:: /_static/images/delete-button.png
15171557 :alt: Delete button
1558+ .. |EditButton.png| image:: /_static/images/edit-icon.png
1559+ :alt: button to edit the properties of a volume
15181560.. |upload-button.png| image:: /_static/images/upload-button.png
15191561 :alt: Upload button
15201562.. |adding-local-pool-via-ui.png| image:: /_static/images/adding-local-pool-via-ui.png
0 commit comments