Method: Fog::Storage::OpenStack::Real#post_set_meta_temp_url_key
- Defined in:
- lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
#post_set_meta_temp_url_key(key) ⇒ Object
Set the account wide Temp URL Key. This is a secret key that’s used to generate signed expiring URLs.
Once the key has been set with this request you should create new Storage objects with the :openstack_temp_url_key option then use the get_object_https_url method to generate expiring URLs.
*** CAUTION *** changing this secret key will invalidate any expiring URLS generated with old keys.
Parameters
-
key<~String> - The new Temp URL Key
Returns
-
response<~Excon::Response>
See Also
docs.rackspace.com/files/api/v1/cf-devguide/content/Set_Account_Metadata-d1a4460.html
23 24 25 26 27 28 29 |
# File 'lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb', line 23 def (key) request( :expects => [201, 202, 204], :method => 'POST', :headers => {'X-Account-Meta-Temp-Url-Key' => key} ) end |