tencent cloud

Feedback

Simple Copy

Last updated: 2022-05-01 10:16:36

    Overview

    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 upload 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 are not supported for objects in the ARCHIVE storage class.
    • A sub-account should be granted the PutObject, GetObject, and GetObjectACL permissions to copy objects.

    Directions

    Using COS console

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

    Using REST APIs

    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:

    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