Hello everyone,
I need help please. So, today I've been wrote script for update ip configuration using Proxmox VPE APi. I've read this the documentation https://pve.proxmox.com/pve-docs/api-viewer/index.html. From the parameter explanation, we can add the ip configuration with
I need help please. So, today I've been wrote script for update ip configuration using Proxmox VPE APi. I've read this the documentation https://pve.proxmox.com/pve-docs/api-viewer/index.html. From the parameter explanation, we can add the ip configuration with
ipconfig[n]
. It seems that script successfully hit the API (HTTP 200 OK
) but this return null and the configuration is doesn't apply on cloud-init. I'm using PHP, so here the example of script:
PHP:
Array
(
[ipconfig0] => Array
(
[gw] => 123.123.123.1
[ip] => 123.123.123.250/24
)
)
METHOD - PUT
return null
HTTP/1.1 200 OK
Cache-Control: max-age=0
Connection: Keep-Alive
Connection: Keep-Alive
Date: Fri, 20 Dec 2019 08:38:42 GMT
Pragma: no-cache
Server: pve-api
Content-Length: 13
Content-Type: application/json;charset=UTF-8
Expires: Fri, 20 Dec 2019 08:38:42 GMT
{"data":null}