The copy operation creates a copy of an object that is already stored in COS. You can create a copy of your object up to 5 GB in a single operation. To copy an object over 5 GB, you must use the multipart upload API. With the copy operation, you can:
In the copy operation, the metadata of the original object is inherited by default, but the creation date is subject to the new object.
- Copy and paste is not supported for objects in the archive storage class.
- For a sub-account to replicate an object, it should have permission to PutObject, GetObject, and GetObjectACL.
You can copy an object in the COS Console. For more information, see Copying Objects in Console Guide.
You can use the REST API directly to initiate an object copying request. For more information, see PUT Object - Copy.
You can directly call the object copying method in the SDK. For more information, see the SDK documentation for the corresponding programming language below: