List vlans by port_id

Is it possible to create an endpoint to return the vlans of each port_id?

Ex: /api/v0/ports/$port_id/vlans/

This relationship already exists in the database, we need to serialize it in json.

Thank you

Try below, should work

/api/v0/ports?columns=ifVlan%2Cport_id%2CifName

in my environment, im getting memory exhausted error due to resource issue

“message”: “Allowed memory size of 268435456 bytes exhausted (tried to allocate 319488 bytes)”,

Hello @RR1,

The IfName not have relation with vlan_id or vlan_name.

Thank you