Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

lukaszo/python-oca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning, this project is not maintained anymore. If you are interested in OpenNebula python bindings see https://github.com/python-oca/python-oca

OCA - OpenNebula Cloud Api

Version

3.0.0-a1

About

Bindings for XMLRPC OpenNebula Cloud API

Documentation

see http://lukaszo.github.com/python-oca/index.html and http://www.opennebula.org/documentation:rel3.0:api

All allocate functions are implemented as static methods.

Examples

Allocating new host:

client = oca.Client('user:password', 'http:12.12.12.12:2633/RPC2')
new_host_id = oca.Host.allocate(client, 'host_name', 'im_xen', 'vmm_xen', 'tm_nfs')
hostpool = oca.HostPool(client)
hostpool.info()
vm = hostpool.get_by_id(new_host_id)
print vm.name, vm.str_state

License

OCA is under Apache Software License

Authors

Łukasz Oleś

About

Python bindings for opennebula xmlrpc api

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages