ncloud_ncs_put_object_lock_configuration
Configure Object Lock retention for an Ncloud Storage bucket: enable protection, set GOVERNANCE or COMPLIANCE mode with days or years, and preview changes with dryRun.
Instructions
[Ncloud Storage] Set the Object Lock configuration of a Ncloud Storage bucket (PUT /?object-lock). ObjectLockEnabled is always sent as Enabled; the default retention rule is optional — give mode plus exactly one of days (1-36,500) / years (1-100) to apply it to every new object, or omit mode to send no default retention. 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. Use dryRun=true to preview the XML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Default retention period in days, 1-36,500 (with mode; exactly one of days / years) | |
| mode | No | Default retention mode GOVERNANCE | COMPLIANCE. Omit to set no default retention rule | |
| years | No | Default retention period in years, 1-100 (with mode; exactly one of days / years) | |
| dryRun | No | If true, returns the XML that would be sent without applying | |
| confirm | No | Required (true) when mode=COMPLIANCE, because COMPLIANCE retention is irreversible | |
| bucketName | Yes | Name of the Ncloud Storage bucket |