I'm trying to add a subnet to an existing IPSet of an existing VM via the API. According to the docs (https://pve.proxmox.com/pve-docs/api-viewer/index.html) the correct command would be:
pvesh set /nodes/{node}/qemu/{vmid}/firewall/ipset/{name}/{cidr}
But this command doesn't work (node and vmid are correct and ipset with name "test" exists):
pvesh set /nodes/pbx-c1-n1/qemu/103/firewall/ipset/test/192.168.10.0/24
400 Parameter verification failed.
cidr: no such IP/Network
set nodes/pbx-c1-n1/qemu/103/firewall/ipset/test/212.25.0.0/24 [OPTIONS]
I've already tried to escape the slash in the CIDR notation (192.168.10.0\/24) but no luck. A few methods I tried:
pvesh set /nodes/pbx-c1-n1/qemu/103/firewall/ipset/test/192.168.10.0/24
pvesh set /nodes/pbx-c1-n1/qemu/103/firewall/ipset/test/192.168.10.0\/24
pvesh set /nodes/pbx-c1-n1/qemu/103/firewall/ipset/test/"192.168.10.0/24"
pvesh set /nodes/pbx-c1-n1/qemu/103/firewall/ipset/test/'192.168.10.0/24'
I already tried the same API request via HTTP (with and without url encoding of the CIDR address) instead of CLI and I'm getting the same error.
I'm on the latest 5.1 release of Proxmox VE.
Can anyone reproduce that behaviour? Does anyone knows what the correct API call would be?
Any help is appreciated
pvesh set /nodes/{node}/qemu/{vmid}/firewall/ipset/{name}/{cidr}
But this command doesn't work (node and vmid are correct and ipset with name "test" exists):
pvesh set /nodes/pbx-c1-n1/qemu/103/firewall/ipset/test/192.168.10.0/24
400 Parameter verification failed.
cidr: no such IP/Network
set nodes/pbx-c1-n1/qemu/103/firewall/ipset/test/212.25.0.0/24 [OPTIONS]
I've already tried to escape the slash in the CIDR notation (192.168.10.0\/24) but no luck. A few methods I tried:
pvesh set /nodes/pbx-c1-n1/qemu/103/firewall/ipset/test/192.168.10.0/24
pvesh set /nodes/pbx-c1-n1/qemu/103/firewall/ipset/test/192.168.10.0\/24
pvesh set /nodes/pbx-c1-n1/qemu/103/firewall/ipset/test/"192.168.10.0/24"
pvesh set /nodes/pbx-c1-n1/qemu/103/firewall/ipset/test/'192.168.10.0/24'
I already tried the same API request via HTTP (with and without url encoding of the CIDR address) instead of CLI and I'm getting the same error.
I'm on the latest 5.1 release of Proxmox VE.
Can anyone reproduce that behaviour? Does anyone knows what the correct API call would be?
Any help is appreciated