|
| 1 | +--- |
| 2 | +layout: "" |
| 3 | +page_title: dynatrace_business_events_capturing_variants Resource - terraform-provider-dynatrace" |
| 4 | +subcategory: "Business Events" |
| 5 | +description: |- |
| 6 | + The resource `dynatrace_business_events_capturing_variants` covers configuration for OneAgent business event capturing variants |
| 7 | +--- |
| 8 | + |
| 9 | +# dynatrace_business_events_capturing_variants (Resource) |
| 10 | + |
| 11 | +-> This resource requires the API token scopes **Read settings** (`settings.read`) and **Write settings** (`settings.write`) |
| 12 | + |
| 13 | +## Dynatrace Documentation |
| 14 | + |
| 15 | +- Business event capture - https://docs.dynatrace.com/docs/observe/business-analytics/ba-events-capturing |
| 16 | + |
| 17 | +- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:bizevents.http.capturing-variants`) |
| 18 | + |
| 19 | +## Export Example Usage |
| 20 | + |
| 21 | +- `terraform-provider-dynatrace -export dynatrace_business_events_capturing_variants` downloads all existing OneAgent business event capturing variants configuration |
| 22 | + |
| 23 | +The full documentation of the export feature is available [here](https://dt-url.net/h203qmc). |
| 24 | + |
| 25 | +## Resource Example Usage |
| 26 | + |
| 27 | +```terraform |
| 28 | +resource "dynatrace_business_events_capturing_variants" "#name#" { |
| 29 | + content_type_matcher = "EQUALS" |
| 30 | + content_type_value = "#name#" |
| 31 | + parser = "Text" |
| 32 | + scope = "environment" |
| 33 | +} |
| 34 | +``` |
| 35 | + |
| 36 | +<!-- schema generated by tfplugindocs --> |
| 37 | +## Schema |
| 38 | + |
| 39 | +### Required |
| 40 | + |
| 41 | +- `content_type_matcher` (String) Possible Values: `CONTAINS`, `ENDS_WITH`, `EQUALS`, `STARTS_WITH` |
| 42 | +- `content_type_value` (String) Content-type match value |
| 43 | +- `parser` (String) Possible Values: `JSON`, `Raw`, `Text`, `URLencoded`, `XML` |
| 44 | + |
| 45 | +### Optional |
| 46 | + |
| 47 | +- `insert_after` (String) Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched |
| 48 | +- `scope` (String) The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment. |
| 49 | + |
| 50 | +### Read-Only |
| 51 | + |
| 52 | +- `id` (String) The ID of this resource. |
| 53 | + |
0 commit comments