擅长:python、mysql、java
<p>您需要设置标题“X-Delete-At:1417341600”,其中1417341600是Unix时间戳参见此处的更多信息<a href="http://docs.openstack.org/developer/swift/overview_expiring_objects.html" rel="nofollow">http://docs.openstack.org/developer/swift/overview_expiring_objects.html</a></p>
<p>使用Python客户端,可以使用update方法:
<a href="https://github.com/softlayer/softlayer-object-storage-python/blob/master/object_storage/storage_object.py#L210-L216" rel="nofollow">https://github.com/softlayer/softlayer-object-storage-python/blob/master/object_storage/storage_object.py#L210-L216</a></p>
<pre><code>sl_storage['myContainserName']['MyFileName'].update({'X-Delete-At':1417341600})
</code></pre>
<p>敬礼</p>