From: Dietmar Maurer Date: Tue, 10 Dec 2013 08:57:15 +0000 (+0100) Subject: register standard options for SPICE X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=f0a10afc25d71c4f5e88fb559c94c17f0fb21961;hp=2f13cbb5a6557da77c644e112c09d797066496ea register standard options for SPICE --- 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) = @_;