Feature Request: [API] Filter Interfaces By mgmt_only #1129

Closed
opened 2025-12-29 16:29:16 +01:00 by adam · 2 comments
Owner

Originally created by @cimnine on GitHub (Jul 27, 2017).

Issue type: Feature Request

Python version: 2.7.12
NetBox version: 2.1.0

I would like to filter the interfaces based on the value of the mgmt_only flag:

# show only mgmt interfaces
http://netbox/api/dcim/interfaces/?mgmt_only=true

# don't show any mgmt interfaces
http://netbox/api/dcim/interfaces/?mgmt_only=false
Originally created by @cimnine on GitHub (Jul 27, 2017). ### Issue type: Feature Request **Python version:** 2.7.12 **NetBox version:** 2.1.0 I would like to filter the interfaces based on the value of the mgmt_only flag: # show only mgmt interfaces http://netbox/api/dcim/interfaces/?mgmt_only=true # don't show any mgmt interfaces http://netbox/api/dcim/interfaces/?mgmt_only=false
adam closed this issue 2025-12-29 16:29:16 +01:00
Author
Owner

@lampwins commented on GitHub (Jul 27, 2017):

Can this also be extended so that non-OOB management interfaces with the device's primary IP assigned are included?

@lampwins commented on GitHub (Jul 27, 2017): Can this also be extended so that non-OOB management interfaces with the device's primary IP assigned are included?
Author
Owner

@jeremystretch commented on GitHub (Jul 27, 2017):

I would like to filter the interfaces based on the value of the mgmt_only flag

This is already implemented in the current code. Use ?mgmt_only=True or ?mgmt_only=False.

Can this also be extended so that non-OOB management interfaces with the device's primary IP assigned are included?

This endpoint only returns interfaces, without regard to any IP addresses assigned to them. mgmt_only is a boolean field on the interfaces table.

@jeremystretch commented on GitHub (Jul 27, 2017): > I would like to filter the interfaces based on the value of the mgmt_only flag This is already implemented in the current code. Use `?mgmt_only=True` or `?mgmt_only=False`. > Can this also be extended so that non-OOB management interfaces with the device's primary IP assigned are included? This endpoint only returns interfaces, without regard to any IP addresses assigned to them. `mgmt_only` is a boolean field on the interfaces table.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1129