|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "elasticstack_kibana_security_exception_item Resource - terraform-provider-elasticstack" |
| 4 | +subcategory: "Kibana" |
| 5 | +description: |- |
| 6 | + Manages a Kibana Exception Item. Exception items define the specific query conditions used to prevent rules from generating alerts. |
| 7 | + See the Kibana Exceptions API documentation https://www.elastic.co/docs/api/doc/kibana/group/endpoint-security-exceptions-api for more details. |
| 8 | +--- |
| 9 | + |
| 10 | +# elasticstack_kibana_security_exception_item (Resource) |
| 11 | + |
| 12 | +Manages a Kibana Exception Item. Exception items define the specific query conditions used to prevent rules from generating alerts. |
| 13 | + |
| 14 | +See the [Kibana Exceptions API documentation](https://www.elastic.co/docs/api/doc/kibana/group/endpoint-security-exceptions-api) for more details. |
| 15 | + |
| 16 | +## Example Usage |
| 17 | + |
| 18 | +```terraform |
| 19 | +resource "elasticstack_kibana_security_exception_list" "example" { |
| 20 | + list_id = "my-exception-list" |
| 21 | + name = "My Exception List" |
| 22 | + description = "List of exceptions" |
| 23 | + type = "detection" |
| 24 | + namespace_type = "single" |
| 25 | +} |
| 26 | +
|
| 27 | +resource "elasticstack_kibana_security_exception_item" "complex_entry" { |
| 28 | + list_id = elasticstack_kibana_security_exception_list.example.list_id |
| 29 | + item_id = "complex-exception" |
| 30 | + name = "Complex Exception with Multiple Entries" |
| 31 | + description = "Exception with multiple conditions" |
| 32 | + type = "simple" |
| 33 | + namespace_type = "single" |
| 34 | +
|
| 35 | + # Multiple entries with different operators |
| 36 | + entries = [ |
| 37 | + { |
| 38 | + type = "match" |
| 39 | + field = "host.name" |
| 40 | + operator = "included" |
| 41 | + value = "trusted-host" |
| 42 | + }, |
| 43 | + { |
| 44 | + type = "match_any" |
| 45 | + field = "user.name" |
| 46 | + operator = "excluded" |
| 47 | + values = ["admin", "root"] |
| 48 | + } |
| 49 | + ] |
| 50 | +
|
| 51 | + os_types = ["linux"] |
| 52 | + tags = ["complex", "multi-condition"] |
| 53 | +} |
| 54 | +``` |
| 55 | + |
| 56 | +<!-- schema generated by tfplugindocs --> |
| 57 | +## Schema |
| 58 | + |
| 59 | +### Required |
| 60 | + |
| 61 | +- `description` (String) Describes the exception item. |
| 62 | +- `entries` (Attributes List) The exception item entries. This defines the conditions under which the exception applies. (see [below for nested schema](#nestedatt--entries)) |
| 63 | +- `list_id` (String) The exception list's identifier that this item belongs to. |
| 64 | +- `name` (String) The name of the exception item. |
| 65 | +- `type` (String) The type of exception item. Must be `simple`. |
| 66 | + |
| 67 | +### Optional |
| 68 | + |
| 69 | +- `comments` (Attributes List) Array of comments about the exception item. (see [below for nested schema](#nestedatt--comments)) |
| 70 | +- `expire_time` (String) The exception item's expiration date in RFC3339 format. This field is only available for regular exception items, not endpoint exceptions. |
| 71 | +- `item_id` (String) The exception item's human readable string identifier. |
| 72 | +- `meta` (String) Placeholder for metadata about the exception item as JSON string. |
| 73 | +- `namespace_type` (String) Determines whether the exception item is available in all Kibana spaces or just the space in which it is created. Can be `single` (default) or `agnostic`. |
| 74 | +- `os_types` (Set of String) Array of OS types for which the exceptions apply. Valid values: `linux`, `macos`, `windows`. |
| 75 | +- `space_id` (String) An identifier for the space. If space_id is not provided, the default space is used. |
| 76 | +- `tags` (Set of String) String array containing words and phrases to help categorize exception items. |
| 77 | + |
| 78 | +### Read-Only |
| 79 | + |
| 80 | +- `created_at` (String) The timestamp of when the exception item was created. |
| 81 | +- `created_by` (String) The user who created the exception item. |
| 82 | +- `id` (String) The unique identifier of the exception item (auto-generated by Kibana). |
| 83 | +- `tie_breaker_id` (String) Field used in search to ensure all items are sorted and returned correctly. |
| 84 | +- `updated_at` (String) The timestamp of when the exception item was last updated. |
| 85 | +- `updated_by` (String) The user who last updated the exception item. |
| 86 | + |
| 87 | +<a id="nestedatt--entries"></a> |
| 88 | +### Nested Schema for `entries` |
| 89 | + |
| 90 | +Required: |
| 91 | + |
| 92 | +- `field` (String) The field name. Required for all entry types. |
| 93 | +- `type` (String) The type of entry. Valid values: `match`, `match_any`, `list`, `exists`, `nested`, `wildcard`. |
| 94 | + |
| 95 | +Optional: |
| 96 | + |
| 97 | +- `entries` (Attributes List) Nested entries (for `nested` type). Only `match`, `match_any`, and `exists` entry types are allowed as nested entries. (see [below for nested schema](#nestedatt--entries--entries)) |
| 98 | +- `list` (Attributes) Value list reference (for `list` type). (see [below for nested schema](#nestedatt--entries--list)) |
| 99 | +- `operator` (String) The operator to use. Valid values: `included`, `excluded`. Note: The operator field is not supported for nested entry types and will be ignored if specified. |
| 100 | +- `value` (String) The value to match (for `match` and `wildcard` types). |
| 101 | +- `values` (List of String) Array of values to match (for `match_any` type). |
| 102 | + |
| 103 | +<a id="nestedatt--entries--entries"></a> |
| 104 | +### Nested Schema for `entries.entries` |
| 105 | + |
| 106 | +Required: |
| 107 | + |
| 108 | +- `field` (String) The field name. |
| 109 | +- `operator` (String) The operator to use. Valid values: `included`, `excluded`. |
| 110 | +- `type` (String) The type of nested entry. Valid values: `match`, `match_any`, `exists`. |
| 111 | + |
| 112 | +Optional: |
| 113 | + |
| 114 | +- `value` (String) The value to match (for `match` type). |
| 115 | +- `values` (List of String) Array of values to match (for `match_any` type). |
| 116 | + |
| 117 | + |
| 118 | +<a id="nestedatt--entries--list"></a> |
| 119 | +### Nested Schema for `entries.list` |
| 120 | + |
| 121 | +Required: |
| 122 | + |
| 123 | +- `id` (String) The value list ID. |
| 124 | +- `type` (String) The value list type (e.g., `keyword`, `ip`, `ip_range`). |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | +<a id="nestedatt--comments"></a> |
| 129 | +### Nested Schema for `comments` |
| 130 | + |
| 131 | +Required: |
| 132 | + |
| 133 | +- `comment` (String) The comment text. |
| 134 | + |
| 135 | +Read-Only: |
| 136 | + |
| 137 | +- `id` (String) The unique identifier of the comment (auto-generated by Kibana). |
0 commit comments