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:

    1. Click the Tags link.

    2. Click the Add button.

    3. In the blank row that was added:

      • Enter cpln/protected for the Key.
      • Enter true for the Value.
    4. Click Save.

  • Remove Tag

    From nearly any resource within the Console UI, follow these steps to remove the protected tag:

    1. Click the Tags link.
    2. Click the Remove link corresponding to the row that contains the cpln/protected tag.
    3. Click Save.

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.

  • Add tag
copy
cpln workload tag WORKLOAD_NAME --tag cpln/protected=true --gvc GVC_NAME --org ORG_NAME
  • Remove Tag
copy
cpln workload tag WORKLOAD_NAME --remove cpln/protected --gvc GVC_NAME --org ORG_NAME
Copyright © 2024 Control Plane Corporation. All rights reserved. Revision 971d27e5
Contents