Control Plane prevents deletion of any resource that has the cpln/protected tag set to true.
Use this tag to safeguard critical resources such as workloads and secrets from accidental deletion. To delete a protected resource, first remove the tag or change its value from true.
Using the Console
Add tag
From nearly any resource within the Console, follow these steps to add the protected tag:
- Click
Tags.
- Click the
Add button.
- In the blank row that was added:
- Enter
cpln/protected for the Key.
- Enter
true for the Value.
- Click
Update.
Remove tag
From nearly any resource within the Console, follow these steps to remove the protected tag:
- Click
Tags.
- Click the delete icon for the row that contains the
cpln/protected tag.
- Click
Update.
You can also toggle resource protection by clicking the lock switch to the right of the Actions button.
Using the CLI
Most resource commands support the tag subcommand.
The examples below add and remove the cpln/protected tag from a workload. Substitute workload with the target resource kind.
cpln workload tag WORKLOAD_NAME --tag cpln/protected=true --gvc GVC_NAME --org ORG_NAME