mirror of
https://github.com/netbirdio/terraform-provider-netbird.git
synced 2026-05-22 17:13:16 -07:00
3.4 KiB
3.4 KiB
page_title, subcategory, description
| page_title | subcategory | description |
|---|---|---|
| netbird_posture_check Resource - netbird | Create and Manage Posture Checks, see NetBird Docs https://docs.netbird.io/how-to/manage-posture-checks for more information. |
netbird_posture_check (Resource)
Create and Manage Posture Checks, see NetBird Docs for more information.
Example Usage
resource "netbird_posture_check" "example" {
name = "TF Test"
description = "Meow"
netbird_version_check {
min_version = "0.1.0"
}
os_version_check {
android_min_version = "0.0.0"
ios_min_version = "0.0.0"
darwin_min_version = "0.0.0"
linux_min_kernel_version = "0.0.0"
windows_min_kernel_version = "0.0.1"
}
geo_location_check {
locations = [
{
country_code = "EG"
},
{
country_code = "DE"
}
]
action = "allow"
}
peer_network_range_check {
ranges = [
"0.0.0.0/0"
]
action = "allow"
}
process_check {
linux_path = "/some/path/in/linux"
mac_path = "/some/path/in/mac"
}
process_check {
linux_path = "/some/path/in/linux"
windows_path = "C:\\some\\path\\in\\windows"
}
}
Schema
Required
name(String) PostureCheck Name
Optional
description(String) PostureCheck descriptiongeo_location_check(Block, Optional) (see below for nested schema)netbird_version_check(Block, Optional) (see below for nested schema)os_version_check(Block, Optional) (see below for nested schema)peer_network_range_check(Block, Optional) (see below for nested schema)process_check(Block List) (see below for nested schema)
Read-Only
id(String) PostureCheck ID
Nested Schema for geo_location_check
Optional:
action(String)locations(Attributes List) (see below for nested schema)
Nested Schema for geo_location_check.locations
Required:
country_code(String)
Optional:
city_name(String)
Nested Schema for netbird_version_check
Optional:
min_version(String)
Nested Schema for os_version_check
Optional:
android_min_version(String)darwin_min_version(String)ios_min_version(String)linux_min_kernel_version(String)windows_min_kernel_version(String)
Nested Schema for peer_network_range_check
Optional:
action(String)ranges(List of String)
Nested Schema for process_check
Optional:
linux_path(String)mac_path(String)windows_path(String)
Import
Import is supported using the following syntax:
terraform import netbird_posture_check.example posture_check_id
# For example
terraform import netbird_posture_check.example cvr9ibrl0ubs73c11gr0