network config via api

tonnorprox

New Member
Mar 12, 2025
3
0
1
hi,

I create vlan interfaces on the vmbr0 interface using the api by posting a request to https://192.168.1.10:8006/api2/json/nodes/node001/network/vmbr0.100"
That part works fine, they show up in the gui, but they are not applied. The vlan works when I press apply in the gui but how to apply using an api call ?

nothing under
- https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/network
- https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/services/{service}/restart
seems to do that

Regards, Ton
 
Last edited:
ps:
it's not a matter of "systemctl restart networking" of "ifconfig -a"
for the changes are in /etc/network/interfaces.new and not (yet) in /etc/network/interfaces