xmlrpc opennebula云api的python绑定
oca的Python项目详细描述
Version: | 4.10.0 |
---|---|
TravisCI Status: | |
关于
xmlrpc opennebula云api的绑定
文档
见http://python-oca.github.io/python-oca/index.html和http://docs.opennebula.org/4.10/integration/system_interfaces/api.html
所有allocate函数都作为静态方法实现。
示例
显示所有正在运行的虚拟机:
client = oca.Client('user:password', 'http://12.12.12.12:2633/RPC2') client.version() vm_pool = oca.VirtualMachinePool(c) vm_pool.info() for vm in vm_pool: print "%s (memory: %s MB)" % ( vm.name, vm.template.memory)
许可证
oca在apache软件许可下