-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add a tag_id
filter for all models which support tagging
#18783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
arthanson
pushed a commit
that referenced
this issue
Mar 25, 2025
jeremystretch
added a commit
that referenced
this issue
Apr 10, 2025
jeremystretch
added a commit
that referenced
this issue
Apr 10, 2025
PR #18889 was mistakenly merged into |
jeremystretch
pushed a commit
that referenced
this issue
Apr 10, 2025
arthanson
pushed a commit
that referenced
this issue
Apr 11, 2025
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
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: