使用 jclouds API 仅更新 SoftLayer 中对象的元数据

Updating only metadata of an object in SoftLayer using jclouds API

我只想使用 jclouds API 更新存储在 SoftLayer 中的对象的元数据。该对象已存在,因此不想再次上传。

使用服务器端副本更新元数据:

blobStore.copyBlob(containerName, blobName, containerName, blobName, CopyOptions.builder()
        .contentMetadata(...)
        .userMetadata(...)
        .build());