mirror of
https://github.com/netbirdio/terraform-provider-netbird.git
synced 2026-05-22 17:13:16 -07:00
1.7 KiB
1.7 KiB
page_title, subcategory, description
| page_title | subcategory | description |
|---|---|---|
| netbird_peer Data Source - netbird | Read Peer information. |
netbird_peer (Data Source)
Read Peer information.
Example Usage
# Retrieve by IP
data "netbird_peer" "example" {
ip = "1.2.3.4"
}
# Retrieve by Name
data "netbird_peer" "example" {
name = "Production"
}
# Retrieve by ID
data "netbird_peer" "example" {
id = "d057h0jl0ubs73cftnp0"
}
Schema
Optional
id(String) Peer IDip(String) Peer IPname(String) Peer Name
Read-Only
approval_required(Boolean) Indicates whether peer needs approvalcity_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 HOSTNAMEinactivity_expiration_enabled(Boolean) Enable inactivity expiration for peerkernel_version(String) Peer Kernel Versionlast_login(String) Time of peer last loginlast_seen(String) Peer Last Seen timedatelogin_expiration_enabled(Boolean) Indicates whether login expiration is enabled for peerlogin_expired(Boolean) Indicates whether peer login is expiredos(String) Peer OSserial_number(String) Peer device serial numberssh_enabled(Boolean) Enable SSH to Peerui_version(String) Peer UI Versionuser_id(String) User ID of peerversion(String) Peer Version