pulumi-juniper-mist 0.6.3__py3-none-any.whl → 0.7.0a1763187446__py3-none-any.whl

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.
@@ -173,6 +173,39 @@ class Alarmtemplate(pulumi.CustomResource):
173
173
 
174
174
  It is possible to use the `get_const_alarms` data source to get a list of the available alarms
175
175
 
176
+ ## Example Usage
177
+
178
+ ```python
179
+ import pulumi
180
+ import pulumi_juniper_mist as junipermist
181
+
182
+ alarmtemplate_one = junipermist.org.Alarmtemplate("alarmtemplate_one",
183
+ org_id=terraform_test["id"],
184
+ name="alarmtemplate_one",
185
+ delivery={
186
+ "enabled": True,
187
+ "to_org_admins": True,
188
+ "additional_emails": ["admin@mycorp.net"],
189
+ },
190
+ rules={
191
+ "health_check_failed": {
192
+ "enabled": True,
193
+ },
194
+ "insufficient_capacity": {
195
+ "enabled": True,
196
+ },
197
+ "insufficient_coverage": {
198
+ "enabled": True,
199
+ },
200
+ "infra_arp_failure": {
201
+ "enabled": True,
202
+ },
203
+ "arp_failure": {
204
+ "enabled": True,
205
+ },
206
+ })
207
+ ```
208
+
176
209
  ## Import
177
210
 
178
211
  Using `pulumi import`, import `mist_org_alarmtemplate` with:
@@ -206,6 +239,39 @@ class Alarmtemplate(pulumi.CustomResource):
206
239
 
207
240
  It is possible to use the `get_const_alarms` data source to get a list of the available alarms
208
241
 
242
+ ## Example Usage
243
+
244
+ ```python
245
+ import pulumi
246
+ import pulumi_juniper_mist as junipermist
247
+
248
+ alarmtemplate_one = junipermist.org.Alarmtemplate("alarmtemplate_one",
249
+ org_id=terraform_test["id"],
250
+ name="alarmtemplate_one",
251
+ delivery={
252
+ "enabled": True,
253
+ "to_org_admins": True,
254
+ "additional_emails": ["admin@mycorp.net"],
255
+ },
256
+ rules={
257
+ "health_check_failed": {
258
+ "enabled": True,
259
+ },
260
+ "insufficient_capacity": {
261
+ "enabled": True,
262
+ },
263
+ "insufficient_coverage": {
264
+ "enabled": True,
265
+ },
266
+ "infra_arp_failure": {
267
+ "enabled": True,
268
+ },
269
+ "arp_failure": {
270
+ "enabled": True,
271
+ },
272
+ })
273
+ ```
274
+
209
275
  ## Import
210
276
 
211
277
  Using `pulumi import`, import `mist_org_alarmtemplate` with:
@@ -198,6 +198,30 @@ class Apitoken(pulumi.CustomResource):
198
198
  Organization tokens support different privileges and can only be used for the specific organization they are generated for.
199
199
  Rate limiting is done on an individual token basis, so if one token reaches its rate limit, it does not impact other tokens.
200
200
 
201
+ ## Example Usage
202
+
203
+ ```python
204
+ import pulumi
205
+ import pulumi_juniper_mist as junipermist
206
+
207
+ apitoken_one = junipermist.org.Apitoken("apitoken_one",
208
+ org_id=terraform_test["id"],
209
+ name="apitoken_one",
210
+ privileges=[
211
+ {
212
+ "scope": "site",
213
+ "role": "admin",
214
+ "site_id": "d7c8364e-xxxx-xxxx-xxxx-37eff0475b03",
215
+ },
216
+ {
217
+ "scope": "site",
218
+ "role": "read",
219
+ "site_id": "08f8851b-xxxx-xxxx-xxxx-9ebb5aa62de4",
220
+ },
221
+ ],
222
+ src_ips=["1.2.3.4/32"])
223
+ ```
224
+
201
225
  :param str resource_name: The name of the resource.
202
226
  :param pulumi.ResourceOptions opts: Options for the resource.
203
227
  :param pulumi.Input[_builtins.str] name: Name of the token
@@ -217,6 +241,30 @@ class Apitoken(pulumi.CustomResource):
217
241
  Organization tokens support different privileges and can only be used for the specific organization they are generated for.
218
242
  Rate limiting is done on an individual token basis, so if one token reaches its rate limit, it does not impact other tokens.
219
243
 
