ncloud_ncs_put_object_retention
Set or remove Object Lock retention on Ncloud Storage objects, supporting GOVERNANCE and irreversible COMPLIANCE modes with bypass and confirm options.
Instructions
[Ncloud Storage] Set or clear the Object Lock retention of an object (PUT /{key}?retention). GOVERNANCE can later be shortened/removed with bypassGovernanceRetention; COMPLIANCE can never be shortened or removed before retainUntilDate — it requires confirm=true. clear=true sends an empty Retention to remove retention (GOVERNANCE only, with bypass). The bucket must have Object Lock enabled; retainUntilDate must be in the future.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Object key (path) | |
| mode | No | GOVERNANCE | COMPLIANCE (required unless clear=true) | |
| clear | No | true: remove the retention (sends an empty Retention). Needs bypassGovernanceRetention for GOVERNANCE; impossible for COMPLIANCE | |
| confirm | No | Required (true) when mode=COMPLIANCE, because COMPLIANCE retention is irreversible | |
| versionId | No | Version ID of the object (versioning-enabled buckets). Omit for the current version | |
| bucketName | Yes | Name of the Ncloud Storage bucket | |
| retainUntilDate | No | ISO 8601 date in the future, e.g. 2027-01-01T00:00:00Z (required unless clear=true) | |
| bypassGovernanceRetention | No | Send x-amz-bypass-governance-retention: true to shorten/remove an existing GOVERNANCE retention |