@pulumiverse/unifi 0.2.0-alpha.1771056704 → 0.2.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 +65 -23
- package/account.js +31 -19
- package/account.js.map +1 -1
- package/config/vars.d.ts +7 -7
- package/config/vars.js +11 -10
- package/config/vars.js.map +1 -1
- package/device.d.ts +89 -20
- package/device.js +20 -14
- package/device.js.map +1 -1
- package/dns/getRecord.d.ts +116 -0
- package/dns/getRecord.js +62 -0
- package/dns/getRecord.js.map +1 -0
- package/dns/getRecords.d.ts +63 -0
- package/dns/getRecords.js +48 -0
- package/dns/getRecords.js.map +1 -0
- package/dns/index.d.ts +9 -0
- package/dns/index.js +28 -0
- package/dns/index.js.map +1 -0
- package/dns/record.d.ts +213 -0
- package/dns/record.js +98 -0
- package/dns/record.js.map +1 -0
- package/dynamicDNS.d.ts +53 -22
- package/dynamicDNS.js +31 -18
- package/dynamicDNS.js.map +1 -1
- package/firewall/getZone.d.ts +56 -0
- package/firewall/getZone.js +30 -0
- package/firewall/getZone.js.map +1 -0
- package/firewall/group.d.ts +42 -13
- package/firewall/group.js +23 -12
- package/firewall/group.js.map +1 -1
- package/firewall/index.d.ts +9 -0
- package/firewall/index.js +14 -1
- package/firewall/index.js.map +1 -1
- package/firewall/rule.d.ts +263 -76
- package/firewall/rule.js +67 -63
- package/firewall/rule.js.map +1 -1
- package/firewall/zone.d.ts +111 -0
- package/firewall/zone.js +92 -0
- package/firewall/zone.js.map +1 -0
- package/firewall/zonePolicy.d.ts +323 -0
- package/firewall/zonePolicy.js +171 -0
- package/firewall/zonePolicy.js.map +1 -0
- package/getAccount.d.ts +2 -2
- package/getAccount.js +2 -2
- package/getNetwork.d.ts +2 -2
- package/iam/getUser.d.ts +1 -1
- package/iam/group.d.ts +28 -13
- package/iam/group.js +25 -10
- package/iam/group.js.map +1 -1
- package/iam/user.d.ts +65 -35
- package/iam/user.js +45 -30
- package/iam/user.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/network.d.ts +601 -157
- package/network.js +117 -103
- package/network.js.map +1 -1
- package/package.json +2 -2
- package/port/alFile.d.ts +122 -0
- package/port/alFile.js +80 -0
- package/port/alFile.js.map +1 -0
- package/port/forward.d.ts +56 -31
- package/port/forward.js +29 -22
- package/port/forward.js.map +1 -1
- package/port/getProfile.d.ts +9 -9
- package/port/getProfile.js +2 -2
- package/port/index.d.ts +3 -0
- package/port/index.js +6 -1
- package/port/index.js.map +1 -1
- package/port/profile.d.ts +448 -100
- package/port/profile.js +83 -72
- package/port/profile.js.map +1 -1
- package/provider.d.ts +13 -12
- package/provider.js +8 -6
- package/provider.js.map +1 -1
- package/radiusProfile.d.ts +69 -34
- package/radiusProfile.js +35 -24
- package/radiusProfile.js.map +1 -1
- package/setting/autoSpeedtest.d.ts +89 -0
- package/setting/autoSpeedtest.js +73 -0
- package/setting/autoSpeedtest.js.map +1 -0
- package/setting/country.d.ts +80 -0
- package/setting/country.js +68 -0
- package/setting/country.js.map +1 -0
- package/setting/dpi.d.ts +87 -0
- package/setting/dpi.js +74 -0
- package/setting/dpi.js.map +1 -0
- package/setting/guestAccess.d.ts +588 -0
- package/setting/guestAccess.js +201 -0
- package/setting/guestAccess.js.map +1 -0
- package/setting/index.d.ts +42 -0
- package/setting/index.js +71 -1
- package/setting/index.js.map +1 -1
- package/setting/ips.d.ts +234 -0
- package/setting/ips.js +115 -0
- package/setting/ips.js.map +1 -0
- package/setting/lcdMonitor.d.ts +111 -0
- package/setting/lcdMonitor.js +65 -0
- package/setting/lcdMonitor.js.map +1 -0
- package/setting/locale.d.ts +72 -0
- package/setting/locale.js +66 -0
- package/setting/locale.js.map +1 -0
- package/setting/magicSiteToSiteVpn.d.ts +72 -0
- package/setting/magicSiteToSiteVpn.js +66 -0
- package/setting/magicSiteToSiteVpn.js.map +1 -0
- package/setting/mgmt.d.ts +213 -15
- package/setting/mgmt.js +70 -10
- package/setting/mgmt.js.map +1 -1
- package/setting/networkOptimization.d.ts +72 -0
- package/setting/networkOptimization.js +66 -0
- package/setting/networkOptimization.js.map +1 -0
- package/setting/ntp.d.ts +128 -0
- package/setting/ntp.js +79 -0
- package/setting/ntp.js.map +1 -0
- package/setting/radius.d.ts +52 -25
- package/setting/radius.js +45 -18
- package/setting/radius.js.map +1 -1
- package/setting/rsyslogd.d.ts +205 -0
- package/setting/rsyslogd.js +99 -0
- package/setting/rsyslogd.js.map +1 -0
- package/setting/sslInspection.d.ts +72 -0
- package/setting/sslInspection.js +66 -0
- package/setting/sslInspection.js.map +1 -0
- package/setting/teleport.d.ts +87 -0
- package/setting/teleport.js +71 -0
- package/setting/teleport.js.map +1 -0
- package/setting/usg.d.ts +538 -28
- package/setting/usg.js +162 -14
- package/setting/usg.js.map +1 -1
- package/setting/usw.d.ts +72 -0
- package/setting/usw.js +66 -0
- package/setting/usw.js.map +1 -0
- package/site.d.ts +19 -6
- package/site.js +19 -6
- package/site.js.map +1 -1
- package/staticRoute.d.ts +48 -22
- package/staticRoute.js +27 -19
- package/staticRoute.js.map +1 -1
- package/types/input.d.ts +736 -20
- package/types/output.d.ts +778 -20
- package/utilities.js +18 -29
- package/utilities.js.map +1 -1
- package/wlan.d.ts +119 -82
- package/wlan.js +62 -58
- package/wlan.js.map +1 -1
package/account.d.ts
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* `unifi.Account` manages
|
|
3
|
+
* The `unifi.Account` resource manages RADIUS user accounts in the UniFi controller's built-in RADIUS server.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* This resource is used for:
|
|
6
|
+
* * WPA2/WPA3-Enterprise wireless authentication
|
|
7
|
+
* * 802.1X wired authentication
|
|
8
|
+
* * MAC-based device authentication
|
|
9
|
+
* * VLAN assignment through RADIUS attributes
|
|
7
10
|
*
|
|
8
|
-
*
|
|
11
|
+
* Important Notes:
|
|
12
|
+
* 1. For MAC-based authentication:
|
|
13
|
+
* * Use the device's MAC address as both username and password
|
|
14
|
+
* * Convert MAC address to uppercase with no separators (e.g., '00:11:22:33:44:55' becomes '001122334455')
|
|
15
|
+
* 2. VLAN Assignment:
|
|
16
|
+
* * If no VLAN is specified in the profile, clients will use the network's untagged VLAN
|
|
17
|
+
* * VLAN assignment uses standard RADIUS tunnel attributes
|
|
9
18
|
*
|
|
10
|
-
*
|
|
19
|
+
* Limitations:
|
|
20
|
+
* * MAC-based authentication works only for wireless and wired clients
|
|
21
|
+
* * L2TP remote access VPN is not supported with MAC authentication
|
|
22
|
+
* * Accounts must be unique within a site
|
|
11
23
|
*/
|
|
12
24
|
export declare class Account extends pulumi.CustomResource {
|
|
13
25
|
/**
|
|
@@ -26,27 +38,37 @@ export declare class Account extends pulumi.CustomResource {
|
|
|
26
38
|
*/
|
|
27
39
|
static isInstance(obj: any): obj is Account;
|
|
28
40
|
/**
|
|
29
|
-
* The
|
|
41
|
+
* The username for this RADIUS account. For regular users, this can be any unique identifier. For MAC-based authentication, this must be the device's MAC address in uppercase with no separators (e.g., '001122334455').
|
|
30
42
|
*/
|
|
31
43
|
readonly name: pulumi.Output<string>;
|
|
32
44
|
/**
|
|
33
|
-
* ID of the network
|
|
45
|
+
* The ID of the network (VLAN) to assign to clients authenticating with this account. This is used in conjunction with the tunnel attributes to provide VLAN assignment via RADIUS.
|
|
34
46
|
*/
|
|
35
47
|
readonly networkId: pulumi.Output<string | undefined>;
|
|
36
48
|
/**
|
|
37
|
-
* The password
|
|
49
|
+
* The password for this RADIUS account. For MAC-based authentication, this must match the username (the MAC address). For regular users, this should be a secure password following your organization's password policies.
|
|
38
50
|
*/
|
|
39
51
|
readonly password: pulumi.Output<string>;
|
|
40
52
|
/**
|
|
41
|
-
* The name of the site
|
|
53
|
+
* The name of the UniFi site where this RADIUS account should be created. If not specified, the default site will be used.
|
|
42
54
|
*/
|
|
43
55
|
readonly site: pulumi.Output<string>;
|
|
44
56
|
/**
|
|
45
|
-
*
|
|
57
|
+
* The RADIUS tunnel medium type attribute ([RFC 2868](https://tools.ietf.org/html/rfc2868), section 3.2). Common values:
|
|
58
|
+
* * `6` - 802 (includes Ethernet, Token Ring, FDDI) (default)
|
|
59
|
+
* * `1` - IPv4
|
|
60
|
+
* * `2` - IPv6
|
|
61
|
+
*
|
|
62
|
+
* Only change this if you need specific tunneling behavior.
|
|
46
63
|
*/
|
|
47
64
|
readonly tunnelMediumType: pulumi.Output<number | undefined>;
|
|
48
65
|
/**
|
|
49
|
-
*
|
|
66
|
+
* The RADIUS tunnel type attribute ([RFC 2868](https://tools.ietf.org/html/rfc2868), section 3.1). Common values:
|
|
67
|
+
* * `13` - VLAN (default)
|
|
68
|
+
* * `1` - Point-to-Point Protocol (PPTP)
|
|
69
|
+
* * `9` - Point-to-Point Protocol (L2TP)
|
|
70
|
+
*
|
|
71
|
+
* Only change this if you need specific tunneling behavior.
|
|
50
72
|
*/
|
|
51
73
|
readonly tunnelType: pulumi.Output<number | undefined>;
|
|
52
74
|
/**
|
|
@@ -63,27 +85,37 @@ export declare class Account extends pulumi.CustomResource {
|
|
|
63
85
|
*/
|
|
64
86
|
export interface AccountState {
|
|
65
87
|
/**
|
|
66
|
-
* The
|
|
88
|
+
* The username for this RADIUS account. For regular users, this can be any unique identifier. For MAC-based authentication, this must be the device's MAC address in uppercase with no separators (e.g., '001122334455').
|
|
67
89
|
*/
|
|
68
90
|
name?: pulumi.Input<string>;
|
|
69
91
|
/**
|
|
70
|
-
* ID of the network
|
|
92
|
+
* The ID of the network (VLAN) to assign to clients authenticating with this account. This is used in conjunction with the tunnel attributes to provide VLAN assignment via RADIUS.
|
|
71
93
|
*/
|
|
72
94
|
networkId?: pulumi.Input<string>;
|
|
73
95
|
/**
|
|
74
|
-
* The password
|
|
96
|
+
* The password for this RADIUS account. For MAC-based authentication, this must match the username (the MAC address). For regular users, this should be a secure password following your organization's password policies.
|
|
75
97
|
*/
|
|
76
98
|
password?: pulumi.Input<string>;
|
|
77
99
|
/**
|
|
78
|
-
* The name of the site
|
|
100
|
+
* The name of the UniFi site where this RADIUS account should be created. If not specified, the default site will be used.
|
|
79
101
|
*/
|
|
80
102
|
site?: pulumi.Input<string>;
|
|
81
103
|
/**
|
|
82
|
-
*
|
|
104
|
+
* The RADIUS tunnel medium type attribute ([RFC 2868](https://tools.ietf.org/html/rfc2868), section 3.2). Common values:
|
|
105
|
+
* * `6` - 802 (includes Ethernet, Token Ring, FDDI) (default)
|
|
106
|
+
* * `1` - IPv4
|
|
107
|
+
* * `2` - IPv6
|
|
108
|
+
*
|
|
109
|
+
* Only change this if you need specific tunneling behavior.
|
|
83
110
|
*/
|
|
84
111
|
tunnelMediumType?: pulumi.Input<number>;
|
|
85
112
|
/**
|
|
86
|
-
*
|
|
113
|
+
* The RADIUS tunnel type attribute ([RFC 2868](https://tools.ietf.org/html/rfc2868), section 3.1). Common values:
|
|
114
|
+
* * `13` - VLAN (default)
|
|
115
|
+
* * `1` - Point-to-Point Protocol (PPTP)
|
|
116
|
+
* * `9` - Point-to-Point Protocol (L2TP)
|
|
117
|
+
*
|
|
118
|
+
* Only change this if you need specific tunneling behavior.
|
|
87
119
|
*/
|
|
88
120
|
tunnelType?: pulumi.Input<number>;
|
|
89
121
|
}
|
|
@@ -92,27 +124,37 @@ export interface AccountState {
|
|
|
92
124
|
*/
|
|
93
125
|
export interface AccountArgs {
|
|
94
126
|
/**
|
|
95
|
-
* The
|
|
127
|
+
* The username for this RADIUS account. For regular users, this can be any unique identifier. For MAC-based authentication, this must be the device's MAC address in uppercase with no separators (e.g., '001122334455').
|
|
96
128
|
*/
|
|
97
129
|
name?: pulumi.Input<string>;
|
|
98
130
|
/**
|
|
99
|
-
* ID of the network
|
|
131
|
+
* The ID of the network (VLAN) to assign to clients authenticating with this account. This is used in conjunction with the tunnel attributes to provide VLAN assignment via RADIUS.
|
|
100
132
|
*/
|
|
101
133
|
networkId?: pulumi.Input<string>;
|
|
102
134
|
/**
|
|
103
|
-
* The password
|
|
135
|
+
* The password for this RADIUS account. For MAC-based authentication, this must match the username (the MAC address). For regular users, this should be a secure password following your organization's password policies.
|
|
104
136
|
*/
|
|
105
137
|
password: pulumi.Input<string>;
|
|
106
138
|
/**
|
|
107
|
-
* The name of the site
|
|
139
|
+
* The name of the UniFi site where this RADIUS account should be created. If not specified, the default site will be used.
|
|
108
140
|
*/
|
|
109
141
|
site?: pulumi.Input<string>;
|
|
110
142
|
/**
|
|
111
|
-
*
|
|
143
|
+
* The RADIUS tunnel medium type attribute ([RFC 2868](https://tools.ietf.org/html/rfc2868), section 3.2). Common values:
|
|
144
|
+
* * `6` - 802 (includes Ethernet, Token Ring, FDDI) (default)
|
|
145
|
+
* * `1` - IPv4
|
|
146
|
+
* * `2` - IPv6
|
|
147
|
+
*
|
|
148
|
+
* Only change this if you need specific tunneling behavior.
|
|
112
149
|
*/
|
|
113
150
|
tunnelMediumType?: pulumi.Input<number>;
|
|
114
151
|
/**
|
|
115
|
-
*
|
|
152
|
+
* The RADIUS tunnel type attribute ([RFC 2868](https://tools.ietf.org/html/rfc2868), section 3.1). Common values:
|
|
153
|
+
* * `13` - VLAN (default)
|
|
154
|
+
* * `1` - Point-to-Point Protocol (PPTP)
|
|
155
|
+
* * `9` - Point-to-Point Protocol (L2TP)
|
|
156
|
+
*
|
|
157
|
+
* Only change this if you need specific tunneling behavior.
|
|
116
158
|
*/
|
|
117
159
|
tunnelType?: pulumi.Input<number>;
|
|
118
160
|
}
|
package/account.js
CHANGED
|
@@ -6,14 +6,26 @@ exports.Account = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* `unifi.Account` manages
|
|
9
|
+
* The `unifi.Account` resource manages RADIUS user accounts in the UniFi controller's built-in RADIUS server.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* This resource is used for:
|
|
12
|
+
* * WPA2/WPA3-Enterprise wireless authentication
|
|
13
|
+
* * 802.1X wired authentication
|
|
14
|
+
* * MAC-based device authentication
|
|
15
|
+
* * VLAN assignment through RADIUS attributes
|
|
13
16
|
*
|
|
14
|
-
*
|
|
17
|
+
* Important Notes:
|
|
18
|
+
* 1. For MAC-based authentication:
|
|
19
|
+
* * Use the device's MAC address as both username and password
|
|
20
|
+
* * Convert MAC address to uppercase with no separators (e.g., '00:11:22:33:44:55' becomes '001122334455')
|
|
21
|
+
* 2. VLAN Assignment:
|
|
22
|
+
* * If no VLAN is specified in the profile, clients will use the network's untagged VLAN
|
|
23
|
+
* * VLAN assignment uses standard RADIUS tunnel attributes
|
|
15
24
|
*
|
|
16
|
-
*
|
|
25
|
+
* Limitations:
|
|
26
|
+
* * MAC-based authentication works only for wireless and wired clients
|
|
27
|
+
* * L2TP remote access VPN is not supported with MAC authentication
|
|
28
|
+
* * Accounts must be unique within a site
|
|
17
29
|
*/
|
|
18
30
|
class Account extends pulumi.CustomResource {
|
|
19
31
|
/**
|
|
@@ -26,7 +38,7 @@ class Account extends pulumi.CustomResource {
|
|
|
26
38
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
27
39
|
*/
|
|
28
40
|
static get(name, id, state, opts) {
|
|
29
|
-
return new Account(name, state,
|
|
41
|
+
return new Account(name, state, { ...opts, id: id });
|
|
30
42
|
}
|
|
31
43
|
/**
|
|
32
44
|
* Returns true if the given object is an instance of Account. This is designed to work even
|
|
@@ -43,24 +55,24 @@ class Account extends pulumi.CustomResource {
|
|
|
43
55
|
opts = opts || {};
|
|
44
56
|
if (opts.id) {
|
|
45
57
|
const state = argsOrState;
|
|
46
|
-
resourceInputs["name"] = state
|
|
47
|
-
resourceInputs["networkId"] = state
|
|
48
|
-
resourceInputs["password"] = state
|
|
49
|
-
resourceInputs["site"] = state
|
|
50
|
-
resourceInputs["tunnelMediumType"] = state
|
|
51
|
-
resourceInputs["tunnelType"] = state
|
|
58
|
+
resourceInputs["name"] = state?.name;
|
|
59
|
+
resourceInputs["networkId"] = state?.networkId;
|
|
60
|
+
resourceInputs["password"] = state?.password;
|
|
61
|
+
resourceInputs["site"] = state?.site;
|
|
62
|
+
resourceInputs["tunnelMediumType"] = state?.tunnelMediumType;
|
|
63
|
+
resourceInputs["tunnelType"] = state?.tunnelType;
|
|
52
64
|
}
|
|
53
65
|
else {
|
|
54
66
|
const args = argsOrState;
|
|
55
|
-
if (
|
|
67
|
+
if (args?.password === undefined && !opts.urn) {
|
|
56
68
|
throw new Error("Missing required property 'password'");
|
|
57
69
|
}
|
|
58
|
-
resourceInputs["name"] = args
|
|
59
|
-
resourceInputs["networkId"] = args
|
|
60
|
-
resourceInputs["password"] =
|
|
61
|
-
resourceInputs["site"] = args
|
|
62
|
-
resourceInputs["tunnelMediumType"] = args
|
|
63
|
-
resourceInputs["tunnelType"] = args
|
|
70
|
+
resourceInputs["name"] = args?.name;
|
|
71
|
+
resourceInputs["networkId"] = args?.networkId;
|
|
72
|
+
resourceInputs["password"] = args?.password ? pulumi.secret(args.password) : undefined;
|
|
73
|
+
resourceInputs["site"] = args?.site;
|
|
74
|
+
resourceInputs["tunnelMediumType"] = args?.tunnelMediumType;
|
|
75
|
+
resourceInputs["tunnelType"] = args?.tunnelType;
|
|
64
76
|
}
|
|
65
77
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
66
78
|
const secretOpts = { additionalSecretOutputs: ["password"] };
|
package/account.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../account.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../account.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;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,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACvF,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAlGL,0BAmGC;AArFG,gBAAgB;AACO,oBAAY,GAAG,6BAA6B,CAAC"}
|
package/config/vars.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Skip verification of TLS certificates of API requests. You may need to set this to `true` if you are using your local
|
|
3
|
-
* API without setting up a signed certificate. Can be specified with the `UNIFI_INSECURE` environment variable.
|
|
2
|
+
* Skip verification of TLS certificates of API requests. You may need to set this to `true` if you are using your local API without setting up a signed certificate. Can be specified with the `UNIFI_INSECURE` environment variable.
|
|
4
3
|
*/
|
|
5
4
|
export declare const allowInsecure: boolean | undefined;
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
* API Key for the user accessing the API. Can be specified with the `UNIFI_API_KEY` environment variable. Controller version 9.0.108 or later is required.
|
|
7
|
+
*/
|
|
8
|
+
export declare const apiKey: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* URL of the controller API. Can be specified with the `UNIFI_API` environment variable. You should **NOT** supply the path (`/api`), the SDK will discover the appropriate paths. This is to support UDM Pro style API paths as well as more standard controller paths.
|
|
10
11
|
*/
|
|
11
12
|
export declare const apiUrl: string | undefined;
|
|
12
13
|
/**
|
|
@@ -14,8 +15,7 @@ export declare const apiUrl: string | undefined;
|
|
|
14
15
|
*/
|
|
15
16
|
export declare const password: string | undefined;
|
|
16
17
|
/**
|
|
17
|
-
* The site in the Unifi controller this provider will manage. Can be specified with the `UNIFI_SITE` environment variable.
|
|
18
|
-
* Default: `default`
|
|
18
|
+
* The site in the Unifi controller this provider will manage. Can be specified with the `UNIFI_SITE` environment variable. Default: `default`
|
|
19
19
|
*/
|
|
20
20
|
export declare const site: string | undefined;
|
|
21
21
|
/**
|
package/config/vars.js
CHANGED
|
@@ -7,36 +7,37 @@ const utilities = require("../utilities");
|
|
|
7
7
|
const __config = new pulumi.Config("unifi");
|
|
8
8
|
Object.defineProperty(exports, "allowInsecure", {
|
|
9
9
|
get() {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
return __config.getObject("allowInsecure") ?? utilities.getEnvBoolean("UNIFI_INSECURE");
|
|
11
|
+
},
|
|
12
|
+
enumerable: true,
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "apiKey", {
|
|
15
|
+
get() {
|
|
16
|
+
return __config.get("apiKey");
|
|
12
17
|
},
|
|
13
18
|
enumerable: true,
|
|
14
19
|
});
|
|
15
20
|
Object.defineProperty(exports, "apiUrl", {
|
|
16
21
|
get() {
|
|
17
|
-
|
|
18
|
-
return (_a = __config.get("apiUrl")) !== null && _a !== void 0 ? _a : utilities.getEnv("UNIFI_API");
|
|
22
|
+
return __config.get("apiUrl") ?? utilities.getEnv("UNIFI_API");
|
|
19
23
|
},
|
|
20
24
|
enumerable: true,
|
|
21
25
|
});
|
|
22
26
|
Object.defineProperty(exports, "password", {
|
|
23
27
|
get() {
|
|
24
|
-
|
|
25
|
-
return (_a = __config.get("password")) !== null && _a !== void 0 ? _a : utilities.getEnv("UNIFI_PASSWORD");
|
|
28
|
+
return __config.get("password") ?? utilities.getEnv("UNIFI_PASSWORD");
|
|
26
29
|
},
|
|
27
30
|
enumerable: true,
|
|
28
31
|
});
|
|
29
32
|
Object.defineProperty(exports, "site", {
|
|
30
33
|
get() {
|
|
31
|
-
|
|
32
|
-
return (_a = __config.get("site")) !== null && _a !== void 0 ? _a : utilities.getEnv("UNIFI_SITE");
|
|
34
|
+
return __config.get("site") ?? utilities.getEnv("UNIFI_SITE");
|
|
33
35
|
},
|
|
34
36
|
enumerable: true,
|
|
35
37
|
});
|
|
36
38
|
Object.defineProperty(exports, "username", {
|
|
37
39
|
get() {
|
|
38
|
-
|
|
39
|
-
return (_a = __config.get("username")) !== null && _a !== void 0 ? _a : utilities.getEnv("UNIFI_USERNAME");
|
|
40
|
+
return __config.get("username") ?? utilities.getEnv("UNIFI_USERNAME");
|
|
40
41
|
},
|
|
41
42
|
enumerable: true,
|
|
42
43
|
});
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,MAAM,QAAQ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AAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAC1E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/device.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* The `unifi.Device` resource manages UniFi network devices such as access points, switches, gateways, etc.
|
|
6
|
+
*
|
|
7
|
+
* Devices must first be adopted by the UniFi controller before they can be managed through Terraform. This resource cannot create new devices, but instead allows you to manage existing devices that have already been adopted. The recommended approach is to adopt devices through the UniFi controller UI first, then import them into Terraform using the device's MAC address.
|
|
8
|
+
*
|
|
9
|
+
* This resource supports managing device names, port configurations, and other device-specific settings.
|
|
10
|
+
*
|
|
5
11
|
* ## Example Usage
|
|
6
12
|
*
|
|
7
13
|
* ```typescript
|
|
@@ -58,31 +64,52 @@ export declare class Device extends pulumi.CustomResource {
|
|
|
58
64
|
*/
|
|
59
65
|
static isInstance(obj: any): obj is Device;
|
|
60
66
|
/**
|
|
61
|
-
*
|
|
67
|
+
* Whether to automatically adopt the device when creating this resource. When true:
|
|
68
|
+
* * The controller will attempt to adopt the device
|
|
69
|
+
* * Device must be in a pending adoption state
|
|
70
|
+
* * Device must be accessible on the network
|
|
71
|
+
* Set to false if you want to manage adoption manually.
|
|
62
72
|
*/
|
|
63
73
|
readonly allowAdoption: pulumi.Output<boolean | undefined>;
|
|
64
74
|
/**
|
|
65
|
-
*
|
|
75
|
+
* Whether the device is administratively disabled. When true, the device will not forward traffic or provide services.
|
|
66
76
|
*/
|
|
67
77
|
readonly disabled: pulumi.Output<boolean>;
|
|
68
78
|
/**
|
|
69
|
-
*
|
|
79
|
+
* Whether to forget (un-adopt) the device when this resource is destroyed. When true:
|
|
80
|
+
* * The device will be removed from the controller
|
|
81
|
+
* * The device will need to be readopted to be managed again
|
|
82
|
+
* * Device configuration will be reset
|
|
83
|
+
* Set to false to keep the device adopted when removing from Terraform management.
|
|
70
84
|
*/
|
|
71
85
|
readonly forgetOnDestroy: pulumi.Output<boolean | undefined>;
|
|
72
86
|
/**
|
|
73
|
-
* The MAC address of the device
|
|
87
|
+
* The MAC address of the device in standard format (e.g., 'aa:bb:cc:dd:ee:ff'). This is used to identify and manage specific devices that have already been adopted by the controller.
|
|
74
88
|
*/
|
|
75
89
|
readonly mac: pulumi.Output<string>;
|
|
76
90
|
/**
|
|
77
|
-
*
|
|
91
|
+
* A friendly name for the device that will be displayed in the UniFi controller UI. Examples:
|
|
92
|
+
* * 'Office-AP-1' for an access point
|
|
93
|
+
* * 'Core-Switch-01' for a switch
|
|
94
|
+
* * 'Main-Gateway' for a gateway
|
|
95
|
+
* Choose descriptive names that indicate location and purpose.
|
|
78
96
|
*/
|
|
79
97
|
readonly name: pulumi.Output<string>;
|
|
80
98
|
/**
|
|
81
|
-
*
|
|
99
|
+
* A list of port-specific configuration overrides for UniFi switches. This allows you to customize individual port settings such as:
|
|
100
|
+
* * Port names and labels for easy identification
|
|
101
|
+
* * Port profiles for VLAN and security settings
|
|
102
|
+
* * Operating modes for special functions
|
|
103
|
+
*
|
|
104
|
+
* Common use cases include:
|
|
105
|
+
* * Setting up trunk ports for inter-switch connections
|
|
106
|
+
* * Configuring PoE settings for powered devices
|
|
107
|
+
* * Creating mirrored ports for network monitoring
|
|
108
|
+
* * Setting up link aggregation between switches or servers
|
|
82
109
|
*/
|
|
83
110
|
readonly portOverrides: pulumi.Output<outputs.DevicePortOverride[] | undefined>;
|
|
84
111
|
/**
|
|
85
|
-
* The name of the site
|
|
112
|
+
* The name of the UniFi site where the device is located. If not specified, the default site will be used.
|
|
86
113
|
*/
|
|
87
114
|
readonly site: pulumi.Output<string>;
|
|
88
115
|
/**
|
|
@@ -99,31 +126,52 @@ export declare class Device extends pulumi.CustomResource {
|
|
|
99
126
|
*/
|
|
100
127
|
export interface DeviceState {
|
|
101
128
|
/**
|
|
102
|
-
*
|
|
129
|
+
* Whether to automatically adopt the device when creating this resource. When true:
|
|
130
|
+
* * The controller will attempt to adopt the device
|
|
131
|
+
* * Device must be in a pending adoption state
|
|
132
|
+
* * Device must be accessible on the network
|
|
133
|
+
* Set to false if you want to manage adoption manually.
|
|
103
134
|
*/
|
|
104
135
|
allowAdoption?: pulumi.Input<boolean>;
|
|
105
136
|
/**
|
|
106
|
-
*
|
|
137
|
+
* Whether the device is administratively disabled. When true, the device will not forward traffic or provide services.
|
|
107
138
|
*/
|
|
108
139
|
disabled?: pulumi.Input<boolean>;
|
|
109
140
|
/**
|
|
110
|
-
*
|
|
141
|
+
* Whether to forget (un-adopt) the device when this resource is destroyed. When true:
|
|
142
|
+
* * The device will be removed from the controller
|
|
143
|
+
* * The device will need to be readopted to be managed again
|
|
144
|
+
* * Device configuration will be reset
|
|
145
|
+
* Set to false to keep the device adopted when removing from Terraform management.
|
|
111
146
|
*/
|
|
112
147
|
forgetOnDestroy?: pulumi.Input<boolean>;
|
|
113
148
|
/**
|
|
114
|
-
* The MAC address of the device
|
|
149
|
+
* The MAC address of the device in standard format (e.g., 'aa:bb:cc:dd:ee:ff'). This is used to identify and manage specific devices that have already been adopted by the controller.
|
|
115
150
|
*/
|
|
116
151
|
mac?: pulumi.Input<string>;
|
|
117
152
|
/**
|
|
118
|
-
*
|
|
153
|
+
* A friendly name for the device that will be displayed in the UniFi controller UI. Examples:
|
|
154
|
+
* * 'Office-AP-1' for an access point
|
|
155
|
+
* * 'Core-Switch-01' for a switch
|
|
156
|
+
* * 'Main-Gateway' for a gateway
|
|
157
|
+
* Choose descriptive names that indicate location and purpose.
|
|
119
158
|
*/
|
|
120
159
|
name?: pulumi.Input<string>;
|
|
121
160
|
/**
|
|
122
|
-
*
|
|
161
|
+
* A list of port-specific configuration overrides for UniFi switches. This allows you to customize individual port settings such as:
|
|
162
|
+
* * Port names and labels for easy identification
|
|
163
|
+
* * Port profiles for VLAN and security settings
|
|
164
|
+
* * Operating modes for special functions
|
|
165
|
+
*
|
|
166
|
+
* Common use cases include:
|
|
167
|
+
* * Setting up trunk ports for inter-switch connections
|
|
168
|
+
* * Configuring PoE settings for powered devices
|
|
169
|
+
* * Creating mirrored ports for network monitoring
|
|
170
|
+
* * Setting up link aggregation between switches or servers
|
|
123
171
|
*/
|
|
124
172
|
portOverrides?: pulumi.Input<pulumi.Input<inputs.DevicePortOverride>[]>;
|
|
125
173
|
/**
|
|
126
|
-
* The name of the site
|
|
174
|
+
* The name of the UniFi site where the device is located. If not specified, the default site will be used.
|
|
127
175
|
*/
|
|
128
176
|
site?: pulumi.Input<string>;
|
|
129
177
|
}
|
|
@@ -132,27 +180,48 @@ export interface DeviceState {
|
|
|
132
180
|
*/
|
|
133
181
|
export interface DeviceArgs {
|
|
134
182
|
/**
|
|
135
|
-
*
|
|
183
|
+
* Whether to automatically adopt the device when creating this resource. When true:
|
|
184
|
+
* * The controller will attempt to adopt the device
|
|
185
|
+
* * Device must be in a pending adoption state
|
|
186
|
+
* * Device must be accessible on the network
|
|
187
|
+
* Set to false if you want to manage adoption manually.
|
|
136
188
|
*/
|
|
137
189
|
allowAdoption?: pulumi.Input<boolean>;
|
|
138
190
|
/**
|
|
139
|
-
*
|
|
191
|
+
* Whether to forget (un-adopt) the device when this resource is destroyed. When true:
|
|
192
|
+
* * The device will be removed from the controller
|
|
193
|
+
* * The device will need to be readopted to be managed again
|
|
194
|
+
* * Device configuration will be reset
|
|
195
|
+
* Set to false to keep the device adopted when removing from Terraform management.
|
|
140
196
|
*/
|
|
141
197
|
forgetOnDestroy?: pulumi.Input<boolean>;
|
|
142
198
|
/**
|
|
143
|
-
* The MAC address of the device
|
|
199
|
+
* The MAC address of the device in standard format (e.g., 'aa:bb:cc:dd:ee:ff'). This is used to identify and manage specific devices that have already been adopted by the controller.
|
|
144
200
|
*/
|
|
145
201
|
mac?: pulumi.Input<string>;
|
|
146
202
|
/**
|
|
147
|
-
*
|
|
203
|
+
* A friendly name for the device that will be displayed in the UniFi controller UI. Examples:
|
|
204
|
+
* * 'Office-AP-1' for an access point
|
|
205
|
+
* * 'Core-Switch-01' for a switch
|
|
206
|
+
* * 'Main-Gateway' for a gateway
|
|
207
|
+
* Choose descriptive names that indicate location and purpose.
|
|
148
208
|
*/
|
|
149
209
|
name?: pulumi.Input<string>;
|
|
150
210
|
/**
|
|
151
|
-
*
|
|
211
|
+
* A list of port-specific configuration overrides for UniFi switches. This allows you to customize individual port settings such as:
|
|
212
|
+
* * Port names and labels for easy identification
|
|
213
|
+
* * Port profiles for VLAN and security settings
|
|
214
|
+
* * Operating modes for special functions
|
|
215
|
+
*
|
|
216
|
+
* Common use cases include:
|
|
217
|
+
* * Setting up trunk ports for inter-switch connections
|
|
218
|
+
* * Configuring PoE settings for powered devices
|
|
219
|
+
* * Creating mirrored ports for network monitoring
|
|
220
|
+
* * Setting up link aggregation between switches or servers
|
|
152
221
|
*/
|
|
153
222
|
portOverrides?: pulumi.Input<pulumi.Input<inputs.DevicePortOverride>[]>;
|
|
154
223
|
/**
|
|
155
|
-
* The name of the site
|
|
224
|
+
* The name of the UniFi site where the device is located. If not specified, the default site will be used.
|
|
156
225
|
*/
|
|
157
226
|
site?: pulumi.Input<string>;
|
|
158
227
|
}
|
package/device.js
CHANGED
|
@@ -6,6 +6,12 @@ exports.Device = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* The `unifi.Device` resource manages UniFi network devices such as access points, switches, gateways, etc.
|
|
10
|
+
*
|
|
11
|
+
* Devices must first be adopted by the UniFi controller before they can be managed through Terraform. This resource cannot create new devices, but instead allows you to manage existing devices that have already been adopted. The recommended approach is to adopt devices through the UniFi controller UI first, then import them into Terraform using the device's MAC address.
|
|
12
|
+
*
|
|
13
|
+
* This resource supports managing device names, port configurations, and other device-specific settings.
|
|
14
|
+
*
|
|
9
15
|
* ## Example Usage
|
|
10
16
|
*
|
|
11
17
|
* ```typescript
|
|
@@ -56,7 +62,7 @@ class Device extends pulumi.CustomResource {
|
|
|
56
62
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
57
63
|
*/
|
|
58
64
|
static get(name, id, state, opts) {
|
|
59
|
-
return new Device(name, state,
|
|
65
|
+
return new Device(name, state, { ...opts, id: id });
|
|
60
66
|
}
|
|
61
67
|
/**
|
|
62
68
|
* Returns true if the given object is an instance of Device. This is designed to work even
|
|
@@ -73,22 +79,22 @@ class Device extends pulumi.CustomResource {
|
|
|
73
79
|
opts = opts || {};
|
|
74
80
|
if (opts.id) {
|
|
75
81
|
const state = argsOrState;
|
|
76
|
-
resourceInputs["allowAdoption"] = state
|
|
77
|
-
resourceInputs["disabled"] = state
|
|
78
|
-
resourceInputs["forgetOnDestroy"] = state
|
|
79
|
-
resourceInputs["mac"] = state
|
|
80
|
-
resourceInputs["name"] = state
|
|
81
|
-
resourceInputs["portOverrides"] = state
|
|
82
|
-
resourceInputs["site"] = state
|
|
82
|
+
resourceInputs["allowAdoption"] = state?.allowAdoption;
|
|
83
|
+
resourceInputs["disabled"] = state?.disabled;
|
|
84
|
+
resourceInputs["forgetOnDestroy"] = state?.forgetOnDestroy;
|
|
85
|
+
resourceInputs["mac"] = state?.mac;
|
|
86
|
+
resourceInputs["name"] = state?.name;
|
|
87
|
+
resourceInputs["portOverrides"] = state?.portOverrides;
|
|
88
|
+
resourceInputs["site"] = state?.site;
|
|
83
89
|
}
|
|
84
90
|
else {
|
|
85
91
|
const args = argsOrState;
|
|
86
|
-
resourceInputs["allowAdoption"] = args
|
|
87
|
-
resourceInputs["forgetOnDestroy"] = args
|
|
88
|
-
resourceInputs["mac"] = args
|
|
89
|
-
resourceInputs["name"] = args
|
|
90
|
-
resourceInputs["portOverrides"] = args
|
|
91
|
-
resourceInputs["site"] = args
|
|
92
|
+
resourceInputs["allowAdoption"] = args?.allowAdoption;
|
|
93
|
+
resourceInputs["forgetOnDestroy"] = args?.forgetOnDestroy;
|
|
94
|
+
resourceInputs["mac"] = args?.mac;
|
|
95
|
+
resourceInputs["name"] = args?.name;
|
|
96
|
+
resourceInputs["portOverrides"] = args?.portOverrides;
|
|
97
|
+
resourceInputs["site"] = args?.site;
|
|
92
98
|
resourceInputs["disabled"] = undefined /*out*/;
|
|
93
99
|
}
|
|
94
100
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/device.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.js","sourceRoot":"","sources":["../device.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"device.js","sourceRoot":"","sources":["../device.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IA4DD,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CA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