Skip to content

Commit

Permalink
Add import section to all resources (#43)
Browse files Browse the repository at this point in the history
browningluke authored Dec 21, 2023
1 parent e6b87a9 commit f9158ec
Showing 34 changed files with 493 additions and 68 deletions.
16 changes: 16 additions & 0 deletions docs/resources/firewall_alias.md
Original file line number Diff line number Diff line change
@@ -72,3 +72,19 @@ resource "opnsense_firewall_alias" "example_two" {

- `id` (String) UUID of the resource.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_firewall_alias using the `id`. For example:

```terraform
import {
to = opnsense_firewall_alias.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_firewall_alias using the `id`. For example:

```console
% terraform import opnsense_firewall_alias.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/firewall_category.md
Original file line number Diff line number Diff line change
@@ -51,3 +51,19 @@ resource "opnsense_firewall_alias" "example_one" {

- `id` (String) UUID of the resource.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_firewall_category using the `id`. For example:

```terraform
import {
to = opnsense_firewall_category.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_firewall_category using the `id`. For example:

```console
% terraform import opnsense_firewall_category.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/firewall_filter.md
Original file line number Diff line number Diff line change
@@ -133,3 +133,19 @@ Optional:
- `net` (String) Specify the IP address, CIDR or alias for the source of the packet for this mapping. For `<INT> net`, enter `<int>` (e.g. `lan`). For `<INT> address`, enter `<int>ip` (e.g. `lanip`). Defaults to `any`.
- `port` (String) Specify the source port for this rule. This is usually random and almost never equal to the destination port range (and should usually be `""`). Defaults to `""`.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_firewall_filter using the `id`. For example:

```terraform
import {
to = opnsense_firewall_filter.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_firewall_filter using the `id`. For example:

```console
% terraform import opnsense_firewall_filter.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/firewall_nat.md
Original file line number Diff line number Diff line change
@@ -130,3 +130,19 @@ Optional:
- `net` (String) Specify the IP address, CIDR or alias for the source of the packet for this mapping. For `<INT> net`, enter `<int>` (e.g. `lan`). For `<INT> address`, enter `<int>ip` (e.g. `lanip`). Defaults to `any`.
- `port` (String) Specify the source port for this rule. This is usually random and almost never equal to the destination port range (and should usually be `""`). Defaults to `""`.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_firewall_nat using the `id`. For example:

```terraform
import {
to = opnsense_firewall_nat.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_firewall_nat using the `id`. For example:

```console
% terraform import opnsense_firewall_nat.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/interfaces_vlan.md
Original file line number Diff line number Diff line change
@@ -48,3 +48,19 @@ resource "opnsense_interfaces_vlan" "vlan04" {

- `id` (String) UUID of the VLAN.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_interfaces_vlan using the `id`. For example:

```terraform
import {
to = opnsense_interfaces_vlan.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_interfaces_vlan using the `id`. For example:

```console
% terraform import opnsense_interfaces_vlan.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/quagga_bgp_aspath.md
Original file line number Diff line number Diff line change
@@ -42,3 +42,19 @@ resource "opnsense_quagga_bgp_aspath" "example0" {

- `id` (String) UUID of the AS path.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_quagga_bgp_aspath using the `id`. For example:

```terraform
import {
to = opnsense_quagga_bgp_aspath.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_quagga_bgp_aspath using the `id`. For example:

```console
% terraform import opnsense_quagga_bgp_aspath.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/quagga_bgp_communitylist.md
Original file line number Diff line number Diff line change
@@ -44,3 +44,19 @@ resource "opnsense_quagga_bgp_communitylist" "example0" {

- `id` (String) UUID of the community list.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_quagga_bgp_communitylist using the `id`. For example:

```terraform
import {
to = opnsense_quagga_bgp_communitylist.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_quagga_bgp_communitylist using the `id`. For example:

```console
% terraform import opnsense_quagga_bgp_communitylist.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/quagga_bgp_neighbor.md
Original file line number Diff line number Diff line change
@@ -112,3 +112,19 @@ resource "opnsense_quagga_bgp_neighbor" "example0" {

- `id` (String) UUID of the neighbor.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_quagga_bgp_neighbor using the `id`. For example:

```terraform
import {
to = opnsense_quagga_bgp_neighbor.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_quagga_bgp_neighbor using the `id`. For example:

```console
% terraform import opnsense_quagga_bgp_neighbor.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/quagga_bgp_prefixlist.md
Original file line number Diff line number Diff line change
@@ -46,3 +46,19 @@ resource "opnsense_quagga_bgp_prefixlist" "example0" {

- `id` (String) UUID of the prefix list.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_quagga_bgp_prefixlist using the `id`. For example:

```terraform
import {
to = opnsense_quagga_bgp_prefixlist.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_quagga_bgp_prefixlist using the `id`. For example:

```console
% terraform import opnsense_quagga_bgp_prefixlist.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/quagga_bgp_routemap.md
Original file line number Diff line number Diff line change
@@ -95,3 +95,19 @@ resource "opnsense_quagga_bgp_routemap" "example0" {

- `id` (String) UUID of the route map.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_quagga_bgp_routemap using the `id`. For example:

```terraform
import {
to = opnsense_quagga_bgp_routemap.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_quagga_bgp_routemap using the `id`. For example:

```console
% terraform import opnsense_quagga_bgp_routemap.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/route.md
Original file line number Diff line number Diff line change
@@ -45,3 +45,19 @@ resource "opnsense_route" "two_route" {

- `id` (String) UUID of the route.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_route using the `id`. For example:

```terraform
import {
to = opnsense_route.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_route using the `id`. For example:

```console
% terraform import opnsense_route.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/unbound_domain_override.md
Original file line number Diff line number Diff line change
@@ -47,3 +47,19 @@ resource "opnsense_unbound_domain_override" "two_override" {

- `id` (String) UUID of the host override.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_unbound_domain_override using the `id`. For example:

```terraform
import {
to = opnsense_unbound_domain_override.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_unbound_domain_override using the `id`. For example:

```console
% terraform import opnsense_unbound_domain_override.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/unbound_forward.md
Original file line number Diff line number Diff line change
@@ -49,3 +49,19 @@ resource "opnsense_unbound_forward" "dot" {

- `id` (String) UUID of the forward.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_unbound_forward using the `id`. For example:

```terraform
import {
to = opnsense_unbound_forward.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_unbound_forward using the `id`. For example:

```console
% terraform import opnsense_unbound_forward.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/unbound_host_alias.md
Original file line number Diff line number Diff line change
@@ -60,3 +60,19 @@ resource "opnsense_unbound_host_alias" "two_alias" {

- `id` (String) UUID of the host alias.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_unbound_host_alias using the `id`. For example:

```terraform
import {
to = opnsense_unbound_host_alias.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_unbound_host_alias using the `id`. For example:

```console
% terraform import opnsense_unbound_host_alias.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/unbound_host_override.md
Original file line number Diff line number Diff line change
@@ -67,3 +67,19 @@ resource "opnsense_unbound_host_override" "mx_override" {

- `id` (String) UUID of the host override.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_unbound_host_override using the `id`. For example:

```terraform
import {
to = opnsense_unbound_host_override.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_unbound_host_override using the `id`. For example:

```console
% terraform import opnsense_unbound_host_override.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/wireguard_client.md
Original file line number Diff line number Diff line change
@@ -51,3 +51,19 @@ resource "opnsense_wireguard_client" "example0" {

- `id` (String) UUID of the client.

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_wireguard_client using the `id`. For example:

```terraform
import {
to = opnsense_wireguard_client.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_wireguard_client using the `id`. For example:

```console
% terraform import opnsense_wireguard_client.example <opnsense-resource-id>
```
16 changes: 16 additions & 0 deletions docs/resources/wireguard_server.md
Original file line number Diff line number Diff line change
@@ -82,3 +82,19 @@ resource "opnsense_wireguard_server" "example0" {
- `id` (String) UUID of the server.
- `instance` (String) The instance number to give the wg interface a unique name (wgX).

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import opnsense_wireguard_server using the `id`. For example:

```terraform
import {
to = opnsense_wireguard_server.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import opnsense_wireguard_server using the `id`. For example:

```console
% terraform import opnsense_wireguard_server.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/firewall_alias.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/firewall_category.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/firewall_filter.md.tmpl
Original file line number Diff line number Diff line change
@@ -17,10 +17,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/firewall_nat.md.tmpl
Original file line number Diff line number Diff line change
@@ -17,10 +17,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/interfaces_vlan.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/quagga_bgp_aspath.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/quagga_bgp_communitylist.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/quagga_bgp_neighbor.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/quagga_bgp_prefixlist.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/quagga_bgp_routemap.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/route.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/unbound_domain_override.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/unbound_forward.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/unbound_host_alias.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/unbound_host_override.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/wireguard_client.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```
17 changes: 13 additions & 4 deletions templates/resources/wireguard_server.md.tmpl
Original file line number Diff line number Diff line change
@@ -15,10 +15,19 @@ description: |-

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{.Name}} using the `id`. For example:

{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{- end }}
```terraform
import {
to = {{.Name}}.example
id = "<opnsense-resource-id>"
}
```

Using `terraform import`, import {{.Name}} using the `id`. For example:

```console
% terraform import {{.Name}}.example <opnsense-resource-id>
```

0 comments on commit f9158ec

Please sign in to comment.