@pulumiverse/unifi 0.3.0-alpha.1780644697 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account.d.ts +31 -17
- package/account.d.ts.map +1 -0
- package/account.js +33 -7
- package/account.js.map +1 -1
- package/ap/getGroup.d.ts +71 -0
- package/ap/getGroup.d.ts.map +1 -0
- package/ap/getGroup.js +73 -0
- package/ap/getGroup.js.map +1 -0
- package/ap/group.d.ts +106 -0
- package/ap/group.d.ts.map +1 -0
- package/ap/group.js +112 -0
- package/ap/group.js.map +1 -0
- package/ap/index.d.ts +7 -0
- package/ap/index.d.ts.map +1 -0
- package/ap/index.js +48 -0
- package/ap/index.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.d.ts.map +1 -0
- package/config/vars.d.ts +5 -0
- package/config/vars.d.ts.map +1 -0
- package/config/vars.js +31 -2
- package/config/vars.js.map +1 -1
- package/device.d.ts +87 -14
- package/device.d.ts.map +1 -0
- package/device.js +49 -5
- package/device.js.map +1 -1
- package/dns/getRecord.d.ts +4 -3
- package/dns/getRecord.d.ts.map +1 -0
- package/dns/getRecord.js +25 -2
- package/dns/getRecord.js.map +1 -1
- package/dns/getRecords.d.ts +2 -1
- package/dns/getRecords.d.ts.map +1 -0
- package/dns/getRecords.js +25 -2
- package/dns/getRecords.js.map +1 -1
- package/dns/index.d.ts +1 -0
- package/dns/index.d.ts.map +1 -0
- package/dns/index.js +25 -2
- package/dns/index.js.map +1 -1
- package/dns/record.d.ts +17 -16
- package/dns/record.d.ts.map +1 -0
- package/dns/record.js +27 -4
- package/dns/record.js.map +1 -1
- package/dynamicDNS.d.ts +13 -12
- package/dynamicDNS.d.ts.map +1 -0
- package/dynamicDNS.js +27 -4
- package/dynamicDNS.js.map +1 -1
- package/firewall/getZone.d.ts +48 -1
- package/firewall/getZone.d.ts.map +1 -0
- package/firewall/getZone.js +71 -2
- package/firewall/getZone.js.map +1 -1
- package/firewall/group.d.ts +7 -6
- package/firewall/group.d.ts.map +1 -0
- package/firewall/group.js +27 -4
- package/firewall/group.js.map +1 -1
- package/firewall/index.d.ts +4 -0
- package/firewall/index.d.ts.map +1 -0
- package/firewall/index.js +31 -3
- package/firewall/index.js.map +1 -1
- package/firewall/rule.d.ts +58 -55
- package/firewall/rule.d.ts.map +1 -0
- package/firewall/rule.js +29 -4
- package/firewall/rule.js.map +1 -1
- package/firewall/zone.d.ts +10 -7
- package/firewall/zone.d.ts.map +1 -0
- package/firewall/zone.js +30 -5
- package/firewall/zone.js.map +1 -1
- package/firewall/zonePolicy.d.ts +36 -37
- package/firewall/zonePolicy.d.ts.map +1 -0
- package/firewall/zonePolicy.js +31 -6
- package/firewall/zonePolicy.js.map +1 -1
- package/firewall/zonePolicyOrder.d.ts +170 -0
- package/firewall/zonePolicyOrder.d.ts.map +1 -0
- package/firewall/zonePolicyOrder.js +159 -0
- package/firewall/zonePolicyOrder.js.map +1 -0
- package/getAccount.d.ts +7 -2
- package/getAccount.d.ts.map +1 -0
- package/getAccount.js +25 -2
- package/getAccount.js.map +1 -1
- package/getApGroup.d.ts +13 -10
- package/getApGroup.d.ts.map +1 -0
- package/getApGroup.js +33 -6
- package/getApGroup.js.map +1 -1
- package/getNetwork.d.ts +21 -4
- package/getNetwork.d.ts.map +1 -0
- package/getNetwork.js +25 -2
- package/getNetwork.js.map +1 -1
- package/getRadiusProfile.d.ts +3 -2
- package/getRadiusProfile.d.ts.map +1 -0
- package/getRadiusProfile.js +25 -2
- package/getRadiusProfile.js.map +1 -1
- package/iam/getGroup.d.ts +3 -2
- package/iam/getGroup.d.ts.map +1 -0
- package/iam/getGroup.js +25 -2
- package/iam/getGroup.js.map +1 -1
- package/iam/getUser.d.ts +2 -1
- package/iam/getUser.d.ts.map +1 -0
- package/iam/getUser.js +25 -2
- package/iam/getUser.js.map +1 -1
- package/iam/group.d.ts +11 -8
- package/iam/group.d.ts.map +1 -0
- package/iam/group.js +29 -4
- package/iam/group.js.map +1 -1
- package/iam/index.d.ts +1 -0
- package/iam/index.d.ts.map +1 -0
- package/iam/index.js +25 -2
- package/iam/index.js.map +1 -1
- package/iam/user.d.ts +26 -25
- package/iam/user.d.ts.map +1 -0
- package/iam/user.js +27 -4
- package/iam/user.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.d.ts.map +1 -0
- package/index.js +24 -10
- package/index.js.map +1 -1
- package/network.d.ts +486 -123
- package/network.d.ts.map +1 -0
- package/network.js +97 -4
- package/network.js.map +1 -1
- package/package.json +3 -3
- package/port/alFile.d.ts +10 -9
- package/port/alFile.d.ts.map +1 -0
- package/port/alFile.js +27 -4
- package/port/alFile.js.map +1 -1
- package/port/forward.d.ts +21 -20
- package/port/forward.d.ts.map +1 -0
- package/port/forward.js +27 -4
- package/port/forward.js.map +1 -1
- package/port/getProfile.d.ts +3 -2
- package/port/getProfile.d.ts.map +1 -0
- package/port/getProfile.js +25 -2
- package/port/getProfile.js.map +1 -1
- package/port/index.d.ts +1 -0
- package/port/index.d.ts.map +1 -0
- package/port/index.js +25 -2
- package/port/index.js.map +1 -1
- package/port/profile.d.ts +79 -72
- package/port/profile.d.ts.map +1 -0
- package/port/profile.js +27 -4
- package/port/profile.js.map +1 -1
- package/provider.d.ts +11 -6
- package/provider.d.ts.map +1 -0
- package/provider.js +28 -4
- package/provider.js.map +1 -1
- package/radiusProfile.d.ts +23 -22
- package/radiusProfile.d.ts.map +1 -0
- package/radiusProfile.js +27 -4
- package/radiusProfile.js.map +1 -1
- package/setting/autoSpeedtest.d.ts +6 -5
- package/setting/autoSpeedtest.d.ts.map +1 -0
- package/setting/autoSpeedtest.js +27 -4
- package/setting/autoSpeedtest.js.map +1 -1
- package/setting/connectivity.d.ts +73 -0
- package/setting/connectivity.d.ts.map +1 -0
- package/setting/connectivity.js +89 -0
- package/setting/connectivity.js.map +1 -0
- package/setting/country.d.ts +5 -4
- package/setting/country.d.ts.map +1 -0
- package/setting/country.js +27 -4
- package/setting/country.js.map +1 -1
- package/setting/dpi.d.ts +5 -4
- package/setting/dpi.d.ts.map +1 -0
- package/setting/dpi.js +27 -4
- package/setting/dpi.js.map +1 -1
- package/setting/etherLighting.d.ts +78 -0
- package/setting/etherLighting.d.ts.map +1 -0
- package/setting/etherLighting.js +79 -0
- package/setting/etherLighting.js.map +1 -0
- package/setting/globalSwitch.d.ts +131 -0
- package/setting/globalSwitch.d.ts.map +1 -0
- package/setting/globalSwitch.js +122 -0
- package/setting/globalSwitch.js.map +1 -0
- package/setting/guestAccess.d.ts +73 -72
- package/setting/guestAccess.d.ts.map +1 -0
- package/setting/guestAccess.js +27 -4
- package/setting/guestAccess.js.map +1 -1
- package/setting/index.d.ts +10 -0
- package/setting/index.d.ts.map +1 -0
- package/setting/index.js +41 -3
- package/setting/index.js.map +1 -1
- package/setting/ips.d.ts +23 -22
- package/setting/ips.d.ts.map +1 -0
- package/setting/ips.js +27 -4
- package/setting/ips.js.map +1 -1
- package/setting/lcdMonitor.d.ts +12 -11
- package/setting/lcdMonitor.d.ts.map +1 -0
- package/setting/lcdMonitor.js +27 -4
- package/setting/lcdMonitor.js.map +1 -1
- package/setting/locale.d.ts +4 -3
- package/setting/locale.d.ts.map +1 -0
- package/setting/locale.js +27 -4
- package/setting/locale.js.map +1 -1
- package/setting/magicSiteToSiteVpn.d.ts +4 -3
- package/setting/magicSiteToSiteVpn.d.ts.map +1 -0
- package/setting/magicSiteToSiteVpn.js +27 -4
- package/setting/magicSiteToSiteVpn.js.map +1 -1
- package/setting/mgmt.d.ts +37 -36
- package/setting/mgmt.d.ts.map +1 -0
- package/setting/mgmt.js +27 -4
- package/setting/mgmt.js.map +1 -1
- package/setting/networkOptimization.d.ts +4 -3
- package/setting/networkOptimization.d.ts.map +1 -0
- package/setting/networkOptimization.js +27 -4
- package/setting/networkOptimization.js.map +1 -1
- package/setting/ntp.d.ts +13 -12
- package/setting/ntp.d.ts.map +1 -0
- package/setting/ntp.js +27 -4
- package/setting/ntp.js.map +1 -1
- package/setting/radius.d.ts +17 -16
- package/setting/radius.d.ts.map +1 -0
- package/setting/radius.js +27 -4
- package/setting/radius.js.map +1 -1
- package/setting/rsyslogd.d.ts +24 -23
- package/setting/rsyslogd.d.ts.map +1 -0
- package/setting/rsyslogd.js +27 -4
- package/setting/rsyslogd.js.map +1 -1
- package/setting/sslInspection.d.ts +4 -3
- package/setting/sslInspection.d.ts.map +1 -0
- package/setting/sslInspection.js +27 -4
- package/setting/sslInspection.js.map +1 -1
- package/setting/teleport.d.ts +6 -5
- package/setting/teleport.d.ts.map +1 -0
- package/setting/teleport.js +27 -4
- package/setting/teleport.js.map +1 -1
- package/setting/usg.d.ts +75 -74
- package/setting/usg.d.ts.map +1 -0
- package/setting/usg.js +27 -4
- package/setting/usg.js.map +1 -1
- package/setting/usw.d.ts +4 -3
- package/setting/usw.d.ts.map +1 -0
- package/setting/usw.js +27 -4
- package/setting/usw.js.map +1 -1
- package/site.d.ts +5 -2
- package/site.d.ts.map +1 -0
- package/site.js +29 -4
- package/site.js.map +1 -1
- package/staticRoute.d.ts +12 -11
- package/staticRoute.d.ts.map +1 -0
- package/staticRoute.js +27 -4
- package/staticRoute.js.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +25 -2
- package/types/index.js.map +1 -1
- package/types/input.d.ts +240 -111
- package/types/input.d.ts.map +1 -0
- package/types/output.d.ts +129 -0
- package/types/output.d.ts.map +1 -0
- package/utilities.d.ts +1 -0
- package/utilities.d.ts.map +1 -0
- package/utilities.js +24 -1
- package/utilities.js.map +1 -1
- package/wlan.d.ts +81 -60
- package/wlan.d.ts.map +1 -0
- package/wlan.js +32 -5
- package/wlan.js.map +1 -1
package/network.d.ts
CHANGED
|
@@ -41,10 +41,40 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
41
41
|
* wanUsername: "username",
|
|
42
42
|
* xWanPassword: "password",
|
|
43
43
|
* });
|
|
44
|
+
* // Zone-Based Firewall (UniFi OS 9.x): pin a network to a firewall zone from the
|
|
45
|
+
* // network side. Use EITHER this `firewall_zone_id` lever OR the zone-side
|
|
46
|
+
* // `unifi_firewall_zone.networks` argument for a given network — not both, or the two
|
|
47
|
+
* // resources will fight over the association.
|
|
48
|
+
* const iot = new unifi.firewall.Zone("iot", {name: "iot"});
|
|
49
|
+
* const iotNetwork = new unifi.Network("iot", {
|
|
50
|
+
* name: "iot-vlan",
|
|
51
|
+
* purpose: "corporate",
|
|
52
|
+
* subnet: "10.0.20.1/24",
|
|
53
|
+
* vlanId: 20,
|
|
54
|
+
* firewallZoneId: iot.id,
|
|
55
|
+
* });
|
|
56
|
+
* // Override the DHCP-advertised default gateway. By default UniFi advertises the
|
|
57
|
+
* // network's own interface IP as the gateway (DHCP option 3); setting
|
|
58
|
+
* // `dhcpd_gateway_enabled = true` switches that to "manual" and hands clients the
|
|
59
|
+
* // address in `dhcpd_gateway` instead. Here clients are pointed at a Tailscale
|
|
60
|
+
* // subnet-router node (10.0.30.10) so their traffic can reach a remote tailnet.
|
|
61
|
+
* const tailscaleLan = new unifi.Network("tailscale_lan", {
|
|
62
|
+
* name: "tailscale-lan",
|
|
63
|
+
* purpose: "corporate",
|
|
64
|
+
* subnet: "10.0.30.1/24",
|
|
65
|
+
* vlanId: 30,
|
|
66
|
+
* dhcpStart: "10.0.30.100",
|
|
67
|
+
* dhcpStop: "10.0.30.254",
|
|
68
|
+
* dhcpEnabled: true,
|
|
69
|
+
* dhcpdGatewayEnabled: true,
|
|
70
|
+
* dhcpdGateway: "10.0.30.10",
|
|
71
|
+
* });
|
|
44
72
|
* ```
|
|
45
73
|
*
|
|
46
74
|
* ## Import
|
|
47
75
|
*
|
|
76
|
+
* The `pulumi import` command can be used, for example:
|
|
77
|
+
*
|
|
48
78
|
* import from provider configured site
|
|
49
79
|
*
|
|
50
80
|
* ```sh
|
|
@@ -94,6 +124,20 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
94
124
|
* * Static IP assignments can still be made outside the DHCP range
|
|
95
125
|
*/
|
|
96
126
|
readonly dhcpEnabled: pulumi.Output<boolean | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* Enables DHCP Guarding for this network, blocking DHCP server responses from untrusted/rogue sources so only the trusted DHCP server can hand out leases. When enabled:
|
|
129
|
+
* * Drops DHCP offers/acknowledgements from servers other than the trusted one
|
|
130
|
+
* * Protects clients from rogue or misconfigured DHCP servers
|
|
131
|
+
*
|
|
132
|
+
* This attribute is `Optional` and `Computed`: when omitted from configuration it inherits the current value reported by the controller (so a value enabled in the UI is preserved), rather than being reset. Set it explicitly to manage the value from Terraform.
|
|
133
|
+
*/
|
|
134
|
+
readonly dhcpGuarding: pulumi.Output<boolean>;
|
|
135
|
+
/**
|
|
136
|
+
* List of trusted DHCP server IPv4 addresses for DHCP Guarding. When `dhcpGuarding` is enabled the controller drops DHCP offers from every server except those listed here, so at least one address is required whenever guarding is on (for a network served by the UniFi gateway's own DHCP server this is typically the network's gateway IP). Maximum 3 servers can be specified.
|
|
137
|
+
*
|
|
138
|
+
* Like `dhcpGuarding`, this attribute is `Optional` and `Computed`: when omitted it inherits the current value reported by the controller (so a list configured in the UI is preserved rather than cleared). Set it explicitly to manage the trusted servers from Terraform.
|
|
139
|
+
*/
|
|
140
|
+
readonly dhcpGuardingTrustedServers: pulumi.Output<string[]>;
|
|
97
141
|
/**
|
|
98
142
|
* The DHCP lease time in seconds. Common values:
|
|
99
143
|
* * 86400 (1 day) - Default, suitable for most networks
|
|
@@ -155,13 +199,17 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
155
199
|
/**
|
|
156
200
|
* The starting IPv6 address for the DHCPv6 range. Used in static DHCPv6 configuration.
|
|
157
201
|
* Must be a valid IPv6 address within your allocated IPv6 subnet.
|
|
202
|
+
*
|
|
203
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; turn DHCPv6 off with `dhcpV6Enabled`/`ipv6InterfaceType` instead. Set it explicitly to manage the value from Terraform.
|
|
158
204
|
*/
|
|
159
|
-
readonly dhcpV6Start: pulumi.Output<string
|
|
205
|
+
readonly dhcpV6Start: pulumi.Output<string>;
|
|
160
206
|
/**
|
|
161
207
|
* The ending IPv6 address for the DHCPv6 range. Used in static DHCPv6 configuration.
|
|
162
208
|
* Must be after dhcpV6Start in the IPv6 address space.
|
|
209
|
+
*
|
|
210
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; turn DHCPv6 off with `dhcpV6Enabled`/`ipv6InterfaceType` instead. Set it explicitly to manage the value from Terraform.
|
|
163
211
|
*/
|
|
164
|
-
readonly dhcpV6Stop: pulumi.Output<string
|
|
212
|
+
readonly dhcpV6Stop: pulumi.Output<string>;
|
|
165
213
|
/**
|
|
166
214
|
* Enables DHCP boot options for PXE boot or network boot configurations. When enabled:
|
|
167
215
|
* * Allows network devices to boot from a TFTP server
|
|
@@ -183,6 +231,20 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
183
231
|
* * Must be accessible to all clients that need to boot
|
|
184
232
|
*/
|
|
185
233
|
readonly dhcpdBootServer: pulumi.Output<string | undefined>;
|
|
234
|
+
/**
|
|
235
|
+
* The IPv4 default gateway to advertise to this network's DHCP clients (DHCP option 3) when `dhcpdGatewayEnabled` is `true`. Typically an address inside this network's `subnet`; an off-subnet address (e.g. a 100.64.0.0/10 Tailscale CGNAT address) passes validation here but may be rejected by the controller at apply. IPv4 only — there is no IPv6 default-gateway override.
|
|
236
|
+
*
|
|
237
|
+
* This attribute is `Optional` and `Computed`: when omitted it inherits the current value reported by the controller (so a manually-set gateway, or a value the controller echoes in auto mode, does not show as drift). Set it together with `dhcpdGatewayEnabled = true` to manage the override from Terraform.
|
|
238
|
+
*/
|
|
239
|
+
readonly dhcpdGateway: pulumi.Output<string>;
|
|
240
|
+
/**
|
|
241
|
+
* Controls whether the default gateway advertised to this network's DHCP clients is selected automatically or set manually — equivalent to switching the network's default gateway from automatic to a manually specified address in the UniFi UI (the exact control label and location vary across controller versions). When `false` (automatic, the default) the controller advertises the network's own interface IP as the gateway via DHCP option 3. Set this to `true` to advertise the address in `dhcpdGateway` instead — useful for pointing clients at a custom next hop such as a VPN/subnet-router node (e.g. Tailscale).
|
|
242
|
+
*
|
|
243
|
+
* This attribute is `Optional` and `Computed`: when omitted from configuration it inherits the current value reported by the controller (so a value set in the UI is preserved) rather than being reset. When `true`, `dhcpdGateway` is required.
|
|
244
|
+
*
|
|
245
|
+
* Only meaningful when this network runs the UniFi DHCP server (`dhcpEnabled = true` and `dhcpRelayEnabled = false`) with an address range (`dhcpStart`/`dhcpStop`) configured — the override is DHCP option 3 and the controller rejects a manual gateway with no pool to hand out. It has no effect on `wan` or `vlan-only` networks. Note: on some controller versions the network must also be in manual configuration mode (toggled in the UniFi UI) before a manually-specified gateway is honored.
|
|
246
|
+
*/
|
|
247
|
+
readonly dhcpdGatewayEnabled: pulumi.Output<boolean>;
|
|
186
248
|
/**
|
|
187
249
|
* The domain name for this network. Examples:
|
|
188
250
|
* * 'corp.example.com' - For corporate networks
|
|
@@ -199,6 +261,18 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
199
261
|
* Useful for temporary network maintenance or security measures.
|
|
200
262
|
*/
|
|
201
263
|
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
264
|
+
/**
|
|
265
|
+
* The ID of the Zone-Based Firewall (ZBF) zone this network belongs to. This is only meaningful on UniFi OS 9.x controllers with Zone-Based Firewall enabled. The zone ID is **site-scoped**: an ID from a different site is rejected or silently dropped by the controller.
|
|
266
|
+
*
|
|
267
|
+
* This attribute is `Optional` + `Computed`:
|
|
268
|
+
* * Leave it **unset** to preserve whatever zone the controller (or a `unifi.firewall.Zone` resource) has assigned. The provider never sends the field when it is not configured, so it cannot clobber a zone managed elsewhere.
|
|
269
|
+
* * **Set** it to explicitly pin or move this network to a specific zone — choose the zone appropriate for the network's purpose (e.g. Internal, External, Guest).
|
|
270
|
+
*
|
|
271
|
+
* On read the controller-assigned zone is always populated, so drift is detectable and `terraform import` round-trips cleanly. Note the standard `Optional`+`Computed` "sticky value" semantics: once set and later removed from configuration the value persists in state rather than reverting, and removing it does **not** un-zone the network.
|
|
272
|
+
*
|
|
273
|
+
* To manage zone membership from the zone side instead, use `unifi_firewall_zone.networks`. Do not manage the same network-to-zone association from both sides.
|
|
274
|
+
*/
|
|
275
|
+
readonly firewallZoneId: pulumi.Output<string>;
|
|
202
276
|
/**
|
|
203
277
|
* Enables IGMP (Internet Group Management Protocol) snooping. When enabled:
|
|
204
278
|
* * Optimizes multicast traffic flow
|
|
@@ -219,8 +293,9 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
219
293
|
* * `none` - IPv6 disabled (default)
|
|
220
294
|
* * `static` - Static IPv6 addressing
|
|
221
295
|
* * `pd` - Prefix Delegation from upstream
|
|
296
|
+
* * `singleNetwork` - Share a delegated IPv6 prefix with a single LAN
|
|
222
297
|
*
|
|
223
|
-
* Choose based on your IPv6 deployment strategy and ISP capabilities.
|
|
298
|
+
* Choose based on your IPv6 deployment strategy and ISP capabilities. Note: `singleNetwork` has companion controller settings (the single-network interface/LAN binding) that this provider does not yet expose, so a bare `singleNetwork` network may not be fully configurable.
|
|
224
299
|
*/
|
|
225
300
|
readonly ipv6InterfaceType: pulumi.Output<string | undefined>;
|
|
226
301
|
/**
|
|
@@ -228,8 +303,10 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
228
303
|
* * `wan` - Primary WAN interface
|
|
229
304
|
* * `wan2` - Secondary WAN interface
|
|
230
305
|
* Only applicable when `ipv6InterfaceType` is 'pd'.
|
|
306
|
+
*
|
|
307
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; switch `ipv6InterfaceType` away from 'pd' to disable Prefix Delegation instead. Set it explicitly to manage the value from Terraform.
|
|
231
308
|
*/
|
|
232
|
-
readonly ipv6PdInterface: pulumi.Output<string
|
|
309
|
+
readonly ipv6PdInterface: pulumi.Output<string>;
|
|
233
310
|
/**
|
|
234
311
|
* The IPv6 Prefix ID for Prefix Delegation. Used to:
|
|
235
312
|
* * Differentiate multiple delegated prefixes
|
|
@@ -241,14 +318,18 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
241
318
|
* The starting IPv6 address for Prefix Delegation range.
|
|
242
319
|
* Only used when `ipv6InterfaceType` is 'pd'.
|
|
243
320
|
* Must be within the delegated prefix range.
|
|
321
|
+
*
|
|
322
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; switch `ipv6InterfaceType` away from 'pd' to disable Prefix Delegation instead. Set it explicitly to manage the value from Terraform.
|
|
244
323
|
*/
|
|
245
|
-
readonly ipv6PdStart: pulumi.Output<string
|
|
324
|
+
readonly ipv6PdStart: pulumi.Output<string>;
|
|
246
325
|
/**
|
|
247
326
|
* The ending IPv6 address for Prefix Delegation range.
|
|
248
327
|
* Only used when `ipv6InterfaceType` is 'pd'.
|
|
249
328
|
* Must be after `ipv6PdStart` within the delegated prefix.
|
|
329
|
+
*
|
|
330
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; switch `ipv6InterfaceType` away from 'pd' to disable Prefix Delegation instead. Set it explicitly to manage the value from Terraform.
|
|
250
331
|
*/
|
|
251
|
-
readonly ipv6PdStop: pulumi.Output<string
|
|
332
|
+
readonly ipv6PdStop: pulumi.Output<string>;
|
|
252
333
|
/**
|
|
253
334
|
* Enables IPv6 Router Advertisements (RA). When enabled:
|
|
254
335
|
* * Announces IPv6 prefix information to clients
|
|
@@ -269,8 +350,10 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
269
350
|
* * `medium` - Standard priority
|
|
270
351
|
* * `low` - For backup or secondary networks
|
|
271
352
|
* Affects router selection when multiple IPv6 routers exist.
|
|
353
|
+
*
|
|
354
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; turn Router Advertisements off with `ipv6RaEnable` instead. Set it explicitly to manage the value from Terraform.
|
|
272
355
|
*/
|
|
273
|
-
readonly ipv6RaPriority: pulumi.Output<string
|
|
356
|
+
readonly ipv6RaPriority: pulumi.Output<string>;
|
|
274
357
|
/**
|
|
275
358
|
* The valid lifetime (in seconds) for IPv6 addresses in Router Advertisements.
|
|
276
359
|
* * Must be greater than or equal to `ipv6RaPreferredLifetime`
|
|
@@ -282,8 +365,10 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
282
365
|
* The static IPv6 subnet in CIDR notation (e.g., '2001:db8::/64') when using static IPv6.
|
|
283
366
|
* Only applicable when `ipv6InterfaceType` is 'static'.
|
|
284
367
|
* Must be a valid IPv6 subnet allocated to your organization.
|
|
368
|
+
*
|
|
369
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; switch `ipv6InterfaceType` away from 'static' to disable static IPv6 instead. Set it explicitly to manage the value from Terraform.
|
|
285
370
|
*/
|
|
286
|
-
readonly ipv6StaticSubnet: pulumi.Output<string
|
|
371
|
+
readonly ipv6StaticSubnet: pulumi.Output<string>;
|
|
287
372
|
/**
|
|
288
373
|
* Enables Multicast DNS (mDNS/Bonjour/Avahi) on the network. When enabled:
|
|
289
374
|
* * Allows device discovery (e.g., printers, Chromecasts)
|
|
@@ -300,10 +385,10 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
300
385
|
*/
|
|
301
386
|
readonly networkGroup: pulumi.Output<string | undefined>;
|
|
302
387
|
/**
|
|
303
|
-
*
|
|
304
|
-
* *
|
|
305
|
-
* *
|
|
306
|
-
* *
|
|
388
|
+
* Isolates this network from other local networks/VLANs on the site. When enabled:
|
|
389
|
+
* * Hosts on this network cannot route to or from other local networks on the site
|
|
390
|
+
* * Gateway and internet access are retained (internet access is subject to `internetAccessEnabled`)
|
|
391
|
+
* * This is a routing/firewall option for network-to-network isolation, distinct from per-client (WLAN) isolation
|
|
307
392
|
*/
|
|
308
393
|
readonly networkIsolationEnabled: pulumi.Output<boolean | undefined>;
|
|
309
394
|
/**
|
|
@@ -312,6 +397,7 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
312
397
|
* * `guest` - Isolated network for guest access with limited permissions
|
|
313
398
|
* * `wan` - External network connection (WAN uplink)
|
|
314
399
|
* * `vlan-only` - VLAN network without DHCP services
|
|
400
|
+
* * `vpn-client` - Site-to-site VPN client connection (see the `vpnType` and `wireguard_client_*` arguments to configure a WireGuard VPN client)
|
|
315
401
|
*/
|
|
316
402
|
readonly purpose: pulumi.Output<string>;
|
|
317
403
|
/**
|
|
@@ -322,6 +408,14 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
322
408
|
* The IPv4 subnet for this network in CIDR notation (e.g., '192.168.1.0/24'). This defines the network's address space and determines the range of IP addresses available for DHCP.
|
|
323
409
|
*/
|
|
324
410
|
readonly subnet: pulumi.Output<string | undefined>;
|
|
411
|
+
/**
|
|
412
|
+
* The list of destination subnets (CIDR notation) routed through the VPN client tunnel when `vpnClientDefaultRoute` is false. Values are canonicalized to their network address (e.g. `10.0.0.1/16` becomes `10.0.0.0/16`). Only applicable when `purpose` is 'vpn-client'.
|
|
413
|
+
*/
|
|
414
|
+
readonly uidVpnCustomRoutings: pulumi.Output<string[] | undefined>;
|
|
415
|
+
/**
|
|
416
|
+
* Whether clients on THIS network are allowed to request UPnP/NAT-PMP port mappings. Per-network opt-in that complements the gateway-global UPnP toggle (`unifi_setting_usg.upnp_enabled`): UPnP must be enabled globally AND on a given network for that network's devices to self-map WAN ports. Leave false on untrusted networks (IoT, Guest, …) so a compromised device cannot open inbound holes in the firewall; enable only on networks whose devices you trust to manage their own port mappings.
|
|
417
|
+
*/
|
|
418
|
+
readonly upnpLanEnabled: pulumi.Output<boolean>;
|
|
325
419
|
/**
|
|
326
420
|
* The VLAN ID for this network. Valid range is 0-4096. Common uses:
|
|
327
421
|
* * 1-4094: Standard VLAN range for network segmentation
|
|
@@ -329,6 +423,18 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
329
423
|
* * >4094: Reserved for special purposes
|
|
330
424
|
*/
|
|
331
425
|
readonly vlanId: pulumi.Output<number | undefined>;
|
|
426
|
+
/**
|
|
427
|
+
* When true, route all of the gateway's internet traffic through the VPN client tunnel. When false (default), only the destinations in `uidVpnCustomRouting` are routed through the tunnel. Only applicable when `purpose` is 'vpn-client'.
|
|
428
|
+
*/
|
|
429
|
+
readonly vpnClientDefaultRoute: pulumi.Output<boolean | undefined>;
|
|
430
|
+
/**
|
|
431
|
+
* When true, use DNS servers advertised by the VPN peer for traffic on the tunnel. Only applicable when `purpose` is 'vpn-client'.
|
|
432
|
+
*/
|
|
433
|
+
readonly vpnClientPullDns: pulumi.Output<boolean | undefined>;
|
|
434
|
+
/**
|
|
435
|
+
* The VPN type for a `vpn-client` network. Currently `wireguard-client` is supported, which connects the gateway to a remote WireGuard server. Only applicable when `purpose` is 'vpn-client'. A `wireguard-client` network also requires `subnet` (the tunnel interface address, e.g. `10.0.0.2/32`) and `dhcpDns` (interface DNS); the controller rejects the create without them.
|
|
436
|
+
*/
|
|
437
|
+
readonly vpnType: pulumi.Output<string | undefined>;
|
|
332
438
|
/**
|
|
333
439
|
* The IPv6 prefix size to request from ISP. Must be between 48 and 64.
|
|
334
440
|
* Only applicable when `wanTypeV6` is 'dhcpv6'.
|
|
@@ -416,6 +522,38 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
416
522
|
* * Cannot contain spaces or special characters
|
|
417
523
|
*/
|
|
418
524
|
readonly wanUsername: pulumi.Output<string | undefined>;
|
|
525
|
+
/**
|
|
526
|
+
* How the WireGuard VPN client peer is configured. Currently only `manual` is supported, configuring the peer with the individual `wireguard_client_*` arguments. Only applicable when `vpnType` is 'wireguard-client'.
|
|
527
|
+
*/
|
|
528
|
+
readonly wireguardClientMode: pulumi.Output<string | undefined>;
|
|
529
|
+
/**
|
|
530
|
+
* The remote WireGuard server's endpoint host or IP address that the gateway dials. Only applicable when `vpnType` is 'wireguard-client'.
|
|
531
|
+
*/
|
|
532
|
+
readonly wireguardClientPeerIp: pulumi.Output<string | undefined>;
|
|
533
|
+
/**
|
|
534
|
+
* The remote WireGuard server's listen port (e.g. 51820). Only applicable when `vpnType` is 'wireguard-client'.
|
|
535
|
+
*/
|
|
536
|
+
readonly wireguardClientPeerPort: pulumi.Output<number | undefined>;
|
|
537
|
+
/**
|
|
538
|
+
* The remote WireGuard server's public key (the peer the gateway connects to). Only applicable when `vpnType` is 'wireguard-client'.
|
|
539
|
+
*/
|
|
540
|
+
readonly wireguardClientPeerPublicKey: pulumi.Output<string | undefined>;
|
|
541
|
+
/**
|
|
542
|
+
* An optional WireGuard pre-shared key (PSK) for an additional layer of symmetric-key security with the peer. Keep this value secret. The controller may not return this value on read, so it is computed to avoid spurious drift. Only applicable when `vpnType` is 'wireguard-client'.
|
|
543
|
+
*/
|
|
544
|
+
readonly wireguardClientPresharedKey: pulumi.Output<string>;
|
|
545
|
+
/**
|
|
546
|
+
* Whether a WireGuard pre-shared key is used with the peer. Only applicable when `vpnType` is 'wireguard-client'.
|
|
547
|
+
*/
|
|
548
|
+
readonly wireguardClientPresharedKeyEnabled: pulumi.Output<boolean | undefined>;
|
|
549
|
+
/**
|
|
550
|
+
* The WAN interface the WireGuard tunnel egresses from. One of `wan` or `wan2`. Only applicable when `vpnType` is 'wireguard-client'.
|
|
551
|
+
*/
|
|
552
|
+
readonly wireguardInterface: pulumi.Output<string | undefined>;
|
|
553
|
+
/**
|
|
554
|
+
* The gateway's own WireGuard public key for this VPN client. The controller does not return it, so the provider derives it from the private key (Curve25519). Add this key as a peer on the remote WireGuard server. Only set when `vpnType` is 'wireguard-client'.
|
|
555
|
+
*/
|
|
556
|
+
readonly wireguardPublicKey: pulumi.Output<string>;
|
|
419
557
|
/**
|
|
420
558
|
* Password for WAN authentication.
|
|
421
559
|
* * Required for PPPoE connections
|
|
@@ -423,6 +561,10 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
423
561
|
* * Must be kept secret
|
|
424
562
|
*/
|
|
425
563
|
readonly xWanPassword: pulumi.Output<string | undefined>;
|
|
564
|
+
/**
|
|
565
|
+
* The gateway's own WireGuard private key for this VPN client. If omitted, a key pair is generated for you and the public key is exposed via `wireguardPublicKey`. Keep this value secret. Only applicable when `vpnType` is 'wireguard-client'.
|
|
566
|
+
*/
|
|
567
|
+
readonly xWireguardPrivateKey: pulumi.Output<string>;
|
|
426
568
|
/**
|
|
427
569
|
* Create a Network resource with the given unique name, arguments, and options.
|
|
428
570
|
*
|
|
@@ -443,14 +585,28 @@ export interface NetworkState {
|
|
|
443
585
|
* * Use internal DNS servers for corporate networks
|
|
444
586
|
* Maximum 4 servers can be specified.
|
|
445
587
|
*/
|
|
446
|
-
dhcpDns?: pulumi.Input<pulumi.Input<string>[]>;
|
|
588
|
+
dhcpDns?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
447
589
|
/**
|
|
448
590
|
* Controls whether DHCP server is enabled for this network. When enabled:
|
|
449
591
|
* * The network will automatically assign IP addresses to clients
|
|
450
592
|
* * DHCP options (DNS, lease time) will be provided to clients
|
|
451
593
|
* * Static IP assignments can still be made outside the DHCP range
|
|
452
594
|
*/
|
|
453
|
-
dhcpEnabled?: pulumi.Input<boolean>;
|
|
595
|
+
dhcpEnabled?: pulumi.Input<boolean | undefined>;
|
|
596
|
+
/**
|
|
597
|
+
* Enables DHCP Guarding for this network, blocking DHCP server responses from untrusted/rogue sources so only the trusted DHCP server can hand out leases. When enabled:
|
|
598
|
+
* * Drops DHCP offers/acknowledgements from servers other than the trusted one
|
|
599
|
+
* * Protects clients from rogue or misconfigured DHCP servers
|
|
600
|
+
*
|
|
601
|
+
* This attribute is `Optional` and `Computed`: when omitted from configuration it inherits the current value reported by the controller (so a value enabled in the UI is preserved), rather than being reset. Set it explicitly to manage the value from Terraform.
|
|
602
|
+
*/
|
|
603
|
+
dhcpGuarding?: pulumi.Input<boolean | undefined>;
|
|
604
|
+
/**
|
|
605
|
+
* List of trusted DHCP server IPv4 addresses for DHCP Guarding. When `dhcpGuarding` is enabled the controller drops DHCP offers from every server except those listed here, so at least one address is required whenever guarding is on (for a network served by the UniFi gateway's own DHCP server this is typically the network's gateway IP). Maximum 3 servers can be specified.
|
|
606
|
+
*
|
|
607
|
+
* Like `dhcpGuarding`, this attribute is `Optional` and `Computed`: when omitted it inherits the current value reported by the controller (so a list configured in the UI is preserved rather than cleared). Set it explicitly to manage the trusted servers from Terraform.
|
|
608
|
+
*/
|
|
609
|
+
dhcpGuardingTrustedServers?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
454
610
|
/**
|
|
455
611
|
* The DHCP lease time in seconds. Common values:
|
|
456
612
|
* * 86400 (1 day) - Default, suitable for most networks
|
|
@@ -458,49 +614,49 @@ export interface NetworkState {
|
|
|
458
614
|
* * 604800 (1 week) - For stable networks with static clients
|
|
459
615
|
* * 2592000 (30 days) - For very stable networks
|
|
460
616
|
*/
|
|
461
|
-
dhcpLease?: pulumi.Input<number>;
|
|
617
|
+
dhcpLease?: pulumi.Input<number | undefined>;
|
|
462
618
|
/**
|
|
463
619
|
* Enables DHCP relay for this network. When enabled:
|
|
464
620
|
* * DHCP requests are forwarded to an external DHCP server
|
|
465
621
|
* * Local DHCP server is disabled
|
|
466
622
|
* * Useful for centralized DHCP management
|
|
467
623
|
*/
|
|
468
|
-
dhcpRelayEnabled?: pulumi.Input<boolean>;
|
|
624
|
+
dhcpRelayEnabled?: pulumi.Input<boolean | undefined>;
|
|
469
625
|
/**
|
|
470
626
|
* The starting IPv4 address of the DHCP range. Examples:
|
|
471
627
|
* * For subnet 192.168.1.0/24, typical start: '192.168.1.100'
|
|
472
628
|
* * For subnet 10.0.0.0/24, typical start: '10.0.0.100'
|
|
473
629
|
* Ensure this address is within the network's subnet.
|
|
474
630
|
*/
|
|
475
|
-
dhcpStart?: pulumi.Input<string>;
|
|
631
|
+
dhcpStart?: pulumi.Input<string | undefined>;
|
|
476
632
|
/**
|
|
477
633
|
* The ending IPv4 address of the DHCP range. Examples:
|
|
478
634
|
* * For subnet 192.168.1.0/24, typical stop: '192.168.1.254'
|
|
479
635
|
* * For subnet 10.0.0.0/24, typical stop: '10.0.0.254'
|
|
480
636
|
* Must be greater than dhcpStart and within the network's subnet.
|
|
481
637
|
*/
|
|
482
|
-
dhcpStop?: pulumi.Input<string>;
|
|
638
|
+
dhcpStop?: pulumi.Input<string | undefined>;
|
|
483
639
|
/**
|
|
484
640
|
* List of IPv6 DNS server addresses for DHCPv6 clients. Examples:
|
|
485
641
|
* * Use ['2001:4860:4860::8888', '2001:4860:4860::8844'] for Google DNS
|
|
486
642
|
* * Use ['2606:4700:4700::1111', '2606:4700:4700::1001'] for Cloudflare DNS
|
|
487
643
|
* Only used when dhcpV6DnsAuto is false. Maximum of 4 addresses are allowed.
|
|
488
644
|
*/
|
|
489
|
-
dhcpV6Dns?: pulumi.Input<pulumi.Input<string>[]>;
|
|
645
|
+
dhcpV6Dns?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
490
646
|
/**
|
|
491
647
|
* Controls DNS server source for DHCPv6 clients:
|
|
492
648
|
* * true - Use upstream DNS servers (recommended)
|
|
493
649
|
* * false - Use manually specified servers from dhcpV6Dns
|
|
494
650
|
* Default is true for easier management.
|
|
495
651
|
*/
|
|
496
|
-
dhcpV6DnsAuto?: pulumi.Input<boolean>;
|
|
652
|
+
dhcpV6DnsAuto?: pulumi.Input<boolean | undefined>;
|
|
497
653
|
/**
|
|
498
654
|
* Enables stateful DHCPv6 for IPv6 address assignment. When enabled:
|
|
499
655
|
* * Provides IPv6 addresses to clients
|
|
500
656
|
* * Works alongside SLAAC if configured
|
|
501
657
|
* * Allows for more controlled IPv6 addressing
|
|
502
658
|
*/
|
|
503
|
-
dhcpV6Enabled?: pulumi.Input<boolean>;
|
|
659
|
+
dhcpV6Enabled?: pulumi.Input<boolean | undefined>;
|
|
504
660
|
/**
|
|
505
661
|
* The DHCPv6 lease time in seconds. Common values:
|
|
506
662
|
* * 86400 (1 day) - Default setting
|
|
@@ -508,38 +664,56 @@ export interface NetworkState {
|
|
|
508
664
|
* * 604800 (1 week) - For stable networks
|
|
509
665
|
* Typically longer than IPv4 DHCP leases.
|
|
510
666
|
*/
|
|
511
|
-
dhcpV6Lease?: pulumi.Input<number>;
|
|
667
|
+
dhcpV6Lease?: pulumi.Input<number | undefined>;
|
|
512
668
|
/**
|
|
513
669
|
* The starting IPv6 address for the DHCPv6 range. Used in static DHCPv6 configuration.
|
|
514
670
|
* Must be a valid IPv6 address within your allocated IPv6 subnet.
|
|
671
|
+
*
|
|
672
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; turn DHCPv6 off with `dhcpV6Enabled`/`ipv6InterfaceType` instead. Set it explicitly to manage the value from Terraform.
|
|
515
673
|
*/
|
|
516
|
-
dhcpV6Start?: pulumi.Input<string>;
|
|
674
|
+
dhcpV6Start?: pulumi.Input<string | undefined>;
|
|
517
675
|
/**
|
|
518
676
|
* The ending IPv6 address for the DHCPv6 range. Used in static DHCPv6 configuration.
|
|
519
677
|
* Must be after dhcpV6Start in the IPv6 address space.
|
|
678
|
+
*
|
|
679
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; turn DHCPv6 off with `dhcpV6Enabled`/`ipv6InterfaceType` instead. Set it explicitly to manage the value from Terraform.
|
|
520
680
|
*/
|
|
521
|
-
dhcpV6Stop?: pulumi.Input<string>;
|
|
681
|
+
dhcpV6Stop?: pulumi.Input<string | undefined>;
|
|
522
682
|
/**
|
|
523
683
|
* Enables DHCP boot options for PXE boot or network boot configurations. When enabled:
|
|
524
684
|
* * Allows network devices to boot from a TFTP server
|
|
525
685
|
* * Requires dhcpdBootServer and dhcpdBootFilename to be set
|
|
526
686
|
* * Commonly used for diskless workstations or network installations
|
|
527
687
|
*/
|
|
528
|
-
dhcpdBootEnabled?: pulumi.Input<boolean>;
|
|
688
|
+
dhcpdBootEnabled?: pulumi.Input<boolean | undefined>;
|
|
529
689
|
/**
|
|
530
690
|
* The boot filename to be loaded from the TFTP server. Examples:
|
|
531
691
|
* * 'pxelinux.0' - Standard PXE boot loader
|
|
532
692
|
* * 'undionly.kpxe' - iPXE boot loader
|
|
533
693
|
* * Custom paths for specific boot images
|
|
534
694
|
*/
|
|
535
|
-
dhcpdBootFilename?: pulumi.Input<string>;
|
|
695
|
+
dhcpdBootFilename?: pulumi.Input<string | undefined>;
|
|
536
696
|
/**
|
|
537
697
|
* The IPv4 address of the TFTP server for network boot. This setting:
|
|
538
698
|
* * Is required when dhcpdBootEnabled is true
|
|
539
699
|
* * Should be a reliable, always-on server
|
|
540
700
|
* * Must be accessible to all clients that need to boot
|
|
541
701
|
*/
|
|
542
|
-
dhcpdBootServer?: pulumi.Input<string>;
|
|
702
|
+
dhcpdBootServer?: pulumi.Input<string | undefined>;
|
|
703
|
+
/**
|
|
704
|
+
* The IPv4 default gateway to advertise to this network's DHCP clients (DHCP option 3) when `dhcpdGatewayEnabled` is `true`. Typically an address inside this network's `subnet`; an off-subnet address (e.g. a 100.64.0.0/10 Tailscale CGNAT address) passes validation here but may be rejected by the controller at apply. IPv4 only — there is no IPv6 default-gateway override.
|
|
705
|
+
*
|
|
706
|
+
* This attribute is `Optional` and `Computed`: when omitted it inherits the current value reported by the controller (so a manually-set gateway, or a value the controller echoes in auto mode, does not show as drift). Set it together with `dhcpdGatewayEnabled = true` to manage the override from Terraform.
|
|
707
|
+
*/
|
|
708
|
+
dhcpdGateway?: pulumi.Input<string | undefined>;
|
|
709
|
+
/**
|
|
710
|
+
* Controls whether the default gateway advertised to this network's DHCP clients is selected automatically or set manually — equivalent to switching the network's default gateway from automatic to a manually specified address in the UniFi UI (the exact control label and location vary across controller versions). When `false` (automatic, the default) the controller advertises the network's own interface IP as the gateway via DHCP option 3. Set this to `true` to advertise the address in `dhcpdGateway` instead — useful for pointing clients at a custom next hop such as a VPN/subnet-router node (e.g. Tailscale).
|
|
711
|
+
*
|
|
712
|
+
* This attribute is `Optional` and `Computed`: when omitted from configuration it inherits the current value reported by the controller (so a value set in the UI is preserved) rather than being reset. When `true`, `dhcpdGateway` is required.
|
|
713
|
+
*
|
|
714
|
+
* Only meaningful when this network runs the UniFi DHCP server (`dhcpEnabled = true` and `dhcpRelayEnabled = false`) with an address range (`dhcpStart`/`dhcpStop`) configured — the override is DHCP option 3 and the controller rejects a manual gateway with no pool to hand out. It has no effect on `wan` or `vlan-only` networks. Note: on some controller versions the network must also be in manual configuration mode (toggled in the UniFi UI) before a manually-specified gateway is honored.
|
|
715
|
+
*/
|
|
716
|
+
dhcpdGatewayEnabled?: pulumi.Input<boolean | undefined>;
|
|
543
717
|
/**
|
|
544
718
|
* The domain name for this network. Examples:
|
|
545
719
|
* * 'corp.example.com' - For corporate networks
|
|
@@ -547,7 +721,7 @@ export interface NetworkState {
|
|
|
547
721
|
* * 'iot.example.com' - For IoT networks
|
|
548
722
|
* Used for internal DNS resolution and DHCP options.
|
|
549
723
|
*/
|
|
550
|
-
domainName?: pulumi.Input<string>;
|
|
724
|
+
domainName?: pulumi.Input<string | undefined>;
|
|
551
725
|
/**
|
|
552
726
|
* Controls whether this network is active. When disabled:
|
|
553
727
|
* * Network will not be available to clients
|
|
@@ -555,7 +729,19 @@ export interface NetworkState {
|
|
|
555
729
|
* * Existing clients will be disconnected
|
|
556
730
|
* Useful for temporary network maintenance or security measures.
|
|
557
731
|
*/
|
|
558
|
-
enabled?: pulumi.Input<boolean>;
|
|
732
|
+
enabled?: pulumi.Input<boolean | undefined>;
|
|
733
|
+
/**
|
|
734
|
+
* The ID of the Zone-Based Firewall (ZBF) zone this network belongs to. This is only meaningful on UniFi OS 9.x controllers with Zone-Based Firewall enabled. The zone ID is **site-scoped**: an ID from a different site is rejected or silently dropped by the controller.
|
|
735
|
+
*
|
|
736
|
+
* This attribute is `Optional` + `Computed`:
|
|
737
|
+
* * Leave it **unset** to preserve whatever zone the controller (or a `unifi.firewall.Zone` resource) has assigned. The provider never sends the field when it is not configured, so it cannot clobber a zone managed elsewhere.
|
|
738
|
+
* * **Set** it to explicitly pin or move this network to a specific zone — choose the zone appropriate for the network's purpose (e.g. Internal, External, Guest).
|
|
739
|
+
*
|
|
740
|
+
* On read the controller-assigned zone is always populated, so drift is detectable and `terraform import` round-trips cleanly. Note the standard `Optional`+`Computed` "sticky value" semantics: once set and later removed from configuration the value persists in state rather than reverting, and removing it does **not** un-zone the network.
|
|
741
|
+
*
|
|
742
|
+
* To manage zone membership from the zone side instead, use `unifi_firewall_zone.networks`. Do not manage the same network-to-zone association from both sides.
|
|
743
|
+
*/
|
|
744
|
+
firewallZoneId?: pulumi.Input<string | undefined>;
|
|
559
745
|
/**
|
|
560
746
|
* Enables IGMP (Internet Group Management Protocol) snooping. When enabled:
|
|
561
747
|
* * Optimizes multicast traffic flow
|
|
@@ -563,141 +749,173 @@ export interface NetworkState {
|
|
|
563
749
|
* * Improves performance for multicast applications (e.g., IPTV)
|
|
564
750
|
* Recommended for networks with multicast traffic.
|
|
565
751
|
*/
|
|
566
|
-
igmpSnooping?: pulumi.Input<boolean>;
|
|
752
|
+
igmpSnooping?: pulumi.Input<boolean | undefined>;
|
|
567
753
|
/**
|
|
568
754
|
* Controls internet access for this network. When disabled:
|
|
569
755
|
* * Clients cannot access external networks
|
|
570
756
|
* * Internal network access remains available
|
|
571
757
|
* * Useful for creating isolated or secure networks
|
|
572
758
|
*/
|
|
573
|
-
internetAccessEnabled?: pulumi.Input<boolean>;
|
|
759
|
+
internetAccessEnabled?: pulumi.Input<boolean | undefined>;
|
|
574
760
|
/**
|
|
575
761
|
* Specifies the IPv6 connection type. Must be one of:
|
|
576
762
|
* * `none` - IPv6 disabled (default)
|
|
577
763
|
* * `static` - Static IPv6 addressing
|
|
578
764
|
* * `pd` - Prefix Delegation from upstream
|
|
765
|
+
* * `singleNetwork` - Share a delegated IPv6 prefix with a single LAN
|
|
579
766
|
*
|
|
580
|
-
* Choose based on your IPv6 deployment strategy and ISP capabilities.
|
|
767
|
+
* Choose based on your IPv6 deployment strategy and ISP capabilities. Note: `singleNetwork` has companion controller settings (the single-network interface/LAN binding) that this provider does not yet expose, so a bare `singleNetwork` network may not be fully configurable.
|
|
581
768
|
*/
|
|
582
|
-
ipv6InterfaceType?: pulumi.Input<string>;
|
|
769
|
+
ipv6InterfaceType?: pulumi.Input<string | undefined>;
|
|
583
770
|
/**
|
|
584
771
|
* The WAN interface to use for IPv6 Prefix Delegation. Options:
|
|
585
772
|
* * `wan` - Primary WAN interface
|
|
586
773
|
* * `wan2` - Secondary WAN interface
|
|
587
774
|
* Only applicable when `ipv6InterfaceType` is 'pd'.
|
|
775
|
+
*
|
|
776
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; switch `ipv6InterfaceType` away from 'pd' to disable Prefix Delegation instead. Set it explicitly to manage the value from Terraform.
|
|
588
777
|
*/
|
|
589
|
-
ipv6PdInterface?: pulumi.Input<string>;
|
|
778
|
+
ipv6PdInterface?: pulumi.Input<string | undefined>;
|
|
590
779
|
/**
|
|
591
780
|
* The IPv6 Prefix ID for Prefix Delegation. Used to:
|
|
592
781
|
* * Differentiate multiple delegated prefixes
|
|
593
782
|
* * Create unique subnets from the delegated prefix
|
|
594
783
|
* Typically a hexadecimal value (e.g., '0', '1', 'a1').
|
|
595
784
|
*/
|
|
596
|
-
ipv6PdPrefixid?: pulumi.Input<string>;
|
|
785
|
+
ipv6PdPrefixid?: pulumi.Input<string | undefined>;
|
|
597
786
|
/**
|
|
598
787
|
* The starting IPv6 address for Prefix Delegation range.
|
|
599
788
|
* Only used when `ipv6InterfaceType` is 'pd'.
|
|
600
789
|
* Must be within the delegated prefix range.
|
|
790
|
+
*
|
|
791
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; switch `ipv6InterfaceType` away from 'pd' to disable Prefix Delegation instead. Set it explicitly to manage the value from Terraform.
|
|
601
792
|
*/
|
|
602
|
-
ipv6PdStart?: pulumi.Input<string>;
|
|
793
|
+
ipv6PdStart?: pulumi.Input<string | undefined>;
|
|
603
794
|
/**
|
|
604
795
|
* The ending IPv6 address for Prefix Delegation range.
|
|
605
796
|
* Only used when `ipv6InterfaceType` is 'pd'.
|
|
606
797
|
* Must be after `ipv6PdStart` within the delegated prefix.
|
|
798
|
+
*
|
|
799
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; switch `ipv6InterfaceType` away from 'pd' to disable Prefix Delegation instead. Set it explicitly to manage the value from Terraform.
|
|
607
800
|
*/
|
|
608
|
-
ipv6PdStop?: pulumi.Input<string>;
|
|
801
|
+
ipv6PdStop?: pulumi.Input<string | undefined>;
|
|
609
802
|
/**
|
|
610
803
|
* Enables IPv6 Router Advertisements (RA). When enabled:
|
|
611
804
|
* * Announces IPv6 prefix information to clients
|
|
612
805
|
* * Enables SLAAC address configuration
|
|
613
806
|
* * Required for most IPv6 deployments
|
|
614
807
|
*/
|
|
615
|
-
ipv6RaEnable?: pulumi.Input<boolean>;
|
|
808
|
+
ipv6RaEnable?: pulumi.Input<boolean | undefined>;
|
|
616
809
|
/**
|
|
617
810
|
* The preferred lifetime (in seconds) for IPv6 addresses in Router Advertisements.
|
|
618
811
|
* * Must be less than or equal to `ipv6RaValidLifetime`
|
|
619
812
|
* * Default: 14400 (4 hours)
|
|
620
813
|
* * After this time, addresses become deprecated but still usable
|
|
621
814
|
*/
|
|
622
|
-
ipv6RaPreferredLifetime?: pulumi.Input<number>;
|
|
815
|
+
ipv6RaPreferredLifetime?: pulumi.Input<number | undefined>;
|
|
623
816
|
/**
|
|
624
817
|
* Sets the priority for IPv6 Router Advertisements. Options:
|
|
625
818
|
* * `high` - Preferred for primary networks
|
|
626
819
|
* * `medium` - Standard priority
|
|
627
820
|
* * `low` - For backup or secondary networks
|
|
628
821
|
* Affects router selection when multiple IPv6 routers exist.
|
|
822
|
+
*
|
|
823
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; turn Router Advertisements off with `ipv6RaEnable` instead. Set it explicitly to manage the value from Terraform.
|
|
629
824
|
*/
|
|
630
|
-
ipv6RaPriority?: pulumi.Input<string>;
|
|
825
|
+
ipv6RaPriority?: pulumi.Input<string | undefined>;
|
|
631
826
|
/**
|
|
632
827
|
* The valid lifetime (in seconds) for IPv6 addresses in Router Advertisements.
|
|
633
828
|
* * Must be greater than or equal to `ipv6RaPreferredLifetime`
|
|
634
829
|
* * Default: 86400 (24 hours)
|
|
635
830
|
* * After this time, addresses become invalid
|
|
636
831
|
*/
|
|
637
|
-
ipv6RaValidLifetime?: pulumi.Input<number>;
|
|
832
|
+
ipv6RaValidLifetime?: pulumi.Input<number | undefined>;
|
|
638
833
|
/**
|
|
639
834
|
* The static IPv6 subnet in CIDR notation (e.g., '2001:db8::/64') when using static IPv6.
|
|
640
835
|
* Only applicable when `ipv6InterfaceType` is 'static'.
|
|
641
836
|
* Must be a valid IPv6 subnet allocated to your organization.
|
|
837
|
+
*
|
|
838
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; switch `ipv6InterfaceType` away from 'static' to disable static IPv6 instead. Set it explicitly to manage the value from Terraform.
|
|
642
839
|
*/
|
|
643
|
-
ipv6StaticSubnet?: pulumi.Input<string>;
|
|
840
|
+
ipv6StaticSubnet?: pulumi.Input<string | undefined>;
|
|
644
841
|
/**
|
|
645
842
|
* Enables Multicast DNS (mDNS/Bonjour/Avahi) on the network. When enabled:
|
|
646
843
|
* * Allows device discovery (e.g., printers, Chromecasts)
|
|
647
844
|
* * Supports zero-configuration networking
|
|
648
845
|
* * Available on Controller version 7 and later
|
|
649
846
|
*/
|
|
650
|
-
multicastDns?: pulumi.Input<boolean>;
|
|
847
|
+
multicastDns?: pulumi.Input<boolean | undefined>;
|
|
651
848
|
/**
|
|
652
849
|
* The name of the network. This should be a descriptive name that helps identify the network's purpose, such as 'Corporate-Main', 'Guest-Network', or 'IoT-VLAN'.
|
|
653
850
|
*/
|
|
654
|
-
name?: pulumi.Input<string>;
|
|
851
|
+
name?: pulumi.Input<string | undefined>;
|
|
655
852
|
/**
|
|
656
853
|
* The network group for this network. Default is 'LAN'. For WAN networks, use 'WAN' or 'WAN2'. Network groups help organize and apply policies to multiple networks.
|
|
657
854
|
*/
|
|
658
|
-
networkGroup?: pulumi.Input<string>;
|
|
855
|
+
networkGroup?: pulumi.Input<string | undefined>;
|
|
659
856
|
/**
|
|
660
|
-
*
|
|
661
|
-
* *
|
|
662
|
-
* *
|
|
663
|
-
* *
|
|
857
|
+
* Isolates this network from other local networks/VLANs on the site. When enabled:
|
|
858
|
+
* * Hosts on this network cannot route to or from other local networks on the site
|
|
859
|
+
* * Gateway and internet access are retained (internet access is subject to `internetAccessEnabled`)
|
|
860
|
+
* * This is a routing/firewall option for network-to-network isolation, distinct from per-client (WLAN) isolation
|
|
664
861
|
*/
|
|
665
|
-
networkIsolationEnabled?: pulumi.Input<boolean>;
|
|
862
|
+
networkIsolationEnabled?: pulumi.Input<boolean | undefined>;
|
|
666
863
|
/**
|
|
667
864
|
* The purpose/type of the network. Must be one of:
|
|
668
865
|
* * `corporate` - Standard network for corporate use with full access
|
|
669
866
|
* * `guest` - Isolated network for guest access with limited permissions
|
|
670
867
|
* * `wan` - External network connection (WAN uplink)
|
|
671
868
|
* * `vlan-only` - VLAN network without DHCP services
|
|
869
|
+
* * `vpn-client` - Site-to-site VPN client connection (see the `vpnType` and `wireguard_client_*` arguments to configure a WireGuard VPN client)
|
|
672
870
|
*/
|
|
673
|
-
purpose?: pulumi.Input<string>;
|
|
871
|
+
purpose?: pulumi.Input<string | undefined>;
|
|
674
872
|
/**
|
|
675
873
|
* The name of the site to associate the network with.
|
|
676
874
|
*/
|
|
677
|
-
site?: pulumi.Input<string>;
|
|
875
|
+
site?: pulumi.Input<string | undefined>;
|
|
678
876
|
/**
|
|
679
877
|
* The IPv4 subnet for this network in CIDR notation (e.g., '192.168.1.0/24'). This defines the network's address space and determines the range of IP addresses available for DHCP.
|
|
680
878
|
*/
|
|
681
|
-
subnet?: pulumi.Input<string>;
|
|
879
|
+
subnet?: pulumi.Input<string | undefined>;
|
|
880
|
+
/**
|
|
881
|
+
* The list of destination subnets (CIDR notation) routed through the VPN client tunnel when `vpnClientDefaultRoute` is false. Values are canonicalized to their network address (e.g. `10.0.0.1/16` becomes `10.0.0.0/16`). Only applicable when `purpose` is 'vpn-client'.
|
|
882
|
+
*/
|
|
883
|
+
uidVpnCustomRoutings?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
884
|
+
/**
|
|
885
|
+
* Whether clients on THIS network are allowed to request UPnP/NAT-PMP port mappings. Per-network opt-in that complements the gateway-global UPnP toggle (`unifi_setting_usg.upnp_enabled`): UPnP must be enabled globally AND on a given network for that network's devices to self-map WAN ports. Leave false on untrusted networks (IoT, Guest, …) so a compromised device cannot open inbound holes in the firewall; enable only on networks whose devices you trust to manage their own port mappings.
|
|
886
|
+
*/
|
|
887
|
+
upnpLanEnabled?: pulumi.Input<boolean | undefined>;
|
|
682
888
|
/**
|
|
683
889
|
* The VLAN ID for this network. Valid range is 0-4096. Common uses:
|
|
684
890
|
* * 1-4094: Standard VLAN range for network segmentation
|
|
685
891
|
* * 0: Untagged/native VLAN
|
|
686
892
|
* * >4094: Reserved for special purposes
|
|
687
893
|
*/
|
|
688
|
-
vlanId?: pulumi.Input<number>;
|
|
894
|
+
vlanId?: pulumi.Input<number | undefined>;
|
|
895
|
+
/**
|
|
896
|
+
* When true, route all of the gateway's internet traffic through the VPN client tunnel. When false (default), only the destinations in `uidVpnCustomRouting` are routed through the tunnel. Only applicable when `purpose` is 'vpn-client'.
|
|
897
|
+
*/
|
|
898
|
+
vpnClientDefaultRoute?: pulumi.Input<boolean | undefined>;
|
|
899
|
+
/**
|
|
900
|
+
* When true, use DNS servers advertised by the VPN peer for traffic on the tunnel. Only applicable when `purpose` is 'vpn-client'.
|
|
901
|
+
*/
|
|
902
|
+
vpnClientPullDns?: pulumi.Input<boolean | undefined>;
|
|
903
|
+
/**
|
|
904
|
+
* The VPN type for a `vpn-client` network. Currently `wireguard-client` is supported, which connects the gateway to a remote WireGuard server. Only applicable when `purpose` is 'vpn-client'. A `wireguard-client` network also requires `subnet` (the tunnel interface address, e.g. `10.0.0.2/32`) and `dhcpDns` (interface DNS); the controller rejects the create without them.
|
|
905
|
+
*/
|
|
906
|
+
vpnType?: pulumi.Input<string | undefined>;
|
|
689
907
|
/**
|
|
690
908
|
* The IPv6 prefix size to request from ISP. Must be between 48 and 64.
|
|
691
909
|
* Only applicable when `wanTypeV6` is 'dhcpv6'.
|
|
692
910
|
*/
|
|
693
|
-
wanDhcpV6PdSize?: pulumi.Input<number>;
|
|
911
|
+
wanDhcpV6PdSize?: pulumi.Input<number | undefined>;
|
|
694
912
|
/**
|
|
695
913
|
* List of IPv4 DNS servers for WAN interface. Examples:
|
|
696
914
|
* * ISP provided DNS servers
|
|
697
915
|
* * Public DNS services (e.g., 8.8.8.8, 1.1.1.1)
|
|
698
916
|
* * Maximum 4 servers can be specified
|
|
699
917
|
*/
|
|
700
|
-
wanDns?: pulumi.Input<pulumi.Input<string>[]>;
|
|
918
|
+
wanDns?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
701
919
|
/**
|
|
702
920
|
* Quality of Service (QoS) priority for WAN egress traffic (0-7).
|
|
703
921
|
* * 0 (default) - Best effort
|
|
@@ -705,37 +923,37 @@ export interface NetworkState {
|
|
|
705
923
|
* * 5-7 - Highest priority, use sparingly
|
|
706
924
|
* Higher values get preferential treatment.
|
|
707
925
|
*/
|
|
708
|
-
wanEgressQos?: pulumi.Input<number>;
|
|
926
|
+
wanEgressQos?: pulumi.Input<number | undefined>;
|
|
709
927
|
/**
|
|
710
928
|
* The IPv4 gateway address for WAN interface.
|
|
711
929
|
* Required when `wanType` is 'static'.
|
|
712
930
|
* Typically the ISP's router IP address.
|
|
713
931
|
*/
|
|
714
|
-
wanGateway?: pulumi.Input<string>;
|
|
932
|
+
wanGateway?: pulumi.Input<string | undefined>;
|
|
715
933
|
/**
|
|
716
934
|
* The IPv6 gateway address for WAN interface.
|
|
717
935
|
* Required when `wanTypeV6` is 'static'.
|
|
718
936
|
* Typically the ISP's router IPv6 address.
|
|
719
937
|
*/
|
|
720
|
-
wanGatewayV6?: pulumi.Input<string>;
|
|
938
|
+
wanGatewayV6?: pulumi.Input<string | undefined>;
|
|
721
939
|
/**
|
|
722
940
|
* The static IPv4 address for WAN interface.
|
|
723
941
|
* Required when `wanType` is 'static'.
|
|
724
942
|
* Must be a valid public IP address assigned by your ISP.
|
|
725
943
|
*/
|
|
726
|
-
wanIp?: pulumi.Input<string>;
|
|
944
|
+
wanIp?: pulumi.Input<string | undefined>;
|
|
727
945
|
/**
|
|
728
946
|
* The static IPv6 address for WAN interface.
|
|
729
947
|
* Required when `wanTypeV6` is 'static'.
|
|
730
948
|
* Must be a valid public IPv6 address assigned by your ISP.
|
|
731
949
|
*/
|
|
732
|
-
wanIpv6?: pulumi.Input<string>;
|
|
950
|
+
wanIpv6?: pulumi.Input<string | undefined>;
|
|
733
951
|
/**
|
|
734
952
|
* The IPv4 netmask for WAN interface (e.g., '255.255.255.0').
|
|
735
953
|
* Required when `wanType` is 'static'.
|
|
736
954
|
* Must match the subnet mask provided by your ISP.
|
|
737
955
|
*/
|
|
738
|
-
wanNetmask?: pulumi.Input<string>;
|
|
956
|
+
wanNetmask?: pulumi.Input<string | undefined>;
|
|
739
957
|
/**
|
|
740
958
|
* The WAN interface group assignment. Options:
|
|
741
959
|
* * `WAN` - Primary WAN interface
|
|
@@ -743,12 +961,12 @@ export interface NetworkState {
|
|
|
743
961
|
* * `WAN_LTE_FAILOVER` - LTE backup connection
|
|
744
962
|
* Used for dual WAN and failover configurations.
|
|
745
963
|
*/
|
|
746
|
-
wanNetworkgroup?: pulumi.Input<string>;
|
|
964
|
+
wanNetworkgroup?: pulumi.Input<string | undefined>;
|
|
747
965
|
/**
|
|
748
966
|
* The IPv6 prefix length for WAN interface. Must be between 1 and 128.
|
|
749
967
|
* Only applicable when `wanTypeV6` is 'static'.
|
|
750
968
|
*/
|
|
751
|
-
wanPrefixlen?: pulumi.Input<number>;
|
|
969
|
+
wanPrefixlen?: pulumi.Input<number | undefined>;
|
|
752
970
|
/**
|
|
753
971
|
* The IPv4 WAN connection type. Options:
|
|
754
972
|
* * `disabled` - WAN interface disabled
|
|
@@ -757,7 +975,7 @@ export interface NetworkState {
|
|
|
757
975
|
* * `pppoe` - PPPoE connection (common for DSL)
|
|
758
976
|
* Choose based on your ISP's requirements.
|
|
759
977
|
*/
|
|
760
|
-
wanType?: pulumi.Input<string>;
|
|
978
|
+
wanType?: pulumi.Input<string | undefined>;
|
|
761
979
|
/**
|
|
762
980
|
* The IPv6 WAN connection type. Options:
|
|
763
981
|
* * `disabled` - IPv6 disabled
|
|
@@ -765,21 +983,57 @@ export interface NetworkState {
|
|
|
765
983
|
* * `dhcpv6` - Dynamic IPv6 from ISP
|
|
766
984
|
* Choose based on your ISP's requirements.
|
|
767
985
|
*/
|
|
768
|
-
wanTypeV6?: pulumi.Input<string>;
|
|
986
|
+
wanTypeV6?: pulumi.Input<string | undefined>;
|
|
769
987
|
/**
|
|
770
988
|
* Username for WAN authentication.
|
|
771
989
|
* * Required for PPPoE connections
|
|
772
990
|
* * May be needed for some ISP configurations
|
|
773
991
|
* * Cannot contain spaces or special characters
|
|
774
992
|
*/
|
|
775
|
-
wanUsername?: pulumi.Input<string>;
|
|
993
|
+
wanUsername?: pulumi.Input<string | undefined>;
|
|
994
|
+
/**
|
|
995
|
+
* How the WireGuard VPN client peer is configured. Currently only `manual` is supported, configuring the peer with the individual `wireguard_client_*` arguments. Only applicable when `vpnType` is 'wireguard-client'.
|
|
996
|
+
*/
|
|
997
|
+
wireguardClientMode?: pulumi.Input<string | undefined>;
|
|
998
|
+
/**
|
|
999
|
+
* The remote WireGuard server's endpoint host or IP address that the gateway dials. Only applicable when `vpnType` is 'wireguard-client'.
|
|
1000
|
+
*/
|
|
1001
|
+
wireguardClientPeerIp?: pulumi.Input<string | undefined>;
|
|
1002
|
+
/**
|
|
1003
|
+
* The remote WireGuard server's listen port (e.g. 51820). Only applicable when `vpnType` is 'wireguard-client'.
|
|
1004
|
+
*/
|
|
1005
|
+
wireguardClientPeerPort?: pulumi.Input<number | undefined>;
|
|
1006
|
+
/**
|
|
1007
|
+
* The remote WireGuard server's public key (the peer the gateway connects to). Only applicable when `vpnType` is 'wireguard-client'.
|
|
1008
|
+
*/
|
|
1009
|
+
wireguardClientPeerPublicKey?: pulumi.Input<string | undefined>;
|
|
1010
|
+
/**
|
|
1011
|
+
* An optional WireGuard pre-shared key (PSK) for an additional layer of symmetric-key security with the peer. Keep this value secret. The controller may not return this value on read, so it is computed to avoid spurious drift. Only applicable when `vpnType` is 'wireguard-client'.
|
|
1012
|
+
*/
|
|
1013
|
+
wireguardClientPresharedKey?: pulumi.Input<string | undefined>;
|
|
1014
|
+
/**
|
|
1015
|
+
* Whether a WireGuard pre-shared key is used with the peer. Only applicable when `vpnType` is 'wireguard-client'.
|
|
1016
|
+
*/
|
|
1017
|
+
wireguardClientPresharedKeyEnabled?: pulumi.Input<boolean | undefined>;
|
|
1018
|
+
/**
|
|
1019
|
+
* The WAN interface the WireGuard tunnel egresses from. One of `wan` or `wan2`. Only applicable when `vpnType` is 'wireguard-client'.
|
|
1020
|
+
*/
|
|
1021
|
+
wireguardInterface?: pulumi.Input<string | undefined>;
|
|
1022
|
+
/**
|
|
1023
|
+
* The gateway's own WireGuard public key for this VPN client. The controller does not return it, so the provider derives it from the private key (Curve25519). Add this key as a peer on the remote WireGuard server. Only set when `vpnType` is 'wireguard-client'.
|
|
1024
|
+
*/
|
|
1025
|
+
wireguardPublicKey?: pulumi.Input<string | undefined>;
|
|
776
1026
|
/**
|
|
777
1027
|
* Password for WAN authentication.
|
|
778
1028
|
* * Required for PPPoE connections
|
|
779
1029
|
* * May be needed for some ISP configurations
|
|
780
1030
|
* * Must be kept secret
|
|
781
1031
|
*/
|
|
782
|
-
xWanPassword?: pulumi.Input<string>;
|
|
1032
|
+
xWanPassword?: pulumi.Input<string | undefined>;
|
|
1033
|
+
/**
|
|
1034
|
+
* The gateway's own WireGuard private key for this VPN client. If omitted, a key pair is generated for you and the public key is exposed via `wireguardPublicKey`. Keep this value secret. Only applicable when `vpnType` is 'wireguard-client'.
|
|
1035
|
+
*/
|
|
1036
|
+
xWireguardPrivateKey?: pulumi.Input<string | undefined>;
|
|
783
1037
|
}
|
|
784
1038
|
/**
|
|
785
1039
|
* The set of arguments for constructing a Network resource.
|
|
@@ -792,14 +1046,28 @@ export interface NetworkArgs {
|
|
|
792
1046
|
* * Use internal DNS servers for corporate networks
|
|
793
1047
|
* Maximum 4 servers can be specified.
|
|
794
1048
|
*/
|
|
795
|
-
dhcpDns?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1049
|
+
dhcpDns?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
796
1050
|
/**
|
|
797
1051
|
* Controls whether DHCP server is enabled for this network. When enabled:
|
|
798
1052
|
* * The network will automatically assign IP addresses to clients
|
|
799
1053
|
* * DHCP options (DNS, lease time) will be provided to clients
|
|
800
1054
|
* * Static IP assignments can still be made outside the DHCP range
|
|
801
1055
|
*/
|
|
802
|
-
dhcpEnabled?: pulumi.Input<boolean>;
|
|
1056
|
+
dhcpEnabled?: pulumi.Input<boolean | undefined>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Enables DHCP Guarding for this network, blocking DHCP server responses from untrusted/rogue sources so only the trusted DHCP server can hand out leases. When enabled:
|
|
1059
|
+
* * Drops DHCP offers/acknowledgements from servers other than the trusted one
|
|
1060
|
+
* * Protects clients from rogue or misconfigured DHCP servers
|
|
1061
|
+
*
|
|
1062
|
+
* This attribute is `Optional` and `Computed`: when omitted from configuration it inherits the current value reported by the controller (so a value enabled in the UI is preserved), rather than being reset. Set it explicitly to manage the value from Terraform.
|
|
1063
|
+
*/
|
|
1064
|
+
dhcpGuarding?: pulumi.Input<boolean | undefined>;
|
|
1065
|
+
/**
|
|
1066
|
+
* List of trusted DHCP server IPv4 addresses for DHCP Guarding. When `dhcpGuarding` is enabled the controller drops DHCP offers from every server except those listed here, so at least one address is required whenever guarding is on (for a network served by the UniFi gateway's own DHCP server this is typically the network's gateway IP). Maximum 3 servers can be specified.
|
|
1067
|
+
*
|
|
1068
|
+
* Like `dhcpGuarding`, this attribute is `Optional` and `Computed`: when omitted it inherits the current value reported by the controller (so a list configured in the UI is preserved rather than cleared). Set it explicitly to manage the trusted servers from Terraform.
|
|
1069
|
+
*/
|
|
1070
|
+
dhcpGuardingTrustedServers?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
803
1071
|
/**
|
|
804
1072
|
* The DHCP lease time in seconds. Common values:
|
|
805
1073
|
* * 86400 (1 day) - Default, suitable for most networks
|
|
@@ -807,49 +1075,49 @@ export interface NetworkArgs {
|
|
|
807
1075
|
* * 604800 (1 week) - For stable networks with static clients
|
|
808
1076
|
* * 2592000 (30 days) - For very stable networks
|
|
809
1077
|
*/
|
|
810
|
-
dhcpLease?: pulumi.Input<number>;
|
|
1078
|
+
dhcpLease?: pulumi.Input<number | undefined>;
|
|
811
1079
|
/**
|
|
812
1080
|
* Enables DHCP relay for this network. When enabled:
|
|
813
1081
|
* * DHCP requests are forwarded to an external DHCP server
|
|
814
1082
|
* * Local DHCP server is disabled
|
|
815
1083
|
* * Useful for centralized DHCP management
|
|
816
1084
|
*/
|
|
817
|
-
dhcpRelayEnabled?: pulumi.Input<boolean>;
|
|
1085
|
+
dhcpRelayEnabled?: pulumi.Input<boolean | undefined>;
|
|
818
1086
|
/**
|
|
819
1087
|
* The starting IPv4 address of the DHCP range. Examples:
|
|
820
1088
|
* * For subnet 192.168.1.0/24, typical start: '192.168.1.100'
|
|
821
1089
|
* * For subnet 10.0.0.0/24, typical start: '10.0.0.100'
|
|
822
1090
|
* Ensure this address is within the network's subnet.
|
|
823
1091
|
*/
|
|
824
|
-
dhcpStart?: pulumi.Input<string>;
|
|
1092
|
+
dhcpStart?: pulumi.Input<string | undefined>;
|
|
825
1093
|
/**
|
|
826
1094
|
* The ending IPv4 address of the DHCP range. Examples:
|
|
827
1095
|
* * For subnet 192.168.1.0/24, typical stop: '192.168.1.254'
|
|
828
1096
|
* * For subnet 10.0.0.0/24, typical stop: '10.0.0.254'
|
|
829
1097
|
* Must be greater than dhcpStart and within the network's subnet.
|
|
830
1098
|
*/
|
|
831
|
-
dhcpStop?: pulumi.Input<string>;
|
|
1099
|
+
dhcpStop?: pulumi.Input<string | undefined>;
|
|
832
1100
|
/**
|
|
833
1101
|
* List of IPv6 DNS server addresses for DHCPv6 clients. Examples:
|
|
834
1102
|
* * Use ['2001:4860:4860::8888', '2001:4860:4860::8844'] for Google DNS
|
|
835
1103
|
* * Use ['2606:4700:4700::1111', '2606:4700:4700::1001'] for Cloudflare DNS
|
|
836
1104
|
* Only used when dhcpV6DnsAuto is false. Maximum of 4 addresses are allowed.
|
|
837
1105
|
*/
|
|
838
|
-
dhcpV6Dns?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1106
|
+
dhcpV6Dns?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
839
1107
|
/**
|
|
840
1108
|
* Controls DNS server source for DHCPv6 clients:
|
|
841
1109
|
* * true - Use upstream DNS servers (recommended)
|
|
842
1110
|
* * false - Use manually specified servers from dhcpV6Dns
|
|
843
1111
|
* Default is true for easier management.
|
|
844
1112
|
*/
|
|
845
|
-
dhcpV6DnsAuto?: pulumi.Input<boolean>;
|
|
1113
|
+
dhcpV6DnsAuto?: pulumi.Input<boolean | undefined>;
|
|
846
1114
|
/**
|
|
847
1115
|
* Enables stateful DHCPv6 for IPv6 address assignment. When enabled:
|
|
848
1116
|
* * Provides IPv6 addresses to clients
|
|
849
1117
|
* * Works alongside SLAAC if configured
|
|
850
1118
|
* * Allows for more controlled IPv6 addressing
|
|
851
1119
|
*/
|
|
852
|
-
dhcpV6Enabled?: pulumi.Input<boolean>;
|
|
1120
|
+
dhcpV6Enabled?: pulumi.Input<boolean | undefined>;
|
|
853
1121
|
/**
|
|
854
1122
|
* The DHCPv6 lease time in seconds. Common values:
|
|
855
1123
|
* * 86400 (1 day) - Default setting
|
|
@@ -857,38 +1125,56 @@ export interface NetworkArgs {
|
|
|
857
1125
|
* * 604800 (1 week) - For stable networks
|
|
858
1126
|
* Typically longer than IPv4 DHCP leases.
|
|
859
1127
|
*/
|
|
860
|
-
dhcpV6Lease?: pulumi.Input<number>;
|
|
1128
|
+
dhcpV6Lease?: pulumi.Input<number | undefined>;
|
|
861
1129
|
/**
|
|
862
1130
|
* The starting IPv6 address for the DHCPv6 range. Used in static DHCPv6 configuration.
|
|
863
1131
|
* Must be a valid IPv6 address within your allocated IPv6 subnet.
|
|
1132
|
+
*
|
|
1133
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; turn DHCPv6 off with `dhcpV6Enabled`/`ipv6InterfaceType` instead. Set it explicitly to manage the value from Terraform.
|
|
864
1134
|
*/
|
|
865
|
-
dhcpV6Start?: pulumi.Input<string>;
|
|
1135
|
+
dhcpV6Start?: pulumi.Input<string | undefined>;
|
|
866
1136
|
/**
|
|
867
1137
|
* The ending IPv6 address for the DHCPv6 range. Used in static DHCPv6 configuration.
|
|
868
1138
|
* Must be after dhcpV6Start in the IPv6 address space.
|
|
1139
|
+
*
|
|
1140
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; turn DHCPv6 off with `dhcpV6Enabled`/`ipv6InterfaceType` instead. Set it explicitly to manage the value from Terraform.
|
|
869
1141
|
*/
|
|
870
|
-
dhcpV6Stop?: pulumi.Input<string>;
|
|
1142
|
+
dhcpV6Stop?: pulumi.Input<string | undefined>;
|
|
871
1143
|
/**
|
|
872
1144
|
* Enables DHCP boot options for PXE boot or network boot configurations. When enabled:
|
|
873
1145
|
* * Allows network devices to boot from a TFTP server
|
|
874
1146
|
* * Requires dhcpdBootServer and dhcpdBootFilename to be set
|
|
875
1147
|
* * Commonly used for diskless workstations or network installations
|
|
876
1148
|
*/
|
|
877
|
-
dhcpdBootEnabled?: pulumi.Input<boolean>;
|
|
1149
|
+
dhcpdBootEnabled?: pulumi.Input<boolean | undefined>;
|
|
878
1150
|
/**
|
|
879
1151
|
* The boot filename to be loaded from the TFTP server. Examples:
|
|
880
1152
|
* * 'pxelinux.0' - Standard PXE boot loader
|
|
881
1153
|
* * 'undionly.kpxe' - iPXE boot loader
|
|
882
1154
|
* * Custom paths for specific boot images
|
|
883
1155
|
*/
|
|
884
|
-
dhcpdBootFilename?: pulumi.Input<string>;
|
|
1156
|
+
dhcpdBootFilename?: pulumi.Input<string | undefined>;
|
|
885
1157
|
/**
|
|
886
1158
|
* The IPv4 address of the TFTP server for network boot. This setting:
|
|
887
1159
|
* * Is required when dhcpdBootEnabled is true
|
|
888
1160
|
* * Should be a reliable, always-on server
|
|
889
1161
|
* * Must be accessible to all clients that need to boot
|
|
890
1162
|
*/
|
|
891
|
-
dhcpdBootServer?: pulumi.Input<string>;
|
|
1163
|
+
dhcpdBootServer?: pulumi.Input<string | undefined>;
|
|
1164
|
+
/**
|
|
1165
|
+
* The IPv4 default gateway to advertise to this network's DHCP clients (DHCP option 3) when `dhcpdGatewayEnabled` is `true`. Typically an address inside this network's `subnet`; an off-subnet address (e.g. a 100.64.0.0/10 Tailscale CGNAT address) passes validation here but may be rejected by the controller at apply. IPv4 only — there is no IPv6 default-gateway override.
|
|
1166
|
+
*
|
|
1167
|
+
* This attribute is `Optional` and `Computed`: when omitted it inherits the current value reported by the controller (so a manually-set gateway, or a value the controller echoes in auto mode, does not show as drift). Set it together with `dhcpdGatewayEnabled = true` to manage the override from Terraform.
|
|
1168
|
+
*/
|
|
1169
|
+
dhcpdGateway?: pulumi.Input<string | undefined>;
|
|
1170
|
+
/**
|
|
1171
|
+
* Controls whether the default gateway advertised to this network's DHCP clients is selected automatically or set manually — equivalent to switching the network's default gateway from automatic to a manually specified address in the UniFi UI (the exact control label and location vary across controller versions). When `false` (automatic, the default) the controller advertises the network's own interface IP as the gateway via DHCP option 3. Set this to `true` to advertise the address in `dhcpdGateway` instead — useful for pointing clients at a custom next hop such as a VPN/subnet-router node (e.g. Tailscale).
|
|
1172
|
+
*
|
|
1173
|
+
* This attribute is `Optional` and `Computed`: when omitted from configuration it inherits the current value reported by the controller (so a value set in the UI is preserved) rather than being reset. When `true`, `dhcpdGateway` is required.
|
|
1174
|
+
*
|
|
1175
|
+
* Only meaningful when this network runs the UniFi DHCP server (`dhcpEnabled = true` and `dhcpRelayEnabled = false`) with an address range (`dhcpStart`/`dhcpStop`) configured — the override is DHCP option 3 and the controller rejects a manual gateway with no pool to hand out. It has no effect on `wan` or `vlan-only` networks. Note: on some controller versions the network must also be in manual configuration mode (toggled in the UniFi UI) before a manually-specified gateway is honored.
|
|
1176
|
+
*/
|
|
1177
|
+
dhcpdGatewayEnabled?: pulumi.Input<boolean | undefined>;
|
|
892
1178
|
/**
|
|
893
1179
|
* The domain name for this network. Examples:
|
|
894
1180
|
* * 'corp.example.com' - For corporate networks
|
|
@@ -896,7 +1182,7 @@ export interface NetworkArgs {
|
|
|
896
1182
|
* * 'iot.example.com' - For IoT networks
|
|
897
1183
|
* Used for internal DNS resolution and DHCP options.
|
|
898
1184
|
*/
|
|
899
|
-
domainName?: pulumi.Input<string>;
|
|
1185
|
+
domainName?: pulumi.Input<string | undefined>;
|
|
900
1186
|
/**
|
|
901
1187
|
* Controls whether this network is active. When disabled:
|
|
902
1188
|
* * Network will not be available to clients
|
|
@@ -904,7 +1190,19 @@ export interface NetworkArgs {
|
|
|
904
1190
|
* * Existing clients will be disconnected
|
|
905
1191
|
* Useful for temporary network maintenance or security measures.
|
|
906
1192
|
*/
|
|
907
|
-
enabled?: pulumi.Input<boolean>;
|
|
1193
|
+
enabled?: pulumi.Input<boolean | undefined>;
|
|
1194
|
+
/**
|
|
1195
|
+
* The ID of the Zone-Based Firewall (ZBF) zone this network belongs to. This is only meaningful on UniFi OS 9.x controllers with Zone-Based Firewall enabled. The zone ID is **site-scoped**: an ID from a different site is rejected or silently dropped by the controller.
|
|
1196
|
+
*
|
|
1197
|
+
* This attribute is `Optional` + `Computed`:
|
|
1198
|
+
* * Leave it **unset** to preserve whatever zone the controller (or a `unifi.firewall.Zone` resource) has assigned. The provider never sends the field when it is not configured, so it cannot clobber a zone managed elsewhere.
|
|
1199
|
+
* * **Set** it to explicitly pin or move this network to a specific zone — choose the zone appropriate for the network's purpose (e.g. Internal, External, Guest).
|
|
1200
|
+
*
|
|
1201
|
+
* On read the controller-assigned zone is always populated, so drift is detectable and `terraform import` round-trips cleanly. Note the standard `Optional`+`Computed` "sticky value" semantics: once set and later removed from configuration the value persists in state rather than reverting, and removing it does **not** un-zone the network.
|
|
1202
|
+
*
|
|
1203
|
+
* To manage zone membership from the zone side instead, use `unifi_firewall_zone.networks`. Do not manage the same network-to-zone association from both sides.
|
|
1204
|
+
*/
|
|
1205
|
+
firewallZoneId?: pulumi.Input<string | undefined>;
|
|
908
1206
|
/**
|
|
909
1207
|
* Enables IGMP (Internet Group Management Protocol) snooping. When enabled:
|
|
910
1208
|
* * Optimizes multicast traffic flow
|
|
@@ -912,141 +1210,173 @@ export interface NetworkArgs {
|
|
|
912
1210
|
* * Improves performance for multicast applications (e.g., IPTV)
|
|
913
1211
|
* Recommended for networks with multicast traffic.
|
|
914
1212
|
*/
|
|
915
|
-
igmpSnooping?: pulumi.Input<boolean>;
|
|
1213
|
+
igmpSnooping?: pulumi.Input<boolean | undefined>;
|
|
916
1214
|
/**
|
|
917
1215
|
* Controls internet access for this network. When disabled:
|
|
918
1216
|
* * Clients cannot access external networks
|
|
919
1217
|
* * Internal network access remains available
|
|
920
1218
|
* * Useful for creating isolated or secure networks
|
|
921
1219
|
*/
|
|
922
|
-
internetAccessEnabled?: pulumi.Input<boolean>;
|
|
1220
|
+
internetAccessEnabled?: pulumi.Input<boolean | undefined>;
|
|
923
1221
|
/**
|
|
924
1222
|
* Specifies the IPv6 connection type. Must be one of:
|
|
925
1223
|
* * `none` - IPv6 disabled (default)
|
|
926
1224
|
* * `static` - Static IPv6 addressing
|
|
927
1225
|
* * `pd` - Prefix Delegation from upstream
|
|
1226
|
+
* * `singleNetwork` - Share a delegated IPv6 prefix with a single LAN
|
|
928
1227
|
*
|
|
929
|
-
* Choose based on your IPv6 deployment strategy and ISP capabilities.
|
|
1228
|
+
* Choose based on your IPv6 deployment strategy and ISP capabilities. Note: `singleNetwork` has companion controller settings (the single-network interface/LAN binding) that this provider does not yet expose, so a bare `singleNetwork` network may not be fully configurable.
|
|
930
1229
|
*/
|
|
931
|
-
ipv6InterfaceType?: pulumi.Input<string>;
|
|
1230
|
+
ipv6InterfaceType?: pulumi.Input<string | undefined>;
|
|
932
1231
|
/**
|
|
933
1232
|
* The WAN interface to use for IPv6 Prefix Delegation. Options:
|
|
934
1233
|
* * `wan` - Primary WAN interface
|
|
935
1234
|
* * `wan2` - Secondary WAN interface
|
|
936
1235
|
* Only applicable when `ipv6InterfaceType` is 'pd'.
|
|
1236
|
+
*
|
|
1237
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; switch `ipv6InterfaceType` away from 'pd' to disable Prefix Delegation instead. Set it explicitly to manage the value from Terraform.
|
|
937
1238
|
*/
|
|
938
|
-
ipv6PdInterface?: pulumi.Input<string>;
|
|
1239
|
+
ipv6PdInterface?: pulumi.Input<string | undefined>;
|
|
939
1240
|
/**
|
|
940
1241
|
* The IPv6 Prefix ID for Prefix Delegation. Used to:
|
|
941
1242
|
* * Differentiate multiple delegated prefixes
|
|
942
1243
|
* * Create unique subnets from the delegated prefix
|
|
943
1244
|
* Typically a hexadecimal value (e.g., '0', '1', 'a1').
|
|
944
1245
|
*/
|
|
945
|
-
ipv6PdPrefixid?: pulumi.Input<string>;
|
|
1246
|
+
ipv6PdPrefixid?: pulumi.Input<string | undefined>;
|
|
946
1247
|
/**
|
|
947
1248
|
* The starting IPv6 address for Prefix Delegation range.
|
|
948
1249
|
* Only used when `ipv6InterfaceType` is 'pd'.
|
|
949
1250
|
* Must be within the delegated prefix range.
|
|
1251
|
+
*
|
|
1252
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; switch `ipv6InterfaceType` away from 'pd' to disable Prefix Delegation instead. Set it explicitly to manage the value from Terraform.
|
|
950
1253
|
*/
|
|
951
|
-
ipv6PdStart?: pulumi.Input<string>;
|
|
1254
|
+
ipv6PdStart?: pulumi.Input<string | undefined>;
|
|
952
1255
|
/**
|
|
953
1256
|
* The ending IPv6 address for Prefix Delegation range.
|
|
954
1257
|
* Only used when `ipv6InterfaceType` is 'pd'.
|
|
955
1258
|
* Must be after `ipv6PdStart` within the delegated prefix.
|
|
1259
|
+
*
|
|
1260
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; switch `ipv6InterfaceType` away from 'pd' to disable Prefix Delegation instead. Set it explicitly to manage the value from Terraform.
|
|
956
1261
|
*/
|
|
957
|
-
ipv6PdStop?: pulumi.Input<string>;
|
|
1262
|
+
ipv6PdStop?: pulumi.Input<string | undefined>;
|
|
958
1263
|
/**
|
|
959
1264
|
* Enables IPv6 Router Advertisements (RA). When enabled:
|
|
960
1265
|
* * Announces IPv6 prefix information to clients
|
|
961
1266
|
* * Enables SLAAC address configuration
|
|
962
1267
|
* * Required for most IPv6 deployments
|
|
963
1268
|
*/
|
|
964
|
-
ipv6RaEnable?: pulumi.Input<boolean>;
|
|
1269
|
+
ipv6RaEnable?: pulumi.Input<boolean | undefined>;
|
|
965
1270
|
/**
|
|
966
1271
|
* The preferred lifetime (in seconds) for IPv6 addresses in Router Advertisements.
|
|
967
1272
|
* * Must be less than or equal to `ipv6RaValidLifetime`
|
|
968
1273
|
* * Default: 14400 (4 hours)
|
|
969
1274
|
* * After this time, addresses become deprecated but still usable
|
|
970
1275
|
*/
|
|
971
|
-
ipv6RaPreferredLifetime?: pulumi.Input<number>;
|
|
1276
|
+
ipv6RaPreferredLifetime?: pulumi.Input<number | undefined>;
|
|
972
1277
|
/**
|
|
973
1278
|
* Sets the priority for IPv6 Router Advertisements. Options:
|
|
974
1279
|
* * `high` - Preferred for primary networks
|
|
975
1280
|
* * `medium` - Standard priority
|
|
976
1281
|
* * `low` - For backup or secondary networks
|
|
977
1282
|
* Affects router selection when multiple IPv6 routers exist.
|
|
1283
|
+
*
|
|
1284
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; turn Router Advertisements off with `ipv6RaEnable` instead. Set it explicitly to manage the value from Terraform.
|
|
978
1285
|
*/
|
|
979
|
-
ipv6RaPriority?: pulumi.Input<string>;
|
|
1286
|
+
ipv6RaPriority?: pulumi.Input<string | undefined>;
|
|
980
1287
|
/**
|
|
981
1288
|
* The valid lifetime (in seconds) for IPv6 addresses in Router Advertisements.
|
|
982
1289
|
* * Must be greater than or equal to `ipv6RaPreferredLifetime`
|
|
983
1290
|
* * Default: 86400 (24 hours)
|
|
984
1291
|
* * After this time, addresses become invalid
|
|
985
1292
|
*/
|
|
986
|
-
ipv6RaValidLifetime?: pulumi.Input<number>;
|
|
1293
|
+
ipv6RaValidLifetime?: pulumi.Input<number | undefined>;
|
|
987
1294
|
/**
|
|
988
1295
|
* The static IPv6 subnet in CIDR notation (e.g., '2001:db8::/64') when using static IPv6.
|
|
989
1296
|
* Only applicable when `ipv6InterfaceType` is 'static'.
|
|
990
1297
|
* Must be a valid IPv6 subnet allocated to your organization.
|
|
1298
|
+
*
|
|
1299
|
+
* This attribute is `Optional` + `Computed`: when omitted from configuration it inherits the current value reported by the controller, so a value configured in the UI (or read in via `terraform import`) is preserved rather than planned for removal. Note the standard `Optional`+`Computed` "sticky value" semantics — once the controller has a value, removing the attribute from configuration leaves that value in place rather than clearing it (the provider serializes this field with `omitempty`, so an empty value is never sent). There is therefore no way to clear it by deleting it from configuration; switch `ipv6InterfaceType` away from 'static' to disable static IPv6 instead. Set it explicitly to manage the value from Terraform.
|
|
991
1300
|
*/
|
|
992
|
-
ipv6StaticSubnet?: pulumi.Input<string>;
|
|
1301
|
+
ipv6StaticSubnet?: pulumi.Input<string | undefined>;
|
|
993
1302
|
/**
|
|
994
1303
|
* Enables Multicast DNS (mDNS/Bonjour/Avahi) on the network. When enabled:
|
|
995
1304
|
* * Allows device discovery (e.g., printers, Chromecasts)
|
|
996
1305
|
* * Supports zero-configuration networking
|
|
997
1306
|
* * Available on Controller version 7 and later
|
|
998
1307
|
*/
|
|
999
|
-
multicastDns?: pulumi.Input<boolean>;
|
|
1308
|
+
multicastDns?: pulumi.Input<boolean | undefined>;
|
|
1000
1309
|
/**
|
|
1001
1310
|
* The name of the network. This should be a descriptive name that helps identify the network's purpose, such as 'Corporate-Main', 'Guest-Network', or 'IoT-VLAN'.
|
|
1002
1311
|
*/
|
|
1003
|
-
name?: pulumi.Input<string>;
|
|
1312
|
+
name?: pulumi.Input<string | undefined>;
|
|
1004
1313
|
/**
|
|
1005
1314
|
* The network group for this network. Default is 'LAN'. For WAN networks, use 'WAN' or 'WAN2'. Network groups help organize and apply policies to multiple networks.
|
|
1006
1315
|
*/
|
|
1007
|
-
networkGroup?: pulumi.Input<string>;
|
|
1316
|
+
networkGroup?: pulumi.Input<string | undefined>;
|
|
1008
1317
|
/**
|
|
1009
|
-
*
|
|
1010
|
-
* *
|
|
1011
|
-
* *
|
|
1012
|
-
* *
|
|
1318
|
+
* Isolates this network from other local networks/VLANs on the site. When enabled:
|
|
1319
|
+
* * Hosts on this network cannot route to or from other local networks on the site
|
|
1320
|
+
* * Gateway and internet access are retained (internet access is subject to `internetAccessEnabled`)
|
|
1321
|
+
* * This is a routing/firewall option for network-to-network isolation, distinct from per-client (WLAN) isolation
|
|
1013
1322
|
*/
|
|
1014
|
-
networkIsolationEnabled?: pulumi.Input<boolean>;
|
|
1323
|
+
networkIsolationEnabled?: pulumi.Input<boolean | undefined>;
|
|
1015
1324
|
/**
|
|
1016
1325
|
* The purpose/type of the network. Must be one of:
|
|
1017
1326
|
* * `corporate` - Standard network for corporate use with full access
|
|
1018
1327
|
* * `guest` - Isolated network for guest access with limited permissions
|
|
1019
1328
|
* * `wan` - External network connection (WAN uplink)
|
|
1020
1329
|
* * `vlan-only` - VLAN network without DHCP services
|
|
1330
|
+
* * `vpn-client` - Site-to-site VPN client connection (see the `vpnType` and `wireguard_client_*` arguments to configure a WireGuard VPN client)
|
|
1021
1331
|
*/
|
|
1022
1332
|
purpose: pulumi.Input<string>;
|
|
1023
1333
|
/**
|
|
1024
1334
|
* The name of the site to associate the network with.
|
|
1025
1335
|
*/
|
|
1026
|
-
site?: pulumi.Input<string>;
|
|
1336
|
+
site?: pulumi.Input<string | undefined>;
|
|
1027
1337
|
/**
|
|
1028
1338
|
* The IPv4 subnet for this network in CIDR notation (e.g., '192.168.1.0/24'). This defines the network's address space and determines the range of IP addresses available for DHCP.
|
|
1029
1339
|
*/
|
|
1030
|
-
subnet?: pulumi.Input<string>;
|
|
1340
|
+
subnet?: pulumi.Input<string | undefined>;
|
|
1341
|
+
/**
|
|
1342
|
+
* The list of destination subnets (CIDR notation) routed through the VPN client tunnel when `vpnClientDefaultRoute` is false. Values are canonicalized to their network address (e.g. `10.0.0.1/16` becomes `10.0.0.0/16`). Only applicable when `purpose` is 'vpn-client'.
|
|
1343
|
+
*/
|
|
1344
|
+
uidVpnCustomRoutings?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
1345
|
+
/**
|
|
1346
|
+
* Whether clients on THIS network are allowed to request UPnP/NAT-PMP port mappings. Per-network opt-in that complements the gateway-global UPnP toggle (`unifi_setting_usg.upnp_enabled`): UPnP must be enabled globally AND on a given network for that network's devices to self-map WAN ports. Leave false on untrusted networks (IoT, Guest, …) so a compromised device cannot open inbound holes in the firewall; enable only on networks whose devices you trust to manage their own port mappings.
|
|
1347
|
+
*/
|
|
1348
|
+
upnpLanEnabled?: pulumi.Input<boolean | undefined>;
|
|
1031
1349
|
/**
|
|
1032
1350
|
* The VLAN ID for this network. Valid range is 0-4096. Common uses:
|
|
1033
1351
|
* * 1-4094: Standard VLAN range for network segmentation
|
|
1034
1352
|
* * 0: Untagged/native VLAN
|
|
1035
1353
|
* * >4094: Reserved for special purposes
|
|
1036
1354
|
*/
|
|
1037
|
-
vlanId?: pulumi.Input<number>;
|
|
1355
|
+
vlanId?: pulumi.Input<number | undefined>;
|
|
1356
|
+
/**
|
|
1357
|
+
* When true, route all of the gateway's internet traffic through the VPN client tunnel. When false (default), only the destinations in `uidVpnCustomRouting` are routed through the tunnel. Only applicable when `purpose` is 'vpn-client'.
|
|
1358
|
+
*/
|
|
1359
|
+
vpnClientDefaultRoute?: pulumi.Input<boolean | undefined>;
|
|
1360
|
+
/**
|
|
1361
|
+
* When true, use DNS servers advertised by the VPN peer for traffic on the tunnel. Only applicable when `purpose` is 'vpn-client'.
|
|
1362
|
+
*/
|
|
1363
|
+
vpnClientPullDns?: pulumi.Input<boolean | undefined>;
|
|
1364
|
+
/**
|
|
1365
|
+
* The VPN type for a `vpn-client` network. Currently `wireguard-client` is supported, which connects the gateway to a remote WireGuard server. Only applicable when `purpose` is 'vpn-client'. A `wireguard-client` network also requires `subnet` (the tunnel interface address, e.g. `10.0.0.2/32`) and `dhcpDns` (interface DNS); the controller rejects the create without them.
|
|
1366
|
+
*/
|
|
1367
|
+
vpnType?: pulumi.Input<string | undefined>;
|
|
1038
1368
|
/**
|
|
1039
1369
|
* The IPv6 prefix size to request from ISP. Must be between 48 and 64.
|
|
1040
1370
|
* Only applicable when `wanTypeV6` is 'dhcpv6'.
|
|
1041
1371
|
*/
|
|
1042
|
-
wanDhcpV6PdSize?: pulumi.Input<number>;
|
|
1372
|
+
wanDhcpV6PdSize?: pulumi.Input<number | undefined>;
|
|
1043
1373
|
/**
|
|
1044
1374
|
* List of IPv4 DNS servers for WAN interface. Examples:
|
|
1045
1375
|
* * ISP provided DNS servers
|
|
1046
1376
|
* * Public DNS services (e.g., 8.8.8.8, 1.1.1.1)
|
|
1047
1377
|
* * Maximum 4 servers can be specified
|
|
1048
1378
|
*/
|
|
1049
|
-
wanDns?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1379
|
+
wanDns?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
1050
1380
|
/**
|
|
1051
1381
|
* Quality of Service (QoS) priority for WAN egress traffic (0-7).
|
|
1052
1382
|
* * 0 (default) - Best effort
|
|
@@ -1054,37 +1384,37 @@ export interface NetworkArgs {
|
|
|
1054
1384
|
* * 5-7 - Highest priority, use sparingly
|
|
1055
1385
|
* Higher values get preferential treatment.
|
|
1056
1386
|
*/
|
|
1057
|
-
wanEgressQos?: pulumi.Input<number>;
|
|
1387
|
+
wanEgressQos?: pulumi.Input<number | undefined>;
|
|
1058
1388
|
/**
|
|
1059
1389
|
* The IPv4 gateway address for WAN interface.
|
|
1060
1390
|
* Required when `wanType` is 'static'.
|
|
1061
1391
|
* Typically the ISP's router IP address.
|
|
1062
1392
|
*/
|
|
1063
|
-
wanGateway?: pulumi.Input<string>;
|
|
1393
|
+
wanGateway?: pulumi.Input<string | undefined>;
|
|
1064
1394
|
/**
|
|
1065
1395
|
* The IPv6 gateway address for WAN interface.
|
|
1066
1396
|
* Required when `wanTypeV6` is 'static'.
|
|
1067
1397
|
* Typically the ISP's router IPv6 address.
|
|
1068
1398
|
*/
|
|
1069
|
-
wanGatewayV6?: pulumi.Input<string>;
|
|
1399
|
+
wanGatewayV6?: pulumi.Input<string | undefined>;
|
|
1070
1400
|
/**
|
|
1071
1401
|
* The static IPv4 address for WAN interface.
|
|
1072
1402
|
* Required when `wanType` is 'static'.
|
|
1073
1403
|
* Must be a valid public IP address assigned by your ISP.
|
|
1074
1404
|
*/
|
|
1075
|
-
wanIp?: pulumi.Input<string>;
|
|
1405
|
+
wanIp?: pulumi.Input<string | undefined>;
|
|
1076
1406
|
/**
|
|
1077
1407
|
* The static IPv6 address for WAN interface.
|
|
1078
1408
|
* Required when `wanTypeV6` is 'static'.
|
|
1079
1409
|
* Must be a valid public IPv6 address assigned by your ISP.
|
|
1080
1410
|
*/
|
|
1081
|
-
wanIpv6?: pulumi.Input<string>;
|
|
1411
|
+
wanIpv6?: pulumi.Input<string | undefined>;
|
|
1082
1412
|
/**
|
|
1083
1413
|
* The IPv4 netmask for WAN interface (e.g., '255.255.255.0').
|
|
1084
1414
|
* Required when `wanType` is 'static'.
|
|
1085
1415
|
* Must match the subnet mask provided by your ISP.
|
|
1086
1416
|
*/
|
|
1087
|
-
wanNetmask?: pulumi.Input<string>;
|
|
1417
|
+
wanNetmask?: pulumi.Input<string | undefined>;
|
|
1088
1418
|
/**
|
|
1089
1419
|
* The WAN interface group assignment. Options:
|
|
1090
1420
|
* * `WAN` - Primary WAN interface
|
|
@@ -1092,12 +1422,12 @@ export interface NetworkArgs {
|
|
|
1092
1422
|
* * `WAN_LTE_FAILOVER` - LTE backup connection
|
|
1093
1423
|
* Used for dual WAN and failover configurations.
|
|
1094
1424
|
*/
|
|
1095
|
-
wanNetworkgroup?: pulumi.Input<string>;
|
|
1425
|
+
wanNetworkgroup?: pulumi.Input<string | undefined>;
|
|
1096
1426
|
/**
|
|
1097
1427
|
* The IPv6 prefix length for WAN interface. Must be between 1 and 128.
|
|
1098
1428
|
* Only applicable when `wanTypeV6` is 'static'.
|
|
1099
1429
|
*/
|
|
1100
|
-
wanPrefixlen?: pulumi.Input<number>;
|
|
1430
|
+
wanPrefixlen?: pulumi.Input<number | undefined>;
|
|
1101
1431
|
/**
|
|
1102
1432
|
* The IPv4 WAN connection type. Options:
|
|
1103
1433
|
* * `disabled` - WAN interface disabled
|
|
@@ -1106,7 +1436,7 @@ export interface NetworkArgs {
|
|
|
1106
1436
|
* * `pppoe` - PPPoE connection (common for DSL)
|
|
1107
1437
|
* Choose based on your ISP's requirements.
|
|
1108
1438
|
*/
|
|
1109
|
-
wanType?: pulumi.Input<string>;
|
|
1439
|
+
wanType?: pulumi.Input<string | undefined>;
|
|
1110
1440
|
/**
|
|
1111
1441
|
* The IPv6 WAN connection type. Options:
|
|
1112
1442
|
* * `disabled` - IPv6 disabled
|
|
@@ -1114,19 +1444,52 @@ export interface NetworkArgs {
|
|
|
1114
1444
|
* * `dhcpv6` - Dynamic IPv6 from ISP
|
|
1115
1445
|
* Choose based on your ISP's requirements.
|
|
1116
1446
|
*/
|
|
1117
|
-
wanTypeV6?: pulumi.Input<string>;
|
|
1447
|
+
wanTypeV6?: pulumi.Input<string | undefined>;
|
|
1118
1448
|
/**
|
|
1119
1449
|
* Username for WAN authentication.
|
|
1120
1450
|
* * Required for PPPoE connections
|
|
1121
1451
|
* * May be needed for some ISP configurations
|
|
1122
1452
|
* * Cannot contain spaces or special characters
|
|
1123
1453
|
*/
|
|
1124
|
-
wanUsername?: pulumi.Input<string>;
|
|
1454
|
+
wanUsername?: pulumi.Input<string | undefined>;
|
|
1455
|
+
/**
|
|
1456
|
+
* How the WireGuard VPN client peer is configured. Currently only `manual` is supported, configuring the peer with the individual `wireguard_client_*` arguments. Only applicable when `vpnType` is 'wireguard-client'.
|
|
1457
|
+
*/
|
|
1458
|
+
wireguardClientMode?: pulumi.Input<string | undefined>;
|
|
1459
|
+
/**
|
|
1460
|
+
* The remote WireGuard server's endpoint host or IP address that the gateway dials. Only applicable when `vpnType` is 'wireguard-client'.
|
|
1461
|
+
*/
|
|
1462
|
+
wireguardClientPeerIp?: pulumi.Input<string | undefined>;
|
|
1463
|
+
/**
|
|
1464
|
+
* The remote WireGuard server's listen port (e.g. 51820). Only applicable when `vpnType` is 'wireguard-client'.
|
|
1465
|
+
*/
|
|
1466
|
+
wireguardClientPeerPort?: pulumi.Input<number | undefined>;
|
|
1467
|
+
/**
|
|
1468
|
+
* The remote WireGuard server's public key (the peer the gateway connects to). Only applicable when `vpnType` is 'wireguard-client'.
|
|
1469
|
+
*/
|
|
1470
|
+
wireguardClientPeerPublicKey?: pulumi.Input<string | undefined>;
|
|
1471
|
+
/**
|
|
1472
|
+
* An optional WireGuard pre-shared key (PSK) for an additional layer of symmetric-key security with the peer. Keep this value secret. The controller may not return this value on read, so it is computed to avoid spurious drift. Only applicable when `vpnType` is 'wireguard-client'.
|
|
1473
|
+
*/
|
|
1474
|
+
wireguardClientPresharedKey?: pulumi.Input<string | undefined>;
|
|
1475
|
+
/**
|
|
1476
|
+
* Whether a WireGuard pre-shared key is used with the peer. Only applicable when `vpnType` is 'wireguard-client'.
|
|
1477
|
+
*/
|
|
1478
|
+
wireguardClientPresharedKeyEnabled?: pulumi.Input<boolean | undefined>;
|
|
1479
|
+
/**
|
|
1480
|
+
* The WAN interface the WireGuard tunnel egresses from. One of `wan` or `wan2`. Only applicable when `vpnType` is 'wireguard-client'.
|
|
1481
|
+
*/
|
|
1482
|
+
wireguardInterface?: pulumi.Input<string | undefined>;
|
|
1125
1483
|
/**
|
|
1126
1484
|
* Password for WAN authentication.
|
|
1127
1485
|
* * Required for PPPoE connections
|
|
1128
1486
|
* * May be needed for some ISP configurations
|
|
1129
1487
|
* * Must be kept secret
|
|
1130
1488
|
*/
|
|
1131
|
-
xWanPassword?: pulumi.Input<string>;
|
|
1489
|
+
xWanPassword?: pulumi.Input<string | undefined>;
|
|
1490
|
+
/**
|
|
1491
|
+
* The gateway's own WireGuard private key for this VPN client. If omitted, a key pair is generated for you and the public key is exposed via `wireguardPublicKey`. Keep this value secret. Only applicable when `vpnType` is 'wireguard-client'.
|
|
1492
|
+
*/
|
|
1493
|
+
xWireguardPrivateKey?: pulumi.Input<string | undefined>;
|
|
1132
1494
|
}
|
|
1495
|
+
//# sourceMappingURL=network.d.ts.map
|