Skip to content

Implementation of List Functionality for DNS Records (Part 2)#524

Open
unasra wants to merge 9 commits into
infobloxopen:mainfrom
unasra:list_records_2
Open

Implementation of List Functionality for DNS Records (Part 2)#524
unasra wants to merge 9 commits into
infobloxopen:mainfrom
unasra:list_records_2

Conversation

@unasra

@unasra unasra commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Terraform Plugin Framework List resources for additional DNS record types and updates corresponding DNS resources to support mutable identity (ref-based) import/list interoperability.

Changes:

  • Implement list resources for DNS MX, NAPTR, NS, SRV, TXT records and register them in the provider.
  • Add ResourceWithIdentity support to the corresponding DNS resources (identity schema + setting identity during CRUD + identity-aware import).
  • Add acceptance tests, examples, and generated docs for the new list resources.

Reviewed changes

Copilot reviewed 26 out of 27 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
internal/service/dns/record_txt_resource.go Adds identity schema + mutable identity behavior and sets identity during CRUD/import for TXT records.
internal/service/dns/record_txt_list.go New list resource for TXT records (filters/extattrfilters, pagination, optional include_resource).
internal/service/dns/record_txt_list_test.go Acceptance tests for TXT list resource (basic/filters/extattrfilters).
internal/service/dns/record_srv_resource.go Adds identity schema + mutable identity behavior and sets identity during CRUD/import for SRV records.
internal/service/dns/record_srv_list.go New list resource for SRV records (filters/extattrfilters, pagination, optional include_resource).
internal/service/dns/record_srv_list_test.go Acceptance tests for SRV list resource (basic/filters/extattrfilters).
internal/service/dns/record_ns_resource.go Adds identity schema + mutable identity behavior and sets identity during CRUD/import for NS records.
internal/service/dns/record_ns_list.go New list resource for NS records (filters, pagination, optional include_resource).
internal/service/dns/record_ns_list_test.go Acceptance tests for NS list resource (basic/filters).
internal/service/dns/record_naptr_resource.go Adds identity schema + mutable identity behavior and sets identity during CRUD/import for NAPTR records.
internal/service/dns/record_naptr_list.go New list resource for NAPTR records (filters/extattrfilters, pagination, optional include_resource).
internal/service/dns/record_naptr_list_test.go Acceptance tests for NAPTR list resource (basic/filters/extattrfilters).
internal/service/dns/record_mx_resource.go Adds identity schema + mutable identity behavior and sets identity during CRUD/import for MX records.
internal/service/dns/record_mx_list.go New list resource for MX records (filters/extattrfilters, pagination, optional include_resource).
internal/service/dns/record_mx_list_test.go Acceptance tests for MX list resource (basic/filters/extattrfilters).
internal/service/dns/model_record_a.go Small formatting fix in Record A schema validator list.
internal/provider/provider.go Registers the new DNS list resources with the provider.
examples/list-resources/nios_dns_record_txt/list-resource.tfquery.hcl Adds TXT list resource query examples.
examples/list-resources/nios_dns_record_srv/list-resource.tfquery.hcl Adds SRV list resource query examples.
examples/list-resources/nios_dns_record_ns/list-resource.tfquery.hcl Adds NS list resource query examples.
examples/list-resources/nios_dns_record_naptr/list-resource.tfquery.hcl Adds NAPTR list resource query examples.
examples/list-resources/nios_dns_record_mx/list-resource.tfquery.hcl Adds MX list resource query examples.
docs/list-resources/dns_record_txt.md Generated docs for TXT list resource.
docs/list-resources/dns_record_srv.md Generated docs for SRV list resource.
docs/list-resources/dns_record_ns.md Generated docs for NS list resource.
docs/list-resources/dns_record_naptr.md Generated docs for NAPTR list resource.
docs/list-resources/dns_record_mx.md Generated docs for MX list resource.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/service/dns/record_mx_list.go
Comment thread internal/service/dns/record_naptr_list.go
Comment thread internal/service/dns/record_srv_list.go
Comment thread internal/service/dns/record_txt_list.go
@unasra unasra requested a review from vchandrajha June 11, 2026 06:43
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