Sha256: 51ab9319ee44206e0b2c97b27bd7ad81405d6cd0926c4f621bb795e45d6b9aba

Contents?: true

Size: 575 Bytes

Versions: 2

Compression:

Stored size: 575 Bytes

Contents

module Fog
  module VcloudDirector
    class Compute
      class Real
        require 'fog/vcloud_director/parsers/compute/vms_by_metadata'

        # @see #get_vms_in_lease_by_query
        def get_vms_by_metadata(key,value)
          request(
            :expects    => 200,
            :idempotent => true,
            :method     => 'GET',
            :parser     => Fog::VcloudDirector::Parsers::Compute::VmsByMetadata.new,
            :path       => "vms/query?format=records&filter=metadata:#{key}==STRING:#{value}"
          )
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-vcloud-director-0.3.1 lib/fog/vcloud_director/requests/compute/get_vms_by_metadata.rb
fog-vcloud-director-0.3.0 lib/fog/vcloud_director/requests/compute/get_vms_by_metadata.rb