Skip to content

Instantly share code, notes, and snippets.

@parlarjb
Created August 29, 2014 19:02
Show Gist options
  • Save parlarjb/63cf81802f1f1bfcbc22 to your computer and use it in GitHub Desktop.
Save parlarjb/63cf81802f1f1bfcbc22 to your computer and use it in GitHub Desktop.
At mycloud.rackspace.com, each file inside of a Container has an actions widget. One of the items in the widget is "Edit Headers".
![](https://dl.dropboxusercontent.com/u/2384988/Screen%20Shot%202014-08-29%20at%202.58.28%20PM.png)
The available headers are:
![](https://dl.dropboxusercontent.com/u/2384988/Screen%20Shot%202014-08-29%20at%203.00.05%20PM.png)
Containers themselves also have an actions widget, but that widget does *not* include "Edit Headers".
I'd like to be able to set these headers via the API. The only reference I can find to them anywhere in the docs is [here](http://docs.rackspace.com/files/api/v1/cf-devguide/content/CORS_Container_Header-d1e1300.html)
Note though that those docs state that `X-Container-Meta-Access-Control-Allow-Origin`, etc., are set on the container, not on the object.
When I set one of the headers via the web panel, and then do a `getFile` on the file with [the pkgcloud library](https://github.com/pkgcloud/pkgcloud/blob/master/docs/providers/rackspace/storage.md#file-model), the data coming back doesn't show the header anywhere.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment