Operation-based query results

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

HCP maintains records of object creation, deletion, disposition, prune, and purge operations (also called transactions). These records can be retrieved through operation-based queries. The HCP system configuration determines how long HCP keeps deletion, disposition, prune, and purge records. HCP keeps creation records for as long as the object exists in the repository.

Each record has a change time. For creation records, this is the time the object was last modified. For deletion, disposition, prune, and purge records, the change time identifies the time of the operation.

Records returned while versioning is enabled

If versioning is enabled for an HCP namespace, the types of records that are returned by an operation-based query depend on the query request parameters. However, the following the rules determine which operation records can be returned:

  • HCP returns a creation record for the current version of an object, as long as this version is not a delete marker.
  • HCP returns creation records for old versions of an object.
  • HCP returns creation records for versions of both deleted objects and disposed objects.
  • HCP returns a single purge record for each purge operation. It does not return records for the individual versions of the purged object.
  • HCP returns deletion, disposition, prune, and purge records until it removes them from the system.

Records returned while versioning is disabled

If you create and then delete an object while versioning is disabled, HCP keeps only the deletion record and not the creation record. Operation-based queries return the deletion record until HCP removes that record from the system.

If you create an object and then HCP disposes of that object while versioning is disabled, HCP keeps only the disposition record and not the creation record. Operation-based queries return the disposition record until HCP removes that record from the system.

If versioning was enabled at an earlier time but is no longer enabled, operation-based queries continue to return records of all operations performed during that time. If you delete an object while versioning is disabled or if HCP disposes of an object while versioning is disabled, operation-based queries do not return any creation records for that object, regardless of whether versioning was enabled when it was created.