Sha256: b6909b46c8ca291094e11566676cb6bb41624cf57bab72843c7b4b0c8d53becc

Contents?: true

Size: 1.16 KB

Versions: 61

Compression:

Stored size: 1.16 KB

Contents

module Fog
  module Compute
    class AWS
      class Real
        require 'fog/aws/parsers/compute/describe_placement_groups'

        # Describe all or specified placement groups
        #
        # ==== Parameters
        # * filters<~Hash> - List of filters to limit results with
        #
        # === Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'requestId'<~String> - Id of request
        #     * 'placementGroupSet'<~Array>:
        #       * 'groupName'<~String> - Name of placement group
        #       * 'strategy'<~String> - Strategy of placement group
        #       * 'state'<~String> - State of placement group
        #
        # {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribePlacementGroups.html]
        def describe_placement_groups(filters = {})
          params = Fog::AWS.indexed_filters(filters)
          request({
            'Action'    => 'DescribePlacementGroups',
            :idempotent => true,
            :parser     => Fog::Parsers::Compute::AWS::DescribePlacementGroups.new
          }.merge!(params))
        end
      end
    end
  end
end

Version data entries

61 entries across 59 versions & 6 rubygems

Version Path
fog-aws-3.1.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-aws-2.0.1/lib/fog/aws/requests/compute/describe_placement_groups.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-aws-2.0.1/lib/fog/aws/requests/compute/describe_placement_groups.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.0.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-2.0.1 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-2.0.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-1.4.1 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-1.4.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-1.3.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-1.2.1 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-1.2.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-1.1.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-1.0.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-0.13.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-0.12.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-0.11.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-0.10.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-0.9.4 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-0.9.3 lib/fog/aws/requests/compute/describe_placement_groups.rb