Skip to content

Commit

Permalink
v1.70.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kishikawa12 committed Nov 8, 2024
1 parent d11c425 commit fd23293
Show file tree
Hide file tree
Showing 13 changed files with 484 additions and 12 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/iam_policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Changes to Outputs:
- `accounts` (List of String) The results will contain policies defined for the given accountID. If one of the entries contains `*` the results will contain policies for all accounts
- `environments` (List of String) The results will contain policies defined for the given environments. If one of the entries contains `*` the results will contain policies for all environments
- `global` (Boolean) If `true` the results will contain global policies
- `groups` (List of String) The results will only contain policies that are bound to the specified groups. Omit this attribute if you want to retrieve all policies

### Read-Only

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/tenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "dynatrace_iam_group" "some_group" {
permission {
name = "tenant-manage-settings"
type = "tenant"
scope = data.dynarace_tenant.tenant.id
scope = data.dynatrace_tenant.tenant.id
}
}
```
Expand Down
10 changes: 10 additions & 0 deletions docs/guides/supported-resources.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: ""
page_title: "Supported Resources"
description: |-
Full list of supported provider resources for Dynatrace Configuration as Code via Terraform.
---

# Supported Resources

Full list of supported Dynatrace Terraform provider resources with details on API endpoint and permissions is available [here](https://github.com/dynatrace-oss/terraform-provider-dynatrace/blob/main/documentation/supported-resources.md).
1 change: 1 addition & 0 deletions docs/resources/automation_workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ Optional:
- `position` (Block List, Max: 1) Layouting information about the task tile when visualized. If not specified Dynatrace will position the task tiles automatically (see [below for nested schema](#nestedblock--tasks--task--position))
- `retry` (Block List, Max: 1) Configure whether to automatically rerun the task on failure. If not specified no retries will be attempted (see [below for nested schema](#nestedblock--tasks--task--retry))
- `timeout` (String) Specifies a default task timeout in seconds. 15 * 60 (15min) is used when not set. Minimum 1. Maximum 604800
- `wait_before` (String) Specifies a default task wait before in seconds. 0 is used when not set
- `with_items` (String) Iterates over items in a list, allowing actions to be executed repeatedly. Example: Specifying `item in [1, 2, 3]` here will execute the task three times for the numbers 1, 2 and 3 - with the current number available for scripting using the expression `{{ _.item }}`

<a id="nestedblock--tasks--task--conditions"></a>
Expand Down
42 changes: 42 additions & 0 deletions docs/resources/cloud_development_environments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
layout: ""
page_title: "dynatrace_cloud_development_environments Resource - terraform-provider-dynatrace"
subcategory: "Environment Settings"
description: |-
The resource `dynatrace_cloud_development_environments` covers configuration for cloud development environments
---

# dynatrace_cloud_development_environments (Resource)

-> This resource requires the API token scopes **Read settings** (`settings.read`) and **Write settings** (`settings.write`)

## Dynatrace Documentation

- AppEngine - https://docs.dynatrace.com/docs/platform/appengine

- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:app-engine-registry.cloud-development-environments`)

## Export Example Usage

- `terraform-provider-dynatrace -export dynatrace_cloud_development_environments` downloads existing cloud development environments configuration

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

## Resource Example Usage

```terraform
resource "dynatrace_cloud_development_environments" "#name#" {
cloud_development_environments = ["https://example1.my-company.my-cde-provider.com", "https://example2.my-company.my-cde-provider.com", "https://example3.my-company.my-cde-provider.com"]
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `cloud_development_environments` (Set of String) The URL to allow app development from. E.g. `https://*.my-company.my-cde-provider.com`.

### Read-Only

- `id` (String) The ID of this resource.
145 changes: 143 additions & 2 deletions docs/resources/direct_shares.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ description: |-

