]> git.proxmox.com Git - pve-container.git/commit
api: network: get interfaces from containers
authorLeo Nunner <l.nunner@proxmox.com>
Thu, 15 Jun 2023 09:43:31 +0000 (11:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 14 Nov 2023 18:16:01 +0000 (19:16 +0100)
commit3d56c9c0ff29f5959922f3aa87f0a02dba36f4a9
treec6c46629d528a0fc021eb3ae6847573bff613751
parent432793c1a13accdb658379c92f8c8f7ce1637d6a
api: network: get interfaces from containers

Adds an 'interfaces' endpoint in the API
(/nodes/{node}/lxc/{vmid}/interfaces'), which returns a list of
interface names, together with a MAC, IPv4 and IPv6 address. This list
may be expanded in the future. Note that this is only returned for
*running* containers, stopped containers simply return an empty list.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
src/PVE/API2/LXC.pm
src/PVE/LXC.pm