3
3
page_title : " coderd_organization Resource - terraform-provider-coderd"
4
4
subcategory : " "
5
5
description : |-
6
- An organization on the Coder deployment
6
+ An organization on the Coder deployment.
7
+ ~> Warning
8
+ This resource is only compatible with Coder version 2.16.0 https://github.com/coder/coder/releases/tag/v2.16.0 and later.
7
9
---
8
10
9
11
# coderd_organization (Resource)
10
12
11
- An organization on the Coder deployment
13
+ An organization on the Coder deployment.
14
+
15
+ ~ > ** Warning**
16
+ This resource is only compatible with Coder version [ 2.16.0] ( https://github.com/coder/coder/releases/tag/v2.16.0 ) and later.
12
17
13
18
14
19
@@ -23,9 +28,9 @@ An organization on the Coder deployment
23
28
24
29
- ` description ` (String)
25
30
- ` display_name ` (String) Display name of the organization. Defaults to name.
26
- - ` group_sync ` (Block, Optional) (see [ below for nested schema] ( #nestedblock--group_sync ) )
31
+ - ` group_sync ` (Block, Optional) Group sync settings to sync groups from an IdP. (see [ below for nested schema] ( #nestedblock--group_sync ) )
27
32
- ` icon ` (String)
28
- - ` role_sync ` (Block, Optional) (see [ below for nested schema] ( #nestedblock--role_sync ) )
33
+ - ` role_sync ` (Block, Optional) Role sync settings to sync organization roles from an IdP. (see [ below for nested schema] ( #nestedblock--role_sync ) )
29
34
30
35
### Read-Only
31
36
@@ -55,6 +60,15 @@ Optional:
55
60
Import is supported using the following syntax:
56
61
57
62
``` shell
58
- # Organizations can be imported by their name
59
- terraform import coderd_organization.our_org our_org
63
+ # The ID supplied can be either a organization UUID retrieved via the API
64
+ # or the name of the organization.
65
+ $ terraform import coderd_organization.our_org our-org
66
+ ```
67
+ Alternatively, in Terraform v1.5.0 and later, an [ ` import ` block] ( https://developer.hashicorp.com/terraform/language/import ) can be used:
68
+
69
+ ``` terraform
70
+ import {
71
+ to = coderd_organization.our_org
72
+ id = "our-org"
73
+ }
60
74
```
0 commit comments