mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
F #1147: Permit to rename disk snapshot names in Sunstone
Author: Abel Coronado <acoronado@opennebula.systems> Author: Christian González <cgonzalez@opennebula.systems>
This commit is contained in:
1 parent
c3af68655b
commit
2e410af2ce
39 files changed
+469
-2
No files matched your search
@@ -51,6 +51,7 @@ public class VirtualMachine extends PoolElement{
|
||||
private static final String DISKSNAPSHOTCREATE = METHOD_PREFIX + "disksnapshotcreate";
|
||||
private static final String DISKSNAPSHOTREVERT = METHOD_PREFIX + "disksnapshotrevert";
|
||||
private static final String DISKSNAPSHOTDELETE = METHOD_PREFIX + "disksnapshotdelete";
|
||||
private static final String DISKSNAPSHOTRENAME = METHOD_PREFIX + "disksnapshotrename";
|
||||
private static final String DISKRESIZE = METHOD_PREFIX + "diskresize";
|
||||
private static final String UPDATECONF = METHOD_PREFIX + "updateconf";
|
||||
|
||||
@@ -575,6 +576,23 @@ public class VirtualMachine extends PoolElement{
|
||||
return client.call(DISKSNAPSHOTDELETE, id, diskId, snapId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a disk snapshot
|
||||
*
|
||||
* @param client XML-RPC Client.
|
||||
* @param id The VM id of the target VM.
|
||||
* @param diskId Id of the disk
|
||||
* @param snapId Id of the snapshot
|
||||
* @param new_name New name of the snapshot
|
||||
* @return If an error occurs the error message contains the reason.
|
||||
*/
|
||||
public static OneResponse diskSnapshotRename(Client client, int id,
|
||||
int diskId, int snapId, String new_name)
|
||||
{
|
||||
return client.call(DISKSNAPSHOTRENAME, id, diskId, snapId, new_name);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Resize VM disk
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user