Filter API /extras/object-changes/ by changed object id #2745

Closed
opened 2025-12-29 18:21:39 +01:00 by adam · 1 comment
Owner

Originally created by @tkald on GitHub (Jul 18, 2019).

Environment

  • Python version: 3.5.2
  • NetBox version: 2.6.1

Proposed Functionality

Add ability to filter changlog by changed object id

Use Case

My use case would be dns server forward and reverse zone updates through webhooks.
No problem with adding or deleting ip-s.
With updates however I need to check through change history, if ip has changed, to remove previous ip from dns records.
For now I can get all changes of every object (ip address) change through API, spanning multipe pages.
Adding changed_object_id filter would make things way more efficient.

Database Changes

None

External Dependencies

None

Originally created by @tkald on GitHub (Jul 18, 2019). ### Environment * Python version: 3.5.2 * NetBox version: 2.6.1 ### Proposed Functionality Add ability to filter changlog by changed object id <!-- Convey an example use case for your proposed feature. Write from the perspective of a NetBox user who would benefit from the proposed functionality and describe how. ---> ### Use Case My use case would be dns server forward and reverse zone updates through webhooks. No problem with adding or deleting ip-s. With updates however I need to check through change history, if ip has changed, to remove previous ip from dns records. For now I can get all changes of every object (ip address) change through API, spanning multipe pages. Adding changed_object_id filter would make things way more efficient. <!-- Note any changes to the database schema necessary to support the new feature. For example, does the proposal require adding a new model or field? (Not all new features require database changes.) ---> ### Database Changes None <!-- List any new dependencies on external libraries or services that this new feature would introduce. For example, does the proposal require the installation of a new Python package? (Not all new features introduce new dependencies.) --> ### External Dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 18:21:39 +01:00
adam closed this issue 2025-12-29 18:21:39 +01:00
Author
Owner

@tyler-8 commented on GitHub (Jul 18, 2019):

I like this because it replicates how the GUI currently works - you can view changelog for a specific object which is very useful. This would also be a great way to discover diffs using webhooks - once a webhook is received with a change, your webhook receiver/parser could then reach out and grab the previous object state and spit the diff into Slack/email/etc.

@tyler-8 commented on GitHub (Jul 18, 2019): I like this because it replicates how the GUI currently works - you can view changelog for a specific object which is very useful. This would also be a great way to discover diffs using webhooks - once a webhook is received with a change, your webhook receiver/parser could then reach out and grab the previous object state and spit the diff into Slack/email/etc.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2745