mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-14 03:54:26 +00:00
rename move to move_disk
Because that API call can only move a single disk (not the whole VM).
This commit is contained in:
parent
7baa079ca5
commit
43bc02a921
@ -2073,8 +2073,8 @@ __PACKAGE__->register_method({
|
|||||||
}});
|
}});
|
||||||
|
|
||||||
__PACKAGE__->register_method({
|
__PACKAGE__->register_method({
|
||||||
name => 'move_vm',
|
name => 'move_vm_disk',
|
||||||
path => '{vmid}/move',
|
path => '{vmid}/move_disk',
|
||||||
method => 'POST',
|
method => 'POST',
|
||||||
protected => 1,
|
protected => 1,
|
||||||
proxyto => 'node',
|
proxyto => 'node',
|
||||||
|
2
qm
2
qm
@ -359,7 +359,7 @@ my $cmddef = {
|
|||||||
|
|
||||||
resize => [ "PVE::API2::Qemu", 'resize_vm', ['vmid', 'disk', 'size'], { node => $nodename } ],
|
resize => [ "PVE::API2::Qemu", 'resize_vm', ['vmid', 'disk', 'size'], { node => $nodename } ],
|
||||||
|
|
||||||
move => [ "PVE::API2::Qemu", 'move_vm', ['vmid', 'disk', 'storage'], { node => $nodename }, $upid_exit ],
|
move_disk => [ "PVE::API2::Qemu", 'move_vm_disk', ['vmid', 'disk', 'storage'], { node => $nodename }, $upid_exit ],
|
||||||
|
|
||||||
unlink => [ "PVE::API2::Qemu", 'unlink', ['vmid', 'idlist'], { node => $nodename } ],
|
unlink => [ "PVE::API2::Qemu", 'unlink', ['vmid', 'idlist'], { node => $nodename } ],
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user