Sha256: 286c1795e012b27d12caf24d099d871b7c15101ef020df9b062a547c422e8a4d

Contents?: true

Size: 899 Bytes

Versions: 50

Compression:

Stored size: 899 Bytes

Contents

module Fog
  module CDN
    class Rackspace
      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

50 entries across 50 versions & 15 rubygems

Version Path
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/cdn/get_containers.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/cdn/get_containers.rb
fog-1.0.0 lib/fog/rackspace/requests/cdn/get_containers.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/cdn/requests/rackspace/get_containers.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.11.0 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.10.0 lib/fog/cdn/requests/rackspace/get_containers.rb
fog4encbs-0.9.0.1 lib/fog/cdn/requests/rackspace/get_containers.rb
fog4encbs-0.9.0 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.9.0 lib/fog/cdn/requests/rackspace/get_containers.rb