(Softlayer API) 如何在softlayer中设置云存储的生存时间
(Softlayer API) How to set Time to Live in cloud storage in softlayer
我参考了这份文件,
http://sldn.softlayer.com/reference/Object-Storage-CDN/Set-Time-Live-TTL
我的请求 headers 如下所示,但我收到此消息的 400 错误 "NetworkError: 400 Bad Request - http://localhost:8080/cloud/objectstorage"
'X-Context' : 'cdn',
'X-Cdn-Ttl' : 3600,
'Accept' : 'application/json',
'X-Auth-Token' : token
试试这个卷曲:
curl -i -XPOST -H "X-Cdn-Ttl: 3600" -H "X-Context: cdn" -H "X-Auth-Token: AUTH_XXXX" https://dal05.objectstorage.softlayer.net/v1/AUTH_6d6s56a-1665-4135-b145-8584d3427299/407608/mycontainer
Replace your token, URL
The value 407608 is the ID of your account
mycontainer is the name of the container you wish to edit the Time
此致
我参考了这份文件, http://sldn.softlayer.com/reference/Object-Storage-CDN/Set-Time-Live-TTL
我的请求 headers 如下所示,但我收到此消息的 400 错误 "NetworkError: 400 Bad Request - http://localhost:8080/cloud/objectstorage"
'X-Context' : 'cdn',
'X-Cdn-Ttl' : 3600,
'Accept' : 'application/json',
'X-Auth-Token' : token
试试这个卷曲:
curl -i -XPOST -H "X-Cdn-Ttl: 3600" -H "X-Context: cdn" -H "X-Auth-Token: AUTH_XXXX" https://dal05.objectstorage.softlayer.net/v1/AUTH_6d6s56a-1665-4135-b145-8584d3427299/407608/mycontainer
Replace your token, URL
The value 407608 is the ID of your account
mycontainer is the name of the container you wish to edit the Time
此致