-
Notifications
You must be signed in to change notification settings - Fork 1
/
managedswitch.go
1292 lines (1175 loc) · 77.4 KB
/
managedswitch.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package switchcontroller
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/internal"
)
// Configure FortiSwitch devices that are managed by this FortiGate.
//
// ## Import
//
// SwitchController ManagedSwitch can be imported using any of these accepted formats:
//
// ```sh
// $ pulumi import fortios:switchcontroller/managedswitch:Managedswitch labelname {{switch_id}}
// ```
//
// If you do not want to import arguments of block:
//
// $ export "FORTIOS_IMPORT_TABLE"="false"
//
// ```sh
// $ pulumi import fortios:switchcontroller/managedswitch:Managedswitch labelname {{switch_id}}
// ```
//
// $ unset "FORTIOS_IMPORT_TABLE"
type Managedswitch struct {
pulumi.CustomResourceState
// FortiSwitch access profile.
AccessProfile pulumi.StringOutput `pulumi:"accessProfile"`
// Configuration method to edit FortiSwitch commands to be pushed to this FortiSwitch device upon rebooting the FortiGate switch controller or the FortiSwitch. The structure of `customCommand` block is documented below.
CustomCommands ManagedswitchCustomCommandArrayOutput `pulumi:"customCommands"`
// Delayed restart triggered for this FortiSwitch.
DelayedRestartTrigger pulumi.IntOutput `pulumi:"delayedRestartTrigger"`
// Description.
Description pulumi.StringOutput `pulumi:"description"`
// DHCP snooping server access list. Valid values: `global`, `enable`, `disable`.
DhcpServerAccessList pulumi.StringOutput `pulumi:"dhcpServerAccessList"`
// Configure FortiSwitch DHCP snooping static clients. The structure of `dhcpSnoopingStaticClient` block is documented below.
DhcpSnoopingStaticClients ManagedswitchDhcpSnoopingStaticClientArrayOutput `pulumi:"dhcpSnoopingStaticClients"`
// Directly connected FortiSwitch.
DirectlyConnected pulumi.IntOutput `pulumi:"directlyConnected"`
// List of features this FortiSwitch supports (not configurable) that is sent to the FortiGate device for subsequent configuration initiated by the FortiGate device.
DynamicCapability pulumi.IntOutput `pulumi:"dynamicCapability"`
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
DynamicSortSubtable pulumi.StringPtrOutput `pulumi:"dynamicSortSubtable"`
// Dynamically discovered FortiSwitch.
DynamicallyDiscovered pulumi.IntOutput `pulumi:"dynamicallyDiscovered"`
// Enable/disable provisioning of firmware to FortiSwitches on join connection. Valid values: `enable`, `disable`.
FirmwareProvision pulumi.StringOutput `pulumi:"firmwareProvision"`
// Enable/disable one-time automatic provisioning of the latest firmware version. Valid values: `disable`, `once`.
FirmwareProvisionLatest pulumi.StringOutput `pulumi:"firmwareProvisionLatest"`
// Firmware version to provision to this FortiSwitch on bootup (major.minor.build, i.e. 6.2.1234).
FirmwareProvisionVersion pulumi.StringOutput `pulumi:"firmwareProvisionVersion"`
// Flow-tracking netflow ipfix switch identity in hex format(00000000-FFFFFFFF default=0).
FlowIdentity pulumi.StringOutput `pulumi:"flowIdentity"`
// FortiSwitch WAN1 admin status; enable to authorize the FortiSwitch as a managed switch. Valid values: `discovered`, `disable`, `enable`.
FswWan1Admin pulumi.StringOutput `pulumi:"fswWan1Admin"`
// Fortiswitch WAN1 peer port.
FswWan1Peer pulumi.StringOutput `pulumi:"fswWan1Peer"`
// FortiSwitch WAN2 admin status; enable to authorize the FortiSwitch as a managed switch. Valid values: `discovered`, `disable`, `enable`.
FswWan2Admin pulumi.StringOutput `pulumi:"fswWan2Admin"`
// FortiSwitch WAN2 peer port.
FswWan2Peer pulumi.StringOutput `pulumi:"fswWan2Peer"`
// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
GetAllTables pulumi.StringPtrOutput `pulumi:"getAllTables"`
// Configure FortiSwitch IGMP snooping global settings. The structure of `igmpSnooping` block is documented below.
IgmpSnooping ManagedswitchIgmpSnoopingOutput `pulumi:"igmpSnooping"`
// IP source guard. The structure of `ipSourceGuard` block is documented below.
IpSourceGuards ManagedswitchIpSourceGuardArrayOutput `pulumi:"ipSourceGuards"`
// Layer 3 management discovered.
L3Discovered pulumi.IntOutput `pulumi:"l3Discovered"`
// FortiSwitch maximum allowed trunk members.
MaxAllowedTrunkMembers pulumi.IntOutput `pulumi:"maxAllowedTrunkMembers"`
// Enable/disable MCLAG IGMP-snooping awareness. Valid values: `enable`, `disable`.
MclagIgmpSnoopingAware pulumi.StringOutput `pulumi:"mclagIgmpSnoopingAware"`
// FortiLink management mode.
MgmtMode pulumi.IntOutput `pulumi:"mgmtMode"`
// Configuration method to edit FortiSwitch packet mirror. The structure of `mirror` block is documented below.
Mirrors ManagedswitchMirrorArrayOutput `pulumi:"mirrors"`
// Configuration method to edit FortiSwitch 802.1X global settings. The structure of `n8021xSettings` block is documented below.
N8021xSettings ManagedswitchN8021xSettingsOutput `pulumi:"n8021xSettings"`
// Managed-switch name.
Name pulumi.StringOutput `pulumi:"name"`
// Enable/disable overriding the global SNMP communities. Valid values: `enable`, `disable`.
OverrideSnmpCommunity pulumi.StringOutput `pulumi:"overrideSnmpCommunity"`
// Enable/disable overriding the global SNMP system information. Valid values: `disable`, `enable`.
OverrideSnmpSysinfo pulumi.StringOutput `pulumi:"overrideSnmpSysinfo"`
// Enable/disable overriding the global SNMP trap threshold values. Valid values: `enable`, `disable`.
OverrideSnmpTrapThreshold pulumi.StringOutput `pulumi:"overrideSnmpTrapThreshold"`
// Enable/disable overriding the global SNMP users. Valid values: `enable`, `disable`.
OverrideSnmpUser pulumi.StringOutput `pulumi:"overrideSnmpUser"`
// VDOM which owner of port belongs to.
OwnerVdom pulumi.StringOutput `pulumi:"ownerVdom"`
// PoE detection type for FortiSwitch.
PoeDetectionType pulumi.IntOutput `pulumi:"poeDetectionType"`
// Enable/disable PoE LLDP detection. Valid values: `enable`, `disable`.
PoeLldpDetection pulumi.StringOutput `pulumi:"poeLldpDetection"`
// Enable/disable PoE pre-standard detection. Valid values: `enable`, `disable`.
PoePreStandardDetection pulumi.StringOutput `pulumi:"poePreStandardDetection"`
// Managed-switch port list. The structure of `ports` block is documented below.
Ports ManagedswitchPortArrayOutput `pulumi:"ports"`
// Pre-provisioned managed switch.
PreProvisioned pulumi.IntOutput `pulumi:"preProvisioned"`
// PTP profile configuration.
PtpProfile pulumi.StringOutput `pulumi:"ptpProfile"`
// Enable/disable PTP profile on this FortiSwitch. Valid values: `disable`, `enable`.
PtpStatus pulumi.StringOutput `pulumi:"ptpStatus"`
// Purdue Level of this FortiSwitch. Valid values: `1`, `1.5`, `2`, `2.5`, `3`, `3.5`, `4`, `5`, `5.5`.
PurdueLevel pulumi.StringOutput `pulumi:"purdueLevel"`
// Set QoS drop-policy. Valid values: `taildrop`, `random-early-detection`.
QosDropPolicy pulumi.StringOutput `pulumi:"qosDropPolicy"`
// Set QoS RED/WRED drop probability.
QosRedProbability pulumi.IntOutput `pulumi:"qosRedProbability"`
// NAS-IP address.
RadiusNasIp pulumi.StringOutput `pulumi:"radiusNasIp"`
// Use locally defined NAS-IP. Valid values: `disable`, `enable`.
RadiusNasIpOverride pulumi.StringOutput `pulumi:"radiusNasIpOverride"`
// Configure logging by FortiSwitch device to a remote syslog server. The structure of `remoteLog` block is documented below.
RemoteLogs ManagedswitchRemoteLogArrayOutput `pulumi:"remoteLogs"`
// Enable/disable route offload on this FortiSwitch. Valid values: `disable`, `enable`.
RouteOffload pulumi.StringOutput `pulumi:"routeOffload"`
// Enable/disable route offload MCLAG on this FortiSwitch. Valid values: `disable`, `enable`.
RouteOffloadMclag pulumi.StringOutput `pulumi:"routeOffloadMclag"`
// Configure route offload MCLAG IP address. The structure of `routeOffloadRouter` block is documented below.
RouteOffloadRouters ManagedswitchRouteOffloadRouterArrayOutput `pulumi:"routeOffloadRouters"`
// Managed-switch serial number.
Sn pulumi.StringOutput `pulumi:"sn"`
// Configuration method to edit Simple Network Management Protocol (SNMP) communities. The structure of `snmpCommunity` block is documented below.
SnmpCommunities ManagedswitchSnmpCommunityArrayOutput `pulumi:"snmpCommunities"`
// Configuration method to edit Simple Network Management Protocol (SNMP) system info. The structure of `snmpSysinfo` block is documented below.
SnmpSysinfo ManagedswitchSnmpSysinfoOutput `pulumi:"snmpSysinfo"`
// Configuration method to edit Simple Network Management Protocol (SNMP) trap threshold values. The structure of `snmpTrapThreshold` block is documented below.
SnmpTrapThreshold ManagedswitchSnmpTrapThresholdOutput `pulumi:"snmpTrapThreshold"`
// Configuration method to edit Simple Network Management Protocol (SNMP) users. The structure of `snmpUser` block is documented below.
SnmpUsers ManagedswitchSnmpUserArrayOutput `pulumi:"snmpUsers"`
// Staged image version for FortiSwitch.
StagedImageVersion pulumi.StringOutput `pulumi:"stagedImageVersion"`
// Configuration method to edit FortiSwitch Static and Sticky MAC. The structure of `staticMac` block is documented below.
StaticMacs ManagedswitchStaticMacArrayOutput `pulumi:"staticMacs"`
// Configuration method to edit FortiSwitch storm control for measuring traffic activity using data rates to prevent traffic disruption. The structure of `stormControl` block is documented below.
StormControl ManagedswitchStormControlOutput `pulumi:"stormControl"`
// Configuration method to edit Spanning Tree Protocol (STP) instances. The structure of `stpInstance` block is documented below.
StpInstances ManagedswitchStpInstanceArrayOutput `pulumi:"stpInstances"`
// Configuration method to edit Spanning Tree Protocol (STP) settings used to prevent bridge loops. The structure of `stpSettings` block is documented below.
StpSettings ManagedswitchStpSettingsOutput `pulumi:"stpSettings"`
// User definable label/tag.
SwitchDeviceTag pulumi.StringOutput `pulumi:"switchDeviceTag"`
// DHCP option43 key.
SwitchDhcpOpt43Key pulumi.StringOutput `pulumi:"switchDhcpOpt43Key"`
// Managed-switch id.
SwitchId pulumi.StringOutput `pulumi:"switchId"`
// Configuration method to edit FortiSwitch logging settings (logs are transferred to and inserted into the FortiGate event log). The structure of `switchLog` block is documented below.
SwitchLog ManagedswitchSwitchLogOutput `pulumi:"switchLog"`
// FortiSwitch profile.
SwitchProfile pulumi.StringOutput `pulumi:"switchProfile"`
// Configure spanning tree protocol (STP). The structure of `switchStpSettings` block is documented below.
SwitchStpSettings ManagedswitchSwitchStpSettingsOutput `pulumi:"switchStpSettings"`
// TDR supported.
TdrSupported pulumi.StringOutput `pulumi:"tdrSupported"`
// SOCKS tunnel management discovered.
TunnelDiscovered pulumi.IntOutput `pulumi:"tunnelDiscovered"`
// Indication of switch type, physical or virtual. Valid values: `virtual`, `physical`.
Type pulumi.StringOutput `pulumi:"type"`
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam pulumi.StringPtrOutput `pulumi:"vdomparam"`
// FortiSwitch version.
Version pulumi.IntOutput `pulumi:"version"`
// Configure VLAN assignment priority. The structure of `vlan` block is documented below.
Vlans ManagedswitchVlanArrayOutput `pulumi:"vlans"`
}
// NewManagedswitch registers a new resource with the given unique name, arguments, and options.
func NewManagedswitch(ctx *pulumi.Context,
name string, args *ManagedswitchArgs, opts ...pulumi.ResourceOption) (*Managedswitch, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.FswWan1Peer == nil {
return nil, errors.New("invalid value for required argument 'FswWan1Peer'")
}
if args.SwitchId == nil {
return nil, errors.New("invalid value for required argument 'SwitchId'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Managedswitch
err := ctx.RegisterResource("fortios:switchcontroller/managedswitch:Managedswitch", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetManagedswitch gets an existing Managedswitch resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetManagedswitch(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ManagedswitchState, opts ...pulumi.ResourceOption) (*Managedswitch, error) {
var resource Managedswitch
err := ctx.ReadResource("fortios:switchcontroller/managedswitch:Managedswitch", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Managedswitch resources.
type managedswitchState struct {
// FortiSwitch access profile.
AccessProfile *string `pulumi:"accessProfile"`
// Configuration method to edit FortiSwitch commands to be pushed to this FortiSwitch device upon rebooting the FortiGate switch controller or the FortiSwitch. The structure of `customCommand` block is documented below.
CustomCommands []ManagedswitchCustomCommand `pulumi:"customCommands"`
// Delayed restart triggered for this FortiSwitch.
DelayedRestartTrigger *int `pulumi:"delayedRestartTrigger"`
// Description.
Description *string `pulumi:"description"`
// DHCP snooping server access list. Valid values: `global`, `enable`, `disable`.
DhcpServerAccessList *string `pulumi:"dhcpServerAccessList"`
// Configure FortiSwitch DHCP snooping static clients. The structure of `dhcpSnoopingStaticClient` block is documented below.
DhcpSnoopingStaticClients []ManagedswitchDhcpSnoopingStaticClient `pulumi:"dhcpSnoopingStaticClients"`
// Directly connected FortiSwitch.
DirectlyConnected *int `pulumi:"directlyConnected"`
// List of features this FortiSwitch supports (not configurable) that is sent to the FortiGate device for subsequent configuration initiated by the FortiGate device.
DynamicCapability *int `pulumi:"dynamicCapability"`
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
DynamicSortSubtable *string `pulumi:"dynamicSortSubtable"`
// Dynamically discovered FortiSwitch.
DynamicallyDiscovered *int `pulumi:"dynamicallyDiscovered"`
// Enable/disable provisioning of firmware to FortiSwitches on join connection. Valid values: `enable`, `disable`.
FirmwareProvision *string `pulumi:"firmwareProvision"`
// Enable/disable one-time automatic provisioning of the latest firmware version. Valid values: `disable`, `once`.
FirmwareProvisionLatest *string `pulumi:"firmwareProvisionLatest"`
// Firmware version to provision to this FortiSwitch on bootup (major.minor.build, i.e. 6.2.1234).
FirmwareProvisionVersion *string `pulumi:"firmwareProvisionVersion"`
// Flow-tracking netflow ipfix switch identity in hex format(00000000-FFFFFFFF default=0).
FlowIdentity *string `pulumi:"flowIdentity"`
// FortiSwitch WAN1 admin status; enable to authorize the FortiSwitch as a managed switch. Valid values: `discovered`, `disable`, `enable`.
FswWan1Admin *string `pulumi:"fswWan1Admin"`
// Fortiswitch WAN1 peer port.
FswWan1Peer *string `pulumi:"fswWan1Peer"`
// FortiSwitch WAN2 admin status; enable to authorize the FortiSwitch as a managed switch. Valid values: `discovered`, `disable`, `enable`.
FswWan2Admin *string `pulumi:"fswWan2Admin"`
// FortiSwitch WAN2 peer port.
FswWan2Peer *string `pulumi:"fswWan2Peer"`
// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
GetAllTables *string `pulumi:"getAllTables"`
// Configure FortiSwitch IGMP snooping global settings. The structure of `igmpSnooping` block is documented below.
IgmpSnooping *ManagedswitchIgmpSnooping `pulumi:"igmpSnooping"`
// IP source guard. The structure of `ipSourceGuard` block is documented below.
IpSourceGuards []ManagedswitchIpSourceGuard `pulumi:"ipSourceGuards"`
// Layer 3 management discovered.
L3Discovered *int `pulumi:"l3Discovered"`
// FortiSwitch maximum allowed trunk members.
MaxAllowedTrunkMembers *int `pulumi:"maxAllowedTrunkMembers"`
// Enable/disable MCLAG IGMP-snooping awareness. Valid values: `enable`, `disable`.
MclagIgmpSnoopingAware *string `pulumi:"mclagIgmpSnoopingAware"`
// FortiLink management mode.
MgmtMode *int `pulumi:"mgmtMode"`
// Configuration method to edit FortiSwitch packet mirror. The structure of `mirror` block is documented below.
Mirrors []ManagedswitchMirror `pulumi:"mirrors"`
// Configuration method to edit FortiSwitch 802.1X global settings. The structure of `n8021xSettings` block is documented below.
N8021xSettings *ManagedswitchN8021xSettings `pulumi:"n8021xSettings"`
// Managed-switch name.
Name *string `pulumi:"name"`
// Enable/disable overriding the global SNMP communities. Valid values: `enable`, `disable`.
OverrideSnmpCommunity *string `pulumi:"overrideSnmpCommunity"`
// Enable/disable overriding the global SNMP system information. Valid values: `disable`, `enable`.
OverrideSnmpSysinfo *string `pulumi:"overrideSnmpSysinfo"`
// Enable/disable overriding the global SNMP trap threshold values. Valid values: `enable`, `disable`.
OverrideSnmpTrapThreshold *string `pulumi:"overrideSnmpTrapThreshold"`
// Enable/disable overriding the global SNMP users. Valid values: `enable`, `disable`.
OverrideSnmpUser *string `pulumi:"overrideSnmpUser"`
// VDOM which owner of port belongs to.
OwnerVdom *string `pulumi:"ownerVdom"`
// PoE detection type for FortiSwitch.
PoeDetectionType *int `pulumi:"poeDetectionType"`
// Enable/disable PoE LLDP detection. Valid values: `enable`, `disable`.
PoeLldpDetection *string `pulumi:"poeLldpDetection"`
// Enable/disable PoE pre-standard detection. Valid values: `enable`, `disable`.
PoePreStandardDetection *string `pulumi:"poePreStandardDetection"`
// Managed-switch port list. The structure of `ports` block is documented below.
Ports []ManagedswitchPort `pulumi:"ports"`
// Pre-provisioned managed switch.
PreProvisioned *int `pulumi:"preProvisioned"`
// PTP profile configuration.
PtpProfile *string `pulumi:"ptpProfile"`
// Enable/disable PTP profile on this FortiSwitch. Valid values: `disable`, `enable`.
PtpStatus *string `pulumi:"ptpStatus"`
// Purdue Level of this FortiSwitch. Valid values: `1`, `1.5`, `2`, `2.5`, `3`, `3.5`, `4`, `5`, `5.5`.
PurdueLevel *string `pulumi:"purdueLevel"`
// Set QoS drop-policy. Valid values: `taildrop`, `random-early-detection`.
QosDropPolicy *string `pulumi:"qosDropPolicy"`
// Set QoS RED/WRED drop probability.
QosRedProbability *int `pulumi:"qosRedProbability"`
// NAS-IP address.
RadiusNasIp *string `pulumi:"radiusNasIp"`
// Use locally defined NAS-IP. Valid values: `disable`, `enable`.
RadiusNasIpOverride *string `pulumi:"radiusNasIpOverride"`
// Configure logging by FortiSwitch device to a remote syslog server. The structure of `remoteLog` block is documented below.
RemoteLogs []ManagedswitchRemoteLog `pulumi:"remoteLogs"`
// Enable/disable route offload on this FortiSwitch. Valid values: `disable`, `enable`.
RouteOffload *string `pulumi:"routeOffload"`
// Enable/disable route offload MCLAG on this FortiSwitch. Valid values: `disable`, `enable`.
RouteOffloadMclag *string `pulumi:"routeOffloadMclag"`
// Configure route offload MCLAG IP address. The structure of `routeOffloadRouter` block is documented below.
RouteOffloadRouters []ManagedswitchRouteOffloadRouter `pulumi:"routeOffloadRouters"`
// Managed-switch serial number.
Sn *string `pulumi:"sn"`
// Configuration method to edit Simple Network Management Protocol (SNMP) communities. The structure of `snmpCommunity` block is documented below.
SnmpCommunities []ManagedswitchSnmpCommunity `pulumi:"snmpCommunities"`
// Configuration method to edit Simple Network Management Protocol (SNMP) system info. The structure of `snmpSysinfo` block is documented below.
SnmpSysinfo *ManagedswitchSnmpSysinfo `pulumi:"snmpSysinfo"`
// Configuration method to edit Simple Network Management Protocol (SNMP) trap threshold values. The structure of `snmpTrapThreshold` block is documented below.
SnmpTrapThreshold *ManagedswitchSnmpTrapThreshold `pulumi:"snmpTrapThreshold"`
// Configuration method to edit Simple Network Management Protocol (SNMP) users. The structure of `snmpUser` block is documented below.
SnmpUsers []ManagedswitchSnmpUser `pulumi:"snmpUsers"`
// Staged image version for FortiSwitch.
StagedImageVersion *string `pulumi:"stagedImageVersion"`
// Configuration method to edit FortiSwitch Static and Sticky MAC. The structure of `staticMac` block is documented below.
StaticMacs []ManagedswitchStaticMac `pulumi:"staticMacs"`
// Configuration method to edit FortiSwitch storm control for measuring traffic activity using data rates to prevent traffic disruption. The structure of `stormControl` block is documented below.
StormControl *ManagedswitchStormControl `pulumi:"stormControl"`
// Configuration method to edit Spanning Tree Protocol (STP) instances. The structure of `stpInstance` block is documented below.
StpInstances []ManagedswitchStpInstance `pulumi:"stpInstances"`
// Configuration method to edit Spanning Tree Protocol (STP) settings used to prevent bridge loops. The structure of `stpSettings` block is documented below.
StpSettings *ManagedswitchStpSettings `pulumi:"stpSettings"`
// User definable label/tag.
SwitchDeviceTag *string `pulumi:"switchDeviceTag"`
// DHCP option43 key.
SwitchDhcpOpt43Key *string `pulumi:"switchDhcpOpt43Key"`
// Managed-switch id.
SwitchId *string `pulumi:"switchId"`
// Configuration method to edit FortiSwitch logging settings (logs are transferred to and inserted into the FortiGate event log). The structure of `switchLog` block is documented below.
SwitchLog *ManagedswitchSwitchLog `pulumi:"switchLog"`
// FortiSwitch profile.
SwitchProfile *string `pulumi:"switchProfile"`
// Configure spanning tree protocol (STP). The structure of `switchStpSettings` block is documented below.
SwitchStpSettings *ManagedswitchSwitchStpSettings `pulumi:"switchStpSettings"`
// TDR supported.
TdrSupported *string `pulumi:"tdrSupported"`
// SOCKS tunnel management discovered.
TunnelDiscovered *int `pulumi:"tunnelDiscovered"`
// Indication of switch type, physical or virtual. Valid values: `virtual`, `physical`.
Type *string `pulumi:"type"`
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam *string `pulumi:"vdomparam"`
// FortiSwitch version.
Version *int `pulumi:"version"`
// Configure VLAN assignment priority. The structure of `vlan` block is documented below.
Vlans []ManagedswitchVlan `pulumi:"vlans"`
}
type ManagedswitchState struct {
// FortiSwitch access profile.
AccessProfile pulumi.StringPtrInput
// Configuration method to edit FortiSwitch commands to be pushed to this FortiSwitch device upon rebooting the FortiGate switch controller or the FortiSwitch. The structure of `customCommand` block is documented below.
CustomCommands ManagedswitchCustomCommandArrayInput
// Delayed restart triggered for this FortiSwitch.
DelayedRestartTrigger pulumi.IntPtrInput
// Description.
Description pulumi.StringPtrInput
// DHCP snooping server access list. Valid values: `global`, `enable`, `disable`.
DhcpServerAccessList pulumi.StringPtrInput
// Configure FortiSwitch DHCP snooping static clients. The structure of `dhcpSnoopingStaticClient` block is documented below.
DhcpSnoopingStaticClients ManagedswitchDhcpSnoopingStaticClientArrayInput
// Directly connected FortiSwitch.
DirectlyConnected pulumi.IntPtrInput
// List of features this FortiSwitch supports (not configurable) that is sent to the FortiGate device for subsequent configuration initiated by the FortiGate device.
DynamicCapability pulumi.IntPtrInput
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
DynamicSortSubtable pulumi.StringPtrInput
// Dynamically discovered FortiSwitch.
DynamicallyDiscovered pulumi.IntPtrInput
// Enable/disable provisioning of firmware to FortiSwitches on join connection. Valid values: `enable`, `disable`.
FirmwareProvision pulumi.StringPtrInput
// Enable/disable one-time automatic provisioning of the latest firmware version. Valid values: `disable`, `once`.
FirmwareProvisionLatest pulumi.StringPtrInput
// Firmware version to provision to this FortiSwitch on bootup (major.minor.build, i.e. 6.2.1234).
FirmwareProvisionVersion pulumi.StringPtrInput
// Flow-tracking netflow ipfix switch identity in hex format(00000000-FFFFFFFF default=0).
FlowIdentity pulumi.StringPtrInput
// FortiSwitch WAN1 admin status; enable to authorize the FortiSwitch as a managed switch. Valid values: `discovered`, `disable`, `enable`.
FswWan1Admin pulumi.StringPtrInput
// Fortiswitch WAN1 peer port.
FswWan1Peer pulumi.StringPtrInput
// FortiSwitch WAN2 admin status; enable to authorize the FortiSwitch as a managed switch. Valid values: `discovered`, `disable`, `enable`.
FswWan2Admin pulumi.StringPtrInput
// FortiSwitch WAN2 peer port.
FswWan2Peer pulumi.StringPtrInput
// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
GetAllTables pulumi.StringPtrInput
// Configure FortiSwitch IGMP snooping global settings. The structure of `igmpSnooping` block is documented below.
IgmpSnooping ManagedswitchIgmpSnoopingPtrInput
// IP source guard. The structure of `ipSourceGuard` block is documented below.
IpSourceGuards ManagedswitchIpSourceGuardArrayInput
// Layer 3 management discovered.
L3Discovered pulumi.IntPtrInput
// FortiSwitch maximum allowed trunk members.
MaxAllowedTrunkMembers pulumi.IntPtrInput
// Enable/disable MCLAG IGMP-snooping awareness. Valid values: `enable`, `disable`.
MclagIgmpSnoopingAware pulumi.StringPtrInput
// FortiLink management mode.
MgmtMode pulumi.IntPtrInput
// Configuration method to edit FortiSwitch packet mirror. The structure of `mirror` block is documented below.
Mirrors ManagedswitchMirrorArrayInput
// Configuration method to edit FortiSwitch 802.1X global settings. The structure of `n8021xSettings` block is documented below.
N8021xSettings ManagedswitchN8021xSettingsPtrInput
// Managed-switch name.
Name pulumi.StringPtrInput
// Enable/disable overriding the global SNMP communities. Valid values: `enable`, `disable`.
OverrideSnmpCommunity pulumi.StringPtrInput
// Enable/disable overriding the global SNMP system information. Valid values: `disable`, `enable`.
OverrideSnmpSysinfo pulumi.StringPtrInput
// Enable/disable overriding the global SNMP trap threshold values. Valid values: `enable`, `disable`.
OverrideSnmpTrapThreshold pulumi.StringPtrInput
// Enable/disable overriding the global SNMP users. Valid values: `enable`, `disable`.
OverrideSnmpUser pulumi.StringPtrInput
// VDOM which owner of port belongs to.
OwnerVdom pulumi.StringPtrInput
// PoE detection type for FortiSwitch.
PoeDetectionType pulumi.IntPtrInput
// Enable/disable PoE LLDP detection. Valid values: `enable`, `disable`.
PoeLldpDetection pulumi.StringPtrInput
// Enable/disable PoE pre-standard detection. Valid values: `enable`, `disable`.
PoePreStandardDetection pulumi.StringPtrInput
// Managed-switch port list. The structure of `ports` block is documented below.
Ports ManagedswitchPortArrayInput
// Pre-provisioned managed switch.
PreProvisioned pulumi.IntPtrInput
// PTP profile configuration.
PtpProfile pulumi.StringPtrInput
// Enable/disable PTP profile on this FortiSwitch. Valid values: `disable`, `enable`.
PtpStatus pulumi.StringPtrInput
// Purdue Level of this FortiSwitch. Valid values: `1`, `1.5`, `2`, `2.5`, `3`, `3.5`, `4`, `5`, `5.5`.
PurdueLevel pulumi.StringPtrInput
// Set QoS drop-policy. Valid values: `taildrop`, `random-early-detection`.
QosDropPolicy pulumi.StringPtrInput
// Set QoS RED/WRED drop probability.
QosRedProbability pulumi.IntPtrInput
// NAS-IP address.
RadiusNasIp pulumi.StringPtrInput
// Use locally defined NAS-IP. Valid values: `disable`, `enable`.
RadiusNasIpOverride pulumi.StringPtrInput
// Configure logging by FortiSwitch device to a remote syslog server. The structure of `remoteLog` block is documented below.
RemoteLogs ManagedswitchRemoteLogArrayInput
// Enable/disable route offload on this FortiSwitch. Valid values: `disable`, `enable`.
RouteOffload pulumi.StringPtrInput
// Enable/disable route offload MCLAG on this FortiSwitch. Valid values: `disable`, `enable`.
RouteOffloadMclag pulumi.StringPtrInput
// Configure route offload MCLAG IP address. The structure of `routeOffloadRouter` block is documented below.
RouteOffloadRouters ManagedswitchRouteOffloadRouterArrayInput
// Managed-switch serial number.
Sn pulumi.StringPtrInput
// Configuration method to edit Simple Network Management Protocol (SNMP) communities. The structure of `snmpCommunity` block is documented below.
SnmpCommunities ManagedswitchSnmpCommunityArrayInput
// Configuration method to edit Simple Network Management Protocol (SNMP) system info. The structure of `snmpSysinfo` block is documented below.
SnmpSysinfo ManagedswitchSnmpSysinfoPtrInput
// Configuration method to edit Simple Network Management Protocol (SNMP) trap threshold values. The structure of `snmpTrapThreshold` block is documented below.
SnmpTrapThreshold ManagedswitchSnmpTrapThresholdPtrInput
// Configuration method to edit Simple Network Management Protocol (SNMP) users. The structure of `snmpUser` block is documented below.
SnmpUsers ManagedswitchSnmpUserArrayInput
// Staged image version for FortiSwitch.
StagedImageVersion pulumi.StringPtrInput
// Configuration method to edit FortiSwitch Static and Sticky MAC. The structure of `staticMac` block is documented below.
StaticMacs ManagedswitchStaticMacArrayInput
// Configuration method to edit FortiSwitch storm control for measuring traffic activity using data rates to prevent traffic disruption. The structure of `stormControl` block is documented below.
StormControl ManagedswitchStormControlPtrInput
// Configuration method to edit Spanning Tree Protocol (STP) instances. The structure of `stpInstance` block is documented below.
StpInstances ManagedswitchStpInstanceArrayInput
// Configuration method to edit Spanning Tree Protocol (STP) settings used to prevent bridge loops. The structure of `stpSettings` block is documented below.
StpSettings ManagedswitchStpSettingsPtrInput
// User definable label/tag.
SwitchDeviceTag pulumi.StringPtrInput
// DHCP option43 key.
SwitchDhcpOpt43Key pulumi.StringPtrInput
// Managed-switch id.
SwitchId pulumi.StringPtrInput
// Configuration method to edit FortiSwitch logging settings (logs are transferred to and inserted into the FortiGate event log). The structure of `switchLog` block is documented below.
SwitchLog ManagedswitchSwitchLogPtrInput
// FortiSwitch profile.
SwitchProfile pulumi.StringPtrInput
// Configure spanning tree protocol (STP). The structure of `switchStpSettings` block is documented below.
SwitchStpSettings ManagedswitchSwitchStpSettingsPtrInput
// TDR supported.
TdrSupported pulumi.StringPtrInput
// SOCKS tunnel management discovered.
TunnelDiscovered pulumi.IntPtrInput
// Indication of switch type, physical or virtual. Valid values: `virtual`, `physical`.
Type pulumi.StringPtrInput
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam pulumi.StringPtrInput
// FortiSwitch version.
Version pulumi.IntPtrInput
// Configure VLAN assignment priority. The structure of `vlan` block is documented below.
Vlans ManagedswitchVlanArrayInput
}
func (ManagedswitchState) ElementType() reflect.Type {
return reflect.TypeOf((*managedswitchState)(nil)).Elem()
}
type managedswitchArgs struct {
// FortiSwitch access profile.
AccessProfile *string `pulumi:"accessProfile"`
// Configuration method to edit FortiSwitch commands to be pushed to this FortiSwitch device upon rebooting the FortiGate switch controller or the FortiSwitch. The structure of `customCommand` block is documented below.
CustomCommands []ManagedswitchCustomCommand `pulumi:"customCommands"`
// Delayed restart triggered for this FortiSwitch.
DelayedRestartTrigger *int `pulumi:"delayedRestartTrigger"`
// Description.
Description *string `pulumi:"description"`
// DHCP snooping server access list. Valid values: `global`, `enable`, `disable`.
DhcpServerAccessList *string `pulumi:"dhcpServerAccessList"`
// Configure FortiSwitch DHCP snooping static clients. The structure of `dhcpSnoopingStaticClient` block is documented below.
DhcpSnoopingStaticClients []ManagedswitchDhcpSnoopingStaticClient `pulumi:"dhcpSnoopingStaticClients"`
// Directly connected FortiSwitch.
DirectlyConnected *int `pulumi:"directlyConnected"`
// List of features this FortiSwitch supports (not configurable) that is sent to the FortiGate device for subsequent configuration initiated by the FortiGate device.
DynamicCapability *int `pulumi:"dynamicCapability"`
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
DynamicSortSubtable *string `pulumi:"dynamicSortSubtable"`
// Dynamically discovered FortiSwitch.
DynamicallyDiscovered *int `pulumi:"dynamicallyDiscovered"`
// Enable/disable provisioning of firmware to FortiSwitches on join connection. Valid values: `enable`, `disable`.
FirmwareProvision *string `pulumi:"firmwareProvision"`
// Enable/disable one-time automatic provisioning of the latest firmware version. Valid values: `disable`, `once`.
FirmwareProvisionLatest *string `pulumi:"firmwareProvisionLatest"`
// Firmware version to provision to this FortiSwitch on bootup (major.minor.build, i.e. 6.2.1234).
FirmwareProvisionVersion *string `pulumi:"firmwareProvisionVersion"`
// Flow-tracking netflow ipfix switch identity in hex format(00000000-FFFFFFFF default=0).
FlowIdentity *string `pulumi:"flowIdentity"`
// FortiSwitch WAN1 admin status; enable to authorize the FortiSwitch as a managed switch. Valid values: `discovered`, `disable`, `enable`.
FswWan1Admin *string `pulumi:"fswWan1Admin"`
// Fortiswitch WAN1 peer port.
FswWan1Peer string `pulumi:"fswWan1Peer"`
// FortiSwitch WAN2 admin status; enable to authorize the FortiSwitch as a managed switch. Valid values: `discovered`, `disable`, `enable`.
FswWan2Admin *string `pulumi:"fswWan2Admin"`
// FortiSwitch WAN2 peer port.
FswWan2Peer *string `pulumi:"fswWan2Peer"`
// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
GetAllTables *string `pulumi:"getAllTables"`
// Configure FortiSwitch IGMP snooping global settings. The structure of `igmpSnooping` block is documented below.
IgmpSnooping *ManagedswitchIgmpSnooping `pulumi:"igmpSnooping"`
// IP source guard. The structure of `ipSourceGuard` block is documented below.
IpSourceGuards []ManagedswitchIpSourceGuard `pulumi:"ipSourceGuards"`
// Layer 3 management discovered.
L3Discovered *int `pulumi:"l3Discovered"`
// FortiSwitch maximum allowed trunk members.
MaxAllowedTrunkMembers *int `pulumi:"maxAllowedTrunkMembers"`
// Enable/disable MCLAG IGMP-snooping awareness. Valid values: `enable`, `disable`.
MclagIgmpSnoopingAware *string `pulumi:"mclagIgmpSnoopingAware"`
// FortiLink management mode.
MgmtMode *int `pulumi:"mgmtMode"`
// Configuration method to edit FortiSwitch packet mirror. The structure of `mirror` block is documented below.
Mirrors []ManagedswitchMirror `pulumi:"mirrors"`
// Configuration method to edit FortiSwitch 802.1X global settings. The structure of `n8021xSettings` block is documented below.
N8021xSettings *ManagedswitchN8021xSettings `pulumi:"n8021xSettings"`
// Managed-switch name.
Name *string `pulumi:"name"`
// Enable/disable overriding the global SNMP communities. Valid values: `enable`, `disable`.
OverrideSnmpCommunity *string `pulumi:"overrideSnmpCommunity"`
// Enable/disable overriding the global SNMP system information. Valid values: `disable`, `enable`.
OverrideSnmpSysinfo *string `pulumi:"overrideSnmpSysinfo"`
// Enable/disable overriding the global SNMP trap threshold values. Valid values: `enable`, `disable`.
OverrideSnmpTrapThreshold *string `pulumi:"overrideSnmpTrapThreshold"`
// Enable/disable overriding the global SNMP users. Valid values: `enable`, `disable`.
OverrideSnmpUser *string `pulumi:"overrideSnmpUser"`
// VDOM which owner of port belongs to.
OwnerVdom *string `pulumi:"ownerVdom"`
// PoE detection type for FortiSwitch.
PoeDetectionType *int `pulumi:"poeDetectionType"`
// Enable/disable PoE LLDP detection. Valid values: `enable`, `disable`.
PoeLldpDetection *string `pulumi:"poeLldpDetection"`
// Enable/disable PoE pre-standard detection. Valid values: `enable`, `disable`.
PoePreStandardDetection *string `pulumi:"poePreStandardDetection"`
// Managed-switch port list. The structure of `ports` block is documented below.
Ports []ManagedswitchPort `pulumi:"ports"`
// Pre-provisioned managed switch.
PreProvisioned *int `pulumi:"preProvisioned"`
// PTP profile configuration.
PtpProfile *string `pulumi:"ptpProfile"`
// Enable/disable PTP profile on this FortiSwitch. Valid values: `disable`, `enable`.
PtpStatus *string `pulumi:"ptpStatus"`
// Purdue Level of this FortiSwitch. Valid values: `1`, `1.5`, `2`, `2.5`, `3`, `3.5`, `4`, `5`, `5.5`.
PurdueLevel *string `pulumi:"purdueLevel"`
// Set QoS drop-policy. Valid values: `taildrop`, `random-early-detection`.
QosDropPolicy *string `pulumi:"qosDropPolicy"`
// Set QoS RED/WRED drop probability.
QosRedProbability *int `pulumi:"qosRedProbability"`
// NAS-IP address.
RadiusNasIp *string `pulumi:"radiusNasIp"`
// Use locally defined NAS-IP. Valid values: `disable`, `enable`.
RadiusNasIpOverride *string `pulumi:"radiusNasIpOverride"`
// Configure logging by FortiSwitch device to a remote syslog server. The structure of `remoteLog` block is documented below.
RemoteLogs []ManagedswitchRemoteLog `pulumi:"remoteLogs"`
// Enable/disable route offload on this FortiSwitch. Valid values: `disable`, `enable`.
RouteOffload *string `pulumi:"routeOffload"`
// Enable/disable route offload MCLAG on this FortiSwitch. Valid values: `disable`, `enable`.
RouteOffloadMclag *string `pulumi:"routeOffloadMclag"`
// Configure route offload MCLAG IP address. The structure of `routeOffloadRouter` block is documented below.
RouteOffloadRouters []ManagedswitchRouteOffloadRouter `pulumi:"routeOffloadRouters"`
// Managed-switch serial number.
Sn *string `pulumi:"sn"`
// Configuration method to edit Simple Network Management Protocol (SNMP) communities. The structure of `snmpCommunity` block is documented below.
SnmpCommunities []ManagedswitchSnmpCommunity `pulumi:"snmpCommunities"`
// Configuration method to edit Simple Network Management Protocol (SNMP) system info. The structure of `snmpSysinfo` block is documented below.
SnmpSysinfo *ManagedswitchSnmpSysinfo `pulumi:"snmpSysinfo"`
// Configuration method to edit Simple Network Management Protocol (SNMP) trap threshold values. The structure of `snmpTrapThreshold` block is documented below.
SnmpTrapThreshold *ManagedswitchSnmpTrapThreshold `pulumi:"snmpTrapThreshold"`
// Configuration method to edit Simple Network Management Protocol (SNMP) users. The structure of `snmpUser` block is documented below.
SnmpUsers []ManagedswitchSnmpUser `pulumi:"snmpUsers"`
// Staged image version for FortiSwitch.
StagedImageVersion *string `pulumi:"stagedImageVersion"`
// Configuration method to edit FortiSwitch Static and Sticky MAC. The structure of `staticMac` block is documented below.
StaticMacs []ManagedswitchStaticMac `pulumi:"staticMacs"`
// Configuration method to edit FortiSwitch storm control for measuring traffic activity using data rates to prevent traffic disruption. The structure of `stormControl` block is documented below.
StormControl *ManagedswitchStormControl `pulumi:"stormControl"`
// Configuration method to edit Spanning Tree Protocol (STP) instances. The structure of `stpInstance` block is documented below.
StpInstances []ManagedswitchStpInstance `pulumi:"stpInstances"`
// Configuration method to edit Spanning Tree Protocol (STP) settings used to prevent bridge loops. The structure of `stpSettings` block is documented below.
StpSettings *ManagedswitchStpSettings `pulumi:"stpSettings"`
// User definable label/tag.
SwitchDeviceTag *string `pulumi:"switchDeviceTag"`
// DHCP option43 key.
SwitchDhcpOpt43Key *string `pulumi:"switchDhcpOpt43Key"`
// Managed-switch id.
SwitchId string `pulumi:"switchId"`
// Configuration method to edit FortiSwitch logging settings (logs are transferred to and inserted into the FortiGate event log). The structure of `switchLog` block is documented below.
SwitchLog *ManagedswitchSwitchLog `pulumi:"switchLog"`
// FortiSwitch profile.
SwitchProfile *string `pulumi:"switchProfile"`
// Configure spanning tree protocol (STP). The structure of `switchStpSettings` block is documented below.
SwitchStpSettings *ManagedswitchSwitchStpSettings `pulumi:"switchStpSettings"`
// TDR supported.
TdrSupported *string `pulumi:"tdrSupported"`
// SOCKS tunnel management discovered.
TunnelDiscovered *int `pulumi:"tunnelDiscovered"`
// Indication of switch type, physical or virtual. Valid values: `virtual`, `physical`.
Type *string `pulumi:"type"`
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam *string `pulumi:"vdomparam"`
// FortiSwitch version.
Version *int `pulumi:"version"`
// Configure VLAN assignment priority. The structure of `vlan` block is documented below.
Vlans []ManagedswitchVlan `pulumi:"vlans"`
}
// The set of arguments for constructing a Managedswitch resource.
type ManagedswitchArgs struct {
// FortiSwitch access profile.
AccessProfile pulumi.StringPtrInput
// Configuration method to edit FortiSwitch commands to be pushed to this FortiSwitch device upon rebooting the FortiGate switch controller or the FortiSwitch. The structure of `customCommand` block is documented below.
CustomCommands ManagedswitchCustomCommandArrayInput
// Delayed restart triggered for this FortiSwitch.
DelayedRestartTrigger pulumi.IntPtrInput
// Description.
Description pulumi.StringPtrInput
// DHCP snooping server access list. Valid values: `global`, `enable`, `disable`.
DhcpServerAccessList pulumi.StringPtrInput
// Configure FortiSwitch DHCP snooping static clients. The structure of `dhcpSnoopingStaticClient` block is documented below.
DhcpSnoopingStaticClients ManagedswitchDhcpSnoopingStaticClientArrayInput
// Directly connected FortiSwitch.
DirectlyConnected pulumi.IntPtrInput
// List of features this FortiSwitch supports (not configurable) that is sent to the FortiGate device for subsequent configuration initiated by the FortiGate device.
DynamicCapability pulumi.IntPtrInput
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
DynamicSortSubtable pulumi.StringPtrInput
// Dynamically discovered FortiSwitch.
DynamicallyDiscovered pulumi.IntPtrInput
// Enable/disable provisioning of firmware to FortiSwitches on join connection. Valid values: `enable`, `disable`.
FirmwareProvision pulumi.StringPtrInput
// Enable/disable one-time automatic provisioning of the latest firmware version. Valid values: `disable`, `once`.
FirmwareProvisionLatest pulumi.StringPtrInput
// Firmware version to provision to this FortiSwitch on bootup (major.minor.build, i.e. 6.2.1234).
FirmwareProvisionVersion pulumi.StringPtrInput
// Flow-tracking netflow ipfix switch identity in hex format(00000000-FFFFFFFF default=0).
FlowIdentity pulumi.StringPtrInput
// FortiSwitch WAN1 admin status; enable to authorize the FortiSwitch as a managed switch. Valid values: `discovered`, `disable`, `enable`.
FswWan1Admin pulumi.StringPtrInput
// Fortiswitch WAN1 peer port.
FswWan1Peer pulumi.StringInput
// FortiSwitch WAN2 admin status; enable to authorize the FortiSwitch as a managed switch. Valid values: `discovered`, `disable`, `enable`.
FswWan2Admin pulumi.StringPtrInput
// FortiSwitch WAN2 peer port.
FswWan2Peer pulumi.StringPtrInput
// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
GetAllTables pulumi.StringPtrInput
// Configure FortiSwitch IGMP snooping global settings. The structure of `igmpSnooping` block is documented below.
IgmpSnooping ManagedswitchIgmpSnoopingPtrInput
// IP source guard. The structure of `ipSourceGuard` block is documented below.
IpSourceGuards ManagedswitchIpSourceGuardArrayInput
// Layer 3 management discovered.
L3Discovered pulumi.IntPtrInput
// FortiSwitch maximum allowed trunk members.
MaxAllowedTrunkMembers pulumi.IntPtrInput
// Enable/disable MCLAG IGMP-snooping awareness. Valid values: `enable`, `disable`.
MclagIgmpSnoopingAware pulumi.StringPtrInput
// FortiLink management mode.
MgmtMode pulumi.IntPtrInput
// Configuration method to edit FortiSwitch packet mirror. The structure of `mirror` block is documented below.
Mirrors ManagedswitchMirrorArrayInput
// Configuration method to edit FortiSwitch 802.1X global settings. The structure of `n8021xSettings` block is documented below.
N8021xSettings ManagedswitchN8021xSettingsPtrInput
// Managed-switch name.
Name pulumi.StringPtrInput
// Enable/disable overriding the global SNMP communities. Valid values: `enable`, `disable`.
OverrideSnmpCommunity pulumi.StringPtrInput
// Enable/disable overriding the global SNMP system information. Valid values: `disable`, `enable`.
OverrideSnmpSysinfo pulumi.StringPtrInput
// Enable/disable overriding the global SNMP trap threshold values. Valid values: `enable`, `disable`.
OverrideSnmpTrapThreshold pulumi.StringPtrInput
// Enable/disable overriding the global SNMP users. Valid values: `enable`, `disable`.
OverrideSnmpUser pulumi.StringPtrInput
// VDOM which owner of port belongs to.
OwnerVdom pulumi.StringPtrInput
// PoE detection type for FortiSwitch.
PoeDetectionType pulumi.IntPtrInput
// Enable/disable PoE LLDP detection. Valid values: `enable`, `disable`.
PoeLldpDetection pulumi.StringPtrInput
// Enable/disable PoE pre-standard detection. Valid values: `enable`, `disable`.
PoePreStandardDetection pulumi.StringPtrInput
// Managed-switch port list. The structure of `ports` block is documented below.
Ports ManagedswitchPortArrayInput
// Pre-provisioned managed switch.
PreProvisioned pulumi.IntPtrInput
// PTP profile configuration.
PtpProfile pulumi.StringPtrInput
// Enable/disable PTP profile on this FortiSwitch. Valid values: `disable`, `enable`.
PtpStatus pulumi.StringPtrInput
// Purdue Level of this FortiSwitch. Valid values: `1`, `1.5`, `2`, `2.5`, `3`, `3.5`, `4`, `5`, `5.5`.
PurdueLevel pulumi.StringPtrInput
// Set QoS drop-policy. Valid values: `taildrop`, `random-early-detection`.
QosDropPolicy pulumi.StringPtrInput
// Set QoS RED/WRED drop probability.
QosRedProbability pulumi.IntPtrInput
// NAS-IP address.
RadiusNasIp pulumi.StringPtrInput
// Use locally defined NAS-IP. Valid values: `disable`, `enable`.
RadiusNasIpOverride pulumi.StringPtrInput
// Configure logging by FortiSwitch device to a remote syslog server. The structure of `remoteLog` block is documented below.
RemoteLogs ManagedswitchRemoteLogArrayInput
// Enable/disable route offload on this FortiSwitch. Valid values: `disable`, `enable`.
RouteOffload pulumi.StringPtrInput
// Enable/disable route offload MCLAG on this FortiSwitch. Valid values: `disable`, `enable`.
RouteOffloadMclag pulumi.StringPtrInput
// Configure route offload MCLAG IP address. The structure of `routeOffloadRouter` block is documented below.
RouteOffloadRouters ManagedswitchRouteOffloadRouterArrayInput
// Managed-switch serial number.
Sn pulumi.StringPtrInput
// Configuration method to edit Simple Network Management Protocol (SNMP) communities. The structure of `snmpCommunity` block is documented below.
SnmpCommunities ManagedswitchSnmpCommunityArrayInput
// Configuration method to edit Simple Network Management Protocol (SNMP) system info. The structure of `snmpSysinfo` block is documented below.
SnmpSysinfo ManagedswitchSnmpSysinfoPtrInput
// Configuration method to edit Simple Network Management Protocol (SNMP) trap threshold values. The structure of `snmpTrapThreshold` block is documented below.
SnmpTrapThreshold ManagedswitchSnmpTrapThresholdPtrInput
// Configuration method to edit Simple Network Management Protocol (SNMP) users. The structure of `snmpUser` block is documented below.
SnmpUsers ManagedswitchSnmpUserArrayInput
// Staged image version for FortiSwitch.
StagedImageVersion pulumi.StringPtrInput
// Configuration method to edit FortiSwitch Static and Sticky MAC. The structure of `staticMac` block is documented below.
StaticMacs ManagedswitchStaticMacArrayInput
// Configuration method to edit FortiSwitch storm control for measuring traffic activity using data rates to prevent traffic disruption. The structure of `stormControl` block is documented below.
StormControl ManagedswitchStormControlPtrInput
// Configuration method to edit Spanning Tree Protocol (STP) instances. The structure of `stpInstance` block is documented below.
StpInstances ManagedswitchStpInstanceArrayInput
// Configuration method to edit Spanning Tree Protocol (STP) settings used to prevent bridge loops. The structure of `stpSettings` block is documented below.
StpSettings ManagedswitchStpSettingsPtrInput
// User definable label/tag.
SwitchDeviceTag pulumi.StringPtrInput
// DHCP option43 key.
SwitchDhcpOpt43Key pulumi.StringPtrInput
// Managed-switch id.
SwitchId pulumi.StringInput
// Configuration method to edit FortiSwitch logging settings (logs are transferred to and inserted into the FortiGate event log). The structure of `switchLog` block is documented below.
SwitchLog ManagedswitchSwitchLogPtrInput
// FortiSwitch profile.
SwitchProfile pulumi.StringPtrInput
// Configure spanning tree protocol (STP). The structure of `switchStpSettings` block is documented below.
SwitchStpSettings ManagedswitchSwitchStpSettingsPtrInput
// TDR supported.
TdrSupported pulumi.StringPtrInput
// SOCKS tunnel management discovered.
TunnelDiscovered pulumi.IntPtrInput
// Indication of switch type, physical or virtual. Valid values: `virtual`, `physical`.
Type pulumi.StringPtrInput
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam pulumi.StringPtrInput
// FortiSwitch version.
Version pulumi.IntPtrInput
// Configure VLAN assignment priority. The structure of `vlan` block is documented below.
Vlans ManagedswitchVlanArrayInput
}
func (ManagedswitchArgs) ElementType() reflect.Type {
return reflect.TypeOf((*managedswitchArgs)(nil)).Elem()
}
type ManagedswitchInput interface {
pulumi.Input
ToManagedswitchOutput() ManagedswitchOutput
ToManagedswitchOutputWithContext(ctx context.Context) ManagedswitchOutput
}
func (*Managedswitch) ElementType() reflect.Type {
return reflect.TypeOf((**Managedswitch)(nil)).Elem()
}
func (i *Managedswitch) ToManagedswitchOutput() ManagedswitchOutput {
return i.ToManagedswitchOutputWithContext(context.Background())
}
func (i *Managedswitch) ToManagedswitchOutputWithContext(ctx context.Context) ManagedswitchOutput {
return pulumi.ToOutputWithContext(ctx, i).(ManagedswitchOutput)
}
// ManagedswitchArrayInput is an input type that accepts ManagedswitchArray and ManagedswitchArrayOutput values.
// You can construct a concrete instance of `ManagedswitchArrayInput` via:
//
// ManagedswitchArray{ ManagedswitchArgs{...} }
type ManagedswitchArrayInput interface {
pulumi.Input
ToManagedswitchArrayOutput() ManagedswitchArrayOutput
ToManagedswitchArrayOutputWithContext(context.Context) ManagedswitchArrayOutput
}
type ManagedswitchArray []ManagedswitchInput
func (ManagedswitchArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Managedswitch)(nil)).Elem()
}
func (i ManagedswitchArray) ToManagedswitchArrayOutput() ManagedswitchArrayOutput {
return i.ToManagedswitchArrayOutputWithContext(context.Background())
}
func (i ManagedswitchArray) ToManagedswitchArrayOutputWithContext(ctx context.Context) ManagedswitchArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ManagedswitchArrayOutput)
}
// ManagedswitchMapInput is an input type that accepts ManagedswitchMap and ManagedswitchMapOutput values.
// You can construct a concrete instance of `ManagedswitchMapInput` via:
//
// ManagedswitchMap{ "key": ManagedswitchArgs{...} }
type ManagedswitchMapInput interface {
pulumi.Input
ToManagedswitchMapOutput() ManagedswitchMapOutput
ToManagedswitchMapOutputWithContext(context.Context) ManagedswitchMapOutput
}
type ManagedswitchMap map[string]ManagedswitchInput
func (ManagedswitchMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Managedswitch)(nil)).Elem()
}
func (i ManagedswitchMap) ToManagedswitchMapOutput() ManagedswitchMapOutput {
return i.ToManagedswitchMapOutputWithContext(context.Background())
}
func (i ManagedswitchMap) ToManagedswitchMapOutputWithContext(ctx context.Context) ManagedswitchMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ManagedswitchMapOutput)
}
type ManagedswitchOutput struct{ *pulumi.OutputState }
func (ManagedswitchOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Managedswitch)(nil)).Elem()
}
func (o ManagedswitchOutput) ToManagedswitchOutput() ManagedswitchOutput {
return o
}
func (o ManagedswitchOutput) ToManagedswitchOutputWithContext(ctx context.Context) ManagedswitchOutput {
return o
}
// FortiSwitch access profile.
func (o ManagedswitchOutput) AccessProfile() pulumi.StringOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringOutput { return v.AccessProfile }).(pulumi.StringOutput)
}
// Configuration method to edit FortiSwitch commands to be pushed to this FortiSwitch device upon rebooting the FortiGate switch controller or the FortiSwitch. The structure of `customCommand` block is documented below.
func (o ManagedswitchOutput) CustomCommands() ManagedswitchCustomCommandArrayOutput {
return o.ApplyT(func(v *Managedswitch) ManagedswitchCustomCommandArrayOutput { return v.CustomCommands }).(ManagedswitchCustomCommandArrayOutput)
}
// Delayed restart triggered for this FortiSwitch.
func (o ManagedswitchOutput) DelayedRestartTrigger() pulumi.IntOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.IntOutput { return v.DelayedRestartTrigger }).(pulumi.IntOutput)
}
// Description.
func (o ManagedswitchOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// DHCP snooping server access list. Valid values: `global`, `enable`, `disable`.
func (o ManagedswitchOutput) DhcpServerAccessList() pulumi.StringOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringOutput { return v.DhcpServerAccessList }).(pulumi.StringOutput)
}
// Configure FortiSwitch DHCP snooping static clients. The structure of `dhcpSnoopingStaticClient` block is documented below.
func (o ManagedswitchOutput) DhcpSnoopingStaticClients() ManagedswitchDhcpSnoopingStaticClientArrayOutput {
return o.ApplyT(func(v *Managedswitch) ManagedswitchDhcpSnoopingStaticClientArrayOutput {
return v.DhcpSnoopingStaticClients
}).(ManagedswitchDhcpSnoopingStaticClientArrayOutput)
}
// Directly connected FortiSwitch.
func (o ManagedswitchOutput) DirectlyConnected() pulumi.IntOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.IntOutput { return v.DirectlyConnected }).(pulumi.IntOutput)
}
// List of features this FortiSwitch supports (not configurable) that is sent to the FortiGate device for subsequent configuration initiated by the FortiGate device.
func (o ManagedswitchOutput) DynamicCapability() pulumi.IntOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.IntOutput { return v.DynamicCapability }).(pulumi.IntOutput)
}
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
func (o ManagedswitchOutput) DynamicSortSubtable() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringPtrOutput { return v.DynamicSortSubtable }).(pulumi.StringPtrOutput)
}
// Dynamically discovered FortiSwitch.
func (o ManagedswitchOutput) DynamicallyDiscovered() pulumi.IntOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.IntOutput { return v.DynamicallyDiscovered }).(pulumi.IntOutput)
}
// Enable/disable provisioning of firmware to FortiSwitches on join connection. Valid values: `enable`, `disable`.
func (o ManagedswitchOutput) FirmwareProvision() pulumi.StringOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringOutput { return v.FirmwareProvision }).(pulumi.StringOutput)
}
// Enable/disable one-time automatic provisioning of the latest firmware version. Valid values: `disable`, `once`.
func (o ManagedswitchOutput) FirmwareProvisionLatest() pulumi.StringOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringOutput { return v.FirmwareProvisionLatest }).(pulumi.StringOutput)
}
// Firmware version to provision to this FortiSwitch on bootup (major.minor.build, i.e. 6.2.1234).
func (o ManagedswitchOutput) FirmwareProvisionVersion() pulumi.StringOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringOutput { return v.FirmwareProvisionVersion }).(pulumi.StringOutput)
}
// Flow-tracking netflow ipfix switch identity in hex format(00000000-FFFFFFFF default=0).
func (o ManagedswitchOutput) FlowIdentity() pulumi.StringOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringOutput { return v.FlowIdentity }).(pulumi.StringOutput)
}
// FortiSwitch WAN1 admin status; enable to authorize the FortiSwitch as a managed switch. Valid values: `discovered`, `disable`, `enable`.
func (o ManagedswitchOutput) FswWan1Admin() pulumi.StringOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringOutput { return v.FswWan1Admin }).(pulumi.StringOutput)
}
// Fortiswitch WAN1 peer port.
func (o ManagedswitchOutput) FswWan1Peer() pulumi.StringOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringOutput { return v.FswWan1Peer }).(pulumi.StringOutput)
}
// FortiSwitch WAN2 admin status; enable to authorize the FortiSwitch as a managed switch. Valid values: `discovered`, `disable`, `enable`.
func (o ManagedswitchOutput) FswWan2Admin() pulumi.StringOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringOutput { return v.FswWan2Admin }).(pulumi.StringOutput)
}
// FortiSwitch WAN2 peer port.
func (o ManagedswitchOutput) FswWan2Peer() pulumi.StringOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringOutput { return v.FswWan2Peer }).(pulumi.StringOutput)
}
// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
func (o ManagedswitchOutput) GetAllTables() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.StringPtrOutput { return v.GetAllTables }).(pulumi.StringPtrOutput)
}
// Configure FortiSwitch IGMP snooping global settings. The structure of `igmpSnooping` block is documented below.
func (o ManagedswitchOutput) IgmpSnooping() ManagedswitchIgmpSnoopingOutput {
return o.ApplyT(func(v *Managedswitch) ManagedswitchIgmpSnoopingOutput { return v.IgmpSnooping }).(ManagedswitchIgmpSnoopingOutput)
}
// IP source guard. The structure of `ipSourceGuard` block is documented below.
func (o ManagedswitchOutput) IpSourceGuards() ManagedswitchIpSourceGuardArrayOutput {
return o.ApplyT(func(v *Managedswitch) ManagedswitchIpSourceGuardArrayOutput { return v.IpSourceGuards }).(ManagedswitchIpSourceGuardArrayOutput)
}
// Layer 3 management discovered.
func (o ManagedswitchOutput) L3Discovered() pulumi.IntOutput {
return o.ApplyT(func(v *Managedswitch) pulumi.IntOutput { return v.L3Discovered }).(pulumi.IntOutput)
}
// FortiSwitch maximum allowed trunk members.