Preventing Accidental Deletion of SAP Cloud Infrastructure Service
Configure Object Store to prevent accidental deletion of objects.
When the preventDeletion parameter is set to true, the Object Store instance won't be deleted if objects are present in the SAP Cloud Infrastructure container.
To delete the service instance with preventDeletion enabled, delete all the objects in the SAP Cloud Infrastructure container first.
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
preventDeletion |
Boolean |
Yes |
Enables protection against deleting buckets with objects. |
Creating an Instance with preventDeletion Enabled
You can create an instance with preventDeletion enabled in one of the following ways:
-
Using SAP BTP cockpit, enter the following configuration in Parameters when creating an instance:
{"preventDeletion" : true}For more information on creating an instance in SAP BTP cockpit, see Creating Service Instances in Cloud Foundry. -
Using the cf CLI, enter the following command:
cf create-service <service_name> <plan_name> <service_instance_name> -c '{"preventDeletion" : true}'
Enabling preventDeletion on an Existing Instance
You can enable preventDeletion on an existing instance in one of the following ways:
-
Using SAP BTP cockpit, enter the following configuration in Parameters when updating an instance:
{"preventDeletion" : true}For more information on updating an instance in SAP BTP cockpit, see Updating Service Instances. -
Using the cf CLI, enter the following command:
cf update-service <service_instance_name> -c '{"preventDeletion" : true}'
Disabling preventDeletion on an Existing Instance
You can disable preventDeletion on an existing instance in one of the following ways:
-
Using SAP BTP cockpit, enter the following configuration in Parameters when updating an instance:
{"preventDeletion" : false}For more information on updating an instance in SAP BTP cockpit, see Updating Service Instances. -
Using the cf CLI, enter the following command:
cf update-service <service_instance_name> -c '{"preventDeletion" : false}'