The Control Plane platform will prevent the deletion of resources with the cpln/protected
tag set to true
.
This mechanism gives you an added layer of protection against accidental deletion of critical resources such as workloads, secrets, etc.
To delete a resource with a cpln/protected
tag set to true
, change the value from true
or remove the tag. Only then will the platform allow you to proceed with the deletion.
Add Tag
From nearly any resource within the Console UI, follow these steps to add the protected tag:
Click the Tags
link.
Click the Add
button.
In the blank row that was added:
cpln/protected
for the Key
.true
for the Value
.Click Save
.
Remove Tag
From nearly any resource within the Console UI, follow these steps to remove the protected tag:
Tags
link.Remove
link corresponding to the row that contains the cpln/protected
tag.Save
.Nearly every CLI command has the tag
subcommand.
Follow the examples below that target a workload to add and remove the cpln/protected
tag. Substitute workload
with the target resource.
copycpln workload tag WORKLOAD_NAME --tag cpln/protected=true --gvc GVC_NAME --org ORG_NAME
copycpln workload tag WORKLOAD_NAME --remove cpln/protected --gvc GVC_NAME --org ORG_NAME