Sha256: ea2f3110a78d424d6ce77a9d19425b6a7700b6a2d4ab7a3e0e47bd22cd28aae9

Contents?: true

Size: 899 Bytes

Versions: 9

Compression:

Stored size: 899 Bytes

Contents

module Fog
  module Rackspace
    class CDN
      class Real

        # List existing cdn-enabled storage containers
        #
        # ==== Parameters
        # * options<~Hash>:
        #   * 'enabled_only'<~Boolean> - Set to true to limit results to cdn enabled containers
        #   * 'limit'<~Integer> - Upper limit to number of results returned
        #   * 'marker'<~String> - Only return objects with name greater than this value
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #     * container<~String>: Name of container
        def get_containers(options = {})
          response = request(
            :expects  => [200, 204],
            :method   => 'GET',
            :path     => '',
            :query    => {'format' => 'json'}.merge!(options)
          )
          response
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.8.1 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.8.0 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.7.2 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.7.1 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.7.0 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.6.0 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.5.3 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.5.2 lib/fog/cdn/requests/rackspace/get_containers.rb