[SOLVED] No longer getting JSON response after update for pvesh get /cluster/resources --type vm

Dec 19, 2017
4
0
1
48
We updated some of our servers last night to 5.2-9 and since then the "pvesh get /cluster/resources --type vm" command that used to return JSON now returns a text table with information. Since I use this in some code, is there any way to display/get it in JSON format as opposed to this table layout?
 
It's noted down in the manpage of pvesh: There is a switch --output-format which takes an argument, including json or json-pretty. :)

Hope that helps!
Rhonda
 
  • Like
Reactions: dietmar