Sha256: 8190549192abcdffde3cb712f0bfc357e771680b964293df656d50598d0ae3e7

Contents?: true

Size: 1.16 KB

Versions: 36

Compression:

Stored size: 1.16 KB

Contents

module Fog
  module AWS
    class Compute
      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::AWS::Compute::DescribePlacementGroups.new
          }.merge!(params))
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
fog-aws-3.29.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.28.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.27.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.26.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.25.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.24.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.23.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.22.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.21.1 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.21.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.20.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.19.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.18.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.17.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.16.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.15.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.14.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.13.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.12.0 lib/fog/aws/requests/compute/describe_placement_groups.rb
fog-aws-3.11.0 lib/fog/aws/requests/compute/describe_placement_groups.rb