From 3bba964edcb7d09659a5aa57c9a7830cdddf2560 Mon Sep 17 00:00:00 2001 From: abelCoronado93 Date: Thu, 8 Jun 2017 11:20:56 +0200 Subject: [PATCH] F #4934 Added updateconf Java API --- .../src/org/opennebula/client/vm/VirtualMachine.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java b/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java index f88220305c..d1e0d421d5 100644 --- a/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java +++ b/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java @@ -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. *