I want to execute several commands to each one of my nodes, looking at Proxmox API is possible to send commands to a node using:
However I can't seem to find a proper way to create the JSON. Can anyone help me please?
Code:
pvesh create /nodes/{node}/execute --commands '["apt update", "apt upgrade pkg1, pkg2, pkg3"]'
However I can't seem to find a proper way to create the JSON. Can anyone help me please?