Hi, this is my very first message on this forum so excuse me if I do something wrong.
I'm currently trying to change the cloud-init parameter (ipconfig) by using curl.
I've tried several request and the latest was something like this :
I've naturally read the api doc on the subject , but I struggle at understanding how to fill the format which requires the ip and the gw at the same time for this ipconfig parameter. PS: this API request is a part of a bigger project which won't let me use pvesh.
Any help would be appreciated.
I'm currently trying to change the cloud-init parameter (ipconfig) by using curl.
I've tried several request and the latest was something like this :
Code:
curl -s -k --cookie "PVEAuthCookie=$ticket" -H "CSRFPreventionToken: $csrf" -X Post https://my.proxmox.adress/api2/json/nodes/myNode/qemu/$vmid/config?ipconfig0="ip=$ip,gw=$gate"
I've naturally read the api doc on the subject , but I struggle at understanding how to fill the format which requires the ip and the gw at the same time for this ipconfig parameter. PS: this API request is a part of a bigger project which won't let me use pvesh.
Any help would be appreciated.