Language | Created | Last update | Stars | Forks |
---|---|---|---|---|
C# | 2014-07-01T14:32:22Z | 2014-09-04T14:52:58Z | 4 | 1 |
DotNet4One (Terradue.OpenNebula) is a library targeting .NET 4.0 and above providing an easy way to perform requests on any XML-RPC method exposed by an OpenNebula server.
XML-RPC API documentation: http://docs.opennebula.org/4.6/integration/system_interfaces/api.html
// First create the client
string proxyUrl = "<YOUR_SERVER_URL>";
string adminUser = "<YOUR_ADMIN_USERNAME>"; //should be user with driver server_* to allow requests delegation
string adminPwd = "<YOUR_ADMIN_PASSWORD>"; //SHA1 password
var one = new OneClient(proxyUrl,adminUser,adminPwd);
// Do a request as admin
USER_POOL pool = one.UserGetPoolInfo();
// Do a request on behalf of a normal user
string targetUser = "<YOUR_TARGET_USERNAME>";
one.StartDelegate(targetUser);
int RemoteId = one.TemplateInstanciateVM(idTemplate, vmName, false, "");
one.EndDelegate();
Terradue.OpenNebula is available as NuGet package in releases.
Install-Package Terradue.OpenNebula
Terradue.OpenNebula is a single assembly designed to be easily deployed anywhere.
To compile it yourself, you’ll need:
To clone it locally click the "Clone in Desktop" button above or run the following git commands.
git clone git@github.com:Terradue/Terradue.OpenNebula.git Terradue.OpenNebula
Copyright (c) 2014 Terradue
Licensed under the GPL v3 License
This library is inspired from OpenNebula-CSharp-Adapter and uses the excellent .NET framework xml-rpc.net.
Please file any bugs or questions as issues
Fork the repository here and send us pull requests.