mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
Feature #1103: Add hold param to ruby & java oca, and cli.
onetemplate instantiate needs to be done also
This commit is contained in:
1 parent
cec1f87689
commit
8d8da16758
4 files changed
+33
-6
No files matched your search
@@ -150,7 +150,22 @@ public class VirtualMachine extends PoolElement{
|
||||
*/
|
||||
public static OneResponse allocate(Client client, String description)
|
||||
{
|
||||
return client.call(ALLOCATE, description);
|
||||
return allocate(client, description, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allocates a new VM in OpenNebula.
|
||||
*
|
||||
* @param client XML-RPC Client.
|
||||
* @param description A string containing the template of the vm.
|
||||
* @param onHold False to create this VM in pending state, true on hold
|
||||
* @return If successful the message contains the associated
|
||||
* id generated for this VM.
|
||||
*/
|
||||
public static OneResponse allocate(Client client, String description,
|
||||
boolean onHold)
|
||||
{
|
||||
return client.call(ALLOCATE, description, onHold);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user