tencent cloud

All product documents
Cloud Object Storage
Simple Copy
Last updated: 2024-03-25 15:28:24
Simple Copy
Last updated: 2024-03-25 15:28:24

Use Cases

The copy operation creates a copy of a COS object of up to 5 GB in a single request. To copy an object over 5 GB, use the multipart copy API. With the copy operation, you can:
Create a copy of an object.
Rename an object by copying it and deleting the original one.
Modify the storage class of an object. You can select the same object key as both the source and target and modify the storage class.
Copy objects across different COS regions.
Modify object metadata. You can select the same object key as both the source and target and modify object metadata.
In the copy operation, the metadata of the source object is inherited by default, while the creation date is subject to the creation date of the target object.
Note:
Copy and paste is not supported for objects in the ARCHIVE storage class.
Objects in MAZ buckets cannot be replicated to an OAZ bucket.
A sub-account should be granted the PutObject, GetObject, and GetObjectACL permissions to copy objects.

How to Use

Using COS console

Copy objects in the COS console. For more information, see Copying Objects in Console Guide.

Using the REST API

Use REST APIs to initiate an object copy request. For more information, see PUT Object - Copy.

Using SDKs

Directly call the object copy method in the SDK. For more information, see the SDK documentation for the corresponding programming language below:
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon