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_setup_key Data Source - netbird | Read SetupKey settings and metadata, see NetBird Docs https://docs.netbird.io/how-to/register-machines-using-setup-keys for more information. This can not read the plain SetupKey. |
netbird_setup_key (Data Source)
Read SetupKey settings and metadata, see NetBird Docs for more information.
This can not read the plain SetupKey.
Example Usage
# Retrieve by id
data "netbird_setup_key" "example" {
id = "TF Test"
}
# Retrieve by Name
data "netbird_setup_key" "example" {
name = "TF Test"
}
Schema
Optional
id(String) SetupKey IDname(String) SetupKey Name
Read-Only
allow_extra_dns_labels(Boolean) Allow extra DNS labels to be added to the peerauto_groups(List of String) List of groups to automatically assign to peers created through this setup keyephemeral(Boolean) Indicate that the peer will be ephemeral or not, ephemeral peers are deleted after 10 minutes of inactivityexpires(String) SetupKey Expiration Datelast_used(String) Last usage timerevoked(Boolean) Set to true to revoke setup keystate(String) Setup key state (valid or expired)type(String) Setup Key type (one-off or reusable)updated_at(String) Creation timestampusage_limit(Number) Maximum number of times SetupKey can be used (0 for unlimited)used_times(Number) Number of times Setup Key was usedvalid(Boolean) True if setup key can be used to create more Peers