Skip to content

Commit

Permalink
v1.63.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinhard-Pilz-Dynatrace committed Aug 8, 2024
1 parent 52f20bf commit 887115b
Show file tree
Hide file tree
Showing 5 changed files with 177 additions and 1 deletion.
42 changes: 42 additions & 0 deletions docs/data-sources/api_token.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
layout: ""
page_title: "dynatrace_api_token Data Source - terraform-provider-dynatrace"
subcategory: "Access Tokens"
description: |-
The data source `dynatrace_api_token` covers queries for an access token
---

# dynatrace_api_token (Data Source)

The API token data source allows a single access token to be retrieved by its name, note the token value is not included in the response.

If multiple tokens match the given name, the first result will be retrieved. To retrieve multiple tokens of the same name, please utilize the `dynatrace_api_tokens` data source.

## Example Usage

```terraform
data "dynatrace_api_token" "example" {
name = "Terraform"
}
output "example" {
value = data.dynatrace_api_token.example
}
```

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

### Required

- `name` (String)

### Read-Only

- `creation_date` (String) Token creation date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
- `enabled` (Boolean) The token is enabled (true) or disabled (false), default disabled (false).
- `expiration_date` (String) The expiration date of the token.
- `id` (String) The ID of this resource.
- `owner` (String) The owner of the token
- `personal_access_token` (Boolean) The token is a personal access token (true) or an API token (false).
- `scopes` (Set of String) A list of the scopes to be assigned to the token.
47 changes: 47 additions & 0 deletions docs/data-sources/api_tokens.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
layout: ""
page_title: "dynatrace_api_tokens Data Source - terraform-provider-dynatrace"
subcategory: "Access Tokens"
description: |-
The data source `dynatrace_api_tokens` covers queries for a list of access tokens
---

# dynatrace_api_tokens (Data Source)

The API tokens data source allows all access tokens to be retrieved, note the token value is not included in the response.

## Example Usage

```terraform
data "dynatrace_api_tokens" "example" {
}
output "example" {
value = data.dynatrace_api_tokens.example
}
```

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

### Read-Only

- `api_tokens` (List of Object) (see [below for nested schema](#nestedatt--api_tokens))
- `id` (String) The ID of this resource.

<a id="nestedatt--api_tokens"></a>
### Nested Schema for `api_tokens`

Read-Only:

- `creation_date` (String)
- `enabled` (Boolean)
- `expiration_date` (String)
- `last_used_date` (String)
- `last_used_ip_address` (String)
- `modified_date` (String)
- `name` (String)
- `owner` (String)
- `personal_access_token` (Boolean)
- `scopes` (Set of String)
- `token` (String)
40 changes: 40 additions & 0 deletions docs/data-sources/generic_setting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
layout: ""
page_title: "dynatrace_generic_setting Data Source - terraform-provider-dynatrace"
subcategory: "Platform"
description: |-
The data source `dynatrace_generic_setting` covers queries for a Settings 2.0 object
---

# dynatrace_generic_setting (Data Source)

The generic setting data source allows a single Settings 2.0 object to be retrieved by its schema ID, scope, and/or filter.

If multiple objects match the given criteria, the first result will be retrieved.

## Example Usage

```terraform
data "dynatrace_generic_setting" "example" {
schema = "builtin:alerting.maintenance-window"
filter = "value.generalProperties.name = 'Terraform Example'"
}
output "generic_setting" {
value = data.dynatrace_generic_setting.example
}
```

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

### Optional

- `filter` (String) Filter of the requested objects
- `schema` (String) Schema IDs to which the requested objects belong
- `scope` (String) Scope that the requested objects target

### Read-Only

- `id` (String) The ID of this resource.
- `value` (String)
47 changes: 47 additions & 0 deletions docs/data-sources/generic_settings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
layout: ""
page_title: "dynatrace_generic_settings Data Source - terraform-provider-dynatrace"
subcategory: "Platform"
description: |-
The data source `dynatrace_generic_settings` covers queries for a list of Settings 2.0 objects
---

# dynatrace_generic_settings (Data Source)

The generic settings data source allows Settings 2.0 objects to be retrieved by its schema ID, scope, and/or filter.

## Example Usage

```terraform
data "dynatrace_generic_settings" "example" {
schema = "builtin:alerting.maintenance-window"
}
output "generic_settings" {
value = data.dynatrace_generic_settings.example
}
```

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

### Optional

- `filter` (String) Filter of the requested objects
- `schema` (String) Schema IDs to which the requested objects belong
- `scope` (String) Scope that the requested objects target

### Read-Only

- `id` (String) The ID of this resource.
- `values` (List of Object) (see [below for nested schema](#nestedatt--values))

<a id="nestedatt--values"></a>
### Nested Schema for `values`

Read-Only:

- `local_storage` (String)
- `schema` (String)
- `scope` (String)
- `value` (String)
2 changes: 1 addition & 1 deletion provider/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@

package version

const Current = "1.62.0"
const Current = "1.63.0"

0 comments on commit 887115b

Please sign in to comment.