Request Parameters for Copying an Object
| Parameter | Type | Mandatory (Yes/No) | Description |
|---|---|---|---|
| options | const obs_options * | Yes | The context of the requested bucket. Refer to Configuring option (SDK for C) to set the AK, SK, endpoint, bucket, timeout, and temporary credentials through obs_options. |
| key | char * | Yes | Object name |
| version_id | char * | No | Object version ID |
| object_info | obs_copy_destination_object_info * | Yes | Information about the object copy. |
| object_info->destination_bucket | char * | Yes | Bucket where the destination object is located |
| object_info->destination_key | char * | Yes | Destination object name |
| object_info->last_modified_return | int64_t * | Yes | Latest time when the object was modified |
| object_info->etag_return_size | int | Yes | Cache size of ETag |
| object_info->etag_return | char * | Yes | Cache of ETag |
| is_copy | unsigned int | Yes | Indicates whether the metadata of the destination object is copied from the source object or replaced with the metadata contained in the request. |
| put_properties | No | Properties of the uploaded object | |
| encryption_params | No | Server-side encryption configuration | |
| handler | Yes | A callback structure where all members are pointers to callback functions, used to set the callback functions that handle response data. You can set a callback function to copy the response data from the server to your custom callback_data. | |
| callback_data | void * | No | Custom callback data. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot