Copying an Object

This section describes how to copy an object in OBS. You can copy an object of up to 5 GB by an atomicity operation. To copy an object of larger than 5 GB, you must use multipart upload APIs. Specifically, this operation allows you to:

  • Create another copy for an object.
  • Rename an object by creating a copy for it and deleting the source object.
  • Modify the metadata of an object. Every OBS object has metadata, which is a key-value pair. After the object is uploaded, you cannot modify its metadata. The only way to modify object metadata is to create an object copy and set metadata. In the copy operation, set the target object to the same as the source object.