qmp-commands: move 'query-commands' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
dd746afbb4
commit
8b0ffce442
|
@ -209,34 +209,6 @@ Note: This command must be issued before issuing any other command.
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
|
||||||
query-commands
|
|
||||||
--------------
|
|
||||||
|
|
||||||
List QMP available commands.
|
|
||||||
|
|
||||||
Each command is represented by a json-object, the returned value is a json-array
|
|
||||||
of all commands.
|
|
||||||
|
|
||||||
Each json-object contain:
|
|
||||||
|
|
||||||
- "name": command's name (json-string)
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
-> { "execute": "query-commands" }
|
|
||||||
<- {
|
|
||||||
"return":[
|
|
||||||
{
|
|
||||||
"name":"query-balloon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name":"system_powerdown"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
Note: This example has been shortened as the real response is too long.
|
|
||||||
|
|
||||||
query-qmp-schema
|
query-qmp-schema
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
|
|
@ -114,6 +114,23 @@
|
||||||
# Returns: A list of @CommandInfo for all supported commands
|
# Returns: A list of @CommandInfo for all supported commands
|
||||||
#
|
#
|
||||||
# Since: 0.14.0
|
# Since: 0.14.0
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# -> { "execute": "query-commands" }
|
||||||
|
# <- {
|
||||||
|
# "return":[
|
||||||
|
# {
|
||||||
|
# "name":"query-balloon"
|
||||||
|
# },
|
||||||
|
# {
|
||||||
|
# "name":"system_powerdown"
|
||||||
|
# }
|
||||||
|
# ]
|
||||||
|
# }
|
||||||
|
#
|
||||||
|
# Note: This example has been shortened as the real response is too long.
|
||||||
|
#
|
||||||
##
|
##
|
||||||
{ 'command': 'query-commands', 'returns': ['CommandInfo'] }
|
{ 'command': 'query-commands', 'returns': ['CommandInfo'] }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue