ncloud_ncs_put_object_lock_configuration
Sets default Object Lock retention on a Ncloud Storage bucket, applying GOVERNANCE or COMPLIANCE mode for a specified period to all new objects. Requires confirm=true for irreversible COMPLIANCE mode.
Instructions
[Ncloud Storage] Set the Object Lock default retention of a Ncloud Storage bucket (PUT /?object-lock): every new object gets the given mode for the given period. GOVERNANCE can be overridden by users with bypass permission; COMPLIANCE cannot be shortened or removed by anyone until it expires — it requires confirm=true. The bucket must have been created with objectLockEnabled=true. Give exactly one of days / years. Note: the official per-operation page was unavailable when this tool was written; the request follows the S3 shape (the read side, GET /?object-lock, is live-confirmed; this write side is not yet).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Default retention period in days (exactly one of days / years) | |
| mode | Yes | GOVERNANCE | COMPLIANCE | |
| years | No | Default retention period in years (exactly one of days / years) | |
| confirm | No | Required (true) when mode=COMPLIANCE, because COMPLIANCE retention is irreversible | |
| bucketName | Yes | Name of the Ncloud Storage bucket |