diff --git a/docs/data-sources/variable_set.md b/docs/data-sources/variable_set.md new file mode 100644 index 00000000..a8c3295c --- /dev/null +++ b/docs/data-sources/variable_set.md @@ -0,0 +1,46 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "env0_variable_set Data Source - terraform-provider-env0" +subcategory: "" +description: |- + +--- + +# env0_variable_set (Data Source) + + + +## Example Usage + +```terraform +data "env0_project" "project" { + name = "my project name" +} + +data "env0_variable_set" "variable_set_project_scope" { + name = "variable set name" + scope = "PROJECT" + project_id = data.env0_project.project.id +} + +data "env0_variable_set" "variable_set_organization_scope" { + name = "variable set name" + scope = "ORGANIZATION" +} +``` + + +## Schema + +### Required + +- `name` (String) the name of the variable set +- `scope` (String) the scope of the variable set. Valid values: 'ORGANIZATION', or 'PROJECT' + +### Optional + +- `project_id` (String) the id of the 'PROJECT' scope. Is not required for 'ORGANIZATION' scope + +### Read-Only + +- `id` (String) the id variable set