The versioning policy determines whether HCP can create multiple versions of objects. The policy is set at the namespace level and applies only to HCP namespaces.
The versioning policy consists of two settings:
- A versioning setting, which is either on or off. When versioning is on, an attempt to store an object that already exists in the target namespace results in the creation of a new version of the object. When versioning is off, an attempt to store such an object results in an error.
- A version pruning setting. This setting is the amount of time HCP should wait after a version is created before automatically deleting it. HCP automatically deletes only old versions of objects and never automatically deletes the most recent version.
If the effective permission mask for the namespace prohibits deletions, HCP does not automatically prune object versions.