description=>"Returns a SPICE configuration to connect to the CT.",
parameters=>{
additionalProperties=>0,
properties=>{
node=>get_standard_option('pve-node'),
vmid=>get_standard_option('pve-vmid'),
proxy=>{
description=>"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',
optional=>1,
},
},
},
returns=>{
description=>"Returned values can be directly passed to the 'remote-viewer' application.",