Files
Andreas-MoelbakandGitHub 82d0f98956 fix: change groups attribute type from ListAttribute to SetAttribute (#99)
* fix: change groups attribute type from ListAttribute to SetAttribute

* fix: update type of groups in network_resource.md from List to Set
2025-11-24 11:58:18 +02:00

1.2 KiB

page_title, subcategory, description
page_title subcategory description
netbird_network_resource Data Source - netbird Read Network Resource settings and metadata, see NetBird Docs https://docs.netbird.io/how-to/networks#resources for more information.

netbird_network_resource (Data Source)

Read Network Resource settings and metadata, see NetBird Docs for more information.

Example Usage

data "netbird_network" "example" {
  name = "TF Test"
}

data "netbird_network_resource" "example" {
  network_id = netbird_network.example.id
  name       = "TF Test"
}

Schema

Required

  • network_id (String) The unique identifier of a network

Optional

  • id (String) The unique identifier of a resource
  • name (String) NetworkResource Name

Read-Only

  • address (String) Network resource address (either a direct host like 1.1.1.1 or 1.1.1.1/32, or a subnet like 192.168.178.0/24, or domains like example.com and *.example.com)
  • description (String) NetworkResource Description
  • enabled (Boolean) NetworkResource status
  • groups (Set of String) Group IDs containing the resource