mirror of
https://github.com/netbirdio/terraform-provider-netbird.git
synced 2026-05-22 17:13:16 -07:00
2.1 KiB
2.1 KiB
page_title, subcategory, description
| page_title | subcategory | description |
|---|---|---|
| netbird_peer Resource - netbird | NetBird peer is a machine that runs the NetBird agent and is connected to the network. This resource doesn't create the Peer itself but manages it. |
netbird_peer (Resource)
NetBird peer is a machine that runs the NetBird agent and is connected to the network. This resource doesn't create the Peer itself but manages it.
Example Usage
resource "netbird_group" "example" {
name = "Test"
}
resource "netbird_peer" "example" {
id = "d057h0jl0ubs73cftnp0"
ssh_enabled = false
name = "Production"
inactivity_expiration_enabled = false
approval_required = false
login_expiration_enabled = false
}
Schema
Required
id(String) Peer ID
Optional
approval_required(Boolean) Indicates whether peer needs approvalinactivity_expiration_enabled(Boolean) Enable inactivity expiration for peerlogin_expiration_enabled(Boolean) Indicates whether login expiration is enabled for peername(String) Peer Namessh_enabled(Boolean) Enable SSH to Peer
Read-Only
city_name(String) Peer city nameconnected(Boolean) Peer Connection Statusconnection_ip(String) Peer Public IPcountry_code(String) Peer country codedns_label(String) Peer DNS Labelextra_dns_labels(List of String) Peer extra DNS Labelsgeoname_id(Number) Peer Location IDgroups(List of String) Peer groupshostname(String) Peer's HOSTNAMEip(String) Peer IPkernel_version(String) Peer Kernel Versionlast_login(String) Time of peer last loginlast_seen(String) Peer Last Seen timedatelogin_expired(Boolean) Indicates whether peer login is expiredos(String) Peer OSserial_number(String) Peer device serial numberui_version(String) Peer UI Versionuser_id(String) User ID of peerversion(String) Peer Version