Skip to content

Commit 485f340

Browse files
authored
Merge pull request #432 from ovh/429-docs-ovh_iploadbalancing_http_farm-lacks-documentation-of-import-procedure
Add import documentation on iplb resources
2 parents 0fd1a66 + 4b4c257 commit 485f340

10 files changed

+83
-0
lines changed

website/docs/r/iploadbalancing_http_farm.html.markdown

+9
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,12 @@ The following attributes are exported:
6464
* `force_ssl` - See Argument Reference above.
6565
* `url` - See Argument Reference above.
6666
* `method` - See Argument Reference above.
67+
68+
## Import
69+
70+
HTTP farm can be imported using the following format `service_name` and the `id` of the farm, separated by "/" e.g.
71+
72+
```bash
73+
$ terraform import ovh_iploadbalancing_http_farm.farmname service_name/farm_id
74+
```
75+

website/docs/r/iploadbalancing_http_farm_server.html.markdown

+8
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,11 @@ The following attributes are exported:
6969
* `ssl` - See Argument Reference above.
7070
* `backup` - See Argument Reference above.
7171
* `cookie` - Value of the stickiness cookie used for this backend.
72+
73+
## Import
74+
75+
HTTP farm server can be imported using the following format `service_name`, the `id` of the farm and the `id` of the server separated by "/" e.g.
76+
77+
```bash
78+
$ terraform import ovh_iploadbalancing_http_farm_server.backend service_name/farm_id/server_id
79+
```

website/docs/r/iploadbalancing_http_frontend.html.markdown

+8
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,11 @@ The following attributes are exported:
9292
* `disabled` - See Argument Reference above.
9393
* `ssl` - See Argument Reference above.
9494
* `hsts` - See Argument Reference above.
95+
96+
## Import
97+
98+
HTTP frontend can be imported using the following format `service_name` and the `id` of the frontend separated by "/" e.g.
99+
100+
```bash
101+
$ terraform import ovh_iploadbalancing_http_frontend.testfrontend service_name/http_frontend_id
102+
```

website/docs/r/iploadbalancing_http_route.html.markdown

+9
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,12 @@ In addition, the following attributes are exported:
4949
* `pattern` - Value to match against this match. Interpretation if this field depends on the match and field
5050
* `rule_id` - Id of your rule
5151
* `sub_field` - Name of sub-field, if applicable. This may be a Cookie or Header name for instance
52+
53+
54+
## Import
55+
56+
HTTP route can be imported using the following format `service_name` and the `id` of the route separated by "/" e.g.
57+
58+
```bash
59+
$ terraform import ovh_iploadbalancing_http_route.httpsredirect service_name/route_id
60+
```

website/docs/r/iploadbalancing_http_route_rule.html.markdown

+9
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,12 @@ The following attributes are exported:
7575
* `negate` - See Argument Reference above.
7676
* `pattern` - See Argument Reference above.
7777
* `sub_field` - See Argument Reference above.
78+
79+
80+
## Import
81+
82+
HTTP route rule can be imported using the following format `service_name`, the `id` of the route and the `id` of the rule separated by "/" e.g.
83+
84+
```bash
85+
$ terraform import ovh_iploadbalancing_http_route_rule.examplerule service_name/route_id/rule_id
86+
```

website/docs/r/iploadbalancing_tcp_farm.html.markdown

+9
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,12 @@ The following attributes are exported:
6464
* `force_ssl` - See Argument Reference above.
6565
* `url` - See Argument Reference above.
6666
* `method` - See Argument Reference above.
67+
68+
69+
## Import
70+
71+
TCP Farm can be imported using the following format `service_name` and the `id` of the farm, separated by "/" e.g.
72+
73+
```bash
74+
$ terraform import ovh_iploadbalancing_tcp_farm.farmname service_name/farm_id
75+
```

website/docs/r/iploadbalancing_tcp_farm_server.html.markdown

+8
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,11 @@ The following attributes are exported:
6969
* `ssl` - See Argument Reference above.
7070
* `backup` - See Argument Reference above.
7171
* `cookie` - Value of the stickiness cookie used for this backend.
72+
73+
## Import
74+
75+
TCP farm server can be imported using the following format `service_name`, the `id` of the farm and the `id` of the server separated by "/" e.g.
76+
77+
```bash
78+
$ terraform import ovh_iploadbalancing_tcp_farm_server.backend service_name/farm_id/server_id
79+
```

website/docs/r/iploadbalancing_tcp_frontend.html.markdown

+7
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,10 @@ The following attributes are exported:
6161
* `disabled` - See Argument Reference above.
6262
* `ssl` - See Argument Reference above.
6363

64+
## Import
65+
66+
TCP frontend can be imported using the following format `service_name` and the `id` of the frontend separated by "/" e.g.
67+
68+
```bash
69+
$ terraform import ovh_iploadbalancing_tcp_frontend.testfrontend service_name/tcp_frontend_id
70+
```

website/docs/r/iploadbalancing_tcp_route.html.markdown

+8
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,11 @@ In addition, the following attributes are exported:
4343
* `pattern` - Value to match against this match. Interpretation if this field depends on the match and field
4444
* `rule_id` - Id of your rule
4545
* `sub_field` - Name of sub-field, if applicable. This may be a Cookie or Header name for instance
46+
47+
## Import
48+
49+
TCP route can be imported using the following format `service_name` and the `id` of the route separated by "/" e.g.
50+
51+
```bash
52+
$ terraform import ovh_iploadbalancing_tcp_route.tcpreject service_name/route_id
53+
```

website/docs/r/iploadbalancing_tcp_route_rule.html.markdown

+8
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,11 @@ The following arguments are supported:
4646
## Attributes Reference
4747

4848
No additional attribute is exported.
49+
50+
## Import
51+
52+
TCP route rule can be imported using the following format `service_name`, the `id` of the route and the `id` of the rule separated by "/" e.g.
53+
54+
```bash
55+
$ terraform import ovh_iploadbalancing_tcp_route_rule.examplerule service_name/route_id/rule_id
56+
```

0 commit comments

Comments
 (0)