aboutsummaryrefslogtreecommitdiff
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 13:27:06 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:15:29 +0100
commite389c0049afae90de2b958afa439dd9f47b12c1d (patch)
treee9700c3bca44326dcd6da09c513ce4b8511bcf2a /qapi-schema.json
parenta4df6eff46e366e8c6ac69d93ea59f95ebd802fc (diff)
downloadqemu-e389c0049afae90de2b958afa439dd9f47b12c1d.zip
qemu-e389c0049afae90de2b958afa439dd9f47b12c1d.tar.gz
qemu-e389c0049afae90de2b958afa439dd9f47b12c1d.tar.bz2
qmp-commands: move 'device_del' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r--qapi-schema.json13
1 files changed, 12 insertions, 1 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index 1c4039a..affcad1 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3114,7 +3114,7 @@
#
# Remove a device from a guest
#
-# @id: the name or QOM path of the device
+# @id: the device's ID or QOM path
#
# Returns: Nothing on success
# If @id is not a valid device, DeviceNotFound
@@ -3127,6 +3127,17 @@
# for all devices.
#
# Since: 0.14.0
+#
+# Example:
+#
+# -> { "execute": "device_del",
+# "arguments": { "id": "net1" } }
+# <- { "return": {} }
+#
+# -> { "execute": "device_del",
+# "arguments": { "id": "/machine/peripheral-anon/device[0]" } }
+# <- { "return": {} }
+#
##
{ 'command': 'device_del', 'data': {'id': 'str'} }