@pulumi/scm 1.0.5 → 1.0.6
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/forwardingProfile.d.ts +294 -0
- package/forwardingProfile.js +247 -0
- package/forwardingProfile.js.map +1 -0
- package/forwardingProfileDestination.d.ts +190 -0
- package/forwardingProfileDestination.js +143 -0
- package/forwardingProfileDestination.js.map +1 -0
- package/forwardingProfileRegionalAndCustomProxy.d.ts +289 -0
- package/forwardingProfileRegionalAndCustomProxy.js +192 -0
- package/forwardingProfileRegionalAndCustomProxy.js.map +1 -0
- package/forwardingProfileSourceApplication.d.ts +161 -0
- package/forwardingProfileSourceApplication.js +129 -0
- package/forwardingProfileSourceApplication.js.map +1 -0
- package/forwardingProfileUserLocation.d.ts +172 -0
- package/forwardingProfileUserLocation.js +125 -0
- package/forwardingProfileUserLocation.js.map +1 -0
- package/getAddressGroupList.d.ts +4 -4
- package/getAddressGroupList.js +4 -4
- package/getAddressList.d.ts +4 -4
- package/getAddressList.js +4 -4
- package/getAggregateInterfaceList.d.ts +2 -2
- package/getAggregateInterfaceList.js +2 -2
- package/getApplicationGroupList.d.ts +4 -4
- package/getApplicationGroupList.js +4 -4
- package/getBgpAuthProfileList.d.ts +2 -2
- package/getBgpAuthProfileList.js +2 -2
- package/getBgpRedistributionProfileList.d.ts +2 -2
- package/getBgpRedistributionProfileList.js +2 -2
- package/getBgpRouteMapList.d.ts +2 -2
- package/getBgpRouteMapList.js +2 -2
- package/getConfigMatchListList.d.ts +2 -2
- package/getConfigMatchListList.js +2 -2
- package/getDevice.d.ts +267 -0
- package/getDevice.js +82 -0
- package/getDevice.js.map +1 -0
- package/getDeviceList.d.ts +171 -0
- package/getDeviceList.js +88 -0
- package/getDeviceList.js.map +1 -0
- package/getDynamicUserGroupList.d.ts +4 -4
- package/getDynamicUserGroupList.js +4 -4
- package/getEthernetInterfaceList.d.ts +2 -2
- package/getEthernetInterfaceList.js +2 -2
- package/getForwardingProfile.d.ts +137 -0
- package/getForwardingProfile.js +92 -0
- package/getForwardingProfile.js.map +1 -0
- package/getForwardingProfileDestination.d.ts +127 -0
- package/getForwardingProfileDestination.js +82 -0
- package/getForwardingProfileDestination.js.map +1 -0
- package/getForwardingProfileDestinationList.d.ts +163 -0
- package/getForwardingProfileDestinationList.js +90 -0
- package/getForwardingProfileDestinationList.js.map +1 -0
- package/getForwardingProfileList.d.ts +163 -0
- package/getForwardingProfileList.js +90 -0
- package/getForwardingProfileList.js.map +1 -0
- package/getForwardingProfileRegionalAndCustomProxy.d.ts +157 -0
- package/getForwardingProfileRegionalAndCustomProxy.js +92 -0
- package/getForwardingProfileRegionalAndCustomProxy.js.map +1 -0
- package/getForwardingProfileRegionalAndCustomProxyList.d.ts +163 -0
- package/getForwardingProfileRegionalAndCustomProxyList.js +90 -0
- package/getForwardingProfileRegionalAndCustomProxyList.js.map +1 -0
- package/getForwardingProfileSourceApplication.d.ts +98 -0
- package/getForwardingProfileSourceApplication.js +58 -0
- package/getForwardingProfileSourceApplication.js.map +1 -0
- package/getForwardingProfileSourceApplicationList.d.ts +113 -0
- package/getForwardingProfileSourceApplicationList.js +40 -0
- package/getForwardingProfileSourceApplicationList.js.map +1 -0
- package/getForwardingProfileUserLocation.d.ts +127 -0
- package/getForwardingProfileUserLocation.js +82 -0
- package/getForwardingProfileUserLocation.js.map +1 -0
- package/getForwardingProfileUserLocationList.d.ts +163 -0
- package/getForwardingProfileUserLocationList.js +90 -0
- package/getForwardingProfileUserLocationList.js.map +1 -0
- package/getGlobalprotectMatchListList.d.ts +2 -2
- package/getGlobalprotectMatchListList.js +2 -2
- package/getHipmatchMatchListList.d.ts +2 -2
- package/getHipmatchMatchListList.js +2 -2
- package/getIptagMatchListList.d.ts +2 -2
- package/getIptagMatchListList.js +2 -2
- package/getLayer2SubinterfaceList.d.ts +2 -2
- package/getLayer2SubinterfaceList.js +2 -2
- package/getLayer3SubinterfaceList.d.ts +2 -2
- package/getLayer3SubinterfaceList.js +2 -2
- package/getLogicalRouterList.d.ts +2 -2
- package/getLogicalRouterList.js +2 -2
- package/getLoopbackInterfaceList.d.ts +2 -2
- package/getLoopbackInterfaceList.js +2 -2
- package/getServiceConnection.d.ts +4 -0
- package/getServiceConnection.js.map +1 -1
- package/getServiceList.d.ts +2 -2
- package/getServiceList.js +2 -2
- package/getSystemMatchListList.d.ts +2 -2
- package/getSystemMatchListList.js +2 -2
- package/getTunnelInterfaceList.d.ts +2 -2
- package/getTunnelInterfaceList.js +2 -2
- package/getUseridMatchListList.d.ts +2 -2
- package/getUseridMatchListList.js +2 -2
- package/getVlanInterfaceList.d.ts +2 -2
- package/getVlanInterfaceList.js +2 -2
- package/getZoneList.d.ts +2 -2
- package/getZoneList.js +2 -2
- package/index.d.ts +51 -0
- package/index.js +74 -13
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/securityRule.d.ts +27 -0
- package/securityRule.js +27 -0
- package/securityRule.js.map +1 -1
- package/serviceConnection.d.ts +12 -0
- package/serviceConnection.js +2 -0
- package/serviceConnection.js.map +1 -1
- package/types/input.d.ts +335 -1
- package/types/output.d.ts +1423 -1
package/getDevice.d.ts
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Device data source
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as scm from "@pulumi/scm";
|
|
11
|
+
*
|
|
12
|
+
* // Look up a device by id
|
|
13
|
+
* const myDevice = scm.getDevice({
|
|
14
|
+
* id: "007099000023642",
|
|
15
|
+
* });
|
|
16
|
+
* export const scmDeviceOutput = {
|
|
17
|
+
* id: myDevice.then(myDevice => myDevice.id),
|
|
18
|
+
* name: myDevice.then(myDevice => myDevice.name),
|
|
19
|
+
* hostname: myDevice.then(myDevice => myDevice.hostname),
|
|
20
|
+
* model: myDevice.then(myDevice => myDevice.model),
|
|
21
|
+
* family: myDevice.then(myDevice => myDevice.family),
|
|
22
|
+
* folder: myDevice.then(myDevice => myDevice.folder),
|
|
23
|
+
* isConnected: myDevice.then(myDevice => myDevice.isConnected),
|
|
24
|
+
* softwareVersion: myDevice.then(myDevice => myDevice.softwareVersion),
|
|
25
|
+
* ipAddress: myDevice.then(myDevice => myDevice.ipAddress),
|
|
26
|
+
* macAddress: myDevice.then(myDevice => myDevice.macAddress),
|
|
27
|
+
* uptime: myDevice.then(myDevice => myDevice.uptime),
|
|
28
|
+
* };
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare function getDevice(args: GetDeviceArgs, opts?: pulumi.InvokeOptions): Promise<GetDeviceResult>;
|
|
32
|
+
/**
|
|
33
|
+
* A collection of arguments for invoking getDevice.
|
|
34
|
+
*/
|
|
35
|
+
export interface GetDeviceArgs {
|
|
36
|
+
/**
|
|
37
|
+
* The folder containing the device
|
|
38
|
+
*/
|
|
39
|
+
folder?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The UUID of the device
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* The name of the device
|
|
46
|
+
*/
|
|
47
|
+
name?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A collection of values returned by getDevice.
|
|
51
|
+
*/
|
|
52
|
+
export interface GetDeviceResult {
|
|
53
|
+
/**
|
|
54
|
+
* Anti virus version
|
|
55
|
+
*/
|
|
56
|
+
readonly antiVirusVersion: string;
|
|
57
|
+
/**
|
|
58
|
+
* App release date
|
|
59
|
+
*/
|
|
60
|
+
readonly appReleaseDate: string;
|
|
61
|
+
/**
|
|
62
|
+
* App version
|
|
63
|
+
*/
|
|
64
|
+
readonly appVersion: string;
|
|
65
|
+
/**
|
|
66
|
+
* Av release date
|
|
67
|
+
*/
|
|
68
|
+
readonly avReleaseDate: string;
|
|
69
|
+
/**
|
|
70
|
+
* Available licensess
|
|
71
|
+
*/
|
|
72
|
+
readonly availableLicensesses: outputs.GetDeviceAvailableLicensess[];
|
|
73
|
+
/**
|
|
74
|
+
* Connected since
|
|
75
|
+
*/
|
|
76
|
+
readonly connectedSince: string;
|
|
77
|
+
/**
|
|
78
|
+
* The description of the device
|
|
79
|
+
*/
|
|
80
|
+
readonly description: string;
|
|
81
|
+
/**
|
|
82
|
+
* Dev cert detail
|
|
83
|
+
*/
|
|
84
|
+
readonly devCertDetail: string;
|
|
85
|
+
/**
|
|
86
|
+
* Dev cert expiry date
|
|
87
|
+
*/
|
|
88
|
+
readonly devCertExpiryDate: string;
|
|
89
|
+
/**
|
|
90
|
+
* The display name of the device
|
|
91
|
+
*/
|
|
92
|
+
readonly displayName: string;
|
|
93
|
+
/**
|
|
94
|
+
* The product family of the device
|
|
95
|
+
*/
|
|
96
|
+
readonly family: string;
|
|
97
|
+
/**
|
|
98
|
+
* The folder containing the device
|
|
99
|
+
*/
|
|
100
|
+
readonly folder: string;
|
|
101
|
+
/**
|
|
102
|
+
* Gp client verion
|
|
103
|
+
*/
|
|
104
|
+
readonly gpClientVerion: string;
|
|
105
|
+
/**
|
|
106
|
+
* Gp data version
|
|
107
|
+
*/
|
|
108
|
+
readonly gpDataVersion: string;
|
|
109
|
+
/**
|
|
110
|
+
* Ha peer serial
|
|
111
|
+
*/
|
|
112
|
+
readonly haPeerSerial: string;
|
|
113
|
+
/**
|
|
114
|
+
* Ha peer state
|
|
115
|
+
*/
|
|
116
|
+
readonly haPeerState: string;
|
|
117
|
+
/**
|
|
118
|
+
* Ha state
|
|
119
|
+
*/
|
|
120
|
+
readonly haState: string;
|
|
121
|
+
/**
|
|
122
|
+
* The hostname of the device
|
|
123
|
+
*/
|
|
124
|
+
readonly hostname: string;
|
|
125
|
+
/**
|
|
126
|
+
* The UUID of the device
|
|
127
|
+
*/
|
|
128
|
+
readonly id: string;
|
|
129
|
+
/**
|
|
130
|
+
* Installed licenses
|
|
131
|
+
*/
|
|
132
|
+
readonly installedLicenses: outputs.GetDeviceInstalledLicense[];
|
|
133
|
+
/**
|
|
134
|
+
* Iot release date
|
|
135
|
+
*/
|
|
136
|
+
readonly iotReleaseDate: string;
|
|
137
|
+
/**
|
|
138
|
+
* Iot version
|
|
139
|
+
*/
|
|
140
|
+
readonly iotVersion: string;
|
|
141
|
+
/**
|
|
142
|
+
* The IPv4 address of the device
|
|
143
|
+
*/
|
|
144
|
+
readonly ipAddress: string;
|
|
145
|
+
/**
|
|
146
|
+
* Ip v6 address
|
|
147
|
+
*/
|
|
148
|
+
readonly ipV6Address: string;
|
|
149
|
+
/**
|
|
150
|
+
* Is connected
|
|
151
|
+
*/
|
|
152
|
+
readonly isConnected: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Labels assigned to the device
|
|
155
|
+
*/
|
|
156
|
+
readonly labels: string[];
|
|
157
|
+
/**
|
|
158
|
+
* License match
|
|
159
|
+
*/
|
|
160
|
+
readonly licenseMatch: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Log db version
|
|
163
|
+
*/
|
|
164
|
+
readonly logDbVersion: string;
|
|
165
|
+
/**
|
|
166
|
+
* The MAC address of the device
|
|
167
|
+
*/
|
|
168
|
+
readonly macAddress: string;
|
|
169
|
+
/**
|
|
170
|
+
* The model of the device
|
|
171
|
+
*/
|
|
172
|
+
readonly model: string;
|
|
173
|
+
/**
|
|
174
|
+
* The name of the device
|
|
175
|
+
*/
|
|
176
|
+
readonly name: string;
|
|
177
|
+
/**
|
|
178
|
+
* Snippets associated with the device
|
|
179
|
+
*/
|
|
180
|
+
readonly snippets: string[];
|
|
181
|
+
/**
|
|
182
|
+
* Software version
|
|
183
|
+
*/
|
|
184
|
+
readonly softwareVersion: string;
|
|
185
|
+
/**
|
|
186
|
+
* The Terraform ID.
|
|
187
|
+
*/
|
|
188
|
+
readonly tfid: string;
|
|
189
|
+
/**
|
|
190
|
+
* Threat release date
|
|
191
|
+
*/
|
|
192
|
+
readonly threatReleaseDate: string;
|
|
193
|
+
/**
|
|
194
|
+
* Threat version
|
|
195
|
+
*/
|
|
196
|
+
readonly threatVersion: string;
|
|
197
|
+
/**
|
|
198
|
+
* Uptime
|
|
199
|
+
*/
|
|
200
|
+
readonly uptime: string;
|
|
201
|
+
/**
|
|
202
|
+
* Url db type
|
|
203
|
+
*/
|
|
204
|
+
readonly urlDbType: string;
|
|
205
|
+
/**
|
|
206
|
+
* Url db ver
|
|
207
|
+
*/
|
|
208
|
+
readonly urlDbVer: string;
|
|
209
|
+
/**
|
|
210
|
+
* Vm state
|
|
211
|
+
*/
|
|
212
|
+
readonly vmState: string;
|
|
213
|
+
/**
|
|
214
|
+
* Wf release date
|
|
215
|
+
*/
|
|
216
|
+
readonly wfReleaseDate: string;
|
|
217
|
+
/**
|
|
218
|
+
* Wf ver
|
|
219
|
+
*/
|
|
220
|
+
readonly wfVer: string;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Device data source
|
|
224
|
+
*
|
|
225
|
+
* ## Example Usage
|
|
226
|
+
*
|
|
227
|
+
* ```typescript
|
|
228
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
229
|
+
* import * as scm from "@pulumi/scm";
|
|
230
|
+
*
|
|
231
|
+
* // Look up a device by id
|
|
232
|
+
* const myDevice = scm.getDevice({
|
|
233
|
+
* id: "007099000023642",
|
|
234
|
+
* });
|
|
235
|
+
* export const scmDeviceOutput = {
|
|
236
|
+
* id: myDevice.then(myDevice => myDevice.id),
|
|
237
|
+
* name: myDevice.then(myDevice => myDevice.name),
|
|
238
|
+
* hostname: myDevice.then(myDevice => myDevice.hostname),
|
|
239
|
+
* model: myDevice.then(myDevice => myDevice.model),
|
|
240
|
+
* family: myDevice.then(myDevice => myDevice.family),
|
|
241
|
+
* folder: myDevice.then(myDevice => myDevice.folder),
|
|
242
|
+
* isConnected: myDevice.then(myDevice => myDevice.isConnected),
|
|
243
|
+
* softwareVersion: myDevice.then(myDevice => myDevice.softwareVersion),
|
|
244
|
+
* ipAddress: myDevice.then(myDevice => myDevice.ipAddress),
|
|
245
|
+
* macAddress: myDevice.then(myDevice => myDevice.macAddress),
|
|
246
|
+
* uptime: myDevice.then(myDevice => myDevice.uptime),
|
|
247
|
+
* };
|
|
248
|
+
* ```
|
|
249
|
+
*/
|
|
250
|
+
export declare function getDeviceOutput(args: GetDeviceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDeviceResult>;
|
|
251
|
+
/**
|
|
252
|
+
* A collection of arguments for invoking getDevice.
|
|
253
|
+
*/
|
|
254
|
+
export interface GetDeviceOutputArgs {
|
|
255
|
+
/**
|
|
256
|
+
* The folder containing the device
|
|
257
|
+
*/
|
|
258
|
+
folder?: pulumi.Input<string>;
|
|
259
|
+
/**
|
|
260
|
+
* The UUID of the device
|
|
261
|
+
*/
|
|
262
|
+
id: pulumi.Input<string>;
|
|
263
|
+
/**
|
|
264
|
+
* The name of the device
|
|
265
|
+
*/
|
|
266
|
+
name?: pulumi.Input<string>;
|
|
267
|
+
}
|
package/getDevice.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.getDeviceOutput = exports.getDevice = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Device data source
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as scm from "@pulumi/scm";
|
|
16
|
+
*
|
|
17
|
+
* // Look up a device by id
|
|
18
|
+
* const myDevice = scm.getDevice({
|
|
19
|
+
* id: "007099000023642",
|
|
20
|
+
* });
|
|
21
|
+
* export const scmDeviceOutput = {
|
|
22
|
+
* id: myDevice.then(myDevice => myDevice.id),
|
|
23
|
+
* name: myDevice.then(myDevice => myDevice.name),
|
|
24
|
+
* hostname: myDevice.then(myDevice => myDevice.hostname),
|
|
25
|
+
* model: myDevice.then(myDevice => myDevice.model),
|
|
26
|
+
* family: myDevice.then(myDevice => myDevice.family),
|
|
27
|
+
* folder: myDevice.then(myDevice => myDevice.folder),
|
|
28
|
+
* isConnected: myDevice.then(myDevice => myDevice.isConnected),
|
|
29
|
+
* softwareVersion: myDevice.then(myDevice => myDevice.softwareVersion),
|
|
30
|
+
* ipAddress: myDevice.then(myDevice => myDevice.ipAddress),
|
|
31
|
+
* macAddress: myDevice.then(myDevice => myDevice.macAddress),
|
|
32
|
+
* uptime: myDevice.then(myDevice => myDevice.uptime),
|
|
33
|
+
* };
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
function getDevice(args, opts) {
|
|
37
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
38
|
+
return pulumi.runtime.invoke("scm:index/getDevice:getDevice", {
|
|
39
|
+
"folder": args.folder,
|
|
40
|
+
"id": args.id,
|
|
41
|
+
"name": args.name,
|
|
42
|
+
}, opts);
|
|
43
|
+
}
|
|
44
|
+
exports.getDevice = getDevice;
|
|
45
|
+
/**
|
|
46
|
+
* Device data source
|
|
47
|
+
*
|
|
48
|
+
* ## Example Usage
|
|
49
|
+
*
|
|
50
|
+
* ```typescript
|
|
51
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
52
|
+
* import * as scm from "@pulumi/scm";
|
|
53
|
+
*
|
|
54
|
+
* // Look up a device by id
|
|
55
|
+
* const myDevice = scm.getDevice({
|
|
56
|
+
* id: "007099000023642",
|
|
57
|
+
* });
|
|
58
|
+
* export const scmDeviceOutput = {
|
|
59
|
+
* id: myDevice.then(myDevice => myDevice.id),
|
|
60
|
+
* name: myDevice.then(myDevice => myDevice.name),
|
|
61
|
+
* hostname: myDevice.then(myDevice => myDevice.hostname),
|
|
62
|
+
* model: myDevice.then(myDevice => myDevice.model),
|
|
63
|
+
* family: myDevice.then(myDevice => myDevice.family),
|
|
64
|
+
* folder: myDevice.then(myDevice => myDevice.folder),
|
|
65
|
+
* isConnected: myDevice.then(myDevice => myDevice.isConnected),
|
|
66
|
+
* softwareVersion: myDevice.then(myDevice => myDevice.softwareVersion),
|
|
67
|
+
* ipAddress: myDevice.then(myDevice => myDevice.ipAddress),
|
|
68
|
+
* macAddress: myDevice.then(myDevice => myDevice.macAddress),
|
|
69
|
+
* uptime: myDevice.then(myDevice => myDevice.uptime),
|
|
70
|
+
* };
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
function getDeviceOutput(args, opts) {
|
|
74
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
75
|
+
return pulumi.runtime.invokeOutput("scm:index/getDevice:getDevice", {
|
|
76
|
+
"folder": args.folder,
|
|
77
|
+
"id": args.id,
|
|
78
|
+
"name": args.name,
|
|
79
|
+
}, opts);
|
|
80
|
+
}
|
|
81
|
+
exports.getDeviceOutput = getDeviceOutput;
|
|
82
|
+
//# sourceMappingURL=getDevice.js.map
|
package/getDevice.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDevice.js","sourceRoot":"","sources":["../getDevice.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+BAA+B,EAAE;QAC1D,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8BAOC;AAiMD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAAiC;IACxF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,+BAA+B,EAAE;QAChE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves a listing of config items.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as scm from "@pulumi/scm";
|
|
11
|
+
*
|
|
12
|
+
* // List all devices
|
|
13
|
+
* const allDevices = scm.getDeviceList({
|
|
14
|
+
* limit: 200,
|
|
15
|
+
* offset: 0,
|
|
16
|
+
* });
|
|
17
|
+
* export const allDeviceNames = allDevices.then(allDevices => .map(d => (d.name)));
|
|
18
|
+
* export const deviceDetails = allDevices.then(allDevices => .map(d => ({
|
|
19
|
+
* id: d.id,
|
|
20
|
+
* name: d.name,
|
|
21
|
+
* model: d.model,
|
|
22
|
+
* family: d.family,
|
|
23
|
+
* isConnected: d.isConnected,
|
|
24
|
+
* softwareVersion: d.softwareVersion,
|
|
25
|
+
* ipAddress: d.ipAddress,
|
|
26
|
+
* })));
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function getDeviceList(args?: GetDeviceListArgs, opts?: pulumi.InvokeOptions): Promise<GetDeviceListResult>;
|
|
30
|
+
/**
|
|
31
|
+
* A collection of arguments for invoking getDeviceList.
|
|
32
|
+
*/
|
|
33
|
+
export interface GetDeviceListArgs {
|
|
34
|
+
/**
|
|
35
|
+
* The device of the item.
|
|
36
|
+
*/
|
|
37
|
+
device?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The folder of the item. Default: Shared.
|
|
40
|
+
*/
|
|
41
|
+
folder?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The max number of items to return. Default: 200.
|
|
44
|
+
*/
|
|
45
|
+
limit?: number;
|
|
46
|
+
/**
|
|
47
|
+
* The name of the item.
|
|
48
|
+
*/
|
|
49
|
+
name?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The offset of the first item to return.
|
|
52
|
+
*/
|
|
53
|
+
offset?: number;
|
|
54
|
+
/**
|
|
55
|
+
* The parameter to mention if the response should be paginated. By default, its set to false
|
|
56
|
+
*/
|
|
57
|
+
pagination?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The snippet of the item.
|
|
60
|
+
*/
|
|
61
|
+
snippet?: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* A collection of values returned by getDeviceList.
|
|
65
|
+
*/
|
|
66
|
+
export interface GetDeviceListResult {
|
|
67
|
+
/**
|
|
68
|
+
* The data.
|
|
69
|
+
*/
|
|
70
|
+
readonly datas: outputs.GetDeviceListData[];
|
|
71
|
+
/**
|
|
72
|
+
* The device of the item.
|
|
73
|
+
*/
|
|
74
|
+
readonly device?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The folder of the item. Default: Shared.
|
|
77
|
+
*/
|
|
78
|
+
readonly folder?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The provider-assigned unique ID for this managed resource.
|
|
81
|
+
*/
|
|
82
|
+
readonly id: string;
|
|
83
|
+
/**
|
|
84
|
+
* The max number of items to return. Default: 200.
|
|
85
|
+
*/
|
|
86
|
+
readonly limit?: number;
|
|
87
|
+
/**
|
|
88
|
+
* The name of the item.
|
|
89
|
+
*/
|
|
90
|
+
readonly name?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The offset of the first item to return.
|
|
93
|
+
*/
|
|
94
|
+
readonly offset?: number;
|
|
95
|
+
/**
|
|
96
|
+
* The parameter to mention if the response should be paginated. By default, its set to false
|
|
97
|
+
*/
|
|
98
|
+
readonly pagination?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* The snippet of the item.
|
|
101
|
+
*/
|
|
102
|
+
readonly snippet?: string;
|
|
103
|
+
/**
|
|
104
|
+
* The Terraform ID.
|
|
105
|
+
*/
|
|
106
|
+
readonly tfid: string;
|
|
107
|
+
/**
|
|
108
|
+
* The total number of items.
|
|
109
|
+
*/
|
|
110
|
+
readonly total: number;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Retrieves a listing of config items.
|
|
114
|
+
*
|
|
115
|
+
* ## Example Usage
|
|
116
|
+
*
|
|
117
|
+
* ```typescript
|
|
118
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
119
|
+
* import * as scm from "@pulumi/scm";
|
|
120
|
+
*
|
|
121
|
+
* // List all devices
|
|
122
|
+
* const allDevices = scm.getDeviceList({
|
|
123
|
+
* limit: 200,
|
|
124
|
+
* offset: 0,
|
|
125
|
+
* });
|
|
126
|
+
* export const allDeviceNames = allDevices.then(allDevices => .map(d => (d.name)));
|
|
127
|
+
* export const deviceDetails = allDevices.then(allDevices => .map(d => ({
|
|
128
|
+
* id: d.id,
|
|
129
|
+
* name: d.name,
|
|
130
|
+
* model: d.model,
|
|
131
|
+
* family: d.family,
|
|
132
|
+
* isConnected: d.isConnected,
|
|
133
|
+
* softwareVersion: d.softwareVersion,
|
|
134
|
+
* ipAddress: d.ipAddress,
|
|
135
|
+
* })));
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
export declare function getDeviceListOutput(args?: GetDeviceListOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDeviceListResult>;
|
|
139
|
+
/**
|
|
140
|
+
* A collection of arguments for invoking getDeviceList.
|
|
141
|
+
*/
|
|
142
|
+
export interface GetDeviceListOutputArgs {
|
|
143
|
+
/**
|
|
144
|
+
* The device of the item.
|
|
145
|
+
*/
|
|
146
|
+
device?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* The folder of the item. Default: Shared.
|
|
149
|
+
*/
|
|
150
|
+
folder?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* The max number of items to return. Default: 200.
|
|
153
|
+
*/
|
|
154
|
+
limit?: pulumi.Input<number>;
|
|
155
|
+
/**
|
|
156
|
+
* The name of the item.
|
|
157
|
+
*/
|
|
158
|
+
name?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* The offset of the first item to return.
|
|
161
|
+
*/
|
|
162
|
+
offset?: pulumi.Input<number>;
|
|
163
|
+
/**
|
|
164
|
+
* The parameter to mention if the response should be paginated. By default, its set to false
|
|
165
|
+
*/
|
|
166
|
+
pagination?: pulumi.Input<boolean>;
|
|
167
|
+
/**
|
|
168
|
+
* The snippet of the item.
|
|
169
|
+
*/
|
|
170
|
+
snippet?: pulumi.Input<string>;
|
|
171
|
+
}
|
package/getDeviceList.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.getDeviceListOutput = exports.getDeviceList = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a listing of config items.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as scm from "@pulumi/scm";
|
|
16
|
+
*
|
|
17
|
+
* // List all devices
|
|
18
|
+
* const allDevices = scm.getDeviceList({
|
|
19
|
+
* limit: 200,
|
|
20
|
+
* offset: 0,
|
|
21
|
+
* });
|
|
22
|
+
* export const allDeviceNames = allDevices.then(allDevices => .map(d => (d.name)));
|
|
23
|
+
* export const deviceDetails = allDevices.then(allDevices => .map(d => ({
|
|
24
|
+
* id: d.id,
|
|
25
|
+
* name: d.name,
|
|
26
|
+
* model: d.model,
|
|
27
|
+
* family: d.family,
|
|
28
|
+
* isConnected: d.isConnected,
|
|
29
|
+
* softwareVersion: d.softwareVersion,
|
|
30
|
+
* ipAddress: d.ipAddress,
|
|
31
|
+
* })));
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
function getDeviceList(args, opts) {
|
|
35
|
+
args = args || {};
|
|
36
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
37
|
+
return pulumi.runtime.invoke("scm:index/getDeviceList:getDeviceList", {
|
|
38
|
+
"device": args.device,
|
|
39
|
+
"folder": args.folder,
|
|
40
|
+
"limit": args.limit,
|
|
41
|
+
"name": args.name,
|
|
42
|
+
"offset": args.offset,
|
|
43
|
+
"pagination": args.pagination,
|
|
44
|
+
"snippet": args.snippet,
|
|
45
|
+
}, opts);
|
|
46
|
+
}
|
|
47
|
+
exports.getDeviceList = getDeviceList;
|
|
48
|
+
/**
|
|
49
|
+
* Retrieves a listing of config items.
|
|
50
|
+
*
|
|
51
|
+
* ## Example Usage
|
|
52
|
+
*
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
55
|
+
* import * as scm from "@pulumi/scm";
|
|
56
|
+
*
|
|
57
|
+
* // List all devices
|
|
58
|
+
* const allDevices = scm.getDeviceList({
|
|
59
|
+
* limit: 200,
|
|
60
|
+
* offset: 0,
|
|
61
|
+
* });
|
|
62
|
+
* export const allDeviceNames = allDevices.then(allDevices => .map(d => (d.name)));
|
|
63
|
+
* export const deviceDetails = allDevices.then(allDevices => .map(d => ({
|
|
64
|
+
* id: d.id,
|
|
65
|
+
* name: d.name,
|
|
66
|
+
* model: d.model,
|
|
67
|
+
* family: d.family,
|
|
68
|
+
* isConnected: d.isConnected,
|
|
69
|
+
* softwareVersion: d.softwareVersion,
|
|
70
|
+
* ipAddress: d.ipAddress,
|
|
71
|
+
* })));
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
function getDeviceListOutput(args, opts) {
|
|
75
|
+
args = args || {};
|
|
76
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
77
|
+
return pulumi.runtime.invokeOutput("scm:index/getDeviceList:getDeviceList", {
|
|
78
|
+
"device": args.device,
|
|
79
|
+
"folder": args.folder,
|
|
80
|
+
"limit": args.limit,
|
|
81
|
+
"name": args.name,
|
|
82
|
+
"offset": args.offset,
|
|
83
|
+
"pagination": args.pagination,
|
|
84
|
+
"snippet": args.snippet,
|
|
85
|
+
}, opts);
|
|
86
|
+
}
|
|
87
|
+
exports.getDeviceListOutput = getDeviceListOutput;
|
|
88
|
+
//# sourceMappingURL=getDeviceList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDeviceList.js","sourceRoot":"","sources":["../getDeviceList.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,sCAYC;AAqFD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAAiC;IACjG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uCAAuC,EAAE;QACxE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,kDAYC"}
|
|
@@ -13,14 +13,14 @@ import * as outputs from "./types/output";
|
|
|
13
13
|
* const allSharedDugs = scm.getDynamicUserGroupList({
|
|
14
14
|
* folder: "All",
|
|
15
15
|
* });
|
|
16
|
-
* export const dugResultsFromList = allSharedDugs.then(allSharedDugs => .reduce((__obj, group) => ({ ...__obj, [group.id]: group })));
|
|
16
|
+
* export const dugResultsFromList = allSharedDugs.then(allSharedDugs => .reduce((__obj, group) => ({ ...__obj, [group.id]: group }), {}));
|
|
17
17
|
* // This data source block shows an example of pagination.
|
|
18
18
|
* const paginatedDugsExample = scm.getDynamicUserGroupList({
|
|
19
19
|
* folder: "All",
|
|
20
20
|
* limit: 5,
|
|
21
21
|
* offset: 0,
|
|
22
22
|
* });
|
|
23
|
-
* export const paginatedDugs = paginatedDugsExample.then(paginatedDugsExample => .reduce((__obj, group) => ({ ...__obj, [group.id]: group })));
|
|
23
|
+
* export const paginatedDugs = paginatedDugsExample.then(paginatedDugsExample => .reduce((__obj, group) => ({ ...__obj, [group.id]: group }), {}));
|
|
24
24
|
* export const paginationDugsDetails = {
|
|
25
25
|
* totalObjectsInFolder: paginatedDugsExample.then(paginatedDugsExample => paginatedDugsExample.total),
|
|
26
26
|
* limitUsed: paginatedDugsExample.then(paginatedDugsExample => paginatedDugsExample.limit),
|
|
@@ -115,14 +115,14 @@ export interface GetDynamicUserGroupListResult {
|
|
|
115
115
|
* const allSharedDugs = scm.getDynamicUserGroupList({
|
|
116
116
|
* folder: "All",
|
|
117
117
|
* });
|
|
118
|
-
* export const dugResultsFromList = allSharedDugs.then(allSharedDugs => .reduce((__obj, group) => ({ ...__obj, [group.id]: group })));
|
|
118
|
+
* export const dugResultsFromList = allSharedDugs.then(allSharedDugs => .reduce((__obj, group) => ({ ...__obj, [group.id]: group }), {}));
|
|
119
119
|
* // This data source block shows an example of pagination.
|
|
120
120
|
* const paginatedDugsExample = scm.getDynamicUserGroupList({
|
|
121
121
|
* folder: "All",
|
|
122
122
|
* limit: 5,
|
|
123
123
|
* offset: 0,
|
|
124
124
|
* });
|
|
125
|
-
* export const paginatedDugs = paginatedDugsExample.then(paginatedDugsExample => .reduce((__obj, group) => ({ ...__obj, [group.id]: group })));
|
|
125
|
+
* export const paginatedDugs = paginatedDugsExample.then(paginatedDugsExample => .reduce((__obj, group) => ({ ...__obj, [group.id]: group }), {}));
|
|
126
126
|
* export const paginationDugsDetails = {
|
|
127
127
|
* totalObjectsInFolder: paginatedDugsExample.then(paginatedDugsExample => paginatedDugsExample.total),
|
|
128
128
|
* limitUsed: paginatedDugsExample.then(paginatedDugsExample => paginatedDugsExample.limit),
|
|
@@ -18,14 +18,14 @@ const utilities = require("./utilities");
|
|
|
18
18
|
* const allSharedDugs = scm.getDynamicUserGroupList({
|
|
19
19
|
* folder: "All",
|
|
20
20
|
* });
|
|
21
|
-
* export const dugResultsFromList = allSharedDugs.then(allSharedDugs => .reduce((__obj, group) => ({ ...__obj, [group.id]: group })));
|
|
21
|
+
* export const dugResultsFromList = allSharedDugs.then(allSharedDugs => .reduce((__obj, group) => ({ ...__obj, [group.id]: group }), {}));
|
|
22
22
|
* // This data source block shows an example of pagination.
|
|
23
23
|
* const paginatedDugsExample = scm.getDynamicUserGroupList({
|
|
24
24
|
* folder: "All",
|
|
25
25
|
* limit: 5,
|
|
26
26
|
* offset: 0,
|
|
27
27
|
* });
|
|
28
|
-
* export const paginatedDugs = paginatedDugsExample.then(paginatedDugsExample => .reduce((__obj, group) => ({ ...__obj, [group.id]: group })));
|
|
28
|
+
* export const paginatedDugs = paginatedDugsExample.then(paginatedDugsExample => .reduce((__obj, group) => ({ ...__obj, [group.id]: group }), {}));
|
|
29
29
|
* export const paginationDugsDetails = {
|
|
30
30
|
* totalObjectsInFolder: paginatedDugsExample.then(paginatedDugsExample => paginatedDugsExample.total),
|
|
31
31
|
* limitUsed: paginatedDugsExample.then(paginatedDugsExample => paginatedDugsExample.limit),
|
|
@@ -58,14 +58,14 @@ exports.getDynamicUserGroupList = getDynamicUserGroupList;
|
|
|
58
58
|
* const allSharedDugs = scm.getDynamicUserGroupList({
|
|
59
59
|
* folder: "All",
|
|
60
60
|
* });
|
|
61
|
-
* export const dugResultsFromList = allSharedDugs.then(allSharedDugs => .reduce((__obj, group) => ({ ...__obj, [group.id]: group })));
|
|
61
|
+
* export const dugResultsFromList = allSharedDugs.then(allSharedDugs => .reduce((__obj, group) => ({ ...__obj, [group.id]: group }), {}));
|
|
62
62
|
* // This data source block shows an example of pagination.
|
|
63
63
|
* const paginatedDugsExample = scm.getDynamicUserGroupList({
|
|
64
64
|
* folder: "All",
|
|
65
65
|
* limit: 5,
|
|
66
66
|
* offset: 0,
|
|
67
67
|
* });
|
|
68
|
-
* export const paginatedDugs = paginatedDugsExample.then(paginatedDugsExample => .reduce((__obj, group) => ({ ...__obj, [group.id]: group })));
|
|
68
|
+
* export const paginatedDugs = paginatedDugsExample.then(paginatedDugsExample => .reduce((__obj, group) => ({ ...__obj, [group.id]: group }), {}));
|
|
69
69
|
* export const paginationDugsDetails = {
|
|
70
70
|
* totalObjectsInFolder: paginatedDugsExample.then(paginatedDugsExample => paginatedDugsExample.total),
|
|
71
71
|
* limitUsed: paginatedDugsExample.then(paginatedDugsExample => paginatedDugsExample.limit),
|