When you create a namespace, you specify whether versioning is enabled or disabled for it. Once the namespace exists, you can change this setting at any time except while the WebDAV, CIFS, NFS, or SMTP protocol is enabled for the namespace.
If a tenant is not allowed to create namespaces with versioning enabled, the versioning setting is not available for its namespaces.
When you enable versioning, you can also enable version pruning. If versioning has ever been enabled for a namespace, you can change the pruning settings for the namespace at any time regardless of whether versioning is currently enabled.
HCP maintains a transaction log in which it records create, delete, purge, prune, and disposition operations performed on objects. HCP uses this log to respond to operation-based queries issued through the metadata query API.
For any given namespace, you can choose whether HCP should keep records of deletion operations (delete, purge, prune, and disposition) if the namespace has ever had versioning enabled. The amount of time for which HCP keeps deletion records is determined by the system configuration.
In a namespace that was replicated but is not currently selected for replication, the following sequence of actions can cause objects that were deleted to reappear:
- You deselect the option to keep records of deletion operations.
- You reselect the namespace for replication.
- To view the versioning settings for a namespace, you need the monitor or administrator role.
- To change the versioning settings for a namespace, you need the administrator role.