Object Storage

Set bucket default retention

put/object-storage/buckets/{bucket_uuid}/object-lock

Change or remove the default retention of a bucket created with Object Lock. It applies to the objects without a retention of their own; lowering or removing it never frees what is already written under compliance. A compliance default retention can only be kept or lengthened.

Autorización

Authorization
Authorization*string

Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.

Parámetros de ruta

bucket_uuid*string

Cuerpo de la petición

Change or remove the default retention of a bucket with Object Lock.

application/jsonObligatorio
default_retention*ObjectStorageLockRetention | null

The new default retention, or null to remove it

Propiedades (3)
mode*string

governance: keys with the bypass permission can still delete; compliance: nobody can

Valores"governance""compliance"
days?integer | null

Retention in days

years?integer | null

Retention in years

accept_object_lock_terms?boolean

Required (true) when the change turns compliance on or lengthens the retention

Por defectofalse

Respuestas

Successful Response

application/json

detail*string