From fc3f9a595145d30047a8758e4917eeca66ada472 Mon Sep 17 00:00:00 2001 From: update generated docs action Date: Sun, 7 Apr 2024 13:45:55 +0000 Subject: [PATCH] Update docs --- docs/resources/team_environment_assignment.md | 10 ++++++++-- docs/resources/team_organization_assignment.md | 9 +++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/docs/resources/team_environment_assignment.md b/docs/resources/team_environment_assignment.md index a92d0091..3a5c5e41 100644 --- a/docs/resources/team_environment_assignment.md +++ b/docs/resources/team_environment_assignment.md @@ -38,11 +38,17 @@ resource "env0_custom_role" "custom_role" { ] } -resource "env0_team_environment_assignment" "assignment" { +resource "env0_team_environment_assignment" "custom_role_assignment" { team_id = env0_team.team.id environment_id = env0_environment.environment.id role_id = env0_custom_role.custom_role.id } + +resource "env0_team_environment_assignment" "builtin_role_assignment" { + team_id = env0_team.team.id + environment_id = env0_environment.environment.id + role_id = "Viewer" +} ``` @@ -51,7 +57,7 @@ resource "env0_team_environment_assignment" "assignment" { ### Required - `environment_id` (String) id of the environment -- `role_id` (String) id of the assigned role +- `role_id` (String) id of the assigned custom role. The following built-in roles can be passed as well: `Viewer`, `Planner`, `Deployer`, `Admin` - `team_id` (String) id of the team ### Read-Only diff --git a/docs/resources/team_organization_assignment.md b/docs/resources/team_organization_assignment.md index 3cc105e5..0b75f698 100644 --- a/docs/resources/team_organization_assignment.md +++ b/docs/resources/team_organization_assignment.md @@ -25,10 +25,15 @@ resource "env0_custom_role" "custom_role" { ] } -resource "env0_team_organization_assignment" "assignment" { +resource "env0_team_organization_assignment" "custom_role_assignment" { team_id = env0_team.team.id role_id = env0_custom_role.custom_role.id } + +resource "env0_team_organization_assignment" "builtin_role_assignment" { + team_id = env0_team.team.id + role_id = "Admin" +} ``` @@ -36,7 +41,7 @@ resource "env0_team_organization_assignment" "assignment" { ### Required -- `role_id` (String) id of the assigned role +- `role_id` (String) id of the assigned custom role. The following built-in roles can be passed as well: `User`, `Admin` - `team_id` (String) id of the team ### Read-Only