Ask Your Question
0

Removing the TTL of an object

asked 2012-06-05 11:38:07 -0500

According to http://docs.openstack.org/api/openstack-object-storage/1.0/content/Expiring_Objects-e1e3228.html (http://docs.openstack.org/api/opensta...) it is possible to add a TTL to an existing object. But nothing is said about removing a TTL from an object.

Is it possible to make a temporary object permanent?

edit retag flag offensive close merge delete

9 answers

Sort by ยป oldest newest most voted
0

answered 2012-07-07 09:48:08 -0500

Bump.

edit flag offensive delete link more
0

answered 2012-07-23 19:18:30 -0500

Thank you!

edit flag offensive delete link more
0

answered 2012-07-23 19:18:38 -0500

Thanks gholt, that solved my question.

edit flag offensive delete link more
0

answered 2012-06-21 10:36:37 -0500

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

edit flag offensive delete link more
0

answered 2012-06-21 10:46:39 -0500

Bump.

edit flag offensive delete link more
0

answered 2012-07-07 09:21:40 -0500

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

edit flag offensive delete link more
0

answered 2012-07-23 09:17:28 -0500

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

edit flag offensive delete link more
0

answered 2012-07-23 09:21:39 -0500

Bump.

edit flag offensive delete link more
0

answered 2012-07-23 18:52:23 -0500

gholt gravatar image

You just POST to the object with no X-Delete-At and no X-Delete-After header:

Here's an object I have that's set to expire:

$ curl -I 'http://127.0.0.1:8080/v1/AUTH_test/container/object' -H 'X-Auth-Token: AUTH_tk06174d1ef50c4ad1821ac5b1642604d0'

... X-Delete-At: 1343155714

So then I POST to the object to update it's metadata (note: this example clears ALL metadata):

$ curl -X POST 'http://127.0.0.1:8080/v1/AUTH_test/container/object' -H 'X-Auth-Token: AUTH_tk06174d1ef50c4ad1821ac5b1642604d0'

And then check to see it has no X-Delete-At anymore:

$ curl -I 'http://127.0.0.1:8080/v1/AUTH_test/container/object' -H 'X-Auth-Token: AUTH_tk06174d1ef50c4ad1821ac5b1642604d0'

...

If you have other metadata on the object you wish to keep, you'll have to resubmit those headers with the POST.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-06-05 11:38:07 -0500

Seen: 60 times

Last updated: Jul 23 '12