Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ruby code
- aws_elb = AWS::ELB::Base.new( :access_key_id => aws_access_key_id, :secret_access_key => aws_secret_access_key )
- mylb = aws_elb.describe_load_balancers(:names => "test-lb")
- pp mylb.Listeners
- #response
- nil <-output of the above pp.
- #output of pp mylb (the whole load balanced object)
- {"xmlns"=>"http://elasticloadbalancing.amazonaws.com/doc/2009-05-15/",
- "ResponseMetadata"=>{"RequestId"=>"81c587b3-dfe0-11e1-8645-9596bae18c43"},
- "DescribeLoadBalancersResult"=>
- {"LoadBalancerDescriptions"=>
- {"member"=>
- [{"Instances"=>
- {"member"=>
- [{"InstanceId"=>"i-ecb1c235"}, {"InstanceId"=>"i-ef123289"}]},
- "CreatedTime"=>"2012-05-11T14:45:15.960Z",
- "AvailabilityZones"=>{"member"=>["us-east-1b"]},
- "DNSName"=>"test-lb-1583208844.us-east-1.elb.amazonaws.com",
- "HealthCheck"=>
- {"Timeout"=>"5",
- "HealthyThreshold"=>"10",
- "Target"=>"TCP:8080",
- "UnhealthyThreshold"=>"2",
- "Interval"=>"12"},
- "LoadBalancerName"=>"test-lb",
- "Listeners"=>
- {"member"=>
- [{"Protocol"=>"HTTP",
- "InstancePort"=>"8080",
- "LoadBalancerPort"=>"80"}]}}]}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement