You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new data source to list all templates in the org.
This should provide a list of all the templates names in a given Org.
This list should be able to be used to create a template data source based on the names returned.
Usage example:
data "env0_templates" "all_templates" {
organization = "1234" # The organization is normally part of the API key, just placed this here as an example
search = "Some search text " # This is not part of the current ticket requirement, but an example of how this can be used in the future....
}
data "env0_template" "templates" {
for_each = tomap(data.env0_templates.all_templates.names)
name = each.value
}
Add a new data source to list all templates in the org.
This should provide a list of all the templates names in a given Org.
This list should be able to be used to create a template data source based on the names returned.
Usage example:
data "env0_templates" "all_templates" {
organization = "1234" # The organization is normally part of the API key, just placed this here as an example
search = "Some search text " # This is not part of the current ticket requirement, but an example of how this can be used in the future....
}
data "env0_template" "templates" {
for_each = tomap(data.env0_templates.all_templates.names)
name = each.value
}
Relevant API:
The text was updated successfully, but these errors were encountered: