]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qapi/block.json
nbd: allow authorization with nbd-server-start QMP command
[mirror_qemu.git] / qapi / block.json
index 5a79d639e8c5aceb74230845615839ece164d07a..79623088e72d46c66e35bb1e4c0aa4a788a26701 100644 (file)
 #
 # @addr: Address on which to listen.
 # @tls-creds: (optional) ID of the TLS credentials object. Since 2.6
+# @tls-authz: ID of the QAuthZ authorization object used to validate
+#             the client's x509 distinguished name. This object is
+#             is only resolved at time of use, so can be deleted and
+#             recreated on the fly while the NBD server is active.
+#             If missing, it will default to denying access (since 4.0).
 #
 # Returns: error if the server is already running.
 #
 ##
 { 'command': 'nbd-server-start',
   'data': { 'addr': 'SocketAddressLegacy',
-            '*tls-creds': 'str'} }
+            '*tls-creds': 'str',
+            '*tls-authz': 'str'} }
 
 ##
 # @nbd-server-add: