Sha256: 93ba2f3aa9021dca695194ad6301aa6271d6588ad1325ebeec289f002beef92c

Contents?: true

Size: 1.17 KB

Versions: 6

Compression:

Stored size: 1.17 KB

Contents

module Fog
  module Compute
    class AWS
      class Real

        require 'fog/compute/parsers/aws/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

6 entries across 6 versions & 3 rubygems

Version Path
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/compute/requests/aws/describe_placement_groups.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/compute/requests/aws/describe_placement_groups.rb
fog-0.11.0 lib/fog/compute/requests/aws/describe_placement_groups.rb
fog-0.10.0 lib/fog/compute/requests/aws/describe_placement_groups.rb
fog4encbs-0.9.0.1 lib/fog/compute/requests/aws/describe_placement_groups.rb
fog4encbs-0.9.0 lib/fog/compute/requests/aws/describe_placement_groups.rb