Hello,
I know pvesh create can use parameter
How to use create with json data is it possible?
For example:
It's a good idea to use pvesh get --output-format=json and then make a quick edit json data then use pvesh set to change config.
I know pvesh create can use parameter
Code:
pvesh create /nodes/{node}/lxc -vmid 100 -hostname test -storage local \
-password supersecret \
-ostemplate local:vztmpl/debian-9.0-standard_9.5-1_amd64.tar.gz \
-memory 512 -swap 512
How to use create with json data is it possible?
For example:
Code:
pvesh create /nodes/{node}/lxc -json '{ "vmid": 123, "hostname": "test", "storage": "local", "password": "test", "ostemplate": "local:vztmpl/debian-9.0-standard_9.5-1_amd64.tar.gz", "memory":512, "swap": 512 }'
It's a good idea to use pvesh get --output-format=json and then make a quick edit json data then use pvesh set to change config.
Last edited: