Created
August 11, 2014 20:37
-
-
Save hh/24324ac36eacbda84144 to your computer and use it in GitHub Desktop.
Attempting to get an edge gateway
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[30] pry(main)> conn.get_org_vdc_gateways(conn.organizations.first.id) | |
excon.request | |
:body => nil | |
:chunk_size => 1048576 | |
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES" | |
:connect_timeout => 60 | |
:debug_request => true | |
:debug_response => true | |
:expects => 200 | |
:headers => { | |
"Accept" => "application/*+xml;version=5.6" | |
"Host" => "p3v11-vcd.vchs.vmware.com:443" | |
"User-Agent" => "fog/1.23.0" | |
"x-vcloud-authorization" => "3a9499aa981f4b13aa20c3aec97abeca" | |
} | |
:host => "p3v11-vcd.vchs.vmware.com" | |
:idempotent => true | |
:instrumentor => Excon::StandardInstrumentor | |
:instrumentor_name => "excon" | |
:method => "GET" | |
:middlewares => [ | |
Excon::Middleware::ResponseParser | |
Excon::Middleware::Expects | |
Excon::Middleware::Idempotent | |
Excon::Middleware::Instrumentor | |
Excon::Middleware::Mock [69/1801] | |
] | |
:mock => false | |
:nonblock => true | |
:omit_default_port => false | |
:path => "/api/org" | |
:persistent => false | |
:port => 443 | |
:query => nil | |
:read_timeout => 60 | |
:response_block => #<Proc:0x007f3c0d307280@/home/hh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/fog-64ca63a5604f/lib/fog | |
/xml/sax_parser_connection.rb:29 (lambda)> | |
:retries_remaining => 4 | |
:retry_limit => 4 | |
:scheme => "https" | |
:ssl_verify_peer => true | |
:tcp_nodelay => false | |
:uri_parser => URI | |
:versions => "excon/0.39.4 (x86_64-linux) ruby/2.1.2" | |
:write_timeout => 60 | |
excon.response | |
:body => "" | |
:headers => { | |
"Content-Length" => "527" | |
"Content-Type" => "application/vnd.vmware.vcloud.orglist+xml;version=5.6" | |
"Date" => "Mon, 11 Aug 2014 20:35:10 GMT, Mon, 11 Aug 2014 20:35:10 GMT" | |
"Vary" => "Accept-Encoding" | |
"X-VMWARE-VCLOUD-REQUEST-EXECUTION-TIME" => "7" | |
"X-VMWARE-VCLOUD-REQUEST-ID" => "caaf0278-41ce-4321-a82e-03f6c5fa7c55" | |
} | |
:local_address => "192.168.3.100" | |
:local_port => 57162 | |
:remote_ip => "216.136.198.42" | |
:status => 200 | |
excon.request | |
:body => nil | |
:chunk_size => 1048576 | |
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES" | |
:connect_timeout => 60 | |
:debug_request => true | |
:debug_response => true | |
:expects => 200 | |
:headers => { | |
"Accept" => "application/*+xml;version=5.6" | |
"Host" => "p3v11-vcd.vchs.vmware.com:443" | |
"User-Agent" => "fog/1.23.0" | |
"x-vcloud-authorization" => "3a9499aa981f4b13aa20c3aec97abeca" | |
} | |
:host => "p3v11-vcd.vchs.vmware.com" | |
:idempotent => true | |
:instrumentor => Excon::StandardInstrumentor | |
:instrumentor_name => "excon" | |
:method => "GET" | |
:middlewares => [ | |
Excon::Middleware::ResponseParser | |
Excon::Middleware::Expects | |
Excon::Middleware::Idempotent | |
Excon::Middleware::Instrumentor | |
Excon::Middleware::Mock | |
] | |
:mock => false | |
:nonblock => true | |
:omit_default_port => false | |
:path => "/api/admin/vdc/5856ae9f-22c7-4453-952a-12868fdce6e4/edgeGateways" | |
:persistent => false | |
:port => 443 | |
:query => nil | |
:read_timeout => 60 | |
:response_block => #<Proc:0x007f3c0bf61de8@/home/hh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/fog-64ca63a5604f/lib/fog | |
/xml/sax_parser_connection.rb:29 (lambda)> | |
:retries_remaining => 4 | |
:retry_limit => 4 | |
:scheme => "https" | |
:ssl_verify_peer => true | |
:tcp_nodelay => false | |
:uri_parser => URI | |
:versions => "excon/0.39.4 (x86_64-linux) ruby/2.1.2" | |
:write_timeout => 60 | |
excon.response | |
:body => "" | |
:headers => { | |
"Content-Length" => "1013" | |
"Content-Type" => "application/vnd.vmware.vcloud.query.records+xml;version=5.6" | |
"Date" => "Mon, 11 Aug 2014 20:35:10 GMT, Mon, 11 Aug 2014 20:35:10 GMT" | |
"Vary" => "Accept-Encoding" | |
"X-VMWARE-VCLOUD-REQUEST-EXECUTION-TIME" => "13" | |
"X-VMWARE-VCLOUD-REQUEST-ID" => "9099b083-7297-4e8e-a818-bfb1ee19d0ea" | |
} | |
:local_address => "192.168.3.100" | |
:local_port => 57163 | |
:remote_ip => "216.136.198.42" | |
:status => 200 | |
=> #<Excon::Response:0x007f3c0ac89798 | |
@body="", | |
@data= | |
{:body=> | |
{:xmlns=>"http://www.vmware.com/vcloud/v1.5", | |
:xmlns_xsi=>"http://www.w3.org/2001/XMLSchema-instance", | |
:name=>"edgeGateway", | |
:page=>"1", | |
:pageSize=>"25", | |
:total=>"0", | |
:href=> | |
"https://p3v11-vcd.vchs.vmware.com:443/api/admin/vdc/5856ae9f-22c7-4453-952a-12868fdce6e4/edgeGateways?page=1&pageSize=25& | |
format=records", | |
:type=>"application/vnd.vmware.vcloud.query.records+xml", | |
:xsi_schemaLocation=>"http://www.vmware.com/vcloud/v1.5 http://10.6.50.3/api/v1.5/schema/master.xsd", | |
:Link=> | |
[{:rel=>"alternate", | |
:href=> | |
"https://p3v11-vcd.vchs.vmware.com:443/api/admin/vdc/5856ae9f-22c7-4453-952a-12868fdce6e4/edgeGateways?page=1&pageSize=25&# | |
38;format=references", | |
:type=>"application/vnd.vmware.vcloud.query.references+xml"}, | |
{:rel=>"alternate", | |
:href=> | |
"https://p3v11-vcd.vchs.vmware.com:443/api/admin/vdc/5856ae9f-22c7-4453-952a-12868fdce6e4/edgeGateways?page=1&pageSize=25&# | |
38;format=idrecords", | |
:type=>"application/vnd.vmware.vcloud.query.idrecords+xml"}], | |
:EdgeGatewayRecord=>[]}, | |
:headers=> | |
{"Date"=>"Mon, 11 Aug 2014 20:35:10 GMT, Mon, 11 Aug 2014 20:35:10 GMT", | |
"X-VMWARE-VCLOUD-REQUEST-ID"=>"9099b083-7297-4e8e-a818-bfb1ee19d0ea", | |
"Vary"=>"Accept-Encoding", | |
"X-VMWARE-VCLOUD-REQUEST-EXECUTION-TIME"=>"13", | |
"Content-Type"=>"application/vnd.vmware.vcloud.query.records+xml;version=5.6", | |
"Content-Length"=>"1013"}, | |
:status=>200, | |
:remote_ip=>"216.136.198.42", | |
:local_port=>57163, | |
:local_address=>"192.168.3.100"}, | |
@headers= | |
{"Date"=>"Mon, 11 Aug 2014 20:35:10 GMT, Mon, 11 Aug 2014 20:35:10 GMT", | |
"X-VMWARE-VCLOUD-REQUEST-ID"=>"9099b083-7297-4e8e-a818-bfb1ee19d0ea", | |
"Vary"=>"Accept-Encoding", | |
"X-VMWARE-VCLOUD-REQUEST-EXECUTION-TIME"=>"13", | |
"Content-Type"=>"application/vnd.vmware.vcloud.query.records+xml;version=5.6", | |
"Content-Length"=>"1013"}, | |
@local_address="192.168.3.100", | |
@local_port=57163, | |
@remote_ip="216.136.198.42", | |
@status=200> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment