ncloud_ncs_copy_object
Copy an object between Ncloud Storage buckets or keys, optionally changing its storage class. Supports versioning, encryption, and metadata replacement.
Instructions
[Ncloud Storage] Copy an object within Ncloud Storage (PUT /{key} with x-amz-copy-source). Optionally change the storage class (STANDARD (default): Standard Class | ONEZONE_IA: One Zone-IA (Infrequent Access) Class | DEEP_ARCHIVE: Archive Class) — copying an object onto itself with a new class is how an existing object's class is changed. Source objects up to 5 GB; larger ones need ncloud_ncs_upload_part_copy. A DEEP_ARCHIVE source must be restored first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Destination object key (path) | |
| bucketName | Yes | Destination bucket name | |
| copySource | Yes | Source object as {sourceBucket}/{sourceKey} (a leading slash is tolerated) | |
| contentType | No | Content-Type for the copy (applied with metadataDirective=REPLACE) | |
| storageClass | No | x-amz-storage-class for the copy — STANDARD (default): Standard Class | ONEZONE_IA: One Zone-IA (Infrequent Access) Class | DEEP_ARCHIVE: Archive Class. Omit to use STANDARD | |
| objectLockMode | No | x-amz-object-lock-mode for the copy | |
| metadataDirective | No | COPY (default) keeps the source metadata; REPLACE uses the headers given in this request (contentType) | |
| copySourceVersionId | No | Version ID of the source object to copy (versioning-enabled buckets) | |
| objectLockLegalHold | No | x-amz-object-lock-legal-hold for the copy — ON | OFF | |
| serverSideEncryption | No | x-amz-server-side-encryption for the copy — AES256 | aws:kms | |
| objectLockRetainUntilDate | No | x-amz-object-lock-retain-until-date for the copy, ISO 8601 |