@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
package/package.json.bak
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumiverse/unifi",
|
|
3
|
+
"version": "${VERSION}",
|
|
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 ${VERSION}"
|
|
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
|
+
}
|
package/package.json.dev
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 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
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* `unifi.port.Forward` manages a port forwarding rule on the gateway.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Forward extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing Forward resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param state Any extra arguments used during the lookup.
|
|
13
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
14
|
+
*/
|
|
15
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ForwardState, opts?: pulumi.CustomResourceOptions): Forward;
|
|
16
|
+
/**
|
|
17
|
+
* Returns true if the given object is an instance of Forward. This is designed to work even
|
|
18
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
19
|
+
*/
|
|
20
|
+
static isInstance(obj: any): obj is Forward;
|
|
21
|
+
/**
|
|
22
|
+
* The destination port for the forwarding.
|
|
23
|
+
*/
|
|
24
|
+
readonly dstPort: pulumi.Output<string | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies whether the port forwarding rule is enabled or not. This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.
|
|
27
|
+
*
|
|
28
|
+
* @deprecated This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.
|
|
29
|
+
*/
|
|
30
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* The IPv4 address to forward traffic to.
|
|
33
|
+
*/
|
|
34
|
+
readonly fwdIp: pulumi.Output<string | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* The port to forward traffic to.
|
|
37
|
+
*/
|
|
38
|
+
readonly fwdPort: pulumi.Output<string | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies whether to log forwarded traffic or not. Defaults to `false`.
|
|
41
|
+
*/
|
|
42
|
+
readonly log: pulumi.Output<boolean | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* The name of the port forwarding rule.
|
|
45
|
+
*/
|
|
46
|
+
readonly name: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The port forwarding interface. Can be `wan`, `wan2`, or `both`.
|
|
49
|
+
*/
|
|
50
|
+
readonly portForwardInterface: pulumi.Output<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* The protocol for the port forwarding rule. Can be `tcp`, `udp`, or `tcpUdp`. Defaults to `tcpUdp`.
|
|
53
|
+
*/
|
|
54
|
+
readonly protocol: pulumi.Output<string | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the site to associate the port forwarding rule with.
|
|
57
|
+
*/
|
|
58
|
+
readonly site: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The source IPv4 address (or CIDR) of the port forwarding rule. For all traffic, specify `any`. Defaults to `any`.
|
|
61
|
+
*/
|
|
62
|
+
readonly srcIp: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a Forward resource with the given unique name, arguments, and options.
|
|
65
|
+
*
|
|
66
|
+
* @param name The _unique_ name of the resource.
|
|
67
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
68
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
69
|
+
*/
|
|
70
|
+
constructor(name: string, args?: ForwardArgs, opts?: pulumi.CustomResourceOptions);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Input properties used for looking up and filtering Forward resources.
|
|
74
|
+
*/
|
|
75
|
+
export interface ForwardState {
|
|
76
|
+
/**
|
|
77
|
+
* The destination port for the forwarding.
|
|
78
|
+
*/
|
|
79
|
+
dstPort?: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Specifies whether the port forwarding rule is enabled or not. This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.
|
|
82
|
+
*
|
|
83
|
+
* @deprecated This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.
|
|
84
|
+
*/
|
|
85
|
+
enabled?: pulumi.Input<boolean>;
|
|
86
|
+
/**
|
|
87
|
+
* The IPv4 address to forward traffic to.
|
|
88
|
+
*/
|
|
89
|
+
fwdIp?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The port to forward traffic to.
|
|
92
|
+
*/
|
|
93
|
+
fwdPort?: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Specifies whether to log forwarded traffic or not. Defaults to `false`.
|
|
96
|
+
*/
|
|
97
|
+
log?: pulumi.Input<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* The name of the port forwarding rule.
|
|
100
|
+
*/
|
|
101
|
+
name?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The port forwarding interface. Can be `wan`, `wan2`, or `both`.
|
|
104
|
+
*/
|
|
105
|
+
portForwardInterface?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The protocol for the port forwarding rule. Can be `tcp`, `udp`, or `tcpUdp`. Defaults to `tcpUdp`.
|
|
108
|
+
*/
|
|
109
|
+
protocol?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The name of the site to associate the port forwarding rule with.
|
|
112
|
+
*/
|
|
113
|
+
site?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The source IPv4 address (or CIDR) of the port forwarding rule. For all traffic, specify `any`. Defaults to `any`.
|
|
116
|
+
*/
|
|
117
|
+
srcIp?: pulumi.Input<string>;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The set of arguments for constructing a Forward resource.
|
|
121
|
+
*/
|
|
122
|
+
export interface ForwardArgs {
|
|
123
|
+
/**
|
|
124
|
+
* The destination port for the forwarding.
|
|
125
|
+
*/
|
|
126
|
+
dstPort?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Specifies whether the port forwarding rule is enabled or not. This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.
|
|
129
|
+
*
|
|
130
|
+
* @deprecated This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration.
|
|
131
|
+
*/
|
|
132
|
+
enabled?: pulumi.Input<boolean>;
|
|
133
|
+
/**
|
|
134
|
+
* The IPv4 address to forward traffic to.
|
|
135
|
+
*/
|
|
136
|
+
fwdIp?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The port to forward traffic to.
|
|
139
|
+
*/
|
|
140
|
+
fwdPort?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Specifies whether to log forwarded traffic or not. Defaults to `false`.
|
|
143
|
+
*/
|
|
144
|
+
log?: pulumi.Input<boolean>;
|
|
145
|
+
/**
|
|
146
|
+
* The name of the port forwarding rule.
|
|
147
|
+
*/
|
|
148
|
+
name?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* The port forwarding interface. Can be `wan`, `wan2`, or `both`.
|
|
151
|
+
*/
|
|
152
|
+
portForwardInterface?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* The protocol for the port forwarding rule. Can be `tcp`, `udp`, or `tcpUdp`. Defaults to `tcpUdp`.
|
|
155
|
+
*/
|
|
156
|
+
protocol?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* The name of the site to associate the port forwarding rule with.
|
|
159
|
+
*/
|
|
160
|
+
site?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* The source IPv4 address (or CIDR) of the port forwarding rule. For all traffic, specify `any`. Defaults to `any`.
|
|
163
|
+
*/
|
|
164
|
+
srcIp?: pulumi.Input<string>;
|
|
165
|
+
}
|
package/port/forward.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
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.Forward = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* `unifi.port.Forward` manages a port forwarding rule on the gateway.
|
|
10
|
+
*/
|
|
11
|
+
class Forward extends pulumi.CustomResource {
|
|
12
|
+
constructor(name, argsOrState, opts) {
|
|
13
|
+
let resourceInputs = {};
|
|
14
|
+
opts = opts || {};
|
|
15
|
+
if (opts.id) {
|
|
16
|
+
const state = argsOrState;
|
|
17
|
+
resourceInputs["dstPort"] = state ? state.dstPort : undefined;
|
|
18
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
19
|
+
resourceInputs["fwdIp"] = state ? state.fwdIp : undefined;
|
|
20
|
+
resourceInputs["fwdPort"] = state ? state.fwdPort : undefined;
|
|
21
|
+
resourceInputs["log"] = state ? state.log : undefined;
|
|
22
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
23
|
+
resourceInputs["portForwardInterface"] = state ? state.portForwardInterface : undefined;
|
|
24
|
+
resourceInputs["protocol"] = state ? state.protocol : undefined;
|
|
25
|
+
resourceInputs["site"] = state ? state.site : undefined;
|
|
26
|
+
resourceInputs["srcIp"] = state ? state.srcIp : undefined;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
const args = argsOrState;
|
|
30
|
+
resourceInputs["dstPort"] = args ? args.dstPort : undefined;
|
|
31
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
32
|
+
resourceInputs["fwdIp"] = args ? args.fwdIp : undefined;
|
|
33
|
+
resourceInputs["fwdPort"] = args ? args.fwdPort : undefined;
|
|
34
|
+
resourceInputs["log"] = args ? args.log : undefined;
|
|
35
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
36
|
+
resourceInputs["portForwardInterface"] = args ? args.portForwardInterface : undefined;
|
|
37
|
+
resourceInputs["protocol"] = args ? args.protocol : undefined;
|
|
38
|
+
resourceInputs["site"] = args ? args.site : undefined;
|
|
39
|
+
resourceInputs["srcIp"] = args ? args.srcIp : undefined;
|
|
40
|
+
}
|
|
41
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
42
|
+
super(Forward.__pulumiType, name, resourceInputs, opts);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Get an existing Forward resource's state with the given name, ID, and optional extra
|
|
46
|
+
* properties used to qualify the lookup.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resulting resource.
|
|
49
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
50
|
+
* @param state Any extra arguments used during the lookup.
|
|
51
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
52
|
+
*/
|
|
53
|
+
static get(name, id, state, opts) {
|
|
54
|
+
return new Forward(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of Forward. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj) {
|
|
61
|
+
if (obj === undefined || obj === null) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
return obj['__pulumiType'] === Forward.__pulumiType;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.Forward = Forward;
|
|
68
|
+
/** @internal */
|
|
69
|
+
Forward.__pulumiType = 'unifi:port/forward:Forward';
|
|
70
|
+
//# sourceMappingURL=forward.js.map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,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IA5GD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BA8GC;AAhGG,gBAAgB;AACO,oBAAY,GAAG,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* `unifi.port.Profile` data source can be used to retrieve the ID for a port profile 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 all = pulumi.output(unifi.port.getProfile());
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare function getProfile(args?: GetProfileArgs, opts?: pulumi.InvokeOptions): Promise<GetProfileResult>;
|
|
15
|
+
/**
|
|
16
|
+
* A collection of arguments for invoking getProfile.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetProfileArgs {
|
|
19
|
+
/**
|
|
20
|
+
* The name of the port profile to look up. Defaults to `All`.
|
|
21
|
+
*/
|
|
22
|
+
name?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The name of the site the port profile is associated with.
|
|
25
|
+
*/
|
|
26
|
+
site?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A collection of values returned by getProfile.
|
|
30
|
+
*/
|
|
31
|
+
export interface GetProfileResult {
|
|
32
|
+
/**
|
|
33
|
+
* The ID of this port profile.
|
|
34
|
+
*/
|
|
35
|
+
readonly id: string;
|
|
36
|
+
/**
|
|
37
|
+
* The name of the port profile to look up. Defaults to `All`.
|
|
38
|
+
*/
|
|
39
|
+
readonly name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The name of the site the port profile is associated with.
|
|
42
|
+
*/
|
|
43
|
+
readonly site: string;
|
|
44
|
+
}
|
|
45
|
+
export declare function getProfileOutput(args?: GetProfileOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProfileResult>;
|
|
46
|
+
/**
|
|
47
|
+
* A collection of arguments for invoking getProfile.
|
|
48
|
+
*/
|
|
49
|
+
export interface GetProfileOutputArgs {
|
|
50
|
+
/**
|
|
51
|
+
* The name of the port profile to look up. Defaults to `All`.
|
|
52
|
+
*/
|
|
53
|
+
name?: pulumi.Input<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the site the port profile is associated with.
|
|
56
|
+
*/
|
|
57
|
+
site?: pulumi.Input<string>;
|
|
58
|
+
}
|
|
@@ -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.getProfileOutput = exports.getProfile = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* `unifi.port.Profile` data source can be used to retrieve the ID for a port profile 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 all = pulumi.output(unifi.port.getProfile());
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
function getProfile(args, opts) {
|
|
21
|
+
args = args || {};
|
|
22
|
+
if (!opts) {
|
|
23
|
+
opts = {};
|
|
24
|
+
}
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
26
|
+
return pulumi.runtime.invoke("unifi:port/getProfile:getProfile", {
|
|
27
|
+
"name": args.name,
|
|
28
|
+
"site": args.site,
|
|
29
|
+
}, opts);
|
|
30
|
+
}
|
|
31
|
+
exports.getProfile = getProfile;
|
|
32
|
+
function getProfileOutput(args, opts) {
|
|
33
|
+
return pulumi.output(args).apply(a => getProfile(a, opts));
|
|
34
|
+
}
|
|
35
|
+
exports.getProfileOutput = getProfileOutput;
|
|
36
|
+
//# sourceMappingURL=getProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProfile.js","sourceRoot":"","sources":["../../port/getProfile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;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,kCAAkC,EAAE;QAC7D,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"}
|
package/port/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { ForwardArgs, ForwardState } from "./forward";
|
|
2
|
+
export declare type Forward = import("./forward").Forward;
|
|
3
|
+
export declare const Forward: typeof import("./forward").Forward;
|
|
4
|
+
export { GetProfileArgs, GetProfileResult, GetProfileOutputArgs } from "./getProfile";
|
|
5
|
+
export declare const getProfile: typeof import("./getProfile").getProfile;
|
|
6
|
+
export declare const getProfileOutput: typeof import("./getProfile").getProfileOutput;
|
|
7
|
+
export { ProfileArgs, ProfileState } from "./profile";
|
|
8
|
+
export declare type Profile = import("./profile").Profile;
|
|
9
|
+
export declare const Profile: typeof import("./profile").Profile;
|
package/port/index.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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.Profile = exports.getProfileOutput = exports.getProfile = exports.Forward = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.Forward = null;
|
|
9
|
+
exports.getProfile = null;
|
|
10
|
+
exports.getProfileOutput = null;
|
|
11
|
+
exports.Profile = null;
|
|
12
|
+
utilities.lazyLoad(exports, ["Forward"], () => require("./forward"));
|
|
13
|
+
utilities.lazyLoad(exports, ["getProfile", "getProfileOutput"], () => require("./getProfile"));
|
|
14
|
+
utilities.lazyLoad(exports, ["Profile"], () => require("./profile"));
|
|
15
|
+
const _module = {
|
|
16
|
+
version: utilities.getVersion(),
|
|
17
|
+
construct: (name, type, urn) => {
|
|
18
|
+
switch (type) {
|
|
19
|
+
case "unifi:port/forward:Forward":
|
|
20
|
+
return new exports.Forward(name, undefined, { urn });
|
|
21
|
+
case "unifi:port/profile:Profile":
|
|
22
|
+
return new exports.Profile(name, undefined, { urn });
|
|
23
|
+
default:
|
|
24
|
+
throw new Error(`unknown resource type ${type}`);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
pulumi.runtime.registerResourceModule("unifi", "port/forward", _module);
|
|
29
|
+
pulumi.runtime.registerResourceModule("unifi", "port/profile", _module);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../port/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,OAAO,GAAuC,IAAW,CAAC;AAG1D,QAAA,UAAU,GAA6C,IAAW,CAAC;AACnE,QAAA,gBAAgB,GAAmD,IAAW,CAAC;AAI/E,QAAA,OAAO,GAAuC,IAAW,CAAC;AAEvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC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