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
-**project** (String) The ID or full path of the project to environment is created for.
50
+
-`name` (String) The name of the environment.
51
+
-`project` (String) The ID or full path of the project to environment is created for.
44
52
45
53
### Optional
46
54
47
-
-**external_url** (String) Place to link to for this environment
48
-
-**id** (String) The ID of this resource.
55
+
-`external_url` (String) Place to link to for this environment.
56
+
-`id` (String) The ID of this resource.
57
+
-`stop_before_destroy` (Boolean) Determines whether the environment is attempted to be stopped before the environment is deleted.
49
58
50
59
### Read-Only
51
60
52
-
-**state** (String) State the environment is in. Valid values are `available`, `stopped`.
61
+
-`created_at` (String) The ISO8601 date/time that this environment was created at in UTC.
62
+
-`slug` (String) The name of the environment in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
63
+
-`state` (String) State the environment is in. Valid values are `available`, `stopped`.
64
+
-`updated_at` (String) The ISO8601 date/time that this environment was last updated at in UTC.
-**deploy_access_levels** (Block List, Min: 1) Array of access levels allowed to deploy, with each described by a hash. (see [below for nested schema](#nestedblock--deploy_access_levels))
71
-
-**environment** (String) The name of the environment.
72
-
-**project** (String) The ID or full path of the project which the protected environment is created against.
71
+
-`deploy_access_levels` (Block List, Min: 1, Max: 1) Array of access levels allowed to deploy, with each described by a hash. (see [below for nested schema](#nestedblock--deploy_access_levels))
72
+
-`environment` (String) The name of the environment.
73
+
-`project` (String) The ID or full path of the project which the protected environment is created against.
73
74
74
75
### Optional
75
76
76
-
-**id** (String) The ID of this resource.
77
+
-`id` (String) The ID of this resource.
77
78
78
79
<aid="nestedblock--deploy_access_levels"></a>
79
80
### Nested Schema for `deploy_access_levels`
80
81
81
82
Optional:
82
83
83
-
-**access_level** (String) Levels of access required to deploy to this protected environment. Valid values are `developer`, `maintainer`.
84
-
-**group_id** (Number) The ID of the group allowed to deploy to this protected environment.
85
-
-**user_id** (Number) The ID of the user allowed to deploy to this protected environment.
84
+
-`access_level` (String) Levels of access required to deploy to this protected environment. Valid values are `developer`, `maintainer`.
85
+
-`group_id` (Number) The ID of the group allowed to deploy to this protected environment. The project must be shared with the group.
86
+
-`user_id` (Number) The ID of the user allowed to deploy to this protected environment. The user must be a member of the project.
86
87
87
88
Read-Only:
88
89
89
-
-**access_level_description** (String) Readable description of level of access.
90
+
-`access_level_description` (String) Readable description of level of access.
returndiag.Errorf("[ERROR] cannot destroy gitlab project %q environment %q: Environment must be in a stopped state before deletion. Set stop_before_destroy flag to attempt to auto stop the environment on destruction", project, environmentIDInt)
200
+
returndiag.Errorf("[ERROR] cannot destroy gitlab project %s environment %d: Environment must be in a stopped state before deletion. Set stop_before_destroy flag to attempt to auto stop the environment on destruction", project, environmentID)
0 commit comments