```terraform
resource "dynatrace_direct_shares" "this" {
document_id = "441564f0-23c9-40ef-b344-18c02c23d712"
document_id = dynatrace_document.this.id
access = "read-write"
recipients {
Expand All @@ -37,6 +37,147 @@ resource "dynatrace_direct_shares" "this" {
}
}
}
resource "dynatrace_document" "this" {
type = "dashboard"
name = "#name#"
content = jsonencode(
{
"version" : 13,
"variables" : [],
"tiles" : {
"0" : {
"type" : "markdown",
"title" : "",
"content" : "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)"
},
"1" : {
"type" : "data",
"title" : "",
"query" : "timeseries avg(dt.host.cpu.user)",
"queryConfig" : {
"additionalFilters" : {},
"version" : "4.3.1",
"datatype" : "metrics",
"metricKey" : "dt.host.cpu.user",
"aggregation" : "avg",
"by" : []
},
"subType" : "dql-builder-metrics",
"visualization" : "lineChart",
"visualizationSettings" : {
"thresholds" : [],
"chartSettings" : {
"gapPolicy" : "connect",
"circleChartSettings" : {
"groupingThresholdType" : "relative",
"groupingThresholdValue" : 0,
"valueType" : "relative"
},
"categoryOverrides" : {},
"fieldMapping" : {
"timestamp" : "timeframe",
"leftAxisValues" : [
"avg(dt.host.cpu.user)"
],
"leftAxisDimensions" : [],
"fields" : [],
"values" : []
}
},
"singleValue" : {
"showLabel" : true,
"label" : "",
"prefixIcon" : "",
"autoscale" : true,
"alignment" : "center",
"colorThresholdTarget" : "value"
},
"table" : {
"rowDensity" : "condensed",
"enableSparklines" : false,
"hiddenColumns" : [],
"lineWrapIds" : [],
"columnWidths" : {}
}
}
},
"2" : {
"type" : "data",
"title" : "",
"query" : "timeseries avg(dt.host.memory.used)",
"queryConfig" : {
"additionalFilters" : {},
"version" : "4.3.1",
"datatype" : "metrics",
"metricKey" : "dt.host.memory.used",
"aggregation" : "avg",
"by" : []
},
"subType" : "dql-builder-metrics",
"visualization" : "lineChart",
"visualizationSettings" : {
"thresholds" : [],
"chartSettings" : {
"gapPolicy" : "connect",
"circleChartSettings" : {
"groupingThresholdType" : "relative",
"groupingThresholdValue" : 0,
"valueType" : "relative"
},
"categoryOverrides" : {},
"fieldMapping" : {
"timestamp" : "timeframe",
"leftAxisValues" : [
"avg(dt.host.memory.used)"
],
"leftAxisDimensions" : [],
"fields" : [],
"values" : []
},
"categoricalBarChartSettings" : {}
},
"singleValue" : {
"showLabel" : true,
"label" : "",
"prefixIcon" : "",
"autoscale" : true,
"alignment" : "center",
"colorThresholdTarget" : "value"
},
"table" : {
"rowDensity" : "condensed",
"enableSparklines" : false,
"hiddenColumns" : [],
"lineWrapIds" : [],
"columnWidths" : {}
}
}
}
},
"layouts" : {
"0" : {
"x" : 0,
"y" : 0,
"w" : 24,
"h" : 14
},
"1" : {
"x" : 0,
"y" : 14,
"w" : 9,
"h" : 6
},
"2" : {
"x" : 15,
"y" : 14,
"w" : 9,
"h" : 6
}
}
}
)
}
```


Expand All @@ -61,7 +202,7 @@ resource "dynatrace_direct_shares" "this" {

Optional:

- `recipient` (Block List, Max: 1000) Recipient of the direct share (see [below for nested schema](#nestedblock--recipients--recipient))
- `recipient` (Block Set, Max: 1000) Recipient of the direct share (see [below for nested schema](#nestedblock--recipients--recipient))

<a id="nestedblock--recipients--recipient"></a>
### Nested Schema for `recipients.recipient`
Expand Down
Loading

0 comments on commit fd23293

Please sign in to comment.