vendor/bundle/ruby/1.8/gems/aws-2.5.6/lib/ec2/ec2.rb
# Retrieve information about EC2 instances. If +list+ is omitted then returns the
# list of all instances.
#
#  ec2.describe_instances #=>
#    [{:aws_image_id       => "ami-e444444d",
#      :aws_reason         => "",
#      :aws_state_code     => "16",
#      :aws_owner          => "000000000888",
#      :aws_instance_id    => "i-123f1234",
#      :aws_reservation_id => "r-aabbccdd",
#      :aws_state          => "running",
#      :dns_name           => "domU-12-34-67-89-01-C9.usma2.compute.amazonaws.com",
#      :ssh_key_name       => "staging",
#      :aws_groups         => ["default"],
#      :private_dns_name   => "domU-12-34-67-89-01-C9.usma2.compute.amazonaws.com",
#      :aws_instance_type  => "m1.small",
#      :aws_launch_time    => "2008-1-1T00:00:00.000Z"},
#      :aws_availability_zone => "us-east-1b",
#      :aws_kernel_id      => "aki-ba3adfd3",
#      :aws_ramdisk_id     => "ari-badbad00",
#      :monitoring_state         => ...,
#       ..., {...}]
#
Retrieve information about EC2 instances. If +list+ is omitted then returns the
list of all instances.


Retrieve information about EC2 instances . If + list + is omitted then returns the list of all instances .
def describe_instances(list=[])
      link = generate_request("DescribeInstances", hash_params('InstanceId', list.to_a))
      request_cache_or_info(:describe_instances, link, QEc2DescribeInstancesParser, @@bench, list.nil? || list.empty?) do |parser|
        get_desc_instances(parser.result)
      end
    rescue Exception
      on_exception
    end
def describe_instances ( list = [ ] ) link = generate_request ( "DescribeInstances" , hash_params ( 'InstanceId' , list . to_a ) ) request_cache_or_info ( :describe_instances , link , QEc2DescribeInstancesParser , @@bench , list . nil? || list . empty? ) do | parser | get_desc_instances ( parser . result ) end rescue Exception on_exception end
Retrieve information about EC2 instances.
Retrieve information about EC2 instances .
list