From 5baeac91e9dc653920e8e0d7d7dc25c4adc3b87b Mon Sep 17 00:00:00 2001 From: update generated docs action Date: Mon, 17 Apr 2023 12:39:58 +0000 Subject: [PATCH] Update docs --- docs/resources/environment_state_access.md | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docs/resources/environment_state_access.md diff --git a/docs/resources/environment_state_access.md b/docs/resources/environment_state_access.md new file mode 100644 index 00000000..8457c223 --- /dev/null +++ b/docs/resources/environment_state_access.md @@ -0,0 +1,51 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "env0_environment_state_access Resource - terraform-provider-env0" +subcategory: "" +description: |- + +--- + +# env0_environment_state_access (Resource) + + + +## Example Usage + +```terraform +data "env0_environment" "environment" { + name = "Environment Name" +} + +data "env0_project" "project" { + name = "Project Name" +} + +resource "env0_environment_state_access" "example_allowed_projects" { + environment_id = data.env0_environment.environment.id + allowed_project_ids = [data.env0_project.project.id] +} + +resource "env0_environment_state_access" "example_entire_organization" { + environment_id = data.env0_environment.environment.id + accessible_from_entire_organization = true +} +``` + + +## Schema + +### Required + +- `environment_id` (String) id of the environment + +### Optional + +- `accessible_from_entire_organization` (Boolean) when this parameter is 'false', allowed_project_ids should be provided. Defaults to 'false' +- `allowed_project_ids` (List of String) list of allowed project_ids. Used when 'accessible_from_entire_organization' is 'false' + +### Read-Only + +- `id` (String) The ID of this resource. + +