@pulumiverse/unifi 0.0.1-alpha.1664258586

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.
Files changed (102) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +56 -0
  3. package/config/index.d.ts +1 -0
  4. package/config/index.js +21 -0
  5. package/config/index.js.map +1 -0
  6. package/config/vars.d.ts +24 -0
  7. package/config/vars.js +43 -0
  8. package/config/vars.js.map +1 -0
  9. package/device.d.ts +128 -0
  10. package/device.js +91 -0
  11. package/device.js.map +1 -0
  12. package/dynamicDNS.d.ts +138 -0
  13. package/dynamicDNS.js +85 -0
  14. package/dynamicDNS.js.map +1 -0
  15. package/firewall/group.d.ts +101 -0
  16. package/firewall/group.js +78 -0
  17. package/firewall/group.js.map +1 -0
  18. package/firewall/index.d.ts +6 -0
  19. package/firewall/index.js +27 -0
  20. package/firewall/index.js.map +1 -0
  21. package/firewall/rule.d.ts +340 -0
  22. package/firewall/rule.js +133 -0
  23. package/firewall/rule.js.map +1 -0
  24. package/getApGroup.d.ts +58 -0
  25. package/getApGroup.js +36 -0
  26. package/getApGroup.js.map +1 -0
  27. package/getNetwork.d.ts +186 -0
  28. package/getNetwork.js +45 -0
  29. package/getNetwork.js.map +1 -0
  30. package/getRadiusProfile.d.ts +49 -0
  31. package/getRadiusProfile.js +27 -0
  32. package/getRadiusProfile.js.map +1 -0
  33. package/iam/getGroup.d.ts +51 -0
  34. package/iam/getGroup.js +27 -0
  35. package/iam/getGroup.js.map +1 -0
  36. package/iam/getUser.d.ts +96 -0
  37. package/iam/getUser.js +37 -0
  38. package/iam/getUser.js.map +1 -0
  39. package/iam/group.d.ts +107 -0
  40. package/iam/group.js +78 -0
  41. package/iam/group.js.map +1 -0
  42. package/iam/index.d.ts +12 -0
  43. package/iam/index.js +33 -0
  44. package/iam/index.js.map +1 -0
  45. package/iam/user.d.ts +203 -0
  46. package/iam/user.js +95 -0
  47. package/iam/user.js.map +1 -0
  48. package/index.d.ts +37 -0
  49. package/index.js +80 -0
  50. package/index.js.map +1 -0
  51. package/network.d.ts +458 -0
  52. package/network.js +162 -0
  53. package/network.js.map +1 -0
  54. package/package.json +30 -0
  55. package/package.json.bak +30 -0
  56. package/package.json.dev +30 -0
  57. package/port/forward.d.ts +165 -0
  58. package/port/forward.js +70 -0
  59. package/port/forward.js.map +1 -0
  60. package/port/getProfile.d.ts +58 -0
  61. package/port/getProfile.js +36 -0
  62. package/port/getProfile.js.map +1 -0
  63. package/port/index.d.ts +9 -0
  64. package/port/index.js +30 -0
  65. package/port/index.js.map +1 -0
  66. package/port/profile.d.ts +481 -0
  67. package/port/profile.js +142 -0
  68. package/port/profile.js.map +1 -0
  69. package/provider.d.ts +70 -0
  70. package/provider.js +50 -0
  71. package/provider.js.map +1 -0
  72. package/scripts/install-pulumi-plugin.js +21 -0
  73. package/setting/index.d.ts +6 -0
  74. package/setting/index.js +27 -0
  75. package/setting/index.js.map +1 -0
  76. package/setting/mgmt.d.ts +102 -0
  77. package/setting/mgmt.js +71 -0
  78. package/setting/mgmt.js.map +1 -0
  79. package/setting/usg.d.ts +111 -0
  80. package/setting/usg.js +62 -0
  81. package/setting/usg.js.map +1 -0
  82. package/site.d.ts +84 -0
  83. package/site.js +82 -0
  84. package/site.js.map +1 -0
  85. package/staticRoute.d.ts +148 -0
  86. package/staticRoute.js +98 -0
  87. package/staticRoute.js.map +1 -0
  88. package/types/index.d.ts +3 -0
  89. package/types/index.js +11 -0
  90. package/types/index.js.map +1 -0
  91. package/types/input.d.ts +49 -0
  92. package/types/input.js +5 -0
  93. package/types/input.js.map +1 -0
  94. package/types/output.d.ts +48 -0
  95. package/types/output.js +5 -0
  96. package/types/output.js.map +1 -0
  97. package/utilities.d.ts +4 -0
  98. package/utilities.js +69 -0
  99. package/utilities.js.map +1 -0
  100. package/wlan.d.ts +374 -0
  101. package/wlan.js +149 -0
  102. package/wlan.js.map +1 -0