244
+ ## Example Usage
245
+
246
+ ```python
247
+ import pulumi
248
+ import pulumi_juniper_mist as junipermist
249
+
250
+ apitoken_one = junipermist.org.Apitoken("apitoken_one",
251
+ org_id=terraform_test["id"],
252
+ name="apitoken_one",
253
+ privileges=[
254
+ {
255
+ "scope": "site",
256
+ "role": "admin",
257
+ "site_id": "d7c8364e-xxxx-xxxx-xxxx-37eff0475b03",
258
+ },
259
+ {
260
+ "scope": "site",
261
+ "role": "read",
262
+ "site_id": "08f8851b-xxxx-xxxx-xxxx-9ebb5aa62de4",
263
+ },
264
+ ],
265
+ src_ips=["1.2.3.4/32"])
266
+ ```
267
+
220
268
  :param str resource_name: The name of the resource.
221
269
  :param ApitokenArgs args: The arguments to use to populate this resource's properties.
222
270
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -841,6 +841,89 @@ class DeviceprofileGateway(pulumi.CustomResource):
841
841
 
842
842
  The Gateway Device Profile can be assigned to a gateway with the `org.DeviceprofileAssign` resource.
843
843
 
844
+ ## Example Usage
845
+
846
+ ```python
847
+ import pulumi
848
+ import pulumi_juniper_mist as junipermist
849
+
850
+ deviceprofile_gw_one = junipermist.org.DeviceprofileGateway("deviceprofile_gw_one",
851
+ name="deviceprofile_gw_one",
852
+ org_id=terraform_test["id"],
853
+ port_config={
854
+ "ge-0/0/3": {
855
+ "name": "FTTH",
856
+ "usage": "wan",
857
+ "aggregated": False,
858
+ "redundant": False,
859
+ "critical": False,
860
+ "wan_type": "broadband",
861
+ "ip_config": {
862
+ "type": "static",
863
+ "ip": "192.168.1.8",
864
+ "netmask": "/24",
865
+ "gateway": "192.168.1.1",
866
+ },
867
+ "disable_autoneg": False,
868
+ "speed": "auto",
869
+ "duplex": "auto",
870
+ "wan_source_nat": {
871
+ "disabled": False,
872
+ },
873
+ "vpn_paths": {
874
+ "SSR_HUB_DC-MPLS.OrgOverlay": {
875
+ "key": 0,
876
+ "role": "spoke",
877
+ "bfd_profile": "broadband",
878
+ },
879
+ },
880
+ },
881
+ "ge-0/0/5": {
882
+ "usage": "lan",
883
+ "critical": False,
884
+ "aggregated": True,
885
+ "ae_disable_lacp": False,
886
+ "ae_lacp_force_up": True,
887
+ "ae_idx": "0",
888
+ "redundant": False,
889
+ "networks": [
890
+ "PRD-Core",
891
+ "PRD-Mgmt",
892
+ "PRD-Lab",
893
+ ],
894
+ },
895
+ },
896
+ ip_configs={
897
+ "PRD-Core": {
898
+ "type": "static",
899
+ "ip": "10.3.100.9",
900
+ "netmask": "/24",
901
+ },
902
+ "PRD-Mgmt": {
903
+ "type": "static",
904
+ "ip": "10.3.172.1",
905
+ "netmask": "/24",
906
+ },
907
+ "PRD-Lab": {
908
+ "type": "static",
909
+ "ip": "10.3.171.1",
910
+ "netmask": "/24",
911
+ },
912
+ },
913
+ service_policies=[{
914
+ "name": "Policy-14",
915
+ "tenants": ["PRD-Core"],
916
+ "services": ["any"],
917
+ "action": "allow",
918
+ "path_preference": "HUB",
919
+ "idp": {
920
+ "enabled": True,
921
+ "profile": "critical",
922
+ "alert_only": False,
923
+ },
924
+ }])
925
+ ```
926
+
844
927
  ## Import
845
928
 
846
929
  Using `pulumi import`, import `mist_org_deviceprofile_gateway` with:
@@ -883,6 +966,89 @@ class DeviceprofileGateway(pulumi.CustomResource):
883
966
 
884
967
  The Gateway Device Profile can be assigned to a gateway with the `org.DeviceprofileAssign` resource.
885
968
 
969
+ ## Example Usage
970
+
971
+ ```python
972
+ import pulumi
973
+ import pulumi_juniper_mist as junipermist
974
+
975
+ deviceprofile_gw_one = junipermist.org.DeviceprofileGateway("deviceprofile_gw_one",
976
+ name="deviceprofile_gw_one",
977
+ org_id=terraform_test["id"],
978
+ port_config={
979
+ "ge-0/0/3": {
980
+ "name": "FTTH",
981
+ "usage": "wan",
982
+ "aggregated": False,
983
+ "redundant": False,
984
+ "critical": False,
985
+ "wan_type": "broadband",
986
+ "ip_config": {
987
+ "type": "static",
988
+ "ip": "192.168.1.8",
989
+ "netmask": "/24",
990
+ "gateway": "192.168.1.1",
991
+ },
992
+ "disable_autoneg": False,
993
+ "speed": "auto",
994
+ "duplex": "auto",
995
+ "wan_source_nat": {
996
+ "disabled": False,
997
+ },
998
+ "vpn_paths": {
999
+ "SSR_HUB_DC-MPLS.OrgOverlay": {
1000
+ "key": 0,
1001
+ "role": "spoke",
1002
+ "bfd_profile": "broadband",
1003
+ },
1004
+ },
1005
+ },
1006
+ "ge-0/0/5": {
1007
+ "usage": "lan",
1008
+ "critical": False,
1009
+ "aggregated": True,
1010
+ "ae_disable_lacp": False,
1011
+ "ae_lacp_force_up": True,
1012
+ "ae_idx": "0",
1013
+ "redundant": False,
1014
+ "networks": [
1015
+ "PRD-Core",
1016
+ "PRD-Mgmt",
1017
+ "PRD-Lab",
1018
+ ],
1019
+ },
1020
+ },
1021
+ ip_configs={
1022
+ "PRD-Core": {
1023
+ "type": "static",
1024
+ "ip": "10.3.100.9",
1025
+ "netmask": "/24",
1026
+ },
1027
+ "PRD-Mgmt": {
1028
+ "type": "static",
1029
+ "ip": "10.3.172.1",
1030
+ "netmask": "/24",
1031
+ },
1032
+ "PRD-Lab": {
1033
+ "type": "static",
1034
+ "ip": "10.3.171.1",
1035
+ "netmask": "/24",
1036
+ },
1037
+ },
1038
+ service_policies=[{
1039
+ "name": "Policy-14",
1040
+ "tenants": ["PRD-Core"],
1041
+ "services": ["any"],
1042
+ "action": "allow",
1043
+ "path_preference": "HUB",
1044
+ "idp": {
1045
+ "enabled": True,
1046
+ "profile": "critical",
1047
+ "alert_only": False,
1048
+ },
1049
+ }])
1050
+ ```
1051
+
886
1052
  ## Import
887
1053
 
888
1054
  Using `pulumi import`, import `mist_org_deviceprofile_gateway` with:
@@ -195,6 +195,59 @@ class EvpnTopology(pulumi.CustomResource):
195
195
 
196
196
  > To create or manage your EVPN Topology with the Mist Provider, please refer to the `How To - EVPN Topology` Guide.
197
197
 
198
+ ## Example Usage
199
+
200
+ ```python
201
+ import pulumi
202
+ import pulumi_juniper_mist as junipermist
203
+
204
+ evpn_one = junipermist.org.EvpnTopology("evpn_one",
205
+ org_id=terraform_test["id"],
206
+ name="evpn_one",
207
+ evpn_options={
208
+ "routed_at": "core",
209
+ "overlay": {
210
+ "as_": 65000,
211
+ },
212
+ "core_as_border": True,
213
+ "auto_loopback_subnet": "172.16.192.0/24",
214
+ "auto_loopback_subnet6": "fd33:ab00:2::/64",
215
+ "per_vlan_vga_v4_mac": False,
216
+ "underlay": {
217
+ "as_base": 65001,
218
+ "use_ipv6": False,
219
+ "subnet": "10.255.240.0/20",
220
+ },
221
+ "auto_router_id_subnet": "172.16.254.0/23",
222
+ },
223
+ switches=[
224
+ {
225
+ "mac": "020004000001",
226
+ "role": "core",
227
+ },
228
+ {
229
+ "mac": "02000400002",
230
+ "role": "core",
231
+ },
232
+ {
233
+ "mac": "02000400003",
234
+ "role": "distribution",
235
+ },
236
+ {
237
+ "mac": "02000400004",
238
+ "role": "distribution",
239
+ },
240
+ {
241
+ "mac": "02000400005",
242
+ "role": "access",
243
+ },
244
+ {
245
+ "mac": "02000400006",
246
+ "role": "access",
247
+ },
248
+ ])
249
+ ```
250
+
198
251
  ## Import
199
252
 
200
253
  Using `pulumi import`, import `mist_org_evpn_topology` with:
@@ -224,6 +277,59 @@ class EvpnTopology(pulumi.CustomResource):
224
277
 
225
278
  > To create or manage your EVPN Topology with the Mist Provider, please refer to the `How To - EVPN Topology` Guide.
226
279
 
280
+ ## Example Usage
281
+
282
+ ```python
283
+ import pulumi
284
+ import pulumi_juniper_mist as junipermist
285
+
286
+ evpn_one = junipermist.org.EvpnTopology("evpn_one",
287
+ org_id=terraform_test["id"],
288
+ name="evpn_one",
289
+ evpn_options={
290
+ "routed_at": "core",
291
+ "overlay": {
292
+ "as_": 65000,
293
+ },
294
+ "core_as_border": True,
295
+ "auto_loopback_subnet": "172.16.192.0/24",
296
+ "auto_loopback_subnet6": "fd33:ab00:2::/64",
297
+ "per_vlan_vga_v4_mac": False,
298
+ "underlay": {
299
+ "as_base": 65001,
300
+ "use_ipv6": False,
301
+ "subnet": "10.255.240.0/20",
302
+ },
303
+ "auto_router_id_subnet": "172.16.254.0/23",
304
+ },
305
+ switches=[
306
+ {
307
+ "mac": "020004000001",
308
+ "role": "core",
309
+ },
310
+ {
311
+ "mac": "02000400002",
312
+ "role": "core",
313
+ },
314
+ {
315
+ "mac": "02000400003",
316
+ "role": "distribution",
317
+ },
318
+ {
319
+ "mac": "02000400004",
320
+ "role": "distribution",
321
+ },
322
+ {
323
+ "mac": "02000400005",
324
+ "role": "access",
325
+ },
326
+ {
327
+ "mac": "02000400006",
328
+ "role": "access",
329
+ },
330
+ ])
331
+ ```
332
+
227
333
  ## Import
228
334
 
229
335
  Using `pulumi import`, import `mist_org_evpn_topology` with:
@@ -856,6 +856,90 @@ class Gatewaytemplate(pulumi.CustomResource):
856
856
 
857
857
  A Gateway template is used to define the static ip address and subnet mask of the hub device, along with the gateway. It also allows for the selection of options such as enabling source nat and overriding the public ip for the hub if needed. the endpoint selected in the gateway template ties the hub and spoke devices together and creates the auto-vpn tunnel.
858
858
 
859
+ ## Example Usage
860
+
861
+ ```python
862
+ import pulumi
863
+ import pulumi_juniper_mist as junipermist
864
+
865
+ gatewaytemplate_one = junipermist.org.Gatewaytemplate("gatewaytemplate_one",
866
+ type="spoke",
867
+ name="gatewaytemplate_one",
868
+ org_id=terraform_test["id"],
869
+ port_config={
870
+ "ge-0/0/3": {
871
+ "name": "FTTH",
872
+ "usage": "wan",
873
+ "aggregated": False,
874
+ "redundant": False,
875
+ "critical": False,
876
+ "wan_type": "broadband",
877
+ "ip_config": {
878
+ "type": "static",
879
+ "ip": "192.168.1.8",
880
+ "netmask": "/24",
881
+ "gateway": "192.168.1.1",
882
+ },
883
+ "disable_autoneg": False,
884
+ "speed": "auto",
885
+ "duplex": "auto",
886
+ "wan_source_nat": {
887
+ "disabled": False,
888
+ },
889
+ "vpn_paths": {
890
+ "SSR_HUB_DC-MPLS.OrgOverlay": {
891
+ "key": 0,
892
+ "role": "spoke",
893
+ "bfd_profile": "broadband",
894
+ },
895
+ },
896
+ },
897
+ "ge-0/0/5": {
898
+ "usage": "lan",
899
+ "critical": False,
900
+ "aggregated": True,
901
+ "ae_disable_lacp": False,
902
+ "ae_lacp_force_up": True,
903
+ "ae_idx": "0",
904
+ "redundant": False,
905
+ "networks": [
906
+ "PRD-Core",
907
+ "PRD-Mgmt",
908
+ "PRD-Lab",
909
+ ],
910
+ },
911
+ },
912
+ ip_configs={
913
+ "PRD-Core": {
914
+ "type": "static",
915
+ "ip": "10.3.100.9",
916
+ "netmask": "/24",
917
+ },
918
+ "PRD-Mgmt": {
919
+ "type": "static",
920
+ "ip": "10.3.172.1",
921
+ "netmask": "/24",
922
+ },
923
+ "PRD-Lab": {
924
+ "type": "static",
925
+ "ip": "10.3.171.1",
926
+ "netmask": "/24",
927
+ },
928
+ },
929
+ service_policies=[{
930
+ "name": "Policy-14",
931
+ "tenants": ["PRD-Core"],
932
+ "services": ["any"],
933
+ "action": "allow",
934
+ "path_preference": "HUB",
935
+ "idp": {
936
+ "enabled": True,
937
+ "profile": "critical",
938
+ "alert_only": False,
939
+ },
940
+ }])
941
+ ```
942
+
859
943
  ## Import
860
944
 
861
945
  Using `pulumi import`, import `mist_org_gatewaytemplate` with:
@@ -897,6 +981,90 @@ class Gatewaytemplate(pulumi.CustomResource):
897
981
 
898
982
  A Gateway template is used to define the static ip address and subnet mask of the hub device, along with the gateway. It also allows for the selection of options such as enabling source nat and overriding the public ip for the hub if needed. the endpoint selected in the gateway template ties the hub and spoke devices together and creates the auto-vpn tunnel.
899
983
 
984
+ ## Example Usage
985
+
986
+ ```python
987
+ import pulumi
988
+ import pulumi_juniper_mist as junipermist
989
+
990
+ gatewaytemplate_one = junipermist.org.Gatewaytemplate("gatewaytemplate_one",
991
+ type="spoke",
992
+ name="gatewaytemplate_one",
993
+ org_id=terraform_test["id"],
994
+ port_config={
995
+ "ge-0/0/3": {
996
+ "name": "FTTH",
997
+ "usage": "wan",
998
+ "aggregated": False,
999
+ "redundant": False,
1000
+ "critical": False,
1001
+ "wan_type": "broadband",
1002
+ "ip_config": {
1003
+ "type": "static",
1004
+ "ip": "192.168.1.8",
1005
+ "netmask": "/24",
1006
+ "gateway": "192.168.1.1",
1007
+ },
1008
+ "disable_autoneg": False,
1009
+ "speed": "auto",
1010
+ "duplex": "auto",
1011
+ "wan_source_nat": {
1012
+ "disabled": False,
1013
+ },
1014
+ "vpn_paths": {
1015
+ "SSR_HUB_DC-MPLS.OrgOverlay": {
1016
+ "key": 0,
1017
+ "role": "spoke",
1018
+ "bfd_profile": "broadband",
1019
+ },
1020
+ },
1021
+ },
1022
+ "ge-0/0/5": {
1023
+ "usage": "lan",
1024
+ "critical": False,
1025
+ "aggregated": True,
1026
+ "ae_disable_lacp": False,
1027
+ "ae_lacp_force_up": True,
1028
+ "ae_idx": "0",
1029
+ "redundant": False,
1030
+ "networks": [
1031
+ "PRD-Core",
1032
+ "PRD-Mgmt",
1033
+ "PRD-Lab",
1034
+ ],
1035
+ },
1036
+ },
1037
+ ip_configs={
1038
+ "PRD-Core": {
1039
+ "type": "static",
1040
+ "ip": "10.3.100.9",
1041
+ "netmask": "/24",
1042
+ },
1043
+ "PRD-Mgmt": {
1044
+ "type": "static",
1045
+ "ip": "10.3.172.1",
1046
+ "netmask": "/24",
1047
+ },
1048
+ "PRD-Lab": {
1049
+ "type": "static",
1050
+ "ip": "10.3.171.1",
1051
+ "netmask": "/24",
1052
+ },
1053
+ },
1054
+ service_policies=[{
1055
+ "name": "Policy-14",
1056
+ "tenants": ["PRD-Core"],
1057
+ "services": ["any"],
1058
+ "action": "allow",
1059
+ "path_preference": "HUB",
1060
+ "idp": {
1061
+ "enabled": True,
1062
+ "profile": "critical",
1063
+ "alert_only": False,
1064
+ },
1065
+ }])
1066
+ ```
1067
+
900
1068
  ## Import
901
1069
 
902
1070
  Using `pulumi import`, import `mist_org_gatewaytemplate` with: