@pulumi/scm 1.0.0-alpha.1762844275 → 1.0.0-alpha.1763189833

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/hipObject.d.ts CHANGED
@@ -5,6 +5,162 @@ import * as outputs from "./types/output";
5
5
  * HipObject resource
6
6
  *
7
7
  * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as scm from "@pulumi/scm";
12
+ *
13
+ * // This resource creates a comprehensive HIP Object with many criteria enabled.
14
+ * // This showcases the use of nested objects and lists of objects that the
15
+ * // corrected provider schema now supports.
16
+ * const scmHipObject1 = new scm.HipObject("scm_hip_object_1", {
17
+ * folder: "Shared",
18
+ * name: "scm_hip_object_1",
19
+ * description: "HIP object with multiple advanced criteria configured",
20
+ * antiMalware: {
21
+ * criteria: {
22
+ * isInstalled: true,
23
+ * realTimeProtection: "yes",
24
+ * virdefVersion: {
25
+ * notWithin: {
26
+ * days: 10,
27
+ * },
28
+ * },
29
+ * },
30
+ * vendors: [{
31
+ * name: "Microsoft",
32
+ * product: ["Microsoft Defender"],
33
+ * }],
34
+ * },
35
+ * dataLossPrevention: {
36
+ * criteria: {
37
+ * isInstalled: true,
38
+ * isEnabled: "yes",
39
+ * },
40
+ * vendors: [{
41
+ * name: "Symantec",
42
+ * }],
43
+ * },
44
+ * diskBackup: {
45
+ * criteria: {
46
+ * isInstalled: true,
47
+ * lastBackupTime: {
48
+ * within: {
49
+ * days: 7,
50
+ * },
51
+ * },
52
+ * },
53
+ * vendors: [{
54
+ * name: "Veeam",
55
+ * }],
56
+ * },
57
+ * diskEncryption: {
58
+ * criteria: {
59
+ * isInstalled: true,
60
+ * encryptedLocations: [
61
+ * {
62
+ * name: "C:\\",
63
+ * encryptionState: {
64
+ * is: "encrypted",
65
+ * },
66
+ * },
67
+ * {
68
+ * name: "D:\\Users\\",
69
+ * encryptionState: {
70
+ * isNot: "unencrypted",
71
+ * },
72
+ * },
73
+ * ],
74
+ * },
75
+ * vendors: [{
76
+ * name: "BitLocker",
77
+ * }],
78
+ * },
79
+ * firewall: {
80
+ * criteria: {
81
+ * isInstalled: true,
82
+ * isEnabled: "yes",
83
+ * },
84
+ * vendors: [{
85
+ * name: "Microsoft",
86
+ * }],
87
+ * },
88
+ * hostInfo: {
89
+ * criteria: {
90
+ * os: {
91
+ * contains: {
92
+ * microsoft: "Microsoft Windows 11",
93
+ * },
94
+ * },
95
+ * domain: {
96
+ * is: "corp.example.com",
97
+ * },
98
+ * },
99
+ * },
100
+ * mobileDevice: {
101
+ * criteria: {
102
+ * jailbroken: false,
103
+ * passcodeSet: true,
104
+ * applications: {
105
+ * hasUnmanagedApp: false,
106
+ * hasMalware: {
107
+ * no: {},
108
+ * },
109
+ * },
110
+ * },
111
+ * },
112
+ * networkInfo: {
113
+ * criteria: {
114
+ * network: {
115
+ * is: {
116
+ * wifi: {
117
+ * ssid: "Corporate-WLAN",
118
+ * },
119
+ * },
120
+ * },
121
+ * },
122
+ * },
123
+ * patchManagement: {
124
+ * criteria: {
125
+ * isInstalled: true,
126
+ * missingPatches: {
127
+ * check: "has-none",
128
+ * patches: [
129
+ * "KB4012212",
130
+ * "KB4012213",
131
+ * ],
132
+ * severity: {
133
+ * greaterThan: 5,
134
+ * },
135
+ * },
136
+ * },
137
+ * vendors: [{
138
+ * name: "Microsoft",
139
+ * }],
140
+ * },
141
+ * customChecks: {
142
+ * criteria: {
143
+ * processLists: [
144
+ * {
145
+ * name: "evil_process.exe",
146
+ * running: false,
147
+ * },
148
+ * {
149
+ * name: "corp_security_agent.exe",
150
+ * running: true,
151
+ * },
152
+ * ],
153
+ * registryKeys: [{
154
+ * name: "HKEY_LOCAL_MACHINE\\Software\\PaloAltoNetworks",
155
+ * registryValue: [{
156
+ * name: "AllowRemoteAccess",
157
+ * valueData: "false",
158
+ * }],
159
+ * }],
160
+ * },
161
+ * },
162
+ * });
163
+ * ```
8
164
  */
9
165
  export declare class HipObject extends pulumi.CustomResource {
10
166
  /**
package/hipObject.js CHANGED
@@ -9,6 +9,162 @@ const utilities = require("./utilities");
9
9
  * HipObject resource
10
10
  *
11
11
  * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as scm from "@pulumi/scm";
16
+ *
17
+ * // This resource creates a comprehensive HIP Object with many criteria enabled.
18
+ * // This showcases the use of nested objects and lists of objects that the
19
+ * // corrected provider schema now supports.
20
+ * const scmHipObject1 = new scm.HipObject("scm_hip_object_1", {
21
+ * folder: "Shared",
22
+ * name: "scm_hip_object_1",
23
+ * description: "HIP object with multiple advanced criteria configured",
24
+ * antiMalware: {
25
+ * criteria: {
26
+ * isInstalled: true,
27
+ * realTimeProtection: "yes",
28
+ * virdefVersion: {
29
+ * notWithin: {
30
+ * days: 10,
31
+ * },
32
+ * },
33
+ * },
34
+ * vendors: [{
35
+ * name: "Microsoft",
36
+ * product: ["Microsoft Defender"],
37
+ * }],
38
+ * },
39
+ * dataLossPrevention: {
40
+ * criteria: {
41
+ * isInstalled: true,
42
+ * isEnabled: "yes",
43
+ * },
44
+ * vendors: [{
45
+ * name: "Symantec",
46
+ * }],
47
+ * },
48
+ * diskBackup: {
49
+ * criteria: {
50
+ * isInstalled: true,
51
+ * lastBackupTime: {
52
+ * within: {
53
+ * days: 7,
54
+ * },
55
+ * },
56
+ * },
57
+ * vendors: [{
58
+ * name: "Veeam",
59
+ * }],
60
+ * },
61
+ * diskEncryption: {
62
+ * criteria: {
63
+ * isInstalled: true,
64
+ * encryptedLocations: [
65
+ * {
66
+ * name: "C:\\",
67
+ * encryptionState: {
68
+ * is: "encrypted",
69
+ * },
70
+ * },
71
+ * {
72
+ * name: "D:\\Users\\",
73
+ * encryptionState: {
74
+ * isNot: "unencrypted",
75
+ * },
76
+ * },
77
+ * ],
78
+ * },
79
+ * vendors: [{
80
+ * name: "BitLocker",
81
+ * }],
82
+ * },
83
+ * firewall: {
84
+ * criteria: {
85
+ * isInstalled: true,
86
+ * isEnabled: "yes",
87
+ * },
88
+ * vendors: [{
89
+ * name: "Microsoft",
90
+ * }],
91
+ * },
92
+ * hostInfo: {
93
+ * criteria: {
94
+ * os: {
95
+ * contains: {
96
+ * microsoft: "Microsoft Windows 11",
97
+ * },
98
+ * },
99
+ * domain: {
100
+ * is: "corp.example.com",
101
+ * },
102
+ * },
103
+ * },
104
+ * mobileDevice: {
105
+ * criteria: {
106
+ * jailbroken: false,
107
+ * passcodeSet: true,
108
+ * applications: {
109
+ * hasUnmanagedApp: false,
110
+ * hasMalware: {
111
+ * no: {},
112
+ * },
113
+ * },
114
+ * },
115
+ * },
116
+ * networkInfo: {
117
+ * criteria: {
118
+ * network: {
119
+ * is: {
120
+ * wifi: {
121
+ * ssid: "Corporate-WLAN",
122
+ * },
123
+ * },
124
+ * },
125
+ * },
126
+ * },
127
+ * patchManagement: {
128
+ * criteria: {
129
+ * isInstalled: true,
130
+ * missingPatches: {
131
+ * check: "has-none",
132
+ * patches: [
133
+ * "KB4012212",
134
+ * "KB4012213",
135
+ * ],
136
+ * severity: {
137
+ * greaterThan: 5,
138
+ * },
139
+ * },
140
+ * },
141
+ * vendors: [{
142
+ * name: "Microsoft",
143
+ * }],
144
+ * },
145
+ * customChecks: {
146
+ * criteria: {
147
+ * processLists: [
148
+ * {
149
+ * name: "evil_process.exe",
150
+ * running: false,
151
+ * },
152
+ * {
153
+ * name: "corp_security_agent.exe",
154
+ * running: true,
155
+ * },
156
+ * ],
157
+ * registryKeys: [{
158
+ * name: "HKEY_LOCAL_MACHINE\\Software\\PaloAltoNetworks",
159
+ * registryValue: [{
160
+ * name: "AllowRemoteAccess",
161
+ * valueData: "false",
162
+ * }],
163
+ * }],
164
+ * },
165
+ * },
166
+ * });
167
+ * ```
12
168
  */
13
169
  class HipObject extends pulumi.CustomResource {
14
170
  /**
package/hipObject.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"hipObject.js","sourceRoot":"","sources":["../hipOb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iB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAlJL,8BAmJC;AArIG,gBAAgB;AACO,sBAAY,GAAG,+BAA+B,CAAC"}
@@ -5,6 +5,154 @@ import * as outputs from "./types/output";
5
5
  * LogicalRouter resource
6
6
  *
7
7
  * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as scm from "@pulumi/scm";
12
+ *
13
+ * //
14
+ * // Creates various resources used for subsequent examples
15
+ * //
16
+ * const scmNextHop = new scm.Variable("scm_next_hop", {
17
+ * folder: "All",
18
+ * name: "$scm_next_hop",
19
+ * description: "Managed by Pulumi",
20
+ * type: "ip-netmask",
21
+ * value: "198.18.1.1",
22
+ * });
23
+ * const scmNextHopFqdn = new scm.Variable("scm_next_hop_fqdn", {
24
+ * folder: "All",
25
+ * name: "$scm_next_hop_fqdn",
26
+ * description: "Managed by Pulumi",
27
+ * type: "fqdn",
28
+ * value: "nexthop.example.com",
29
+ * });
30
+ * const scmEthernetInterface = new scm.EthernetInterface("scm_ethernet_interface", {
31
+ * name: "$scm_ethernet_interface",
32
+ * comment: "Managed by Pulumi",
33
+ * folder: "ngfw-shared",
34
+ * layer3: {
35
+ * ips: [{
36
+ * name: "198.18.11.1/24",
37
+ * }],
38
+ * },
39
+ * });
40
+ * const scmBgpInterface = new scm.EthernetInterface("scm_bgp_interface", {
41
+ * name: "$scm_bgp_interface",
42
+ * comment: "Managed by Pulumi",
43
+ * folder: "ngfw-shared",
44
+ * layer3: {
45
+ * ips: [{
46
+ * name: "198.18.12.1/24",
47
+ * }],
48
+ * },
49
+ * });
50
+ * const bgpAuthProfile = new scm.BgpAuthProfile("bgp_auth_profile", {
51
+ * folder: "ngfw-shared",
52
+ * name: "bgp_auth_profile",
53
+ * secret: "Example123",
54
+ * });
55
+ * //
56
+ * // Creates a logical router with static routes
57
+ * //
58
+ * const scmLogicalRouter = new scm.LogicalRouter("scm_logical_router", {
59
+ * folder: "ngfw-shared",
60
+ * name: "scm_logical_router",
61
+ * routingStack: "advanced",
62
+ * vrves: [{
63
+ * name: "default",
64
+ * "interface": ["$scm_ethernet_interface"],
65
+ * routingTable: {
66
+ * ip: {
67
+ * staticRoute: [
68
+ * {
69
+ * name: "default-route",
70
+ * destination: "0.0.0.0/0",
71
+ * preference: 10,
72
+ * nexthop: {
73
+ * ipAddress: "198.18.1.1",
74
+ * },
75
+ * },
76
+ * {
77
+ * name: "internal-route",
78
+ * "interface": "$scm_ethernet_interface",
79
+ * destination: "192.168.1.0/24",
80
+ * preference: 1,
81
+ * nexthop: {
82
+ * ipAddress: "$scm_next_hop",
83
+ * },
84
+ * },
85
+ * {
86
+ * name: "route-with-fqdn-nh",
87
+ * "interface": "$scm_ethernet_interface",
88
+ * destination: "192.168.2.0/24",
89
+ * preference: 1,
90
+ * nexthop: {
91
+ * fqdn: "$scm_next_hop",
92
+ * },
93
+ * bfd: {
94
+ * profile: "default",
95
+ * },
96
+ * },
97
+ * ],
98
+ * },
99
+ * },
100
+ * }],
101
+ * }, {
102
+ * dependsOn: [
103
+ * scmNextHop,
104
+ * scmNextHopFqdn,
105
+ * scmEthernetInterface,
106
+ * ],
107
+ * });
108
+ * //
109
+ * // Creates a logical router with bgp configuration
110
+ * //
111
+ * const scmBgpRouter = new scm.LogicalRouter("scm_bgp_router", {
112
+ * folder: "ngfw-shared",
113
+ * name: "scm_bgp_router",
114
+ * routingStack: "advanced",
115
+ * vrves: [{
116
+ * name: "default",
117
+ * "interface": ["$scm_bgp_interface"],
118
+ * bgp: {
119
+ * enable: true,
120
+ * routerId: "198.18.1.254",
121
+ * localAs: "65535",
122
+ * installRoute: true,
123
+ * rejectDefaultRoute: false,
124
+ * peerGroup: [{
125
+ * name: "prisma-access",
126
+ * addressFamily: {
127
+ * ipv4: "default",
128
+ * },
129
+ * connectionOptions: {
130
+ * authentication: "bgp_auth_profile",
131
+ * },
132
+ * peer: [{
133
+ * name: "primary-access-primary",
134
+ * enable: true,
135
+ * peerAs: 65515,
136
+ * peerAddress: {
137
+ * ip: "198.18.1.100",
138
+ * },
139
+ * localAddress: {
140
+ * "interface": "$scm_bgp_interface",
141
+ * },
142
+ * connectionOptions: {
143
+ * multihop: "3",
144
+ * },
145
+ * }],
146
+ * }],
147
+ * },
148
+ * }],
149
+ * }, {
150
+ * dependsOn: [
151
+ * scmBgpInterface,
152
+ * bgpAuthProfile,
153
+ * ],
154
+ * });
155
+ * ```
8
156
  */
9
157
  export declare class LogicalRouter extends pulumi.CustomResource {
10
158
  /**
package/logicalRouter.js CHANGED
@@ -9,6 +9,154 @@ const utilities = require("./utilities");
9
9
  * LogicalRouter resource
10
10
  *
11
11
  * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as scm from "@pulumi/scm";
16
+ *
17
+ * //
18
+ * // Creates various resources used for subsequent examples
19
+ * //
20
+ * const scmNextHop = new scm.Variable("scm_next_hop", {
21
+ * folder: "All",
22
+ * name: "$scm_next_hop",
23
+ * description: "Managed by Pulumi",
24
+ * type: "ip-netmask",
25
+ * value: "198.18.1.1",
26
+ * });
27
+ * const scmNextHopFqdn = new scm.Variable("scm_next_hop_fqdn", {
28
+ * folder: "All",
29
+ * name: "$scm_next_hop_fqdn",
30
+ * description: "Managed by Pulumi",
31
+ * type: "fqdn",
32
+ * value: "nexthop.example.com",
33
+ * });
34
+ * const scmEthernetInterface = new scm.EthernetInterface("scm_ethernet_interface", {
35
+ * name: "$scm_ethernet_interface",
36
+ * comment: "Managed by Pulumi",
37
+ * folder: "ngfw-shared",
38
+ * layer3: {
39
+ * ips: [{
40
+ * name: "198.18.11.1/24",
41
+ * }],
42
+ * },
43
+ * });
44
+ * const scmBgpInterface = new scm.EthernetInterface("scm_bgp_interface", {
45
+ * name: "$scm_bgp_interface",
46
+ * comment: "Managed by Pulumi",
47
+ * folder: "ngfw-shared",
48
+ * layer3: {
49
+ * ips: [{
50
+ * name: "198.18.12.1/24",
51
+ * }],
52
+ * },
53
+ * });
54
+ * const bgpAuthProfile = new scm.BgpAuthProfile("bgp_auth_profile", {
55
+ * folder: "ngfw-shared",
56
+ * name: "bgp_auth_profile",
57
+ * secret: "Example123",
58
+ * });
59
+ * //
60
+ * // Creates a logical router with static routes
61
+ * //
62
+ * const scmLogicalRouter = new scm.LogicalRouter("scm_logical_router", {
63
+ * folder: "ngfw-shared",
64
+ * name: "scm_logical_router",
65
+ * routingStack: "advanced",
66
+ * vrves: [{
67
+ * name: "default",
68
+ * "interface": ["$scm_ethernet_interface"],
69
+ * routingTable: {
70
+ * ip: {
71
+ * staticRoute: [
72
+ * {
73
+ * name: "default-route",
74
+ * destination: "0.0.0.0/0",
75
+ * preference: 10,
76
+ * nexthop: {
77
+ * ipAddress: "198.18.1.1",
78
+ * },
79
+ * },
80
+ * {
81
+ * name: "internal-route",
82
+ * "interface": "$scm_ethernet_interface",
83
+ * destination: "192.168.1.0/24",
84
+ * preference: 1,
85
+ * nexthop: {
86
+ * ipAddress: "$scm_next_hop",
87
+ * },
88
+ * },
89
+ * {
90
+ * name: "route-with-fqdn-nh",
91
+ * "interface": "$scm_ethernet_interface",
92
+ * destination: "192.168.2.0/24",
93
+ * preference: 1,
94
+ * nexthop: {
95
+ * fqdn: "$scm_next_hop",
96
+ * },
97
+ * bfd: {
98
+ * profile: "default",
99
+ * },
100
+ * },
101
+ * ],
102
+ * },
103
+ * },
104
+ * }],
105
+ * }, {
106
+ * dependsOn: [
107
+ * scmNextHop,
108
+ * scmNextHopFqdn,
109
+ * scmEthernetInterface,
110
+ * ],
111
+ * });
112
+ * //
113
+ * // Creates a logical router with bgp configuration
114
+ * //
115
+ * const scmBgpRouter = new scm.LogicalRouter("scm_bgp_router", {
116
+ * folder: "ngfw-shared",
117
+ * name: "scm_bgp_router",
118
+ * routingStack: "advanced",
119
+ * vrves: [{
120
+ * name: "default",
121
+ * "interface": ["$scm_bgp_interface"],
122
+ * bgp: {
123
+ * enable: true,
124
+ * routerId: "198.18.1.254",
125
+ * localAs: "65535",
126
+ * installRoute: true,
127
+ * rejectDefaultRoute: false,
128
+ * peerGroup: [{
129
+ * name: "prisma-access",
130
+ * addressFamily: {
131
+ * ipv4: "default",
132
+ * },
133
+ * connectionOptions: {
134
+ * authentication: "bgp_auth_profile",
135
+ * },
136
+ * peer: [{
137
+ * name: "primary-access-primary",
138
+ * enable: true,
139
+ * peerAs: 65515,
140
+ * peerAddress: {
141
+ * ip: "198.18.1.100",
142
+ * },
143
+ * localAddress: {
144
+ * "interface": "$scm_bgp_interface",
145
+ * },
146
+ * connectionOptions: {
147
+ * multihop: "3",
148
+ * },
149
+ * }],
150
+ * }],
151
+ * },
152
+ * }],
153
+ * }, {
154
+ * dependsOn: [
155
+ * scmBgpInterface,
156
+ * bgpAuthProfile,
157
+ * ],
158
+ * });
159
+ * ```
12
160
  */
13
161
  class LogicalRouter extends pulumi.CustomResource {
14
162
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"logicalRouter.js","sourceRoot":"","sources":["../logicalRouter.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;GAIG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,E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AAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAtFL,sCAuFC;AAzEG,gBAAgB;AACO,0BAAY,GAAG,uCAAuC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/scm",
3
- "version": "1.0.0-alpha.1762844275",
3
+ "version": "1.0.0-alpha.1763189833",
4
4
  "description": "A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -25,6 +25,6 @@
25
25
  "pulumi": {
26
26
  "resource": true,
27
27
  "name": "scm",
28
- "version": "1.0.0-alpha.1762844275"
28
+ "version": "1.0.0-alpha.1763189833"
29
29
  }
30
30
  }