Sha256: fa742fda0fda7d463fd01980243dffc8222e1672341a73395ae6a8eda4af5738

Contents?: true

Size: 979 Bytes

Versions: 50

Compression:

Stored size: 979 Bytes

Contents

module Fog
  module CDN
    class Rackspace
      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> - ?
        def head_container(container)
          response = request(
            :expects  => 204,
            :method   => 'HEAD',
            :path     => container,
            :query    => {'format' => 'json'}
          )
          response
        end

      end
    end
  end
end

Version data entries

50 entries across 50 versions & 15 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/rackspace/requests/cdn/head_container.rb
fog-nirvanix-1.8.1 lib/fog/rackspace/requests/cdn/head_container.rb
fog-parser-fix-1.6.1 lib/fog/rackspace/requests/cdn/head_container.rb
fog-test-again-1.6.0 lib/fog/rackspace/requests/cdn/head_container.rb
fog-parser-fix-1.6.0 lib/fog/rackspace/requests/cdn/head_container.rb
fog-1.9.0 lib/fog/rackspace/requests/cdn/head_container.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/rackspace/requests/cdn/head_container.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/rackspace/requests/cdn/head_container.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/rackspace/requests/cdn/head_container.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/rackspace/requests/cdn/head_container.rb
fog-sgonyea-1.8.1 lib/fog/rackspace/requests/cdn/head_container.rb
fog-1.8.0 lib/fog/rackspace/requests/cdn/head_container.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/rackspace/requests/cdn/head_container.rb
fog-1.7.0 lib/fog/rackspace/requests/cdn/head_container.rb
fog-1.6.0 lib/fog/rackspace/requests/cdn/head_container.rb
fog-1.5.0 lib/fog/rackspace/requests/cdn/head_container.rb
rackspace-fog-1.4.2 lib/rackspace-fog/rackspace/requests/cdn/head_container.rb
fog-1.4.0 lib/fog/rackspace/requests/cdn/head_container.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/cdn/head_container.rb
michiels-fog-1.3.1 lib/fog/rackspace/requests/cdn/head_container.rb