Advertisement
Guest User

Untitled

a guest
Aug 6th, 2012
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. #ruby code
  2. aws_elb = AWS::ELB::Base.new( :access_key_id => aws_access_key_id, :secret_access_key => aws_secret_access_key )
  3. mylb = aws_elb.describe_load_balancers(:names => "test-lb")
  4. pp mylb.Listeners
  5.  
  6. #response
  7. nil <-output of the above pp.
  8.  
  9.  
  10. #output of pp mylb (the whole load balanced object)
  11. {"xmlns"=>"http://elasticloadbalancing.amazonaws.com/doc/2009-05-15/",
  12. "ResponseMetadata"=>{"RequestId"=>"81c587b3-dfe0-11e1-8645-9596bae18c43"},
  13. "DescribeLoadBalancersResult"=>
  14. {"LoadBalancerDescriptions"=>
  15. {"member"=>
  16. [{"Instances"=>
  17. {"member"=>
  18. [{"InstanceId"=>"i-ecb1c235"}, {"InstanceId"=>"i-ef123289"}]},
  19. "CreatedTime"=>"2012-05-11T14:45:15.960Z",
  20. "AvailabilityZones"=>{"member"=>["us-east-1b"]},
  21. "DNSName"=>"test-lb-1583208844.us-east-1.elb.amazonaws.com",
  22. "HealthCheck"=>
  23. {"Timeout"=>"5",
  24. "HealthyThreshold"=>"10",
  25. "Target"=>"TCP:8080",
  26. "UnhealthyThreshold"=>"2",
  27. "Interval"=>"12"},
  28. "LoadBalancerName"=>"test-lb",
  29. "Listeners"=>
  30. {"member"=>
  31. [{"Protocol"=>"HTTP",
  32. "InstancePort"=>"8080",
  33. "LoadBalancerPort"=>"80"}]}}]}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement