Skip to content

Commit acf0e38

Browse files
committed
init/updateFlexVMTerraform: 2.4.3
Signed-off-by: FTNT-HQCM <hq-devops-admin@fortinet.com>
1 parent 9a96575 commit acf0e38

13 files changed

Lines changed: 503 additions & 133 deletions

.goreleaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Visit https://goreleaser.com for documentation on how to customize this
22
# behavior.
3+
version: 2
34
before:
45
hooks:
56
# this is just an example and not a requirement for provider building/publishing
@@ -52,4 +53,4 @@ release:
5253
# Visit your project's GitHub Releases page to publish this release.
5354
draft: true
5455
changelog:
55-
skip: true
56+
disable: true

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
## 2.4.3 (Unreleased)
1+
## 2.4.4 (Unreleased)
2+
3+
## 2.4.3 (November 6, 2025)
4+
5+
IMPROVEMENTS:
6+
7+
* Supported 3 new configurations: `FORTINAC_VM`, `FORTIAPPSEC`, `FORTIDLP`.
28

39
## 2.4.2 (May 29, 2025)
410

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Requirements
88

99
- [Terraform](https://www.terraform.io/downloads.html) 0.12.x +
10-
- [Go](https://golang.org/doc/install) 1.13.x (to build the provider plugin)
10+
- [Go](https://golang.org/doc/install) 1.25.x (to build the provider plugin)
1111

1212
## Building the Provider
1313

fortiflexvm/config.go

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111

1212
var PRODUCT_TYPES = []string{"fgt_vm_bundle", "fmg_vm", "fwb_vm", "fgt_vm_lcs", "fc_ems_op", "faz_vm",
1313
"fpc_vm", "fad_vm", "fortisoar_vm", "fortimail_vm", "fgt_hw", "fap_hw", "fsw_hw",
14-
"fwbc_private", "fwbc_public", "fc_ems_cloud", "fortisase", "fortiedr", "fortindr_cloud", "fortirecon", "siem_cloud"}
14+
"fwbc_private", "fwbc_public", "fc_ems_cloud", "fortisase", "fortiedr", "fortindr_cloud",
15+
"fortirecon", "siem_cloud", "fortinac_vm", "fortiappsec", "fortidlp"}
1516

1617
func fortiAPIPatch(t interface{}) bool {
1718
if t == nil {
@@ -49,6 +50,8 @@ func convProductTypeName2Id(p_type string) int {
4950
return 10
5051
case "FORTIMAIL_VM":
5152
return 11
53+
case "FORTINAC_VM":
54+
return 12
5255
case "FGT_HW":
5356
return 101
5457
case "FAP_HW":
@@ -71,6 +74,10 @@ func convProductTypeName2Id(p_type string) int {
7174
return 208
7275
case "SIEM_CLOUD":
7376
return 209
77+
case "FORTIAPPSEC":
78+
return 211
79+
case "FORTIDLP":
80+
return 212
7481
default:
7582
return 0
7683
}
@@ -98,6 +105,8 @@ func convProductTypeId2Name(p_id int) string {
98105
return "FORTISOAR_VM"
99106
case 11:
100107
return "FORTIMAIL_VM"
108+
case 12:
109+
return "FORTINAC_VM"
101110
case 101:
102111
return "FGT_HW"
103112
case 102:
@@ -120,6 +129,10 @@ func convProductTypeId2Name(p_id int) string {
120129
return "FORTIRECON"
121130
case 209:
122131
return "SIEM_CLOUD"
132+
case 211:
133+
return "FORTIAPPSEC"
134+
case 212:
135+
return "FORTIDLP"
123136
default:
124137
return ""
125138
}
@@ -269,6 +282,32 @@ func convConfParsId2NameList(p_id int) (string, string, string) {
269282
return "fortimail_vm", "addons", "list"
270283
case 76:
271284
return "fortiedr", "repository_storage", "int"
285+
case 77:
286+
return "fortinac_vm", "service_pkg", "string"
287+
case 78:
288+
return "fortinac_vm", "endpoints", "int"
289+
case 79:
290+
return "fortinac_vm", "support_service", "string"
291+
case 82:
292+
return "fortiappsec", "service_types", "list"
293+
case 83:
294+
return "fortiappsec", "waf_service_pkg", "string"
295+
case 84:
296+
return "fortiappsec", "waf_addons", "list"
297+
case 85:
298+
return "fortiappsec", "throughput", "int" // Read only
299+
case 86:
300+
return "fortiappsec", "applications", "int" // Read only
301+
case 87:
302+
return "fortiappsec", "qps", "int" // Read only
303+
case 88:
304+
return "fortiappsec", "health_checks", "int" // Read only
305+
case 90:
306+
return "fortidlp", "service_pkg", "string"
307+
case 91:
308+
return "fortidlp", "endpoints", "int"
309+
case 92:
310+
return "fortidlp", "addons", "list"
272311
default:
273312
return "", "", ""
274313
}
@@ -392,6 +431,17 @@ func convConfParsNameList2Id(p_type, c_name string) int {
392431
default:
393432
return 0
394433
}
434+
case "fortinac_vm":
435+
switch c_name {
436+
case "service_pkg":
437+
return 77
438+
case "endpoints":
439+
return 78
440+
case "support_service":
441+
return 79
442+
default:
443+
return 0
444+
}
395445
case "fgt_hw":
396446
switch c_name {
397447
case "device_model":
@@ -521,6 +571,36 @@ func convConfParsNameList2Id(p_type, c_name string) int {
521571
default:
522572
return 0
523573
}
574+
case "fortiappsec":
575+
switch c_name {
576+
case "service_types":
577+
return 82
578+
case "waf_service_pkg":
579+
return 83
580+
case "waf_addons":
581+
return 84
582+
case "throughput":
583+
return 85
584+
case "applications":
585+
return 86
586+
case "qps":
587+
return 87
588+
case "health_checks":
589+
return 88
590+
default:
591+
return 0
592+
}
593+
case "fortidlp":
594+
switch c_name {
595+
case "service_pkg":
596+
return 90
597+
case "endpoints":
598+
return 91
599+
case "addons":
600+
return 92
601+
default:
602+
return 0
603+
}
524604
default:
525605
return 0
526606
}

fortiflexvm/data_source_configs_list.go

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,26 @@ func dataSourceConfigsList() *schema.Resource {
276276
},
277277
},
278278
},
279+
"fortinac_vm": &schema.Schema{
280+
Type: schema.TypeList,
281+
Computed: true,
282+
Elem: &schema.Resource{
283+
Schema: map[string]*schema.Schema{
284+
"service_pkg": &schema.Schema{
285+
Type: schema.TypeString,
286+
Computed: true,
287+
},
288+
"endpoints": &schema.Schema{
289+
Type: schema.TypeInt,
290+
Computed: true,
291+
},
292+
"support_service": &schema.Schema{
293+
Type: schema.TypeString,
294+
Computed: true,
295+
},
296+
},
297+
},
298+
},
279299
"fgt_hw": &schema.Schema{
280300
Type: schema.TypeList,
281301
Computed: true,
@@ -520,6 +540,65 @@ func dataSourceConfigsList() *schema.Resource {
520540
},
521541
},
522542
},
543+
"fortiappsec": &schema.Schema{
544+
Type: schema.TypeList,
545+
Computed: true,
546+
Elem: &schema.Resource{
547+
Schema: map[string]*schema.Schema{
548+
"service_types": &schema.Schema{
549+
Type: schema.TypeList,
550+
Computed: true,
551+
Elem: &schema.Schema{Type: schema.TypeString},
552+
},
553+
"waf_service_pkg": &schema.Schema{
554+
Type: schema.TypeString,
555+
Computed: true,
556+
},
557+
"waf_addons": &schema.Schema{
558+
Type: schema.TypeList,
559+
Computed: true,
560+
Elem: &schema.Schema{Type: schema.TypeString},
561+
},
562+
"throughput": &schema.Schema{
563+
Type: schema.TypeInt,
564+
Computed: true,
565+
},
566+
"applications": &schema.Schema{
567+
Type: schema.TypeInt,
568+
Computed: true,
569+
},
570+
"qps": &schema.Schema{
571+
Type: schema.TypeInt,
572+
Computed: true,
573+
},
574+
"health_checks": &schema.Schema{
575+
Type: schema.TypeInt,
576+
Computed: true,
577+
},
578+
},
579+
},
580+
},
581+
"fortidlp": &schema.Schema{
582+
Type: schema.TypeList,
583+
Computed: true,
584+
Elem: &schema.Resource{
585+
Schema: map[string]*schema.Schema{
586+
"service_pkg": &schema.Schema{
587+
Type: schema.TypeString,
588+
Computed: true,
589+
},
590+
"endpoints": &schema.Schema{
591+
Type: schema.TypeInt,
592+
Computed: true,
593+
},
594+
"addons": &schema.Schema{
595+
Type: schema.TypeList,
596+
Computed: true,
597+
Elem: &schema.Schema{Type: schema.TypeString},
598+
},
599+
},
600+
},
601+
},
523602
},
524603
},
525604
},

0 commit comments

Comments
 (0)