Skip to content

Add a tag_id filter for all models which support tagging #18783

@jeremystretch

Description

@jeremystretch

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 existing tag 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

Metadata

Metadata

Labels

complexity: lowRequires minimal effort to implementstatus: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions