-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
update generated docs action
committed
Apr 28, 2022
1 parent
12008eb
commit 1042df9
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "env0_templates Data Source - terraform-provider-env0" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# env0_templates (Data Source) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "env0_templates" "all_templates" {} | ||
data "env0_template" "templates" { | ||
for_each = toset(data.env0_templates.all_templates.names) | ||
name = each.value | ||
} | ||
output "template1_name" { | ||
value = data.env0_template.templates["Github Test-111"].name | ||
} | ||
output "template2_name" { | ||
value = data.env0_template.templates["Github Test-222"].name | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- **id** (String) The ID of this resource. | ||
|
||
### Read-Only | ||
|
||
- **names** (List of String) list of all templates (by name) | ||
|
||
|