Sha256: dcbf1d0182063eb00492701f8a471edd0209465a78e6b39a97563f1d9239f3ef

Contents?: true

Size: 1.19 KB

Versions: 25

Compression:

Stored size: 1.19 KB

Contents

module Fog
  module AWS
    class RDS
      class Real

        require 'fog/aws/parsers/rds/describe_db_instances'

        # Describe all or specified load db instances
        # http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/API_DescribeDBInstances.html
        # ==== Parameters
        # * DBInstanceIdentifier <~String> - ID of instance to retrieve information for. if absent information for all instances is returned
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def describe_db_instances(identifier=nil, opts={})
          params = {}
          params['DBInstanceIdentifier'] = identifier if identifier
          if opts[:marker]
            params['Marker'] = opts[:marker]
          end
          if opts[:max_records]
            params['MaxRecords'] = opts[:max_records]
          end
          
          request({
            'Action'  => 'DescribeDBInstances',
            :parser   => Fog::Parsers::AWS::RDS::DescribeDBInstances.new
          }.merge(params))
        end

      end

      class Mock

        def describe_db_instances(identifier=nil, opts={})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

25 entries across 25 versions & 5 rubygems

Version Path
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_instances.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_instances.rb
fog_tractical-1.1.4 lib/fog/aws/requests/rds/describe_db_instances.rb
fog_tractical-1.1.3 lib/fog/aws/requests/rds/describe_db_instances.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_instances.rb
fog-1.1.1 lib/fog/aws/requests/rds/describe_db_instances.rb
fog-1.1.0 lib/fog/aws/requests/rds/describe_db_instances.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_instances.rb
tag-fog-1.0.1 lib/fog/aws/requests/rds/describe_db_instances.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_instances.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_instances.rb
fog-1.0.0 lib/fog/aws/requests/rds/describe_db_instances.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_instances.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_instances.rb
fog-0.11.0 lib/fog/aws/requests/rds/describe_db_instances.rb
fog-0.10.0 lib/fog/aws/requests/rds/describe_db_instances.rb
fog4encbs-0.9.0.1 lib/fog/aws/requests/rds/describe_db_instances.rb
fog4encbs-0.9.0 lib/fog/aws/requests/rds/describe_db_instances.rb
fog-0.9.0 lib/fog/aws/requests/rds/describe_db_instances.rb
fog-0.8.2 lib/fog/aws/requests/rds/describe_db_instances.rb