package/network.d.ts ADDED
@@ -0,0 +1,458 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * `unifi.Network` manages WAN/LAN/VLAN networks.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as unifi from "@pulumiverse/unifi";
10
+ *
11
+ * const config = new pulumi.Config();
12
+ * const vlanId = config.getNumber("vlanId") || 10;
13
+ * const vlan = new unifi.Network("vlan", {
14
+ * purpose: "corporate",
15
+ * subnet: "10.0.0.1/24",
16
+ * vlanId: vlanId,
17
+ * dhcpStart: "10.0.0.6",
18
+ * dhcpStop: "10.0.0.254",
19
+ * dhcpEnabled: true,
20
+ * });
21
+ * const wan = new unifi.Network("wan", {
22
+ * purpose: "wan",
23
+ * wanNetworkgroup: "WAN",
24
+ * wanType: "pppoe",
25
+ * wanIp: "192.168.1.1",
26
+ * wanEgressQos: 1,
27
+ * wanUsername: "username",
28
+ * xWanPassword: "password",
29
+ * });
30
+ * ```
31
+ *
32
+ * ## Import
33
+ *
34
+ * # import from provider configured site
35
+ *
36
+ * ```sh
37
+ * $ pulumi import unifi:index/network:Network mynetwork 5dc28e5e9106d105bdc87217
38
+ * ```
39
+ *
40
+ * # import from another site
41
+ *
42
+ * ```sh
43
+ * $ pulumi import unifi:index/network:Network mynetwork bfa2l6i7:5dc28e5e9106d105bdc87217
44
+ * ```
45
+ *
46
+ * # import network by name
47
+ *
48
+ * ```sh
49
+ * $ pulumi import unifi:index/network:Network mynetwork name=LAN
50
+ * ```
51
+ */
52
+ export declare class Network extends pulumi.CustomResource {
53
+ /**
54
+ * Get an existing Network resource's state with the given name, ID, and optional extra
55
+ * properties used to qualify the lookup.
56
+ *
57
+ * @param name The _unique_ name of the resulting resource.
58
+ * @param id The _unique_ provider ID of the resource to lookup.
59
+ * @param state Any extra arguments used during the lookup.
60
+ * @param opts Optional settings to control the behavior of the CustomResource.
61
+ */
62
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NetworkState, opts?: pulumi.CustomResourceOptions): Network;
63
+ /**
64
+ * Returns true if the given object is an instance of Network. This is designed to work even
65
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
66
+ */
67
+ static isInstance(obj: any): obj is Network;
68
+ /**
69
+ * Specifies the IPv4 addresses for the DNS server to be returned from the DHCP server. Leave blank to disable this feature.
70
+ */
71
+ readonly dhcpDns: pulumi.Output<string[] | undefined>;
72
+ /**
73
+ * Specifies whether DHCP is enabled or not on this network.
74
+ */
75
+ readonly dhcpEnabled: pulumi.Output<boolean | undefined>;
76
+ /**
77
+ * Specifies the lease time for DHCP addresses. Defaults to `86400`.
78
+ */
79
+ readonly dhcpLease: pulumi.Output<number | undefined>;
80
+ /**
81
+ * Specifies whether DHCP relay is enabled or not on this network.
82
+ */
83
+ readonly dhcpRelayEnabled: pulumi.Output<boolean | undefined>;
84
+ /**
85
+ * The IPv4 address where the DHCP range of addresses starts.
86
+ */
87
+ readonly dhcpStart: pulumi.Output<string | undefined>;
88
+ /**
89
+ * The IPv4 address where the DHCP range of addresses stops.
90
+ */
91
+ readonly dhcpStop: pulumi.Output<string | undefined>;
92
+ /**
93
+ * Toggles on the DHCP boot options. Should be set to true when you want to have dhcpd*boot*filename, and dhcpd*boot*server to take effect.
94
+ */
95
+ readonly dhcpdBootEnabled: pulumi.Output<boolean | undefined>;
96
+ /**
97
+ * Specifies the file to PXE boot from on the dhcpd*boot*server.
98
+ */
99
+ readonly dhcpdBootFilename: pulumi.Output<string | undefined>;
100
+ /**
101
+ * Specifies the IPv4 address of a TFTP server to network boot from.
102
+ */
103
+ readonly dhcpdBootServer: pulumi.Output<string | undefined>;
104
+ /**
105
+ * The domain name of this network.
106
+ */
107
+ readonly domainName: pulumi.Output<string | undefined>;
108
+ /**
109
+ * Specifies whether IGMP snooping is enabled or not.
110
+ */
111
+ readonly igmpSnooping: pulumi.Output<boolean | undefined>;
112
+ /**
113
+ * Specifies which type of IPv6 connection to use. Defaults to `none`.
114
+ */
115
+ readonly ipv6InterfaceType: pulumi.Output<string | undefined>;
116
+ /**
117
+ * Specifies which WAN interface to use for IPv6 PD.
118
+ */
119
+ readonly ipv6PdInterface: pulumi.Output<string | undefined>;
120
+ /**
121
+ * Specifies the IPv6 Prefix ID.
122
+ */
123
+ readonly ipv6PdPrefixid: pulumi.Output<string | undefined>;
124
+ /**
125
+ * Specifies whether to enable router advertisements or not.
126
+ */
127
+ readonly ipv6RaEnable: pulumi.Output<boolean | undefined>;
128
+ /**
129
+ * Specifies the static IPv6 subnet when ipv6*interface*type is 'static'.
130
+ */
131
+ readonly ipv6StaticSubnet: pulumi.Output<string | undefined>;
132
+ /**
133
+ * The name of the network.
134
+ */
135
+ readonly name: pulumi.Output<string>;
136
+ /**
137
+ * The group of the network. Defaults to `LAN`.
138
+ */
139
+ readonly networkGroup: pulumi.Output<string | undefined>;
140
+ /**
141
+ * The purpose of the network. Must be one of `corporate`, `guest`, `wan`, or `vlan-only`.
142
+ */
143
+ readonly purpose: pulumi.Output<string>;
144
+ /**
145
+ * The name of the site to associate the network with.
146
+ */
147
+ readonly site: pulumi.Output<string>;
148
+ /**
149
+ * The subnet of the network. Must be a valid CIDR address.
150
+ */
151
+ readonly subnet: pulumi.Output<string | undefined>;
152
+ /**
153
+ * The VLAN ID of the network.
154
+ */
155
+ readonly vlanId: pulumi.Output<number | undefined>;
156
+ /**
157
+ * DNS servers IPs of the WAN.
158
+ */
159
+ readonly wanDns: pulumi.Output<string[] | undefined>;
160
+ /**
161
+ * Specifies the WAN egress quality of service. Defaults to `0`.
162
+ */
163
+ readonly wanEgressQos: pulumi.Output<number | undefined>;
164
+ /**
165
+ * The IPv4 gateway of the WAN.
166
+ */
167
+ readonly wanGateway: pulumi.Output<string | undefined>;
168
+ /**
169
+ * The IPv4 address of the WAN.
170
+ */
171
+ readonly wanIp: pulumi.Output<string | undefined>;
172
+ /**
173
+ * The IPv4 netmask of the WAN.
174
+ */
175
+ readonly wanNetmask: pulumi.Output<string | undefined>;
176
+ /**
177
+ * Specifies the WAN network group. Must be one of either `WAN`, `WAN2` or `WAN_LTE_FAILOVER`.
178
+ */
179
+ readonly wanNetworkgroup: pulumi.Output<string | undefined>;
180
+ /**
181
+ * Specifies the IPV4 WAN connection type. Must be one of either `disabled`, `static`, `dhcp`, or `pppoe`.
182
+ */
183
+ readonly wanType: pulumi.Output<string | undefined>;
184
+ /**
185
+ * Specifies the IPV4 WAN username.
186
+ */
187
+ readonly wanUsername: pulumi.Output<string | undefined>;
188
+ /**
189
+ * Specifies the IPV4 WAN password.
190
+ */
191
+ readonly xWanPassword: pulumi.Output<string | undefined>;
192
+ /**
193
+ * Create a Network resource with the given unique name, arguments, and options.
194
+ *
195
+ * @param name The _unique_ name of the resource.
196
+ * @param args The arguments to use to populate this resource's properties.
197
+ * @param opts A bag of options that control this resource's behavior.
198
+ */
199
+ constructor(name: string, args: NetworkArgs, opts?: pulumi.CustomResourceOptions);
200
+ }
201
+ /**
202
+ * Input properties used for looking up and filtering Network resources.
203
+ */
204
+ export interface NetworkState {
205
+ /**
206
+ * Specifies the IPv4 addresses for the DNS server to be returned from the DHCP server. Leave blank to disable this feature.
207
+ */
208
+ dhcpDns?: pulumi.Input<pulumi.Input<string>[]>;
209
+ /**
210
+ * Specifies whether DHCP is enabled or not on this network.
211
+ */
212
+ dhcpEnabled?: pulumi.Input<boolean>;
213
+ /**
214
+ * Specifies the lease time for DHCP addresses. Defaults to `86400`.
215
+ */
216
+ dhcpLease?: pulumi.Input<number>;
217
+ /**
218
+ * Specifies whether DHCP relay is enabled or not on this network.
219
+ */
220
+ dhcpRelayEnabled?: pulumi.Input<boolean>;
221
+ /**
222
+ * The IPv4 address where the DHCP range of addresses starts.
223
+ */
224
+ dhcpStart?: pulumi.Input<string>;
225
+ /**
226
+ * The IPv4 address where the DHCP range of addresses stops.
227
+ */
228
+ dhcpStop?: pulumi.Input<string>;
229
+ /**
230
+ * Toggles on the DHCP boot options. Should be set to true when you want to have dhcpd*boot*filename, and dhcpd*boot*server to take effect.
231
+ */
232
+ dhcpdBootEnabled?: pulumi.Input<boolean>;
233
+ /**
234
+ * Specifies the file to PXE boot from on the dhcpd*boot*server.
235
+ */
236
+ dhcpdBootFilename?: pulumi.Input<string>;
237
+ /**
238
+ * Specifies the IPv4 address of a TFTP server to network boot from.
239
+ */
240
+ dhcpdBootServer?: pulumi.Input<string>;
241
+ /**
242
+ * The domain name of this network.
243
+ */
244
+ domainName?: pulumi.Input<string>;
245
+ /**
246
+ * Specifies whether IGMP snooping is enabled or not.
247
+ */
248
+ igmpSnooping?: pulumi.Input<boolean>;
249
+ /**
250
+ * Specifies which type of IPv6 connection to use. Defaults to `none`.
251
+ */
252
+ ipv6InterfaceType?: pulumi.Input<string>;
253
+ /**
254
+ * Specifies which WAN interface to use for IPv6 PD.
255
+ */
256
+ ipv6PdInterface?: pulumi.Input<string>;
257
+ /**
258
+ * Specifies the IPv6 Prefix ID.
259
+ */
260
+ ipv6PdPrefixid?: pulumi.Input<string>;
261
+ /**
262
+ * Specifies whether to enable router advertisements or not.
263
+ */
264
+ ipv6RaEnable?: pulumi.Input<boolean>;
265
+ /**
266
+ * Specifies the static IPv6 subnet when ipv6*interface*type is 'static'.
267
+ */
268
+ ipv6StaticSubnet?: pulumi.Input<string>;
269
+ /**
270
+ * The name of the network.
271
+ */
272
+ name?: pulumi.Input<string>;
273
+ /**
274
+ * The group of the network. Defaults to `LAN`.
275
+ */
276
+ networkGroup?: pulumi.Input<string>;
277
+ /**
278
+ * The purpose of the network. Must be one of `corporate`, `guest`, `wan`, or `vlan-only`.
279
+ */
280
+ purpose?: pulumi.Input<string>;
281
+ /**
282
+ * The name of the site to associate the network with.
283
+ */
284
+ site?: pulumi.Input<string>;
285
+ /**
286
+ * The subnet of the network. Must be a valid CIDR address.
287
+ */
288
+ subnet?: pulumi.Input<string>;
289
+ /**
290
+ * The VLAN ID of the network.
291
+ */
292
+ vlanId?: pulumi.Input<number>;
293
+ /**
294
+ * DNS servers IPs of the WAN.
295
+ */
296
+ wanDns?: pulumi.Input<pulumi.Input<string>[]>;
297
+ /**
298
+ * Specifies the WAN egress quality of service. Defaults to `0`.
299
+ */
300
+ wanEgressQos?: pulumi.Input<number>;
301
+ /**
302
+ * The IPv4 gateway of the WAN.
303
+ */
304
+ wanGateway?: pulumi.Input<string>;
305
+ /**
306
+ * The IPv4 address of the WAN.
307
+ */
308
+ wanIp?: pulumi.Input<string>;
309
+ /**
310
+ * The IPv4 netmask of the WAN.
311
+ */
312
+ wanNetmask?: pulumi.Input<string>;
313
+ /**
314
+ * Specifies the WAN network group. Must be one of either `WAN`, `WAN2` or `WAN_LTE_FAILOVER`.
315
+ */
316
+ wanNetworkgroup?: pulumi.Input<string>;
317
+ /**
318
+ * Specifies the IPV4 WAN connection type. Must be one of either `disabled`, `static`, `dhcp`, or `pppoe`.
319
+ */
320
+ wanType?: pulumi.Input<string>;
321
+ /**
322
+ * Specifies the IPV4 WAN username.
323
+ */
324
+ wanUsername?: pulumi.Input<string>;
325
+ /**
326
+ * Specifies the IPV4 WAN password.
327
+ */
328
+ xWanPassword?: pulumi.Input<string>;
329
+ }
330
+ /**
331
+ * The set of arguments for constructing a Network resource.
332
+ */
333
+ export interface NetworkArgs {
334
+ /**
335
+ * Specifies the IPv4 addresses for the DNS server to be returned from the DHCP server. Leave blank to disable this feature.
336
+ */
337
+ dhcpDns?: pulumi.Input<pulumi.Input<string>[]>;
338
+ /**
339
+ * Specifies whether DHCP is enabled or not on this network.
340
+ */
341
+ dhcpEnabled?: pulumi.Input<boolean>;
342
+ /**
343
+ * Specifies the lease time for DHCP addresses. Defaults to `86400`.
344
+ */
345
+ dhcpLease?: pulumi.Input<number>;
346
+ /**
347
+ * Specifies whether DHCP relay is enabled or not on this network.
348
+ */
349
+ dhcpRelayEnabled?: pulumi.Input<boolean>;
350
+ /**
351
+ * The IPv4 address where the DHCP range of addresses starts.
352
+ */
353
+ dhcpStart?: pulumi.Input<string>;
354
+ /**
355
+ * The IPv4 address where the DHCP range of addresses stops.
356
+ */
357
+ dhcpStop?: pulumi.Input<string>;
358
+ /**
359
+ * Toggles on the DHCP boot options. Should be set to true when you want to have dhcpd*boot*filename, and dhcpd*boot*server to take effect.
360
+ */
361
+ dhcpdBootEnabled?: pulumi.Input<boolean>;
362
+ /**
363
+ * Specifies the file to PXE boot from on the dhcpd*boot*server.
364
+ */
365
+ dhcpdBootFilename?: pulumi.Input<string>;
366
+ /**
367
+ * Specifies the IPv4 address of a TFTP server to network boot from.
368
+ */
369
+ dhcpdBootServer?: pulumi.Input<string>;
370
+ /**
371
+ * The domain name of this network.
372
+ */
373
+ domainName?: pulumi.Input<string>;
374
+ /**
375
+ * Specifies whether IGMP snooping is enabled or not.
376
+ */
377
+ igmpSnooping?: pulumi.Input<boolean>;
378
+ /**
379
+ * Specifies which type of IPv6 connection to use. Defaults to `none`.
380
+ */
381
+ ipv6InterfaceType?: pulumi.Input<string>;
382
+ /**
383
+ * Specifies which WAN interface to use for IPv6 PD.
384
+ */
385
+ ipv6PdInterface?: pulumi.Input<string>;
386
+ /**
387
+ * Specifies the IPv6 Prefix ID.
388
+ */
389
+ ipv6PdPrefixid?: pulumi.Input<string>;
390
+ /**
391
+ * Specifies whether to enable router advertisements or not.
392
+ */
393
+ ipv6RaEnable?: pulumi.Input<boolean>;
394
+ /**
395
+ * Specifies the static IPv6 subnet when ipv6*interface*type is 'static'.
396
+ */
397
+ ipv6StaticSubnet?: pulumi.Input<string>;
398
+ /**
399
+ * The name of the network.
400
+ */
401
+ name?: pulumi.Input<string>;
402
+ /**
403
+ * The group of the network. Defaults to `LAN`.
404
+ */
405
+ networkGroup?: pulumi.Input<string>;
406
+ /**
407
+ * The purpose of the network. Must be one of `corporate`, `guest`, `wan`, or `vlan-only`.
408
+ */
409
+ purpose: pulumi.Input<string>;
410
+ /**
411
+ * The name of the site to associate the network with.
412
+ */
413
+ site?: pulumi.Input<string>;
414
+ /**
415
+ * The subnet of the network. Must be a valid CIDR address.
416
+ */
417
+ subnet?: pulumi.Input<string>;
418
+ /**
419
+ * The VLAN ID of the network.
420
+ */
421
+ vlanId?: pulumi.Input<number>;
422
+ /**
423
+ * DNS servers IPs of the WAN.
424
+ */
425
+ wanDns?: pulumi.Input<pulumi.Input<string>[]>;
426
+ /**
427
+ * Specifies the WAN egress quality of service. Defaults to `0`.
428
+ */
429
+ wanEgressQos?: pulumi.Input<number>;
430
+ /**
431
+ * The IPv4 gateway of the WAN.
432
+ */
433
+ wanGateway?: pulumi.Input<string>;
434
+ /**
435
+ * The IPv4 address of the WAN.
436
+ */
437
+ wanIp?: pulumi.Input<string>;
438
+ /**
439
+ * The IPv4 netmask of the WAN.
440
+ */
441
+ wanNetmask?: pulumi.Input<string>;
442
+ /**
443
+ * Specifies the WAN network group. Must be one of either `WAN`, `WAN2` or `WAN_LTE_FAILOVER`.
444
+ */
445
+ wanNetworkgroup?: pulumi.Input<string>;
446
+ /**
447
+ * Specifies the IPV4 WAN connection type. Must be one of either `disabled`, `static`, `dhcp`, or `pppoe`.
448
+ */
449
+ wanType?: pulumi.Input<string>;
450
+ /**
451
+ * Specifies the IPV4 WAN username.
452
+ */
453
+ wanUsername?: pulumi.Input<string>;
454
+ /**
455
+ * Specifies the IPV4 WAN password.
456
+ */
457
+ xWanPassword?: pulumi.Input<string>;
458
+ }
package/network.js ADDED
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Network = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * `unifi.Network` manages WAN/LAN/VLAN networks.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as unifi from "@pulumiverse/unifi";
16
+ *
17
+ * const config = new pulumi.Config();
18
+ * const vlanId = config.getNumber("vlanId") || 10;
19
+ * const vlan = new unifi.Network("vlan", {
20
+ * purpose: "corporate",
21
+ * subnet: "10.0.0.1/24",
22
+ * vlanId: vlanId,
23
+ * dhcpStart: "10.0.0.6",
24
+ * dhcpStop: "10.0.0.254",
25
+ * dhcpEnabled: true,
26
+ * });
27
+ * const wan = new unifi.Network("wan", {
28
+ * purpose: "wan",
29
+ * wanNetworkgroup: "WAN",
30
+ * wanType: "pppoe",
31
+ * wanIp: "192.168.1.1",
32
+ * wanEgressQos: 1,
33
+ * wanUsername: "username",
34
+ * xWanPassword: "password",
35
+ * });
36
+ * ```
37
+ *
38
+ * ## Import
39
+ *
40
+ * # import from provider configured site
41
+ *
42
+ * ```sh
43
+ * $ pulumi import unifi:index/network:Network mynetwork 5dc28e5e9106d105bdc87217
44
+ * ```
45
+ *
46
+ * # import from another site
47
+ *
48
+ * ```sh
49
+ * $ pulumi import unifi:index/network:Network mynetwork bfa2l6i7:5dc28e5e9106d105bdc87217
50
+ * ```
51
+ *
52
+ * # import network by name
53
+ *
54
+ * ```sh
55
+ * $ pulumi import unifi:index/network:Network mynetwork name=LAN
56
+ * ```
57
+ */
58
+ class Network extends pulumi.CustomResource {
59
+ constructor(name, argsOrState, opts) {
60
+ let resourceInputs = {};
61
+ opts = opts || {};
62
+ if (opts.id) {
63
+ const state = argsOrState;
64
+ resourceInputs["dhcpDns"] = state ? state.dhcpDns : undefined;
65
+ resourceInputs["dhcpEnabled"] = state ? state.dhcpEnabled : undefined;
66
+ resourceInputs["dhcpLease"] = state ? state.dhcpLease : undefined;
67
+ resourceInputs["dhcpRelayEnabled"] = state ? state.dhcpRelayEnabled : undefined;
68
+ resourceInputs["dhcpStart"] = state ? state.dhcpStart : undefined;
69
+ resourceInputs["dhcpStop"] = state ? state.dhcpStop : undefined;
70
+ resourceInputs["dhcpdBootEnabled"] = state ? state.dhcpdBootEnabled : undefined;
71
+ resourceInputs["dhcpdBootFilename"] = state ? state.dhcpdBootFilename : undefined;
72
+ resourceInputs["dhcpdBootServer"] = state ? state.dhcpdBootServer : undefined;
73
+ resourceInputs["domainName"] = state ? state.domainName : undefined;
74
+ resourceInputs["igmpSnooping"] = state ? state.igmpSnooping : undefined;
75
+ resourceInputs["ipv6InterfaceType"] = state ? state.ipv6InterfaceType : undefined;
76
+ resourceInputs["ipv6PdInterface"] = state ? state.ipv6PdInterface : undefined;
77
+ resourceInputs["ipv6PdPrefixid"] = state ? state.ipv6PdPrefixid : undefined;
78
+ resourceInputs["ipv6RaEnable"] = state ? state.ipv6RaEnable : undefined;
79
+ resourceInputs["ipv6StaticSubnet"] = state ? state.ipv6StaticSubnet : undefined;
80
+ resourceInputs["name"] = state ? state.name : undefined;
81
+ resourceInputs["networkGroup"] = state ? state.networkGroup : undefined;
82
+ resourceInputs["purpose"] = state ? state.purpose : undefined;
83
+ resourceInputs["site"] = state ? state.site : undefined;
84
+ resourceInputs["subnet"] = state ? state.subnet : undefined;
85
+ resourceInputs["vlanId"] = state ? state.vlanId : undefined;
86
+ resourceInputs["wanDns"] = state ? state.wanDns : undefined;
87
+ resourceInputs["wanEgressQos"] = state ? state.wanEgressQos : undefined;
88
+ resourceInputs["wanGateway"] = state ? state.wanGateway : undefined;
89
+ resourceInputs["wanIp"] = state ? state.wanIp : undefined;
90
+ resourceInputs["wanNetmask"] = state ? state.wanNetmask : undefined;
91
+ resourceInputs["wanNetworkgroup"] = state ? state.wanNetworkgroup : undefined;
92
+ resourceInputs["wanType"] = state ? state.wanType : undefined;
93
+ resourceInputs["wanUsername"] = state ? state.wanUsername : undefined;
94
+ resourceInputs["xWanPassword"] = state ? state.xWanPassword : undefined;
95
+ }
96
+ else {
97
+ const args = argsOrState;
98
+ if ((!args || args.purpose === undefined) && !opts.urn) {
99
+ throw new Error("Missing required property 'purpose'");
100
+ }
101
+ resourceInputs["dhcpDns"] = args ? args.dhcpDns : undefined;
102
+ resourceInputs["dhcpEnabled"] = args ? args.dhcpEnabled : undefined;
103
+ resourceInputs["dhcpLease"] = args ? args.dhcpLease : undefined;
104
+ resourceInputs["dhcpRelayEnabled"] = args ? args.dhcpRelayEnabled : undefined;
105
+ resourceInputs["dhcpStart"] = args ? args.dhcpStart : undefined;
106
+ resourceInputs["dhcpStop"] = args ? args.dhcpStop : undefined;
107
+ resourceInputs["dhcpdBootEnabled"] = args ? args.dhcpdBootEnabled : undefined;
108
+ resourceInputs["dhcpdBootFilename"] = args ? args.dhcpdBootFilename : undefined;
109
+ resourceInputs["dhcpdBootServer"] = args ? args.dhcpdBootServer : undefined;
110
+ resourceInputs["domainName"] = args ? args.domainName : undefined;
111
+ resourceInputs["igmpSnooping"] = args ? args.igmpSnooping : undefined;
112
+ resourceInputs["ipv6InterfaceType"] = args ? args.ipv6InterfaceType : undefined;
113
+ resourceInputs["ipv6PdInterface"] = args ? args.ipv6PdInterface : undefined;
114
+ resourceInputs["ipv6PdPrefixid"] = args ? args.ipv6PdPrefixid : undefined;
115
+ resourceInputs["ipv6RaEnable"] = args ? args.ipv6RaEnable : undefined;
116
+ resourceInputs["ipv6StaticSubnet"] = args ? args.ipv6StaticSubnet : undefined;
117
+ resourceInputs["name"] = args ? args.name : undefined;
118
+ resourceInputs["networkGroup"] = args ? args.networkGroup : undefined;
119
+ resourceInputs["purpose"] = args ? args.purpose : undefined;
120
+ resourceInputs["site"] = args ? args.site : undefined;
121
+ resourceInputs["subnet"] = args ? args.subnet : undefined;
122
+ resourceInputs["vlanId"] = args ? args.vlanId : undefined;
123
+ resourceInputs["wanDns"] = args ? args.wanDns : undefined;
124
+ resourceInputs["wanEgressQos"] = args ? args.wanEgressQos : undefined;
125
+ resourceInputs["wanGateway"] = args ? args.wanGateway : undefined;
126
+ resourceInputs["wanIp"] = args ? args.wanIp : undefined;
127
+ resourceInputs["wanNetmask"] = args ? args.wanNetmask : undefined;
128
+ resourceInputs["wanNetworkgroup"] = args ? args.wanNetworkgroup : undefined;
129
+ resourceInputs["wanType"] = args ? args.wanType : undefined;
130
+ resourceInputs["wanUsername"] = args ? args.wanUsername : undefined;
131
+ resourceInputs["xWanPassword"] = args ? args.xWanPassword : undefined;
132
+ }
133
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
134
+ super(Network.__pulumiType, name, resourceInputs, opts);
135
+ }
136
+ /**
137
+ * Get an existing Network resource's state with the given name, ID, and optional extra
138
+ * properties used to qualify the lookup.
139
+ *
140
+ * @param name The _unique_ name of the resulting resource.
141
+ * @param id The _unique_ provider ID of the resource to lookup.
142
+ * @param state Any extra arguments used during the lookup.
143
+ * @param opts Optional settings to control the behavior of the CustomResource.
144
+ */
145
+ static get(name, id, state, opts) {
146
+ return new Network(name, state, Object.assign(Object.assign({}, opts), { id: id }));
147
+ }
148
+ /**
149
+ * Returns true if the given object is an instance of Network. This is designed to work even
150
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
151
+ */
152
+ static isInstance(obj) {
153
+ if (obj === undefined || obj === null) {
154
+ return false;
155
+ }
156
+ return obj['__pulumiType'] === Network.__pulumiType;
157
+ }
158
+ }
159
+ exports.Network = Network;
160
+ /** @internal */
161
+ Network.__pulumiType = 'unifi:index/network:Network';
162
+ //# sourceMappingURL=network.js.map
package/network.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network.js","sourceRoot":"","sources":["../network.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAiK9C,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,K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ACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BA6OC;AA/NG,gBAAgB;AACO,oBAAY,GAAG,6BAA6B,CAAC"}
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@pulumiverse/unifi",
3
+ "version": "v0.0.1-alpha.1664258586+7c932b5f",
4
+ "description": "A Pulumi package for creating and managing Unifi network resources.",
5
+ "keywords": [
6
+ "pulumi",
7
+ "unifi",
8
+ "category/network"
9
+ ],
10
+ "homepage": "https://github.com/pulumiverse",
11
+ "repository": "https://github.com/pulumiverse/pulumi-unifi",
12
+ "license": "Apache-2.0",
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "install": "node scripts/install-pulumi-plugin.js resource unifi --server github://api.github.com/pulumiverse v0.0.1-alpha.1664258586+7c932b5f"
16
+ },
17
+ "dependencies": {
18
+ "@pulumi/pulumi": "^3.0.0"
19
+ },
20
+ "devDependencies": {
21
+ "@types/mime": "^2.0.0",
22
+ "@types/node": "^10.0.0",
23
+ "typescript": "^4.3.5"
24
+ },
25
+ "pulumi": {
26
+ "resource": true,
27
+ "name": "unifi",
28
+ "server": "github://api.github.com/pulumiverse"
29
+ }
30
+ }