@@ -1005,6 +1005,42 @@ 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 provides a feature to protect volumes from accidental deletion. When
1012+ delete protection is enabled for a volume, it cannot be deleted through the
1013+ UI or API. It can only be delete after removing delete protection from the
1014+ volume.
1015+
1016+ Delete protection can be enabled for a volume via updateVirtualMachine API.
1017+ .. code :: bash
1018+
1019+ cmk update volume id=< volume id> deletionprotection=true
1020+
1021+ To remove delete protection, use the following command:
1022+ .. code :: bash
1023+
1024+ cmk update volume id=< volume id> deletionprotection=false
1025+
1026+ To enable/disable delete protection for a volume using the UI, follow these steps:
1027+
1028+ #. Log in to the CloudStack UI as a User or admin.
1029+
1030+ #. In the navigation menu on the left, click Volumes under Storage.
1031+
1032+ #. Choose the volume for which you want to enable/disable delete protection.
1033+
1034+ #. Click on the Edit button |editbutton.png |
1035+
1036+ #. Toggle the Delete Protection switch to enable or disable delete protection.
1037+
1038+ #. Click Ok button to save the changes.
1039+
1040+ .. note ::
1041+ If the volume is part of another ACS service like autoscaling groups or CKS,
1042+ delete protection is ignored.
1043+
10081044
10091045Volume Deletion and Garbage Collection
10101046~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments