2010-10-20 19:58:15 -04:00
|
|
|
module Fog
|
|
|
|
module Rackspace
|
2010-11-05 14:37:12 -04:00
|
|
|
class CDN
|
2010-10-20 19:58:15 -04:00
|
|
|
class Real
|
|
|
|
|
|
|
|
# List cdn properties for a container
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * container<~String> - Name of container to retrieve info for
|
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * headers<~Hash>:
|
|
|
|
# * 'X-CDN-Enabled'<~Boolean> - cdn status for container
|
|
|
|
# * 'X-CDN-URI'<~String> - cdn url for this container
|
|
|
|
# * 'X-TTL'<~String> - integer seconds before data expires, defaults to 86400 (1 day)
|
|
|
|
# * 'X-Log-Retention'<~Boolean> - ?
|
|
|
|
# * 'X-User-Agent-ACL'<~String> - ?
|
|
|
|
# * 'X-Referrer-ACL'<~String> - ?
|
2010-11-05 14:37:12 -04:00
|
|
|
def head_container(container)
|
2010-11-01 14:50:30 -04:00
|
|
|
response = request(
|
2010-10-20 19:58:15 -04:00
|
|
|
:expects => 204,
|
|
|
|
:method => 'HEAD',
|
|
|
|
:path => container,
|
|
|
|
:query => {'format' => 'json'}
|
|
|
|
)
|
|
|
|
response
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|