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
Copy file name to clipboardExpand all lines: docs/data-sources/parameter.md
+34
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,38 @@ data "coder_parameter" "home_volume_size" {
130
130
monotonic = "increasing"
131
131
}
132
132
}
133
+
134
+
data "coder_parameter" "tools" {
135
+
name = "Tools"
136
+
description = "What tools do you want to install?"
137
+
type = "list(string)"
138
+
form_type = "multi-select"
139
+
stying = jsonencode({
140
+
disabled = false
141
+
})
142
+
default = jsonencode(["git", "docker"])
143
+
144
+
option {
145
+
value = "Docker"
146
+
name = "docker"
147
+
icon = "/icon/docker.svg"
148
+
}
149
+
option {
150
+
value = "Git"
151
+
name = "git"
152
+
icon = "/icon/git.svg"
153
+
}
154
+
option {
155
+
value = "Golang"
156
+
name = "go"
157
+
icon = "/icon/go.svg"
158
+
}
159
+
option {
160
+
value = "Typescript"
161
+
name = "ts"
162
+
icon = "/icon/typescript.svg"
163
+
}
164
+
}
133
165
```
134
166
135
167
<!-- schema generated by tfplugindocs -->
@@ -145,10 +177,12 @@ data "coder_parameter" "home_volume_size" {
145
177
-`description` (String) Describe what this parameter does.
146
178
-`display_name` (String) The displayed name of the parameter as it will appear in the interface.
147
179
-`ephemeral` (Boolean) The value of an ephemeral parameter will not be preserved between consecutive workspace builds.
180
+
-`form_type` (String) The type of this parameter. Must be one of: [radio, slider, input, dropdown, checkbox, switch, multi-select, tag-select, textarea, error].
148
181
-`icon` (String) A URL to an icon that will display in the dashboard. View built-in icons [here](https://github.com/coder/coder/tree/main/site/static/icon). Use a built-in icon with `"${data.coder_workspace.me.access_url}/icon/<path>"`.
149
182
-`mutable` (Boolean) Whether this value can be changed after workspace creation. This can be destructive for values like region, so use with caution!
150
183
-`option` (Block List) Each `option` block defines a value for a user to select from. (see [below for nested schema](#nestedblock--option))
151
184
-`order` (Number) The order determines the position of a template parameter in the UI/CLI presentation. The lowest order is shown first and parameters with equal order are sorted by name (ascending order).
185
+
-`styling` (String) JSON encoded string containing the metadata for controlling the appearance of this parameter in the UI. This option is purely cosmetic and does not affect the function of the parameter in terraform.
152
186
-`type` (String) The type of this parameter. Must be one of: `"number"`, `"string"`, `"bool"`, or `"list(string)"`.
153
187
-`validation` (Block List, Max: 1) Validate the input of a parameter. (see [below for nested schema](#nestedblock--validation))
0 commit comments