ncloud_ncs_put_bucket_lifecycle
Set or replace Ncloud Storage bucket lifecycle rules for current/noncurrent version transitions and expiration. mergeWithExisting preserves omitted rules; dryRun previews changes.
Instructions
[Ncloud Storage] Set lifecycle rules on a Ncloud Storage bucket (PUT /?lifecycle). Supports current-version transitions (ONEZONE_IA | DEEP_ARCHIVE) and expiration by days or date, plus NoncurrentVersionTransition / NoncurrentVersionExpiration for versioning-enabled buckets. ⚠️ The API replaces the ENTIRE configuration on every call — a rule left out disappears. Default mergeWithExisting=false replaces (the response lists the rules that were removed); mergeWithExisting=true reads the current rules first and keeps those whose id you did not resend. Use dryRun=true to preview the exact XML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | Lifecycle rules to apply | |
| dryRun | No | If true, returns the XML that would be sent and what would change, without applying | |
| bucketName | Yes | Name of the bucket to set lifecycle configuration for | |
| mergeWithExisting | No | true: keep existing rules whose id is not in `rules` (same-id rules are replaced). false (default): the configuration becomes exactly `rules` |