[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

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!