HCP System Management Help
You use the HTTP COPY method with the Destination header to copy an object from one location to another. The source and target locations can be two different containers within the same tenant, or they can be the same container. The source object is the object you're copying. The target object is the object that results from the copy operation.
To copy an object, you need read permission for the container containing the source object or for the source object itself and write permission for the target container.
When copying an object, you can specify a name for the target object that's different from the name of the source object.
Regardless of whether or not versioning is enabled, only the latest version of a source object is taken for the copy.
By default, HCP copies custom metadata for the source object to the target object. However, in the copy request, you can specify additional custom metadata to be used for the target object. To apply this custom metadata to the target object, you need to include the X-Object-Meta-name header in the copy request.
Copying an object to itself
If the target object you specify in a copy request identifies an existing object , HCP replaces the existing object with the new copy. If versioning is disabled the operation fails and a 409 (Conflict) HTTP status code appears.
Trademarks and Legal Disclaimer
© 2017 Hitachi Vantara Corporation. All rights reserved.