Object protection (object_protection) log entry fields

Table 1. Object protection log entry fields
Field name Type Required Description
retention_period long Yes

For non-negative values, retention_period denotes the retention period of the object in milliseconds. For negative values, retention_period is not a period of time, but rather a special case indicator:

-1: indefinite retention period

-2: permanent retention period

The value of retention_period must fall between the minimum_retention and maximum_retention setting of the bucket in which it is stored. To determine the expiration time of the retention_period, add the retention_period to the last_modified field.

legal_hold_count int Yes Denotes the number of legal holds.
legal_hold LegalHold for POST LEGAL_HOLD (add or remove), PUT OBJECT with legal hold Information about the relevant legal hold, with three sub-fields

action - ObjectRetentionAction (enum) - ADD or REMOVE; always present

id - the id of the current legal hold; always present

timestamp - the timestamp of the legal; present if adding a legal hold