(Softlayer API)如何在softlayer中设置云存储的生存时间

时间:2016-04-15 01:20:10

标签: cdn ibm-cloud-infrastructure

我提到这个文件, http://sldn.softlayer.com/reference/Object-Storage-CDN/Set-Time-Live-TTL

我的请求标题如下所示但是我收到400条错误消息“NetworkError:400 Bad Request - http://localhost:8080/cloud/objectstorage

'X-Context' : 'cdn',
'X-Cdn-Ttl' : 3600,
'Accept' : 'application/json',
'X-Auth-Token' : token

enter image description here

1 个答案:

答案 0 :(得分:0)

试试这个卷曲:

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

问候