libvirt/docs/manpages
Peter Krempa 289aa4bc5b virsh: Add QMP command wrapping for 'qemu-monitor-command'
Issuing simple QMP commands is pain as they need to be wrapped by the
JSON wrapper:

 { "execute": "COMMAND" }

and optionally also:

 { "execute": "COMMAND", "arguments":...}

For simple commands without arguments we can add syntax sugar to virsh
which allows simple usage of QMP and additionally prepares also for
passing through of the 'arguments' section:

 virsh qemu-monitor-command $VM query-status

is equivalent to

 virsh qemu-monitor-command $VM '{"execute":"query-status"}'

and

 virsh qemu-monitor-command $VM query-named-block-nodes '{"flat":true}'
 or
 virsh qemu-monitor-command $VM query-named-block-nodes '"flat":true'

is equivalent to

 virsh qemu-monitor-command $VM '{"execute":"query-named-block-nodes", "arguments":{"flat":true}}'

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2021-10-18 16:04:17 +02:00
..
index.rst docs: add manpage for virtxend 2021-01-15 19:08:00 +00:00
libvirtd.rst docs: Document libxl.conf location 2021-03-12 10:52:51 +01:00
meson.build meson: Always use the / operator to join paths 2021-08-11 09:16:36 +02:00
virsh.rst virsh: Add QMP command wrapping for 'qemu-monitor-command' 2021-10-18 16:04:17 +02:00
virt-admin.rst
virt-host-validate.rst
virt-login-shell.rst
virt-pki-validate.rst
virt-qemu-run.rst docs/drvqemu: Convert to RST 2021-04-06 17:00:11 +02:00
virt-sanlock-cleanup.rst
virt-xml-validate.rst
virtbhyved.rst
virtinterfaced.rst
virtlockd.rst
virtlogd.rst
virtlxcd.rst docs: Document lxc.conf location 2021-03-12 10:52:41 +01:00
virtnetworkd.rst
virtnodedevd.rst
virtnwfilterd.rst
virtproxyd.rst Fix spelling 2021-04-15 15:42:21 +02:00
virtqemud.rst docs: Capitalize QEMU driver reference 2021-03-12 10:51:47 +01:00
virtsecretd.rst
virtstoraged.rst
virtvboxd.rst docs: add manpage for virtvboxd 2021-01-15 19:08:00 +00:00
virtvzd.rst docs: add manpage for virtvzd 2021-01-15 19:08:00 +00:00
virtxend.rst docs: Document libxl.conf location 2021-03-12 10:52:51 +01:00