The last_updated field is not available on interface models #3124

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

Originally created by @synackray on GitHub (Jan 6, 2020).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.6.11

Steps to Reproduce

  1. Browse to the /api/dcim/interfaces/{id} or /api/virtualization/interfaces/{id} URLs.

Expected Behavior

The last_updated field exists and returns the timestamp of the objects last modification.

Observed Behavior

The last_updated field does not exist. It is available for the object models in which the interfaces relate to (parents and children) but not the interfaces themselves.

image

Originally created by @synackray on GitHub (Jan 6, 2020). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.6.8 * NetBox version: 2.6.11 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a wrapper like pynetbox. --> ### Steps to Reproduce 1. Browse to the `/api/dcim/interfaces/{id}` or `/api/virtualization/interfaces/{id}` URLs. <!-- What did you expect to happen? --> ### Expected Behavior The `last_updated` field exists and returns the timestamp of the objects last modification. <!-- What happened instead? --> ### Observed Behavior The `last_updated` field does not exist. It is available for the object models in which the interfaces relate to (parents and children) but not the interfaces themselves. ![image](https://user-images.githubusercontent.com/24757919/71843997-7b16be00-30c5-11ea-984b-2a8e6ab8d6c8.png)
adam closed this issue 2025-12-29 18:25:56 +01:00
Author
Owner

@synackray commented on GitHub (Jan 6, 2020):

As always, thanks to the NetBox team for their time reviewing this. I wasn't sure if this was better suited as a bug or enhancements. Apologies if I chose incorrectly.

@synackray commented on GitHub (Jan 6, 2020): As always, thanks to the NetBox team for their time reviewing this. I wasn't sure if this was better suited as a bug or enhancements. Apologies if I chose incorrectly.
Author
Owner

@jeremystretch commented on GitHub (Jan 7, 2020):

This is expected: device components models (such as the Interface model) do not have created or last_updated fields. If you would like to propose adding these fields, please open a new feature request, and be sure to cite your use case.

@jeremystretch commented on GitHub (Jan 7, 2020): This is expected: device components models (such as the Interface model) do not have `created` or `last_updated` fields. If you would like to propose adding these fields, please open a new feature request, and be sure to cite your use case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3124