1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

F #4934 Added updateconf Java API

This commit is contained in:
abelCoronado93 2017-06-08 11:20:56 +02:00 committed by Tino Vázquez
parent 4018be7277
commit 3bba964edc

View File

@ -590,6 +590,18 @@ public class VirtualMachine extends PoolElement{
return client.call(DISKRESIZE, id, diskId, String.valueOf(newSize));
}
/**
* Update VM Configuration
* @param client XML-RPC Client.
* @param id The VM id of the target VM.
* @param new_conf New Configuration of the target VM
* @return If an error occurs the error message contains the reason.
*/
public static OneResponse updateconf(Client client, int id, String new_conf)
{
return client.call(UPDATECONF, id, new_conf);
}
/**
* Recovers a stuck VM.
*