Add a tag_id
filter for all models which support tagging
#18783
Labels
complexity: low
Requires minimal effort to implement
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Milestone
NetBox version
v4.2.4
Feature type
Data model extension
Proposed functionality
Add a
tag_id
filter to NetBoxModelFilterSet, which will enable filtering of objects by tag ID. This should function similarly to the existingtag
filter (which matches by tag slug). For example:GET /api/dcim/sites/?tag_id=100&tag_id=200
Use case
This provides an alternative to referencing tags by their slugs, and may be needed in some specific scenarios (such as that described in #18757).
Database changes
N/A
External dependencies
N/A
The text was updated successfully, but these errors were encountered: