mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-14 02:01:15 +00:00
qm agent: enumerate possible guest commands
This commit is contained in:
parent
c07a9e3d64
commit
a5d5341cb2
@ -2835,6 +2835,25 @@ __PACKAGE__->register_method({
|
|||||||
return $res;
|
return $res;
|
||||||
}});
|
}});
|
||||||
|
|
||||||
|
my $guest_agent_commands = [
|
||||||
|
'guest-ping',
|
||||||
|
'guest-get-time',
|
||||||
|
'guest-info',
|
||||||
|
'guest-fsfreeze-status',
|
||||||
|
'guest-fsfreeze-freeze',
|
||||||
|
'guest-fsfreeze-thaw',
|
||||||
|
'guest-fstrim',
|
||||||
|
'guest-network-get-interfaces',
|
||||||
|
'guest-get-vcpus',
|
||||||
|
'guest-get-fsinfo',
|
||||||
|
'guest-get-memory-blocks',
|
||||||
|
'guest-get-memory-block-info',
|
||||||
|
'guest-suspend-hybrid',
|
||||||
|
'guest-suspend-ram',
|
||||||
|
'guest-suspend-disk',
|
||||||
|
'guest-shutdown',
|
||||||
|
];
|
||||||
|
|
||||||
__PACKAGE__->register_method({
|
__PACKAGE__->register_method({
|
||||||
name => 'agent',
|
name => 'agent',
|
||||||
path => '{vmid}/agent',
|
path => '{vmid}/agent',
|
||||||
@ -2854,6 +2873,7 @@ __PACKAGE__->register_method({
|
|||||||
command => {
|
command => {
|
||||||
type => 'string',
|
type => 'string',
|
||||||
description => "The QGA command.",
|
description => "The QGA command.",
|
||||||
|
enum => $guest_agent_commands,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user