@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.
- package/LICENSE +202 -0
- package/README.md +56 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +24 -0
- package/config/vars.js +43 -0
- package/config/vars.js.map +1 -0
- package/device.d.ts +128 -0
- package/device.js +91 -0
- package/device.js.map +1 -0
- package/dynamicDNS.d.ts +138 -0
- package/dynamicDNS.js +85 -0
- package/dynamicDNS.js.map +1 -0
- package/firewall/group.d.ts +101 -0
- package/firewall/group.js +78 -0
- package/firewall/group.js.map +1 -0
- package/firewall/index.d.ts +6 -0
- package/firewall/index.js +27 -0
- package/firewall/index.js.map +1 -0
- package/firewall/rule.d.ts +340 -0
- package/firewall/rule.js +133 -0
- package/firewall/rule.js.map +1 -0
- package/getApGroup.d.ts +58 -0
- package/getApGroup.js +36 -0
- package/getApGroup.js.map +1 -0
- package/getNetwork.d.ts +186 -0
- package/getNetwork.js +45 -0
- package/getNetwork.js.map +1 -0
- package/getRadiusProfile.d.ts +49 -0
- package/getRadiusProfile.js +27 -0
- package/getRadiusProfile.js.map +1 -0
- package/iam/getGroup.d.ts +51 -0
- package/iam/getGroup.js +27 -0
- package/iam/getGroup.js.map +1 -0
- package/iam/getUser.d.ts +96 -0
- package/iam/getUser.js +37 -0
- package/iam/getUser.js.map +1 -0
- package/iam/group.d.ts +107 -0
- package/iam/group.js +78 -0
- package/iam/group.js.map +1 -0
- package/iam/index.d.ts +12 -0
- package/iam/index.js +33 -0
- package/iam/index.js.map +1 -0
- package/iam/user.d.ts +203 -0
- package/iam/user.js +95 -0
- package/iam/user.js.map +1 -0
- package/index.d.ts +37 -0
- package/index.js +80 -0
- package/index.js.map +1 -0
- package/network.d.ts +458 -0
- package/network.js +162 -0
- package/network.js.map +1 -0
- package/package.json +30 -0
- package/package.json.bak +30 -0
- package/package.json.dev +30 -0
- package/port/forward.d.ts +165 -0
- package/port/forward.js +70 -0
- package/port/forward.js.map +1 -0
- package/port/getProfile.d.ts +58 -0
- package/port/getProfile.js +36 -0
- package/port/getProfile.js.map +1 -0
- package/port/index.d.ts +9 -0
- package/port/index.js +30 -0
- package/port/index.js.map +1 -0
- package/port/profile.d.ts +481 -0
- package/port/profile.js +142 -0
- package/port/profile.js.map +1 -0
- package/provider.d.ts +70 -0
- package/provider.js +50 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/setting/index.d.ts +6 -0
- package/setting/index.js +27 -0
- package/setting/index.js.map +1 -0
- package/setting/mgmt.d.ts +102 -0
- package/setting/mgmt.js +71 -0
- package/setting/mgmt.js.map +1 -0
- package/setting/usg.d.ts +111 -0
- package/setting/usg.js +62 -0
- package/setting/usg.js.map +1 -0
- package/site.d.ts +84 -0
- package/site.js +82 -0
- package/site.js.map +1 -0
- package/staticRoute.d.ts +148 -0
- package/staticRoute.js +98 -0
- package/staticRoute.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +49 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +48 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +69 -0
- package/utilities.js.map +1 -0
- package/wlan.d.ts +374 -0
- package/wlan.js +149 -0
- package/wlan.js.map +1 -0
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* `unifi.firewall.Rule` manages an individual firewall rule on the gateway.
|
|
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 ipAddress = config.require("ipAddress");
|
|
13
|
+
* const dropAll = new unifi.firewall.Rule("dropAll", {
|
|
14
|
+
* action: "drop",
|
|
15
|
+
* ruleset: "LAN_IN",
|
|
16
|
+
* ruleIndex: 2011,
|
|
17
|
+
* protocol: "all",
|
|
18
|
+
* dstAddress: ipAddress,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* # import using the ID from the controller API/UI
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import unifi:firewall/rule:Rule my_rule 5f7080eb6b8969064f80494f
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class Rule extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing Rule resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RuleState, opts?: pulumi.CustomResourceOptions): Rule;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of Rule. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj: any): obj is Rule;
|
|
46
|
+
/**
|
|
47
|
+
* The action of the firewall rule. Must be one of `drop`, `accept`, or `reject`.
|
|
48
|
+
*/
|
|
49
|
+
readonly action: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The destination address of the firewall rule.
|
|
52
|
+
*/
|
|
53
|
+
readonly dstAddress: pulumi.Output<string | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* The destination firewall group IDs of the firewall rule.
|
|
56
|
+
*/
|
|
57
|
+
readonly dstFirewallGroupIds: pulumi.Output<string[] | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* The destination network ID of the firewall rule.
|
|
60
|
+
*/
|
|
61
|
+
readonly dstNetworkId: pulumi.Output<string | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* The destination network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
|
|
64
|
+
*/
|
|
65
|
+
readonly dstNetworkType: pulumi.Output<string | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* The destination port of the firewall rule.
|
|
68
|
+
*/
|
|
69
|
+
readonly dstPort: pulumi.Output<string | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* ICMP type name.
|
|
72
|
+
*/
|
|
73
|
+
readonly icmpTypename: pulumi.Output<string | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Specify whether the rule matches on IPsec packets. Can be one of `match-ipset` or `match-none`.
|
|
76
|
+
*/
|
|
77
|
+
readonly ipSec: pulumi.Output<string | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* Enable logging for the firewall rule.
|
|
80
|
+
*/
|
|
81
|
+
readonly logging: pulumi.Output<boolean | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* The name of the firewall rule.
|
|
84
|
+
*/
|
|
85
|
+
readonly name: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The protocol of the rule.
|
|
88
|
+
*/
|
|
89
|
+
readonly protocol: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The index of the rule. Must be >= 2000 < 3000 or >= 4000 < 5000.
|
|
92
|
+
*/
|
|
93
|
+
readonly ruleIndex: pulumi.Output<number>;
|
|
94
|
+
/**
|
|
95
|
+
* The ruleset for the rule. This is from the perspective of the security gateway. Must be one of `WAN_IN`, `WAN_OUT`, `WAN_LOCAL`, `LAN_IN`, `LAN_OUT`, `LAN_LOCAL`, `GUEST_IN`, `GUEST_OUT`, `GUEST_LOCAL`, `WANv6_IN`, `WANv6_OUT`, `WANv6_LOCAL`, `LANv6_IN`, `LANv6_OUT`, `LANv6_LOCAL`, `GUESTv6_IN`, `GUESTv6_OUT`, or `GUESTv6_LOCAL`.
|
|
96
|
+
*/
|
|
97
|
+
readonly ruleset: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* The name of the site to associate the firewall rule with.
|
|
100
|
+
*/
|
|
101
|
+
readonly site: pulumi.Output<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The source address for the firewall rule.
|
|
104
|
+
*/
|
|
105
|
+
readonly srcAddress: pulumi.Output<string | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* The source firewall group IDs for the firewall rule.
|
|
108
|
+
*/
|
|
109
|
+
readonly srcFirewallGroupIds: pulumi.Output<string[] | undefined>;
|
|
110
|
+
/**
|
|
111
|
+
* The source MAC address of the firewall rule.
|
|
112
|
+
*/
|
|
113
|
+
readonly srcMac: pulumi.Output<string | undefined>;
|
|
114
|
+
/**
|
|
115
|
+
* The source network ID for the firewall rule.
|
|
116
|
+
*/
|
|
117
|
+
readonly srcNetworkId: pulumi.Output<string | undefined>;
|
|
118
|
+
/**
|
|
119
|
+
* The source network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
|
|
120
|
+
*/
|
|
121
|
+
readonly srcNetworkType: pulumi.Output<string | undefined>;
|
|
122
|
+
/**
|
|
123
|
+
* Match where the state is established.
|
|
124
|
+
*/
|
|
125
|
+
readonly stateEstablished: pulumi.Output<boolean | undefined>;
|
|
126
|
+
/**
|
|
127
|
+
* Match where the state is invalid.
|
|
128
|
+
*/
|
|
129
|
+
readonly stateInvalid: pulumi.Output<boolean | undefined>;
|
|
130
|
+
/**
|
|
131
|
+
* Match where the state is new.
|
|
132
|
+
*/
|
|
133
|
+
readonly stateNew: pulumi.Output<boolean | undefined>;
|
|
134
|
+
/**
|
|
135
|
+
* Match where the state is related.
|
|
136
|
+
*/
|
|
137
|
+
readonly stateRelated: pulumi.Output<boolean | undefined>;
|
|
138
|
+
/**
|
|
139
|
+
* Create a Rule resource with the given unique name, arguments, and options.
|
|
140
|
+
*
|
|
141
|
+
* @param name The _unique_ name of the resource.
|
|
142
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
143
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
144
|
+
*/
|
|
145
|
+
constructor(name: string, args: RuleArgs, opts?: pulumi.CustomResourceOptions);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Input properties used for looking up and filtering Rule resources.
|
|
149
|
+
*/
|
|
150
|
+
export interface RuleState {
|
|
151
|
+
/**
|
|
152
|
+
* The action of the firewall rule. Must be one of `drop`, `accept`, or `reject`.
|
|
153
|
+
*/
|
|
154
|
+
action?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* The destination address of the firewall rule.
|
|
157
|
+
*/
|
|
158
|
+
dstAddress?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* The destination firewall group IDs of the firewall rule.
|
|
161
|
+
*/
|
|
162
|
+
dstFirewallGroupIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
163
|
+
/**
|
|
164
|
+
* The destination network ID of the firewall rule.
|
|
165
|
+
*/
|
|
166
|
+
dstNetworkId?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* The destination network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
|
|
169
|
+
*/
|
|
170
|
+
dstNetworkType?: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* The destination port of the firewall rule.
|
|
173
|
+
*/
|
|
174
|
+
dstPort?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* ICMP type name.
|
|
177
|
+
*/
|
|
178
|
+
icmpTypename?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* Specify whether the rule matches on IPsec packets. Can be one of `match-ipset` or `match-none`.
|
|
181
|
+
*/
|
|
182
|
+
ipSec?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* Enable logging for the firewall rule.
|
|
185
|
+
*/
|
|
186
|
+
logging?: pulumi.Input<boolean>;
|
|
187
|
+
/**
|
|
188
|
+
* The name of the firewall rule.
|
|
189
|
+
*/
|
|
190
|
+
name?: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* The protocol of the rule.
|
|
193
|
+
*/
|
|
194
|
+
protocol?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* The index of the rule. Must be >= 2000 < 3000 or >= 4000 < 5000.
|
|
197
|
+
*/
|
|
198
|
+
ruleIndex?: pulumi.Input<number>;
|
|
199
|
+
/**
|
|
200
|
+
* The ruleset for the rule. This is from the perspective of the security gateway. Must be one of `WAN_IN`, `WAN_OUT`, `WAN_LOCAL`, `LAN_IN`, `LAN_OUT`, `LAN_LOCAL`, `GUEST_IN`, `GUEST_OUT`, `GUEST_LOCAL`, `WANv6_IN`, `WANv6_OUT`, `WANv6_LOCAL`, `LANv6_IN`, `LANv6_OUT`, `LANv6_LOCAL`, `GUESTv6_IN`, `GUESTv6_OUT`, or `GUESTv6_LOCAL`.
|
|
201
|
+
*/
|
|
202
|
+
ruleset?: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* The name of the site to associate the firewall rule with.
|
|
205
|
+
*/
|
|
206
|
+
site?: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* The source address for the firewall rule.
|
|
209
|
+
*/
|
|
210
|
+
srcAddress?: pulumi.Input<string>;
|
|
211
|
+
/**
|
|
212
|
+
* The source firewall group IDs for the firewall rule.
|
|
213
|
+
*/
|
|
214
|
+
srcFirewallGroupIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
215
|
+
/**
|
|
216
|
+
* The source MAC address of the firewall rule.
|
|
217
|
+
*/
|
|
218
|
+
srcMac?: pulumi.Input<string>;
|
|
219
|
+
/**
|
|
220
|
+
* The source network ID for the firewall rule.
|
|
221
|
+
*/
|
|
222
|
+
srcNetworkId?: pulumi.Input<string>;
|
|
223
|
+
/**
|
|
224
|
+
* The source network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
|
|
225
|
+
*/
|
|
226
|
+
srcNetworkType?: pulumi.Input<string>;
|
|
227
|
+
/**
|
|
228
|
+
* Match where the state is established.
|
|
229
|
+
*/
|
|
230
|
+
stateEstablished?: pulumi.Input<boolean>;
|
|
231
|
+
/**
|
|
232
|
+
* Match where the state is invalid.
|
|
233
|
+
*/
|
|
234
|
+
stateInvalid?: pulumi.Input<boolean>;
|
|
235
|
+
/**
|
|
236
|
+
* Match where the state is new.
|
|
237
|
+
*/
|
|
238
|
+
stateNew?: pulumi.Input<boolean>;
|
|
239
|
+
/**
|
|
240
|
+
* Match where the state is related.
|
|
241
|
+
*/
|
|
242
|
+
stateRelated?: pulumi.Input<boolean>;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* The set of arguments for constructing a Rule resource.
|
|
246
|
+
*/
|
|
247
|
+
export interface RuleArgs {
|
|
248
|
+
/**
|
|
249
|
+
* The action of the firewall rule. Must be one of `drop`, `accept`, or `reject`.
|
|
250
|
+
*/
|
|
251
|
+
action: pulumi.Input<string>;
|
|
252
|
+
/**
|
|
253
|
+
* The destination address of the firewall rule.
|
|
254
|
+
*/
|
|
255
|
+
dstAddress?: pulumi.Input<string>;
|
|
256
|
+
/**
|
|
257
|
+
* The destination firewall group IDs of the firewall rule.
|
|
258
|
+
*/
|
|
259
|
+
dstFirewallGroupIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
260
|
+
/**
|
|
261
|
+
* The destination network ID of the firewall rule.
|
|
262
|
+
*/
|
|
263
|
+
dstNetworkId?: pulumi.Input<string>;
|
|
264
|
+
/**
|
|
265
|
+
* The destination network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
|
|
266
|
+
*/
|
|
267
|
+
dstNetworkType?: pulumi.Input<string>;
|
|
268
|
+
/**
|
|
269
|
+
* The destination port of the firewall rule.
|
|
270
|
+
*/
|
|
271
|
+
dstPort?: pulumi.Input<string>;
|
|
272
|
+
/**
|
|
273
|
+
* ICMP type name.
|
|
274
|
+
*/
|
|
275
|
+
icmpTypename?: pulumi.Input<string>;
|
|
276
|
+
/**
|
|
277
|
+
* Specify whether the rule matches on IPsec packets. Can be one of `match-ipset` or `match-none`.
|
|
278
|
+
*/
|
|
279
|
+
ipSec?: pulumi.Input<string>;
|
|
280
|
+
/**
|
|
281
|
+
* Enable logging for the firewall rule.
|
|
282
|
+
*/
|
|
283
|
+
logging?: pulumi.Input<boolean>;
|
|
284
|
+
/**
|
|
285
|
+
* The name of the firewall rule.
|
|
286
|
+
*/
|
|
287
|
+
name?: pulumi.Input<string>;
|
|
288
|
+
/**
|
|
289
|
+
* The protocol of the rule.
|
|
290
|
+
*/
|
|
291
|
+
protocol: pulumi.Input<string>;
|
|
292
|
+
/**
|
|
293
|
+
* The index of the rule. Must be >= 2000 < 3000 or >= 4000 < 5000.
|
|
294
|
+
*/
|
|
295
|
+
ruleIndex: pulumi.Input<number>;
|
|
296
|
+
/**
|
|
297
|
+
* The ruleset for the rule. This is from the perspective of the security gateway. Must be one of `WAN_IN`, `WAN_OUT`, `WAN_LOCAL`, `LAN_IN`, `LAN_OUT`, `LAN_LOCAL`, `GUEST_IN`, `GUEST_OUT`, `GUEST_LOCAL`, `WANv6_IN`, `WANv6_OUT`, `WANv6_LOCAL`, `LANv6_IN`, `LANv6_OUT`, `LANv6_LOCAL`, `GUESTv6_IN`, `GUESTv6_OUT`, or `GUESTv6_LOCAL`.
|
|
298
|
+
*/
|
|
299
|
+
ruleset: pulumi.Input<string>;
|
|
300
|
+
/**
|
|
301
|
+
* The name of the site to associate the firewall rule with.
|
|
302
|
+
*/
|
|
303
|
+
site?: pulumi.Input<string>;
|
|
304
|
+
/**
|
|
305
|
+
* The source address for the firewall rule.
|
|
306
|
+
*/
|
|
307
|
+
srcAddress?: pulumi.Input<string>;
|
|
308
|
+
/**
|
|
309
|
+
* The source firewall group IDs for the firewall rule.
|
|
310
|
+
*/
|
|
311
|
+
srcFirewallGroupIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
312
|
+
/**
|
|
313
|
+
* The source MAC address of the firewall rule.
|
|
314
|
+
*/
|
|
315
|
+
srcMac?: pulumi.Input<string>;
|
|
316
|
+
/**
|
|
317
|
+
* The source network ID for the firewall rule.
|
|
318
|
+
*/
|
|
319
|
+
srcNetworkId?: pulumi.Input<string>;
|
|
320
|
+
/**
|
|
321
|
+
* The source network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
|
|
322
|
+
*/
|
|
323
|
+
srcNetworkType?: pulumi.Input<string>;
|
|
324
|
+
/**
|
|
325
|
+
* Match where the state is established.
|
|
326
|
+
*/
|
|
327
|
+
stateEstablished?: pulumi.Input<boolean>;
|
|
328
|
+
/**
|
|
329
|
+
* Match where the state is invalid.
|
|
330
|
+
*/
|
|
331
|
+
stateInvalid?: pulumi.Input<boolean>;
|
|
332
|
+
/**
|
|
333
|
+
* Match where the state is new.
|
|
334
|
+
*/
|
|
335
|
+
stateNew?: pulumi.Input<boolean>;
|
|
336
|
+
/**
|
|
337
|
+
* Match where the state is related.
|
|
338
|
+
*/
|
|
339
|
+
stateRelated?: pulumi.Input<boolean>;
|
|
340
|
+
}
|
package/firewall/rule.js
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
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.Rule = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* `unifi.firewall.Rule` manages an individual firewall rule on the gateway.
|
|
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 ipAddress = config.require("ipAddress");
|
|
19
|
+
* const dropAll = new unifi.firewall.Rule("dropAll", {
|
|
20
|
+
* action: "drop",
|
|
21
|
+
* ruleset: "LAN_IN",
|
|
22
|
+
* ruleIndex: 2011,
|
|
23
|
+
* protocol: "all",
|
|
24
|
+
* dstAddress: ipAddress,
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* # import using the ID from the controller API/UI
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import unifi:firewall/rule:Rule my_rule 5f7080eb6b8969064f80494f
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class Rule extends pulumi.CustomResource {
|
|
37
|
+
constructor(name, argsOrState, opts) {
|
|
38
|
+
let resourceInputs = {};
|
|
39
|
+
opts = opts || {};
|
|
40
|
+
if (opts.id) {
|
|
41
|
+
const state = argsOrState;
|
|
42
|
+
resourceInputs["action"] = state ? state.action : undefined;
|
|
43
|
+
resourceInputs["dstAddress"] = state ? state.dstAddress : undefined;
|
|
44
|
+
resourceInputs["dstFirewallGroupIds"] = state ? state.dstFirewallGroupIds : undefined;
|
|
45
|
+
resourceInputs["dstNetworkId"] = state ? state.dstNetworkId : undefined;
|
|
46
|
+
resourceInputs["dstNetworkType"] = state ? state.dstNetworkType : undefined;
|
|
47
|
+
resourceInputs["dstPort"] = state ? state.dstPort : undefined;
|
|
48
|
+
resourceInputs["icmpTypename"] = state ? state.icmpTypename : undefined;
|
|
49
|
+
resourceInputs["ipSec"] = state ? state.ipSec : undefined;
|
|
50
|
+
resourceInputs["logging"] = state ? state.logging : undefined;
|
|
51
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
52
|
+
resourceInputs["protocol"] = state ? state.protocol : undefined;
|
|
53
|
+
resourceInputs["ruleIndex"] = state ? state.ruleIndex : undefined;
|
|
54
|
+
resourceInputs["ruleset"] = state ? state.ruleset : undefined;
|
|
55
|
+
resourceInputs["site"] = state ? state.site : undefined;
|
|
56
|
+
resourceInputs["srcAddress"] = state ? state.srcAddress : undefined;
|
|
57
|
+
resourceInputs["srcFirewallGroupIds"] = state ? state.srcFirewallGroupIds : undefined;
|
|
58
|
+
resourceInputs["srcMac"] = state ? state.srcMac : undefined;
|
|
59
|
+
resourceInputs["srcNetworkId"] = state ? state.srcNetworkId : undefined;
|
|
60
|
+
resourceInputs["srcNetworkType"] = state ? state.srcNetworkType : undefined;
|
|
61
|
+
resourceInputs["stateEstablished"] = state ? state.stateEstablished : undefined;
|
|
62
|
+
resourceInputs["stateInvalid"] = state ? state.stateInvalid : undefined;
|
|
63
|
+
resourceInputs["stateNew"] = state ? state.stateNew : undefined;
|
|
64
|
+
resourceInputs["stateRelated"] = state ? state.stateRelated : undefined;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
const args = argsOrState;
|
|
68
|
+
if ((!args || args.action === undefined) && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'action'");
|
|
70
|
+
}
|
|
71
|
+
if ((!args || args.protocol === undefined) && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'protocol'");
|
|
73
|
+
}
|
|
74
|
+
if ((!args || args.ruleIndex === undefined) && !opts.urn) {
|
|
75
|
+
throw new Error("Missing required property 'ruleIndex'");
|
|
76
|
+
}
|
|
77
|
+
if ((!args || args.ruleset === undefined) && !opts.urn) {
|
|
78
|
+
throw new Error("Missing required property 'ruleset'");
|
|
79
|
+
}
|
|
80
|
+
resourceInputs["action"] = args ? args.action : undefined;
|
|
81
|
+
resourceInputs["dstAddress"] = args ? args.dstAddress : undefined;
|
|
82
|
+
resourceInputs["dstFirewallGroupIds"] = args ? args.dstFirewallGroupIds : undefined;
|
|
83
|
+
resourceInputs["dstNetworkId"] = args ? args.dstNetworkId : undefined;
|
|
84
|
+
resourceInputs["dstNetworkType"] = args ? args.dstNetworkType : undefined;
|
|
85
|
+
resourceInputs["dstPort"] = args ? args.dstPort : undefined;
|
|
86
|
+
resourceInputs["icmpTypename"] = args ? args.icmpTypename : undefined;
|
|
87
|
+
resourceInputs["ipSec"] = args ? args.ipSec : undefined;
|
|
88
|
+
resourceInputs["logging"] = args ? args.logging : undefined;
|
|
89
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
90
|
+
resourceInputs["protocol"] = args ? args.protocol : undefined;
|
|
91
|
+
resourceInputs["ruleIndex"] = args ? args.ruleIndex : undefined;
|
|
92
|
+
resourceInputs["ruleset"] = args ? args.ruleset : undefined;
|
|
93
|
+
resourceInputs["site"] = args ? args.site : undefined;
|
|
94
|
+
resourceInputs["srcAddress"] = args ? args.srcAddress : undefined;
|
|
95
|
+
resourceInputs["srcFirewallGroupIds"] = args ? args.srcFirewallGroupIds : undefined;
|
|
96
|
+
resourceInputs["srcMac"] = args ? args.srcMac : undefined;
|
|
97
|
+
resourceInputs["srcNetworkId"] = args ? args.srcNetworkId : undefined;
|
|
98
|
+
resourceInputs["srcNetworkType"] = args ? args.srcNetworkType : undefined;
|
|
99
|
+
resourceInputs["stateEstablished"] = args ? args.stateEstablished : undefined;
|
|
100
|
+
resourceInputs["stateInvalid"] = args ? args.stateInvalid : undefined;
|
|
101
|
+
resourceInputs["stateNew"] = args ? args.stateNew : undefined;
|
|
102
|
+
resourceInputs["stateRelated"] = args ? args.stateRelated : undefined;
|
|
103
|
+
}
|
|
104
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
105
|
+
super(Rule.__pulumiType, name, resourceInputs, opts);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get an existing Rule resource's state with the given name, ID, and optional extra
|
|
109
|
+
* properties used to qualify the lookup.
|
|
110
|
+
*
|
|
111
|
+
* @param name The _unique_ name of the resulting resource.
|
|
112
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
113
|
+
* @param state Any extra arguments used during the lookup.
|
|
114
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
115
|
+
*/
|
|
116
|
+
static get(name, id, state, opts) {
|
|
117
|
+
return new Rule(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Returns true if the given object is an instance of Rule. This is designed to work even
|
|
121
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
122
|
+
*/
|
|
123
|
+
static isInstance(obj) {
|
|
124
|
+
if (obj === undefined || obj === null) {
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
return obj['__pulumiType'] === Rule.__pulumiType;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.Rule = Rule;
|
|
131
|
+
/** @internal */
|
|
132
|
+
Rule.__pulumiType = 'unifi:firewall/rule:Rule';
|
|
133
|
+
//# sourceMappingURL=rule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule.js","sourceRoot":"","sources":["../../firewall/rule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAiI3C,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC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CAAC;IAKD;;;OAGG;IACI,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,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;;AA1BL,oBAsMC;AAxLG,gBAAgB;AACO,iBAAY,GAAG,0BAA0B,CAAC"}
|
package/getApGroup.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* `unifi.getApGroup` data source can be used to retrieve the ID for an AP group by name.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as unifi from "@pulumi/unifi";
|
|
10
|
+
*
|
|
11
|
+
* const defaultApGroup = pulumi.output(unifi.getApGroup());
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare function getApGroup(args?: GetApGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetApGroupResult>;
|
|
15
|
+
/**
|
|
16
|
+
* A collection of arguments for invoking getApGroup.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetApGroupArgs {
|
|
19
|
+
/**
|
|
20
|
+
* The name of the AP group to look up, leave blank to look up the default AP group.
|
|
21
|
+
*/
|
|
22
|
+
name?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The name of the site the AP group is associated with.
|
|
25
|
+
*/
|
|
26
|
+
site?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A collection of values returned by getApGroup.
|
|
30
|
+
*/
|
|
31
|
+
export interface GetApGroupResult {
|
|
32
|
+
/**
|
|
33
|
+
* The ID of this AP group.
|
|
34
|
+
*/
|
|
35
|
+
readonly id: string;
|
|
36
|
+
/**
|
|
37
|
+
* The name of the AP group to look up, leave blank to look up the default AP group.
|
|
38
|
+
*/
|
|
39
|
+
readonly name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The name of the site the AP group is associated with.
|
|
42
|
+
*/
|
|
43
|
+
readonly site: string;
|
|
44
|
+
}
|
|
45
|
+
export declare function getApGroupOutput(args?: GetApGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetApGroupResult>;
|
|
46
|
+
/**
|
|
47
|
+
* A collection of arguments for invoking getApGroup.
|
|
48
|
+
*/
|
|
49
|
+
export interface GetApGroupOutputArgs {
|
|
50
|
+
/**
|
|
51
|
+
* The name of the AP group to look up, leave blank to look up the default AP group.
|
|
52
|
+
*/
|
|
53
|
+
name?: pulumi.Input<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the site the AP group is associated with.
|
|
56
|
+
*/
|
|
57
|
+
site?: pulumi.Input<string>;
|
|
58
|
+
}
|
package/getApGroup.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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.getApGroupOutput = exports.getApGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* `unifi.getApGroup` data source can be used to retrieve the ID for an AP group by name.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as unifi from "@pulumi/unifi";
|
|
16
|
+
*
|
|
17
|
+
* const defaultApGroup = pulumi.output(unifi.getApGroup());
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
function getApGroup(args, opts) {
|
|
21
|
+
args = args || {};
|
|
22
|
+
if (!opts) {
|
|
23
|
+
opts = {};
|
|
24
|
+
}
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
26
|
+
return pulumi.runtime.invoke("unifi:index/getApGroup:getApGroup", {
|
|
27
|
+
"name": args.name,
|
|
28
|
+
"site": args.site,
|
|
29
|
+
}, opts);
|
|
30
|
+
}
|
|
31
|
+
exports.getApGroup = getApGroup;
|
|
32
|
+
function getApGroupOutput(args, opts) {
|
|
33
|
+
return pulumi.output(args).apply(a => getApGroup(a, opts));
|
|
34
|
+
}
|
|
35
|
+
exports.getApGroupOutput = getApGroupOutput;
|
|
36
|
+
//# sourceMappingURL=getApGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getApGroup.js","sourceRoot":"","sources":["../getApGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mCAAmC,EAAE;QAC9D,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,gCAWC;AAkCD,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9D,CAAC;AAFD,4CAEC"}
|