Files

1.7 KiB

page_title, subcategory, description
page_title subcategory description
netbird_network_resource Resource - netbird Create and manage Network Resources, see NetBird Docs https://docs.netbird.io/how-to/networks#resources for more information.

netbird_network_resource (Resource)

Create and manage Network Resources, see NetBird Docs for more information.

Example Usage

resource "netbird_group" "example" {
  name = "Test"
}

resource "netbird_network" "example" {
  name        = "TF Test"
  description = "TF Test"
}

resource "netbird_network_resource" "example" {
  network_id  = netbird_network.example.id
  name        = "TF Test"
  description = "TF Test"
  address     = "www.example.com"
  groups      = [netbird_group.example.id]
  enabled     = true
}

Schema

Required

  • 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)
  • groups (Set of String) Group IDs containing the resource
  • name (String) NetworkResource Name
  • network_id (String) The unique identifier of a network

Optional

  • description (String) NetworkResource Description
  • enabled (Boolean) NetworkResource status

Read-Only

  • id (String) The unique identifier of a resource

Import

Import is supported using the following syntax:

terraform import netbird_network_resource.example network_id/network_resource_id

# For example

terraform import netbird_network_resource.example cvr9ibrl0ubs73c11gr0/cvr9ktjl0ubs73c11h70