Skip to content

Commit 48672a6

Browse files
committed
updated docs for imports
1 parent e7a75e2 commit 48672a6

File tree

4 files changed

+43
-1
lines changed

4 files changed

+43
-1
lines changed

docs/resources/openid_client.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Read-Only:
7373

7474

7575
<a id="nestedblock--permissions"></a>
76+
7677
### Nested Schema for `permissions`
7778

7879
Required:
@@ -82,3 +83,14 @@ Required:
8283
Optional:
8384

8485
- `argument` (String)
86+
87+
## Import
88+
89+
OIDC Clients can be imported with the following identifier structure: `{{nodeId}}/{{moduleId}}/{{clientId}}`, where `clientId` is the unique client id.
90+
91+
Example:
92+
93+
```bash
94+
$ terraform import smilecdr_openid_identity_provider.test "Master/smart_auth/client1"
95+
```
96+

docs/resources/openid_identity_provider.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: |-
88

99
# smilecdr_openid_identity_provider (Resource)
1010

11-
11+
This resource manages what Smile CDR refers to as an "Open ID Connect Server", which in OAuth 2.0 terminology is an external Identity Provider or IdP.
1212

1313

1414

@@ -42,3 +42,13 @@ description: |-
4242
- `federation_registration_id` (String)
4343
- `id` (String) The ID of this resource.
4444
- `pid` (Number)
45+
46+
## Import
47+
48+
Identity providers can be imported with the following identifier structure: `{{nodeId}}/{{moduleId}}?issuer_url={{issuerUrl}}`, where `issuerUrl` is the unique identity provider issuer url.
49+
50+
Example:
51+
52+
```bash
53+
$ terraform import smilecdr_openid_identity_provider.test "Master/smart_auth?issuer_url=http://localhost:8080/realms/test"
54+
```

docs/resources/smart_inbound_security.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,13 @@ Required:
5959

6060
- `module_id` (String)
6161
- `type` (String)
62+
63+
## Import
64+
65+
Existing Inbound Security Modules (module Type of ```SECURITY_IN_SMART```) can be imported with the following resource ID structure: `{{nodeId}}/{{moduleId}}`, where ```moduleId``` is the unique module identifier.
66+
67+
Example:
68+
69+
```bash
70+
$ terraform import smilecdr_smart_inbound_security.local_security "Master/local_security"
71+
```

docs/resources/smart_outbound_security.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,13 @@ This resource represents a Smile CDR SMART Outbound Security Module. Since Smile
118118

119119
- `id` (String) The ID of this resource.
120120
- `module_type` (String) The module type of the module to be configured.
121+
122+
## Import
123+
124+
Existing SMART Outbound Security Modules (module Type of ```SECURITY_OUT_SMART```) can be imported with the following resource ID structure: `{{nodeId}}/{{moduleId}}`, where ```moduleId``` is the unique module identifier.
125+
126+
Example:
127+
128+
```bash
129+
$ terraform import smilecdr_smart_outbound_security.smart_auth "Master/smart_auth"
130+
```

0 commit comments

Comments
 (0)