sensor_visibility_exclusion_attachment
This resource allows managing the host groups attached to a sensor visibility exclusion policy. By default (when exclusive is true), this resource takes exclusive ownership over the host groups assigned to a sensor visibility exclusion 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 visibility exclusion please use the sensor_visibility_exclusion resource.
API Scopes
Section titled “API Scopes”The following API scopes are required:
- Sensor Visibility Exclusions: READ
- Sensor Visibility Exclusions: 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_visibility_exclusion_attachment" "example" { id = "34ef8e65eb1b4642861e389da3f7e82f" host_groups = ["ff1ca3nfr7899j1abf61c0448db28be5"]}
# exclusive = false can be used to only manage a subset of host groupsresource "crowdstrike_sensor_visibility_exclusion_attachment" "partial" { id = "34ef8e65eb1b4642861e389da3f7e82f" exclusive = false host_groups = ["ff1ca3nfr7899j1abf61c0448db28be5"]}
output "sensor_visibility_exclusion_attachment" { value = crowdstrike_sensor_visibility_exclusion_attachment.example}Schema
Section titled “Schema”Required
Section titled “Required”host_groups(Set of String) Host Group IDs to attach to the sensor visibility exclusion policy.id(String) The sensor visibility exclusion 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 visibility exclusion policy. When false, this resource only manages the specific host groups defined in the configuration, leaving other groups untouched.
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 Visibility Exclusion Attachment can be imported by specifying the id.terraform import crowdstrike_sensor_visibility_exclusion_attachment.example 34ef8e65eb1b4642861e389da3f7e82f