Created
June 29, 2016 17:03
-
-
Save jsidhu/0098de77c12a2a5fcdbaf8c8352359a0 to your computer and use it in GitHub Desktop.
vnc api example - list virtual machines
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
from vnc_api import vnc_api | |
myVnc = vnc_api.VncApi(api_server_host='127.0.0.1') | |
vms = myVnc.virtual_machines_list(detail=True, fields=['virtual_machine_interface_back_refs', 'virtual_router_back_ref']) | |
# See whats in the first object in the list | |
vms[0].__dict__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment