]> git.proxmox.com Git - pve-network.git/commit
api: refactor URL structure for Ipam
authorStefan Hanreich <s.hanreich@proxmox.com>
Mon, 20 Nov 2023 16:28:32 +0000 (17:28 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Nov 2023 16:40:36 +0000 (17:40 +0100)
commit359416aa52e6ed137a8662a9d3f6fa4a50a5e7ec
tree22d40e668c1df48fde91d0074348d64bb0112f24
parent39062bc53a95ef5a0e45171e61aa5df3e52ca898
api: refactor URL structure for Ipam

The initial URL structure was less than optimal due to Ipam as well as
Ipams being endpoints in the API, which are too similar and might be
confusing to users.

Move the listing of PVE IPAM to /ipams/pve/status
Move the create / update / delete endpoints to /vnets/{vnetid}/ips

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
src/PVE/API2/Network/SDN.pm
src/PVE/API2/Network/SDN/Ipam.pm [deleted file]
src/PVE/API2/Network/SDN/Ipams.pm
src/PVE/API2/Network/SDN/Ips.pm [new file with mode: 0644]
src/PVE/API2/Network/SDN/Makefile
src/PVE/API2/Network/SDN/Vnets.pm