Skip to content

Commit d003757

Browse files
committed
v1.61.0
1 parent 70f115c commit d003757

10 files changed

+293
-15
lines changed

docs/resources/automation_workflow_jira.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ resource "dynatrace_automation_workflow_jira" "#name#"{
4545

4646
### Optional
4747

48-
- `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+
- `insert_after` (String, Deprecated) 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
4949
- `password` (String, Sensitive) Password of the Jira user
5050
- `token` (String, Sensitive) Token for the selected authentication type
5151
- `user` (String) Username or E-Mail address

docs/resources/automation_workflow_slack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ resource "dynatrace_automation_workflow_slack" "#name#" {
4343

4444
### Optional
4545

46-
- `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
46+
- `insert_after` (String, Deprecated) 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
4747

4848
### Read-Only
4949

docs/resources/business_events_oneagent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: ""
33
page_title: dynatrace_business_events_oneagent Resource - terraform-provider-dynatrace"
44
subcategory: "Business Events"
55
description: |-
6-
The resource `dynatrace_business_events_oneagent` covers configuration for OneAgent business events
6+
The resource `dynatrace_business_events_oneagent` covers configuration for OneAgent business events based on incoming HTTP requests
77
---
88

99
# dynatrace_business_events_oneagent (Resource)
@@ -18,7 +18,7 @@ description: |-
1818

1919
## Export Example Usage
2020

21-
- `terraform-provider-dynatrace -export dynatrace_business_events_oneagent` downloads all existing OneAgent business events
21+
- `terraform-provider-dynatrace -export dynatrace_business_events_oneagent` downloads all existing OneAgent business events based on incoming HTTP requests
2222

2323
The full documentation of the export feature is available [here](https://dt-url.net/h203qmc).
2424

Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
---
2+
layout: ""
3+
page_title: dynatrace_business_events_oneagent_outgoing Resource - terraform-provider-dynatrace"
4+
subcategory: "Business Events"
5+
description: |-
6+
The resource `dynatrace_business_events_oneagent_outgoing` covers configuration for OneAgent business events based on outgoing HTTP requests
7+
---
8+
9+
# dynatrace_business_events_oneagent_outgoing (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://www.dynatrace.com/support/help/platform-modules/business-analytics/ba-events-capturing#report-business-event-oneagent
16+
17+
- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:bizevents.http.outgoingg`)
18+
19+
## Export Example Usage
20+
21+
- `terraform-provider-dynatrace -export dynatrace_business_events_oneagent_outgoing` downloads all existing OneAgent business events based on outgoing HTTP requests
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_oneagent_outgoing" "#name#" {
29+
enabled = true
30+
rule_name = "#name#"
31+
scope = "environment"
32+
event {
33+
category {
34+
source = "Category 1"
35+
source_type = "constant.string"
36+
}
37+
data {
38+
event_data_field_complex {
39+
name = "Field 1"
40+
source {
41+
path = "Path 1"
42+
source_type = "request.body"
43+
}
44+
}
45+
}
46+
provider {
47+
source = "Provider 1"
48+
source_type = "constant.string"
49+
}
50+
type {
51+
source = "Type 1"
52+
source_type = "constant.string"
53+
}
54+
}
55+
triggers {
56+
trigger {
57+
type = "EQUALS"
58+
case_sensitive = false
59+
value = "Terraform"
60+
source {
61+
data_source = "request.path"
62+
}
63+
}
64+
}
65+
}
66+
```
67+
68+
<!-- schema generated by tfplugindocs -->
69+
## Schema
70+
71+
### Required
72+
73+
- `enabled` (Boolean) This setting is enabled (`true`) or disabled (`false`)
74+
- `event` (Block List, Min: 1, Max: 1) Event meta data (see [below for nested schema](#nestedblock--event))
75+
- `rule_name` (String) Rule name
76+
- `triggers` (Block List, Min: 1, Max: 1) Define conditions to trigger business events from incoming web requests. Triggers are connected by AND logic per capture rule. If you set multiple trigger rules, all of them need to be fulfilled to capture a business event. (see [below for nested schema](#nestedblock--triggers))
77+
78+
### Optional
79+
80+
- `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
81+
- `scope` (String) The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
82+
83+
### Read-Only
84+
85+
- `id` (String) The ID of this resource.
86+
87+
<a id="nestedblock--event"></a>
88+
### Nested Schema for `event`
89+
90+
Required:
91+
92+
- `category` (Block List, Min: 1, Max: 1) Event category (see [below for nested schema](#nestedblock--event--category))
93+
- `provider` (Block List, Min: 1, Max: 1) Event provider (see [below for nested schema](#nestedblock--event--provider))
94+
- `type` (Block List, Min: 1, Max: 1) Event type (see [below for nested schema](#nestedblock--event--type))
95+
96+
Optional:
97+
98+
- `data` (Block List, Max: 1) Additional attributes for the business event. (see [below for nested schema](#nestedblock--event--data))
99+
100+
<a id="nestedblock--event--category"></a>
101+
### Nested Schema for `event.category`
102+
103+
Required:
104+
105+
- `source_type` (String) Possible Values: `Constant_string`, `Request_body`, `Request_headers`, `Request_method`, `Request_parameters`, `Request_path`, `Request_url`, `Response_body`, `Response_headers`, `Response_statusCode`
106+
107+
Optional:
108+
109+
- `path` (String) [See our documentation](https://dt-url.net/ei034bx)
110+
- `source` (String) Fixed value
111+
112+
113+
<a id="nestedblock--event--provider"></a>
114+
### Nested Schema for `event.provider`
115+
116+
Required:
117+
118+
- `source_type` (String) Possible Values: `Constant_string`, `Request_body`, `Request_headers`, `Request_method`, `Request_parameters`, `Request_path`, `Request_url`, `Response_body`, `Response_headers`, `Response_statusCode`
119+
120+
Optional:
121+
122+
- `path` (String) [See our documentation](https://dt-url.net/ei034bx)
123+
- `source` (String) Fixed value
124+
125+
126+
<a id="nestedblock--event--type"></a>
127+
### Nested Schema for `event.type`
128+
129+
Required:
130+
131+
- `source_type` (String) Possible Values: `Constant_string`, `Request_body`, `Request_headers`, `Request_method`, `Request_parameters`, `Request_path`, `Request_url`, `Response_body`, `Response_headers`, `Response_statusCode`
132+
133+
Optional:
134+
135+
- `path` (String) [See our documentation](https://dt-url.net/ei034bx)
136+
- `source` (String) Fixed value
137+
138+
139+
<a id="nestedblock--event--data"></a>
140+
### Nested Schema for `event.data`
141+
142+
Required:
143+
144+
- `event_data_field_complex` (Block Set, Min: 1) (see [below for nested schema](#nestedblock--event--data--event_data_field_complex))
145+
146+
<a id="nestedblock--event--data--event_data_field_complex"></a>
147+
### Nested Schema for `event.data.event_data_field_complex`
148+
149+
Required:
150+
151+
- `name` (String) Field name to be added to data.
152+
- `source` (Block List, Min: 1, Max: 1) no documentation available (see [below for nested schema](#nestedblock--event--data--event_data_field_complex--source))
153+
154+
<a id="nestedblock--event--data--event_data_field_complex--source"></a>
155+
### Nested Schema for `event.data.event_data_field_complex.source`
156+
157+
Required:
158+
159+
- `source_type` (String) Possible Values: `Constant_string`, `Request_body`, `Request_headers`, `Request_method`, `Request_parameters`, `Request_path`, `Request_url`, `Response_body`, `Response_headers`, `Response_statusCode`
160+
161+
Optional:
162+
163+
- `path` (String) [See our documentation](https://dt-url.net/ei034bx)
164+
- `source` (String) Fixed value
165+
166+
167+
168+
169+
170+
<a id="nestedblock--triggers"></a>
171+
### Nested Schema for `triggers`
172+
173+
Required:
174+
175+
- `trigger` (Block Set, Min: 1) (see [below for nested schema](#nestedblock--triggers--trigger))
176+
177+
<a id="nestedblock--triggers--trigger"></a>
178+
### Nested Schema for `triggers.trigger`
179+
180+
Required:
181+
182+
- `source` (Block List, Min: 1, Max: 1) no documentation available (see [below for nested schema](#nestedblock--triggers--trigger--source))
183+
- `type` (String) Possible Values: `CONTAINS`, `ENDS_WITH`, `EQUALS`, `EXISTS`, `N_CONTAINS`, `N_ENDS_WITH`, `N_EQUALS`, `N_EXISTS`, `N_STARTS_WITH`, `STARTS_WITH`
184+
185+
Optional:
186+
187+
- `case_sensitive` (Boolean) Case sensitive
188+
- `value` (String) no documentation available
189+
190+
<a id="nestedblock--triggers--trigger--source"></a>
191+
### Nested Schema for `triggers.trigger.source`
192+
193+
Required:
194+
195+
- `data_source` (String) Possible Values: `Request_body`, `Request_headers`, `Request_method`, `Request_parameters`, `Request_path`, `Request_url`, `Response_body`, `Response_headers`, `Response_statusCode`
196+
197+
Optional:
198+
199+
- `path` (String) [See our documentation](https://dt-url.net/ei034bx)
200+

docs/resources/credentials.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ resource "dynatrace_credentials" "name" {
4343
### Optional
4444

4545
- `allow_contextless_requests` (Boolean) Allow ad-hoc functions to access the credential details (requires the APP_ENGINE scope).
46+
- `allowed_entities` (Block List, Max: 1) The set of entities allowed to use the credential. (see [below for nested schema](#nestedblock--allowed_entities))
4647
- `certificate` (String) The certificate in the string format.
4748
- `credential_usage_summary` (Block List, Max: 2, Deprecated) The list contains summary data related to the use of credentials (see [below for nested schema](#nestedblock--credential_usage_summary))
4849
- `description` (String) A short description of the credentials set
@@ -60,6 +61,23 @@ resource "dynatrace_credentials" "name" {
6061

6162
- `id` (String) The ID of this resource.
6263

64+
<a id="nestedblock--allowed_entities"></a>
65+
### Nested Schema for `allowed_entities`
66+
67+
Required:
68+
69+
- `entity` (Block Set, Min: 1) The set of entities allowed to use the credential. (see [below for nested schema](#nestedblock--allowed_entities--entity))
70+
71+
<a id="nestedblock--allowed_entities--entity"></a>
72+
### Nested Schema for `allowed_entities.entity`
73+
74+
Optional:
75+
76+
- `id` (String) ID of the entity
77+
- `type` (String) Type of entity. Possible values: `USER`, `APPLICATION`, `UNKNOWN`
78+
79+
80+
6381
<a id="nestedblock--credential_usage_summary"></a>
6482
### Nested Schema for `credential_usage_summary`
6583

docs/resources/disk_edge_anomaly_detectors.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ resource "dynatrace_disk_edge_anomaly_detectors" "#name#" {
4949
metadata_value = "ExampleValue"
5050
}
5151
}
52-
host_metadata_conditions {
53-
host_metadata_condition {
54-
host_metadata_condition {
55-
metadata_condition = "$contains(terraform)"
56-
metadata_key = "ExampleKey"
57-
}
58-
}
59-
}
52+
# host_metadata_conditions { # Disabling until v297
53+
# host_metadata_condition {
54+
# host_metadata_condition {
55+
# metadata_condition = "$contains(terraform)"
56+
# metadata_key = "ExampleKey"
57+
# }
58+
# }
59+
# }
6060
}
6161
```
6262

@@ -74,6 +74,7 @@ resource "dynatrace_disk_edge_anomaly_detectors" "#name#" {
7474
- `disk_name_filters` (Set of String) Disk will be included in this policy if **any** of the filters match
7575
- `event_properties` (Block List, Max: 1) Set of additional key-value properties to be attached to the triggered event. (see [below for nested schema](#nestedblock--event_properties))
7676
- `host_metadata_conditions` (Block List, Max: 1) The policy will be enabled if **all** conditions are met (see [below for nested schema](#nestedblock--host_metadata_conditions))
77+
- `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
7778
- `operating_system` (Set of String) Select the operating systems on which policy should be applied
7879
- `scope` (String) The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
7980

@@ -178,4 +179,8 @@ Available logic operations:
178179

179180
Brackets **(** and **)** that are part of the matched property **must be escaped with a tilde (~)**
180181
- `metadata_key` (String) Key
182+
183+
Optional:
184+
185+
- `key_must_exist` (Boolean) When enabled, the condition requires a metadata key to exist and match the constraints; when disabled, the key is optional but must still match the constrains if it is present.
181186

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
layout: ""
3+
page_title: dynatrace_oneagent_default_mode Resource - terraform-provider-dynatrace"
4+
subcategory: "Environment Settings"
5+
description: |-
6+
The resource `dynatrace_oneagent_default_mode` covers configuration for OneAgent default mode
7+
---
8+
9+
# dynatrace_oneagent_default_mode (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+
- Application Security and monitoring modes - https://docs.dynatrace.com/docs/platform-modules/application-security/getting-started/monitoring-modes
16+
17+
- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:deployment.oneagent.default-mode`)
18+
19+
## Export Example Usage
20+
21+
- `terraform-provider-dynatrace -export dynatrace_oneagent_default_mode` downloads existing OneAgent default mode 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_oneagent_default_mode" "#name#" {
29+
default_mode = "FULL_STACK"
30+
}
31+
```
32+
33+
<!-- schema generated by tfplugindocs -->
34+
## Schema
35+
36+
### Required
37+
38+
- `default_mode` (String) Possible Values: `DISCOVERY`, `FULL_STACK`, `INFRASTRUCTURE`
39+
40+
### Read-Only
41+
42+
- `id` (String) The ID of this resource.
43+

docs/resources/os_services.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Use one of the following values as a parameter for this condition:
156156

157157
Required:
158158

159-
- `metadata_condition` (String) This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk).
159+
- `metadata_condition` (String) This string has to match a required format.
160160

161161
- `$contains(production)` – Matches if `production` appears anywhere in the host metadata value.
162162
- `$eq(production)` – Matches if `production` matches the host metadata value exactly.
@@ -171,6 +171,10 @@ Available logic operations:
171171
Brackets **(** and **)** that are part of the matched property **must be escaped with a tilde (~)**
172172
- `metadata_key` (String) Key
173173

174+
Optional:
175+
176+
- `key_must_exist` (Boolean) When enabled, the condition requires a metadata key to exist and match the constraints; when disabled, the key is optional but must still match the constrains if it is present.
177+
174178

175179

176180

@@ -225,7 +229,7 @@ Use one of the following values as a parameter for this condition:
225229

226230
Required:
227231

228-
- `metadata_condition` (String) This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk).
232+
- `metadata_condition` (String) This string has to match a required format.
229233

230234
- `$contains(production)` – Matches if `production` appears anywhere in the host metadata value.
231235
- `$eq(production)` – Matches if `production` matches the host metadata value exactly.
@@ -240,6 +244,10 @@ Available logic operations:
240244
Brackets **(** and **)** that are part of the matched property **must be escaped with a tilde (~)**
241245
- `metadata_key` (String) Key
242246

247+
Optional:
248+
249+
- `key_must_exist` (Boolean) When enabled, the condition requires a metadata key to exist and match the constraints; when disabled, the key is optional but must still match the constrains if it is present.
250+
243251

244252

245253

0 commit comments

Comments
 (0)