sensor_update_policy_host_group_attachment
This resource allows managing the host groups attached to a sensor update policy. By default (when exclusive is true), this resource takes exclusive ownership over the host groups assigned to a sensor update policy. When exclusive is false, this resource only manages the specific host groups defined in the configuration. If you want to fully create or manage a sensor update policy please use the crowdstrike_sensor_update_policy resource.
API Scopes
Section titled “API Scopes”The following API scopes are required:
- Sensor update policies: READ
- Sensor update policies: WRITE
Example Usage
Section titled “Example Usage”terraform { required_providers { crowdstrike = { source = "registry.terraform.io/crowdstrike/crowdstrike" } }}
provider "crowdstrike" { cloud = "us-2"}
resource "crowdstrike_sensor_update_policy_host_group_attachment" "example" { id = "34ef8e65eb1b4642861e389da3f7e82f" host_groups = ["ff1ca3nfr7899j1abf61c0448db28be5"]}
# exclusive = false can be used to only manage a subset of host groupsresource "crowdstrike_sensor_update_policy_host_group_attachment" "partial" { id = "34ef8e65eb1b4642861e389da3f7e82f" exclusive = false host_groups = ["ff1ca3nfr7899j1abf61c0448db28be5"]}
output "sensor_update_policy_host_group_attachment" { value = crowdstrike_sensor_update_policy_host_group_attachment.example}Schema
Section titled “Schema”Required
Section titled “Required”id(String) The sensor update policy id you want to attach to.
Optional
Section titled “Optional”exclusive(Boolean) When true (default), this resource takes exclusive ownership of all host groups attached to the sensor update policy. When false, this resource only manages the specific host groups defined in the configuration, leaving other groups untouched.host_groups(Set of String) Host Group ids to attach to the sensor update policy.
Read-Only
Section titled “Read-Only”last_updated(String) Timestamp of the last Terraform update of the resource.
Import
Section titled “Import”Import is supported using the following syntax:
# Sensor Update Policy Host Group Attachment can be imported by specifying the id.terraform import crowdstrike_sensor_update_policy_host_group_attachment.example 7fb858a949034a0cbca175f660f1e769