Skip to content

Conversation

@i-am-smolli
Copy link
Collaborator

Summary

This PR extends the netbox_ip_address and netbox_ip_addresses data sources with the new assigned_object attribute. This allows users to retrieve assigned objects (including device details) for IP addresses.

Changes

  • netbox/data_source_netbox_ip_address.go & netbox/data_source_netbox_ip_addresses.go

    • Added the assigned_object attribute with nested schema for device information.
    • Updated the read logic to populate the new fields.
  • docs/data-sources/ip_address.md & docs/data-sources/ip_addresses.md

    • Documented the new attribute and nested structures.
  • examples/data-sources/netbox_ip_addresses/data-source.tf

    • Added an example for using the filter and the new attribute.

Motivation

With this enhancement, users can now directly retrieve which object (e.g., interface, device) an IP address is assigned to. This improves transparency and enables more complex queries in Terraform.

Notes

  • The changes are backward compatible.
  • Documentation and examples have been updated accordingly.

@i-am-smolli i-am-smolli changed the title feat: Support for assigned_object in IP Address Data Sources DRAFT: feat: Support for assigned_object in IP Address Data Sources Oct 7, 2025
This prevents that one snippet gets information from another
@i-am-smolli i-am-smolli force-pushed the feat-assigned-object-in-ip-address branch from e1408c6 to 32b9715 Compare October 13, 2025 12:32
@i-am-smolli i-am-smolli changed the title DRAFT: feat: Support for assigned_object in IP Address Data Sources feat: Support for assigned_object in IP Address Data Sources Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants