From f0a10afc25d71c4f5e88fb559c94c17f0fb21961 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 10 Dec 2013 09:57:15 +0100 Subject: [PATCH 1/1] register standard options for SPICE --- data/PVE/JSONSchema.pm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/data/PVE/JSONSchema.pm b/data/PVE/JSONSchema.pm index bb00c69..8811207 100644 --- a/data/PVE/JSONSchema.pm +++ b/data/PVE/JSONSchema.pm @@ -76,7 +76,6 @@ PVE::JSONSchema::register_standard_option('pve-storage-id', { type => 'string', format => 'pve-storage-id', }); - my $format_list = {}; sub register_format { @@ -229,6 +228,23 @@ sub pve_verify_iface { return $id; } +register_standard_option('spice-proxy', { + description => "SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As resonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI).", + type => 'string', format => 'dns-name', +}); + +register_standard_option('remote-viewer-config', { + description => "Returned values can be directly passed to the 'remote-viewer' application.", + additionalProperties => 1, + properties => { + type => { type => 'string' }, + password => { type => 'string' }, + proxy => { type => 'string' }, + host => { type => 'string' }, + 'tls-port' => { type => 'integer' }, + }, +}); + sub check_format { my ($format, $value) = @_; -- 2.39.2