1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/vcloud/examples/get_network_information.md

11 lines
300 B
Markdown
Raw Normal View History

# Get network information
- To see all networks list
connection.servers.service.networks
- To see details of a particular network
selected_nw = connection.servers.service.networks.detect { |n| n.name == 'Default' }
connection.servers.service.get_network(selected_nw.href)