Skip to content

Commit 4372461

Browse files
authored
Merge pull request #3 from netfoundry/import_examples
Added resource import examples and updated the docs
2 parents b7c895e + a243498 commit 4372461

File tree

17 files changed

+90
-2
lines changed

17 files changed

+90
-2
lines changed

docs/resources/edge_router.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,12 @@ resource "ziti_edge_router" "test_edge_router" {
4848

4949
- `id` (String) Identifier
5050
- `last_updated` (String) Last Updated Time
51+
52+
## Import
53+
54+
Import is supported using the following syntax:
55+
56+
```shell
57+
# edge router can be imported by specifying the identifier.
58+
terraform import ziti_edge_router.test_edge_router <ID>
59+
```

docs/resources/edge_router_policy.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,12 @@ resource "ziti_edge_router_policy" "test1" {
3838

3939
- `id` (String) Identifier
4040
- `last_updated` (String) Last Updated Time
41+
42+
## Import
43+
44+
Import is supported using the following syntax:
45+
46+
```shell
47+
# edge router policy can be imported by specifying the identifier.
48+
terraform import ziti_edge_router_policy.test1 <ID>
49+
```

docs/resources/host_v1_config.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,12 @@ Required:
178178
Optional:
179179

180180
- `consecutive_events` (Number)
181+
182+
## Import
183+
184+
Import is supported using the following syntax:
185+
186+
```shell
187+
# host config can be imported by specifying the identifier.
188+
terraform import ziti_host_v1_config.simple_host <ID>
189+
```

docs/resources/identity.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,12 @@ resource "ziti_identity" "test1" {
5252

5353
- `id` (String) Identifier
5454
- `last_updated` (String) Last Updated Time
55+
56+
## Import
57+
58+
Import is supported using the following syntax:
59+
60+
```shell
61+
# identity can be imported by specifying the identifier.
62+
terraform import ziti_identity.test1 <ID>
63+
```

docs/resources/intercept_v1_config.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,12 @@ Required:
6868

6969
- `high` (Number)
7070
- `low` (Number)
71+
72+
## Import
73+
74+
Import is supported using the following syntax:
75+
76+
```shell
77+
# intercept config can be imported by specifying the identifier.
78+
terraform import ziti_intercept_v1_config.test_intercept_v1_config <ID>
79+
```

docs/resources/service.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,12 @@ resource "ziti_service" "test_service" {
5151

5252
- `id` (String) Identifier
5353
- `last_updated` (String) Last Updated Time
54+
55+
## Import
56+
57+
Import is supported using the following syntax:
58+
59+
```shell
60+
# service can be imported by specifying the identifier.
61+
terraform import ziti_service.test_service <ID>
62+
```

docs/resources/service_edge_router_policy.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,12 @@ resource "ziti_service_edge_router_policy" "test_service_er_policy" {
4141

4242
- `id` (String) Identifier
4343
- `last_updated` (String) Last Updated Time
44+
45+
## Import
46+
47+
Import is supported using the following syntax:
48+
49+
```shell
50+
# service edge router policy can be imported by specifying the identifier.
51+
terraform import ziti_service_edge_router_policy.test_service_er_policy <ID>
52+
```

docs/resources/service_policy.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Ziti Service Policy Resource
1212
## Example Usage
1313

1414
```terraform
15-
resource "ziti_service_policy" "test_service1" {
15+
resource "ziti_service_policy" "test_service_policy" {
1616
name = "test_service_policy"
1717
identityroles = ["#test"]
1818
serviceroles = ["#test"]
@@ -45,3 +45,12 @@ resource "ziti_service_policy" "test_service1" {
4545

4646
- `id` (String) Identifier
4747
- `last_updated` (String) Last Updated Time
48+
49+
## Import
50+
51+
Import is supported using the following syntax:
52+
53+
```shell
54+
# service policy can be imported by specifying the identifier.
55+
terraform import ziti_service_policy.test_service_policy <ID>
56+
```
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# edge router can be imported by specifying the identifier.
2+
terraform import ziti_edge_router.test_edge_router <ID>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# edge router policy can be imported by specifying the identifier.
2+
terraform import ziti_edge_router_policy.test1 <ID>

0 commit comments

Comments
 (0)