Resource Protection
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.
Using the Console UI
-
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:
- Enter
cpln/protected
for theKey
. - Enter
true
for theValue
.
- Enter
-
Click
Save
.
-
-
Remove Tag
From nearly any resource within the Console UI, follow these steps to remove the protected tag:
- Click the
Tags
link. - Click the
Remove
link corresponding to the row that contains thecpln/protected
tag. - Click
Save
.
- Click the
Using the CLI
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.