From d13d40b020e8d576b92d8380c6188bbc114756f1 Mon Sep 17 00:00:00 2001 From: FTNT-HQCM Date: Mon, 6 May 2024 10:54:39 -0700 Subject: [PATCH] init/updateFortiAnalyzerTerraform: 1.3.3 Signed-off-by: FTNT-HQCM --- CHANGELOG.md | 16 +- faz/provider.go | 8 +- faz/resource_dvm_cmd_add_device.go | 2 +- faz/resource_dvm_cmd_del_device.go | 2 +- faz/resource_dvmdb_group.go | 2 +- faz/resource_system_admin_ldap.go | 2 +- faz/resource_system_admin_user.go | 2 +- faz/resource_system_global_sslciphersuites.go | 5 +- faz/resource_system_ha_peer.go | 2 +- faz/resource_system_ha_privatepeer.go | 2 +- faz/resource_system_ha_vip.go | 2 +- faz/resource_system_localinpolicy.go | 2 +- faz/resource_system_localinpolicy6.go | 2 +- faz/resource_system_log_devicedisable.go | 2 +- faz/resource_system_log_maildomain.go | 2 +- faz/resource_system_log_ratelimit_device.go | 2 +- ...esource_system_log_ratelimit_ratelimits.go | 2 +- faz/resource_system_logfetch_clientprofile.go | 2 +- faz/resource_system_logforward.go | 2 +- faz/resource_system_mail.go | 2 +- faz/resource_system_ntp_ntpserver.go | 2 +- faz/resource_system_sniffer.go | 2 +- faz/resource_system_snmp_community.go | 2 +- faz/resource_system_sql_customindex.go | 2 +- faz/resource_system_sql_customskipidx.go | 2 +- sdk/sdkcore/sdkfos.go | 360 +++++++++--------- ...ystem_global_sslciphersuites.html.markdown | 4 +- 27 files changed, 223 insertions(+), 214 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44221d2..bd4eb9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,22 @@ ## 1.4.0 (Unreleased) +## 1.3.3 (May 1, 2024) + +IMPROVEMENTS: + +* Support FortiAnalyzer v7.0.11, v7.0.12; +* Change fortianalyzer_system_global_sslciphersuites mkey from cipher to priority; +* Improve logic of parameters fosid and fazadom; + ## 1.3.2 (Feb 20, 2024) IMPROVEMENTS: * Support FortiAnalyzer v7.4.2; -* Support provider parameter clean_session. Terraform will automaticly logout session. -* Support provider parameter token. You can use token to login rather than specify username and password. -* Support provider parameter logsession. By setting it as true, you can save your autogenerated session to the file presession.txt. -* Support provider parameter presession. You can specify your session rather than specify username and password. +* Support provider parameter clean_session. Terraform will automaticly logout session; +* Support provider parameter token. You can use token to login rather than specify username and password; +* Support provider parameter logsession. By setting it as true, you can save your autogenerated session to the file presession.txt; +* Support provider parameter presession. You can specify your session rather than specify username and password; ## 1.3.1 (Nov 27, 2023) diff --git a/faz/provider.go b/faz/provider.go index fd75dd5..1378858 100644 --- a/faz/provider.go +++ b/faz/provider.go @@ -146,13 +146,13 @@ func Provider() *schema.Provider { "fortianalyzer_system_certificate_ca": resourceSystemCertificateCa(), "fortianalyzer_system_certificate_crl": resourceSystemCertificateCrl(), "fortianalyzer_system_certificate_local": resourceSystemCertificateLocal(), - "fortianalyzer_system_csf_trustedlist": resourceSystemCsfTrustedList(), "fortianalyzer_system_certificate_oftp": resourceSystemCertificateOftp(), - "fortianalyzer_system_csf_fabricconnector": resourceSystemCsfFabricConnector(), "fortianalyzer_system_certificate_remote": resourceSystemCertificateRemote(), - "fortianalyzer_system_csf": resourceSystemCsf(), "fortianalyzer_system_certificate_ssh": resourceSystemCertificateSsh(), "fortianalyzer_system_connector": resourceSystemConnector(), + "fortianalyzer_system_csf": resourceSystemCsf(), + "fortianalyzer_system_csf_fabricconnector": resourceSystemCsfFabricConnector(), + "fortianalyzer_system_csf_trustedlist": resourceSystemCsfTrustedList(), "fortianalyzer_system_dns": resourceSystemDns(), "fortianalyzer_system_docker": resourceSystemDocker(), "fortianalyzer_system_fips": resourceSystemFips(), @@ -193,9 +193,9 @@ func Provider() *schema.Provider { "fortianalyzer_system_log_devicedisable": resourceSystemLogDeviceDisable(), "fortianalyzer_system_log_fospolicystats": resourceSystemLogFosPolicyStats(), "fortianalyzer_system_log_interfacestats": resourceSystemLogInterfaceStats(), - "fortianalyzer_system_log_pcapfile": resourceSystemLogPcapFile(), "fortianalyzer_system_log_ioc": resourceSystemLogIoc(), "fortianalyzer_system_log_maildomain": resourceSystemLogMailDomain(), + "fortianalyzer_system_log_pcapfile": resourceSystemLogPcapFile(), "fortianalyzer_system_log_ratelimit": resourceSystemLogRatelimit(), "fortianalyzer_system_log_ratelimit_device": resourceSystemLogRatelimitDevice(), "fortianalyzer_system_log_ratelimit_ratelimits": resourceSystemLogRatelimitRatelimits(), diff --git a/faz/resource_dvm_cmd_add_device.go b/faz/resource_dvm_cmd_add_device.go index 8eaf10e..54e6e85 100644 --- a/faz/resource_dvm_cmd_add_device.go +++ b/faz/resource_dvm_cmd_add_device.go @@ -642,7 +642,7 @@ func expandDvmCmdAddDeviceGroupsVdom(d *schema.ResourceData, v interface{}, pre func getObjectDvmCmdAddDevice(d *schema.ResourceData) (*map[string]interface{}, error) { obj := make(map[string]interface{}) - if v, ok := d.GetOk("fazadom"); ok || d.HasChange("adom") { + if v, ok := d.GetOk("fazadom"); ok || d.HasChange("fazadom") { t, err := expandDvmCmdAddDeviceAdom(d, v, "fazadom") if err != nil { return &obj, err diff --git a/faz/resource_dvm_cmd_del_device.go b/faz/resource_dvm_cmd_del_device.go index 82de574..577a33c 100644 --- a/faz/resource_dvm_cmd_del_device.go +++ b/faz/resource_dvm_cmd_del_device.go @@ -155,7 +155,7 @@ func expandDvmCmdDelDeviceFlags(d *schema.ResourceData, v interface{}, pre strin func getObjectDvmCmdDelDevice(d *schema.ResourceData) (*map[string]interface{}, error) { obj := make(map[string]interface{}) - if v, ok := d.GetOk("fazadom"); ok || d.HasChange("adom") { + if v, ok := d.GetOk("fazadom"); ok || d.HasChange("fazadom") { t, err := expandDvmCmdDelDeviceAdom(d, v, "fazadom") if err != nil { return &obj, err diff --git a/faz/resource_dvmdb_group.go b/faz/resource_dvmdb_group.go index d0f5d26..7afbd2f 100644 --- a/faz/resource_dvmdb_group.go +++ b/faz/resource_dvmdb_group.go @@ -346,7 +346,7 @@ func getObjectDvmdbGroup(d *schema.ResourceData) (*map[string]interface{}, error } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandDvmdbGroupId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_admin_ldap.go b/faz/resource_system_admin_ldap.go index 82879f6..799bfb2 100644 --- a/faz/resource_system_admin_ldap.go +++ b/faz/resource_system_admin_ldap.go @@ -688,7 +688,7 @@ func expandSystemAdminLdapUsername(d *schema.ResourceData, v interface{}, pre st func getObjectSystemAdminLdap(d *schema.ResourceData) (*map[string]interface{}, error) { obj := make(map[string]interface{}) - if v, ok := d.GetOk("fazadom"); ok || d.HasChange("adom") { + if v, ok := d.GetOk("fazadom"); ok || d.HasChange("fazadom") { t, err := expandSystemAdminLdapAdom(d, v, "fazadom") if err != nil { return &obj, err diff --git a/faz/resource_system_admin_user.go b/faz/resource_system_admin_user.go index f81a95a..c94c97d 100644 --- a/faz/resource_system_admin_user.go +++ b/faz/resource_system_admin_user.go @@ -2626,7 +2626,7 @@ func expandSystemAdminUserWildcard(d *schema.ResourceData, v interface{}, pre st func getObjectSystemAdminUser(d *schema.ResourceData) (*map[string]interface{}, error) { obj := make(map[string]interface{}) - if v, ok := d.GetOk("fazadom"); ok || d.HasChange("adom") { + if v, ok := d.GetOk("fazadom"); ok || d.HasChange("fazadom") { t, err := expandSystemAdminUserAdom(d, v, "fazadom") if err != nil { return &obj, err diff --git a/faz/resource_system_global_sslciphersuites.go b/faz/resource_system_global_sslciphersuites.go index 302b2fb..8737148 100644 --- a/faz/resource_system_global_sslciphersuites.go +++ b/faz/resource_system_global_sslciphersuites.go @@ -35,6 +35,7 @@ func resourceSystemGlobalSslCipherSuites() *schema.Resource { }, "priority": &schema.Schema{ Type: schema.TypeInt, + ForceNew: true, Optional: true, }, "version": &schema.Schema{ @@ -63,7 +64,7 @@ func resourceSystemGlobalSslCipherSuitesCreate(d *schema.ResourceData, m interfa return fmt.Errorf("Error creating SystemGlobalSslCipherSuites resource: %v", err) } - d.SetId(getStringKey(d, "cipher")) + d.SetId(strconv.Itoa(getIntKey(d, "priority"))) return resourceSystemGlobalSslCipherSuitesRead(d, m) } @@ -87,7 +88,7 @@ func resourceSystemGlobalSslCipherSuitesUpdate(d *schema.ResourceData, m interfa log.Printf(strconv.Itoa(c.Retries)) - d.SetId(getStringKey(d, "cipher")) + d.SetId(strconv.Itoa(getIntKey(d, "priority"))) return resourceSystemGlobalSslCipherSuitesRead(d, m) } diff --git a/faz/resource_system_ha_peer.go b/faz/resource_system_ha_peer.go index bac832b..0d00874 100644 --- a/faz/resource_system_ha_peer.go +++ b/faz/resource_system_ha_peer.go @@ -250,7 +250,7 @@ func expandSystemHaPeerStatus(d *schema.ResourceData, v interface{}, pre string) func getObjectSystemHaPeer(d *schema.ResourceData) (*map[string]interface{}, error) { obj := make(map[string]interface{}) - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemHaPeerId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_ha_privatepeer.go b/faz/resource_system_ha_privatepeer.go index 3cfcff0..3920d38 100644 --- a/faz/resource_system_ha_privatepeer.go +++ b/faz/resource_system_ha_privatepeer.go @@ -251,7 +251,7 @@ func expandSystemHaPrivatePeerStatus(d *schema.ResourceData, v interface{}, pre func getObjectSystemHaPrivatePeer(d *schema.ResourceData) (*map[string]interface{}, error) { obj := make(map[string]interface{}) - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemHaPrivatePeerId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_ha_vip.go b/faz/resource_system_ha_vip.go index 167d709..7305a29 100644 --- a/faz/resource_system_ha_vip.go +++ b/faz/resource_system_ha_vip.go @@ -228,7 +228,7 @@ func expandSystemHaVipVipInterface(d *schema.ResourceData, v interface{}, pre st func getObjectSystemHaVip(d *schema.ResourceData) (*map[string]interface{}, error) { obj := make(map[string]interface{}) - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemHaVipId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_localinpolicy.go b/faz/resource_system_localinpolicy.go index 8a5338a..aa308d1 100644 --- a/faz/resource_system_localinpolicy.go +++ b/faz/resource_system_localinpolicy.go @@ -326,7 +326,7 @@ func getObjectSystemLocalInPolicy(d *schema.ResourceData) (*map[string]interface } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemLocalInPolicyId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_localinpolicy6.go b/faz/resource_system_localinpolicy6.go index a998afb..8a297ad 100644 --- a/faz/resource_system_localinpolicy6.go +++ b/faz/resource_system_localinpolicy6.go @@ -324,7 +324,7 @@ func getObjectSystemLocalInPolicy6(d *schema.ResourceData) (*map[string]interfac } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemLocalInPolicy6Id(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_log_devicedisable.go b/faz/resource_system_log_devicedisable.go index 61684cd..b6fc6d9 100644 --- a/faz/resource_system_log_devicedisable.go +++ b/faz/resource_system_log_devicedisable.go @@ -223,7 +223,7 @@ func getObjectSystemLogDeviceDisable(d *schema.ResourceData) (*map[string]interf } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemLogDeviceDisableId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_log_maildomain.go b/faz/resource_system_log_maildomain.go index fb7b5da..7697358 100644 --- a/faz/resource_system_log_maildomain.go +++ b/faz/resource_system_log_maildomain.go @@ -246,7 +246,7 @@ func getObjectSystemLogMailDomain(d *schema.ResourceData) (*map[string]interface } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemLogMailDomainId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_log_ratelimit_device.go b/faz/resource_system_log_ratelimit_device.go index 246ab8a..e22a61f 100644 --- a/faz/resource_system_log_ratelimit_device.go +++ b/faz/resource_system_log_ratelimit_device.go @@ -246,7 +246,7 @@ func getObjectSystemLogRatelimitDevice(d *schema.ResourceData) (*map[string]inte } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemLogRatelimitDeviceId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_log_ratelimit_ratelimits.go b/faz/resource_system_log_ratelimit_ratelimits.go index bdc08cf..dd9c675 100644 --- a/faz/resource_system_log_ratelimit_ratelimits.go +++ b/faz/resource_system_log_ratelimit_ratelimits.go @@ -246,7 +246,7 @@ func getObjectSystemLogRatelimitRatelimits(d *schema.ResourceData) (*map[string] } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemLogRatelimitRatelimitsId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_logfetch_clientprofile.go b/faz/resource_system_logfetch_clientprofile.go index 15125b7..2957b76 100644 --- a/faz/resource_system_logfetch_clientprofile.go +++ b/faz/resource_system_logfetch_clientprofile.go @@ -916,7 +916,7 @@ func getObjectSystemLogFetchClientProfile(d *schema.ResourceData) (*map[string]i } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemLogFetchClientProfileId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_logforward.go b/faz/resource_system_logforward.go index 931519c..fdec157 100644 --- a/faz/resource_system_logforward.go +++ b/faz/resource_system_logforward.go @@ -1928,7 +1928,7 @@ func getObjectSystemLogForward(d *schema.ResourceData) (*map[string]interface{}, } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemLogForwardId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_mail.go b/faz/resource_system_mail.go index 9936685..97e134e 100644 --- a/faz/resource_system_mail.go +++ b/faz/resource_system_mail.go @@ -382,7 +382,7 @@ func getObjectSystemMail(d *schema.ResourceData) (*map[string]interface{}, error } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemMailId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_ntp_ntpserver.go b/faz/resource_system_ntp_ntpserver.go index f23deae..1598e15 100644 --- a/faz/resource_system_ntp_ntpserver.go +++ b/faz/resource_system_ntp_ntpserver.go @@ -321,7 +321,7 @@ func getObjectSystemNtpNtpserver(d *schema.ResourceData) (*map[string]interface{ } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemNtpNtpserverId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_sniffer.go b/faz/resource_system_sniffer.go index 99887b3..b28e145 100644 --- a/faz/resource_system_sniffer.go +++ b/faz/resource_system_sniffer.go @@ -349,7 +349,7 @@ func getObjectSystemSniffer(d *schema.ResourceData) (*map[string]interface{}, er } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemSnifferId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_snmp_community.go b/faz/resource_system_snmp_community.go index a460750..cef247e 100644 --- a/faz/resource_system_snmp_community.go +++ b/faz/resource_system_snmp_community.go @@ -749,7 +749,7 @@ func getObjectSystemSnmpCommunity(d *schema.ResourceData) (*map[string]interface } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemSnmpCommunityId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_sql_customindex.go b/faz/resource_system_sql_customindex.go index 07e0de2..4b48cce 100644 --- a/faz/resource_system_sql_customindex.go +++ b/faz/resource_system_sql_customindex.go @@ -270,7 +270,7 @@ func getObjectSystemSqlCustomIndex(d *schema.ResourceData) (*map[string]interfac } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemSqlCustomIndexId(d, v, "fosid") if err != nil { return &obj, err diff --git a/faz/resource_system_sql_customskipidx.go b/faz/resource_system_sql_customskipidx.go index b8dc31e..aea4c72 100644 --- a/faz/resource_system_sql_customskipidx.go +++ b/faz/resource_system_sql_customskipidx.go @@ -238,7 +238,7 @@ func getObjectSystemSqlCustomSkipidx(d *schema.ResourceData) (*map[string]interf } } - if v, ok := d.GetOk("fosid"); ok || d.HasChange("id") { + if v, ok := d.GetOk("fosid"); ok || d.HasChange("fosid") { t, err := expandSystemSqlCustomSkipidxId(d, v, "fosid") if err != nil { return &obj, err diff --git a/sdk/sdkcore/sdkfos.go b/sdk/sdkcore/sdkfos.go index 440439a..1a6f7a5 100644 --- a/sdk/sdkcore/sdkfos.go +++ b/sdk/sdkcore/sdkfos.go @@ -2133,72 +2133,6 @@ func (c *FortiSDKClient) ReadSystemCertificateLocal(globaladom, mkey string, par return } -// CreateSystemCsfTrustedList API operation for FortiAnalyzer creates a new CsfTrusted List. -// Returns the index value of the CsfTrusted List and execution result when the request executes successfully. -// Returns error for service API and SDK errors. -// See the system - csf trusted-list chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) CreateSystemCsfTrustedList(params *map[string]interface{}, globaladom string, paralist []string) (output map[string]interface{}, err error) { - path := "/cli/[*]/system/csf/trusted-list" - path, err = replaceParaWithValue(path, paralist) - if err != nil { - return nil, fmt.Errorf("%v", err) - } - - output, err = createUpdate(c, globaladom, path, "add", params, false) - return -} - -// UpdateSystemCsfTrustedList API operation for FortiAnalyzer updates the specified CsfTrusted List. -// Returns the index value of the CsfTrusted List and execution result when the request executes successfully. -// Returns error for service API and SDK errors. -// See the system - csf trusted-list chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) UpdateSystemCsfTrustedList(params *map[string]interface{}, globaladom, mkey string, paralist []string) (output map[string]interface{}, err error) { - path := "/cli/[*]/system/csf/trusted-list" - path, err = replaceParaWithValue(path, paralist) - if err != nil { - return nil, fmt.Errorf("%v", err) - } - - path += "/" + escapeURLString(mkey) - - output, err = createUpdate(c, globaladom, path, "set", params, false) - return -} - -// DeleteSystemCsfTrustedList API operation for FortiAnalyzer deletes the specified CsfTrusted List. -// Returns error for service API and SDK errors. -// See the system - csf trusted-list chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) DeleteSystemCsfTrustedList(globaladom, mkey string, paralist []string) (err error) { - path := "/cli/[*]/system/csf/trusted-list" - path, err = replaceParaWithValue(path, paralist) - if err != nil { - return fmt.Errorf("%v", err) - } - - path += "/" + escapeURLString(mkey) - - err = delete(c, globaladom, path, "delete", false) - return -} - -// ReadSystemCsfTrustedList API operation for FortiAnalyzer gets the CsfTrusted List -// with the specified index value. -// Returns the requested CsfTrusted List value when the request executes successfully. -// Returns error for service API and SDK errors. -// See the system - csf trusted-list chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) ReadSystemCsfTrustedList(globaladom, mkey string, paralist []string) (mapTmp map[string]interface{}, err error) { - path := "/cli/[*]/system/csf/trusted-list" - path, err = replaceParaWithValue(path, paralist) - if err != nil { - return nil, fmt.Errorf("%v", err) - } - - path += "/" + escapeURLString(mkey) - - mapTmp, err = read(c, globaladom, path, "get", false) - return -} - // UpdateSystemCertificateOftp API operation for FortiAnalyzer updates the specified CertificateOftp. // Returns the index value of the CertificateOftp and execution result when the request executes successfully. @@ -2242,12 +2176,12 @@ func (c *FortiSDKClient) ReadSystemCertificateOftp(globaladom, mkey string, para return } -// CreateSystemCsfFabricConnector API operation for FortiAnalyzer creates a new CsfFabric Connector. -// Returns the index value of the CsfFabric Connector and execution result when the request executes successfully. +// CreateSystemCertificateRemote API operation for FortiAnalyzer creates a new CertificateRemote. +// Returns the index value of the CertificateRemote and execution result when the request executes successfully. // Returns error for service API and SDK errors. -// See the system - csf fabric-connector chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) CreateSystemCsfFabricConnector(params *map[string]interface{}, globaladom string, paralist []string) (output map[string]interface{}, err error) { - path := "/cli/[*]/system/csf/fabric-connector" +// See the system - certificate remote chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) CreateSystemCertificateRemote(params *map[string]interface{}, globaladom string, paralist []string) (output map[string]interface{}, err error) { + path := "/cli/[*]/system/certificate/remote" path, err = replaceParaWithValue(path, paralist) if err != nil { return nil, fmt.Errorf("%v", err) @@ -2257,12 +2191,12 @@ func (c *FortiSDKClient) CreateSystemCsfFabricConnector(params *map[string]inter return } -// UpdateSystemCsfFabricConnector API operation for FortiAnalyzer updates the specified CsfFabric Connector. -// Returns the index value of the CsfFabric Connector and execution result when the request executes successfully. +// UpdateSystemCertificateRemote API operation for FortiAnalyzer updates the specified CertificateRemote. +// Returns the index value of the CertificateRemote and execution result when the request executes successfully. // Returns error for service API and SDK errors. -// See the system - csf fabric-connector chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) UpdateSystemCsfFabricConnector(params *map[string]interface{}, globaladom, mkey string, paralist []string) (output map[string]interface{}, err error) { - path := "/cli/[*]/system/csf/fabric-connector" +// See the system - certificate remote chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) UpdateSystemCertificateRemote(params *map[string]interface{}, globaladom, mkey string, paralist []string) (output map[string]interface{}, err error) { + path := "/cli/[*]/system/certificate/remote" path, err = replaceParaWithValue(path, paralist) if err != nil { return nil, fmt.Errorf("%v", err) @@ -2274,11 +2208,11 @@ func (c *FortiSDKClient) UpdateSystemCsfFabricConnector(params *map[string]inter return } -// DeleteSystemCsfFabricConnector API operation for FortiAnalyzer deletes the specified CsfFabric Connector. +// DeleteSystemCertificateRemote API operation for FortiAnalyzer deletes the specified CertificateRemote. // Returns error for service API and SDK errors. -// See the system - csf fabric-connector chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) DeleteSystemCsfFabricConnector(globaladom, mkey string, paralist []string) (err error) { - path := "/cli/[*]/system/csf/fabric-connector" +// See the system - certificate remote chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) DeleteSystemCertificateRemote(globaladom, mkey string, paralist []string) (err error) { + path := "/cli/[*]/system/certificate/remote" path, err = replaceParaWithValue(path, paralist) if err != nil { return fmt.Errorf("%v", err) @@ -2290,13 +2224,13 @@ func (c *FortiSDKClient) DeleteSystemCsfFabricConnector(globaladom, mkey string, return } -// ReadSystemCsfFabricConnector API operation for FortiAnalyzer gets the CsfFabric Connector +// ReadSystemCertificateRemote API operation for FortiAnalyzer gets the CertificateRemote // with the specified index value. -// Returns the requested CsfFabric Connector value when the request executes successfully. +// Returns the requested CertificateRemote value when the request executes successfully. // Returns error for service API and SDK errors. -// See the system - csf fabric-connector chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) ReadSystemCsfFabricConnector(globaladom, mkey string, paralist []string) (mapTmp map[string]interface{}, err error) { - path := "/cli/[*]/system/csf/fabric-connector" +// See the system - certificate remote chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) ReadSystemCertificateRemote(globaladom, mkey string, paralist []string) (mapTmp map[string]interface{}, err error) { + path := "/cli/[*]/system/certificate/remote" path, err = replaceParaWithValue(path, paralist) if err != nil { return nil, fmt.Errorf("%v", err) @@ -2308,12 +2242,12 @@ func (c *FortiSDKClient) ReadSystemCsfFabricConnector(globaladom, mkey string, p return } -// CreateSystemCertificateRemote API operation for FortiAnalyzer creates a new CertificateRemote. -// Returns the index value of the CertificateRemote and execution result when the request executes successfully. +// CreateSystemCertificateSsh API operation for FortiAnalyzer creates a new CertificateSsh. +// Returns the index value of the CertificateSsh and execution result when the request executes successfully. // Returns error for service API and SDK errors. -// See the system - certificate remote chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) CreateSystemCertificateRemote(params *map[string]interface{}, globaladom string, paralist []string) (output map[string]interface{}, err error) { - path := "/cli/[*]/system/certificate/remote" +// See the system - certificate ssh chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) CreateSystemCertificateSsh(params *map[string]interface{}, globaladom string, paralist []string) (output map[string]interface{}, err error) { + path := "/cli/[*]/system/certificate/ssh" path, err = replaceParaWithValue(path, paralist) if err != nil { return nil, fmt.Errorf("%v", err) @@ -2323,12 +2257,12 @@ func (c *FortiSDKClient) CreateSystemCertificateRemote(params *map[string]interf return } -// UpdateSystemCertificateRemote API operation for FortiAnalyzer updates the specified CertificateRemote. -// Returns the index value of the CertificateRemote and execution result when the request executes successfully. +// UpdateSystemCertificateSsh API operation for FortiAnalyzer updates the specified CertificateSsh. +// Returns the index value of the CertificateSsh and execution result when the request executes successfully. // Returns error for service API and SDK errors. -// See the system - certificate remote chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) UpdateSystemCertificateRemote(params *map[string]interface{}, globaladom, mkey string, paralist []string) (output map[string]interface{}, err error) { - path := "/cli/[*]/system/certificate/remote" +// See the system - certificate ssh chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) UpdateSystemCertificateSsh(params *map[string]interface{}, globaladom, mkey string, paralist []string) (output map[string]interface{}, err error) { + path := "/cli/[*]/system/certificate/ssh" path, err = replaceParaWithValue(path, paralist) if err != nil { return nil, fmt.Errorf("%v", err) @@ -2340,11 +2274,11 @@ func (c *FortiSDKClient) UpdateSystemCertificateRemote(params *map[string]interf return } -// DeleteSystemCertificateRemote API operation for FortiAnalyzer deletes the specified CertificateRemote. +// DeleteSystemCertificateSsh API operation for FortiAnalyzer deletes the specified CertificateSsh. // Returns error for service API and SDK errors. -// See the system - certificate remote chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) DeleteSystemCertificateRemote(globaladom, mkey string, paralist []string) (err error) { - path := "/cli/[*]/system/certificate/remote" +// See the system - certificate ssh chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) DeleteSystemCertificateSsh(globaladom, mkey string, paralist []string) (err error) { + path := "/cli/[*]/system/certificate/ssh" path, err = replaceParaWithValue(path, paralist) if err != nil { return fmt.Errorf("%v", err) @@ -2356,13 +2290,13 @@ func (c *FortiSDKClient) DeleteSystemCertificateRemote(globaladom, mkey string, return } -// ReadSystemCertificateRemote API operation for FortiAnalyzer gets the CertificateRemote +// ReadSystemCertificateSsh API operation for FortiAnalyzer gets the CertificateSsh // with the specified index value. -// Returns the requested CertificateRemote value when the request executes successfully. +// Returns the requested CertificateSsh value when the request executes successfully. // Returns error for service API and SDK errors. -// See the system - certificate remote chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) ReadSystemCertificateRemote(globaladom, mkey string, paralist []string) (mapTmp map[string]interface{}, err error) { - path := "/cli/[*]/system/certificate/remote" +// See the system - certificate ssh chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) ReadSystemCertificateSsh(globaladom, mkey string, paralist []string) (mapTmp map[string]interface{}, err error) { + path := "/cli/[*]/system/certificate/ssh" path, err = replaceParaWithValue(path, paralist) if err != nil { return nil, fmt.Errorf("%v", err) @@ -2375,6 +2309,49 @@ func (c *FortiSDKClient) ReadSystemCertificateRemote(globaladom, mkey string, pa } +// UpdateSystemConnector API operation for FortiAnalyzer updates the specified Connector. +// Returns the index value of the Connector and execution result when the request executes successfully. +// Returns error for service API and SDK errors. +// See the system - connector chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) UpdateSystemConnector(params *map[string]interface{}, globaladom, mkey string, paralist []string) (output map[string]interface{}, err error) { + path := "/cli/[*]/system/connector" + path, err = replaceParaWithValue(path, paralist) + if err != nil { + return nil, fmt.Errorf("%v", err) + } + + + output, err = createUpdate(c, globaladom, path, "set", params, false) + return +} + +// DeleteSystemConnector API operation for FortiAnalyzer deletes the specified Connector. +// Returns error for service API and SDK errors. +// See the system - connector chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) DeleteSystemConnector(globaladom, mkey string, paralist []string) (err error) { + + //No unset API for system - connector + return +} + +// ReadSystemConnector API operation for FortiAnalyzer gets the Connector +// with the specified index value. +// Returns the requested Connector value when the request executes successfully. +// Returns error for service API and SDK errors. +// See the system - connector chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) ReadSystemConnector(globaladom, mkey string, paralist []string) (mapTmp map[string]interface{}, err error) { + path := "/cli/[*]/system/connector" + path, err = replaceParaWithValue(path, paralist) + if err != nil { + return nil, fmt.Errorf("%v", err) + } + + + mapTmp, err = read(c, globaladom, path, "get", false) + return +} + + // UpdateSystemCsf API operation for FortiAnalyzer updates the specified Csf. // Returns the index value of the Csf and execution result when the request executes successfully. // Returns error for service API and SDK errors. @@ -2417,12 +2394,12 @@ func (c *FortiSDKClient) ReadSystemCsf(globaladom, mkey string, paralist []strin return } -// CreateSystemCertificateSsh API operation for FortiAnalyzer creates a new CertificateSsh. -// Returns the index value of the CertificateSsh and execution result when the request executes successfully. +// CreateSystemCsfFabricConnector API operation for FortiAnalyzer creates a new CsfFabric Connector. +// Returns the index value of the CsfFabric Connector and execution result when the request executes successfully. // Returns error for service API and SDK errors. -// See the system - certificate ssh chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) CreateSystemCertificateSsh(params *map[string]interface{}, globaladom string, paralist []string) (output map[string]interface{}, err error) { - path := "/cli/[*]/system/certificate/ssh" +// See the system - csf fabric-connector chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) CreateSystemCsfFabricConnector(params *map[string]interface{}, globaladom string, paralist []string) (output map[string]interface{}, err error) { + path := "/cli/[*]/system/csf/fabric-connector" path, err = replaceParaWithValue(path, paralist) if err != nil { return nil, fmt.Errorf("%v", err) @@ -2432,12 +2409,12 @@ func (c *FortiSDKClient) CreateSystemCertificateSsh(params *map[string]interface return } -// UpdateSystemCertificateSsh API operation for FortiAnalyzer updates the specified CertificateSsh. -// Returns the index value of the CertificateSsh and execution result when the request executes successfully. +// UpdateSystemCsfFabricConnector API operation for FortiAnalyzer updates the specified CsfFabric Connector. +// Returns the index value of the CsfFabric Connector and execution result when the request executes successfully. // Returns error for service API and SDK errors. -// See the system - certificate ssh chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) UpdateSystemCertificateSsh(params *map[string]interface{}, globaladom, mkey string, paralist []string) (output map[string]interface{}, err error) { - path := "/cli/[*]/system/certificate/ssh" +// See the system - csf fabric-connector chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) UpdateSystemCsfFabricConnector(params *map[string]interface{}, globaladom, mkey string, paralist []string) (output map[string]interface{}, err error) { + path := "/cli/[*]/system/csf/fabric-connector" path, err = replaceParaWithValue(path, paralist) if err != nil { return nil, fmt.Errorf("%v", err) @@ -2449,11 +2426,11 @@ func (c *FortiSDKClient) UpdateSystemCertificateSsh(params *map[string]interface return } -// DeleteSystemCertificateSsh API operation for FortiAnalyzer deletes the specified CertificateSsh. +// DeleteSystemCsfFabricConnector API operation for FortiAnalyzer deletes the specified CsfFabric Connector. // Returns error for service API and SDK errors. -// See the system - certificate ssh chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) DeleteSystemCertificateSsh(globaladom, mkey string, paralist []string) (err error) { - path := "/cli/[*]/system/certificate/ssh" +// See the system - csf fabric-connector chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) DeleteSystemCsfFabricConnector(globaladom, mkey string, paralist []string) (err error) { + path := "/cli/[*]/system/csf/fabric-connector" path, err = replaceParaWithValue(path, paralist) if err != nil { return fmt.Errorf("%v", err) @@ -2465,13 +2442,13 @@ func (c *FortiSDKClient) DeleteSystemCertificateSsh(globaladom, mkey string, par return } -// ReadSystemCertificateSsh API operation for FortiAnalyzer gets the CertificateSsh +// ReadSystemCsfFabricConnector API operation for FortiAnalyzer gets the CsfFabric Connector // with the specified index value. -// Returns the requested CertificateSsh value when the request executes successfully. +// Returns the requested CsfFabric Connector value when the request executes successfully. // Returns error for service API and SDK errors. -// See the system - certificate ssh chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) ReadSystemCertificateSsh(globaladom, mkey string, paralist []string) (mapTmp map[string]interface{}, err error) { - path := "/cli/[*]/system/certificate/ssh" +// See the system - csf fabric-connector chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) ReadSystemCsfFabricConnector(globaladom, mkey string, paralist []string) (mapTmp map[string]interface{}, err error) { + path := "/cli/[*]/system/csf/fabric-connector" path, err = replaceParaWithValue(path, paralist) if err != nil { return nil, fmt.Errorf("%v", err) @@ -2483,44 +2460,67 @@ func (c *FortiSDKClient) ReadSystemCertificateSsh(globaladom, mkey string, paral return } +// CreateSystemCsfTrustedList API operation for FortiAnalyzer creates a new CsfTrusted List. +// Returns the index value of the CsfTrusted List and execution result when the request executes successfully. +// Returns error for service API and SDK errors. +// See the system - csf trusted-list chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) CreateSystemCsfTrustedList(params *map[string]interface{}, globaladom string, paralist []string) (output map[string]interface{}, err error) { + path := "/cli/[*]/system/csf/trusted-list" + path, err = replaceParaWithValue(path, paralist) + if err != nil { + return nil, fmt.Errorf("%v", err) + } + + output, err = createUpdate(c, globaladom, path, "add", params, false) + return +} -// UpdateSystemConnector API operation for FortiAnalyzer updates the specified Connector. -// Returns the index value of the Connector and execution result when the request executes successfully. +// UpdateSystemCsfTrustedList API operation for FortiAnalyzer updates the specified CsfTrusted List. +// Returns the index value of the CsfTrusted List and execution result when the request executes successfully. // Returns error for service API and SDK errors. -// See the system - connector chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) UpdateSystemConnector(params *map[string]interface{}, globaladom, mkey string, paralist []string) (output map[string]interface{}, err error) { - path := "/cli/[*]/system/connector" +// See the system - csf trusted-list chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) UpdateSystemCsfTrustedList(params *map[string]interface{}, globaladom, mkey string, paralist []string) (output map[string]interface{}, err error) { + path := "/cli/[*]/system/csf/trusted-list" path, err = replaceParaWithValue(path, paralist) if err != nil { return nil, fmt.Errorf("%v", err) } + path += "/" + escapeURLString(mkey) output, err = createUpdate(c, globaladom, path, "set", params, false) return } -// DeleteSystemConnector API operation for FortiAnalyzer deletes the specified Connector. +// DeleteSystemCsfTrustedList API operation for FortiAnalyzer deletes the specified CsfTrusted List. // Returns error for service API and SDK errors. -// See the system - connector chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) DeleteSystemConnector(globaladom, mkey string, paralist []string) (err error) { +// See the system - csf trusted-list chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) DeleteSystemCsfTrustedList(globaladom, mkey string, paralist []string) (err error) { + path := "/cli/[*]/system/csf/trusted-list" + path, err = replaceParaWithValue(path, paralist) + if err != nil { + return fmt.Errorf("%v", err) + } - //No unset API for system - connector + path += "/" + escapeURLString(mkey) + + err = delete(c, globaladom, path, "delete", false) return } -// ReadSystemConnector API operation for FortiAnalyzer gets the Connector +// ReadSystemCsfTrustedList API operation for FortiAnalyzer gets the CsfTrusted List // with the specified index value. -// Returns the requested Connector value when the request executes successfully. +// Returns the requested CsfTrusted List value when the request executes successfully. // Returns error for service API and SDK errors. -// See the system - connector chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) ReadSystemConnector(globaladom, mkey string, paralist []string) (mapTmp map[string]interface{}, err error) { - path := "/cli/[*]/system/connector" +// See the system - csf trusted-list chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) ReadSystemCsfTrustedList(globaladom, mkey string, paralist []string) (mapTmp map[string]interface{}, err error) { + path := "/cli/[*]/system/csf/trusted-list" path, err = replaceParaWithValue(path, paralist) if err != nil { return nil, fmt.Errorf("%v", err) } + path += "/" + escapeURLString(mkey) mapTmp, err = read(c, globaladom, path, "get", false) return @@ -4477,49 +4477,6 @@ func (c *FortiSDKClient) ReadSystemLogInterfaceStats(globaladom, mkey string, pa } -// UpdateSystemLogPcapFile API operation for FortiAnalyzer updates the specified LogPcap File. -// Returns the index value of the LogPcap File and execution result when the request executes successfully. -// Returns error for service API and SDK errors. -// See the system - log pcap-file chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) UpdateSystemLogPcapFile(params *map[string]interface{}, globaladom, mkey string, paralist []string) (output map[string]interface{}, err error) { - path := "/cli/[*]/system/log/pcap-file" - path, err = replaceParaWithValue(path, paralist) - if err != nil { - return nil, fmt.Errorf("%v", err) - } - - - output, err = createUpdate(c, globaladom, path, "set", params, false) - return -} - -// DeleteSystemLogPcapFile API operation for FortiAnalyzer deletes the specified LogPcap File. -// Returns error for service API and SDK errors. -// See the system - log pcap-file chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) DeleteSystemLogPcapFile(globaladom, mkey string, paralist []string) (err error) { - - //No unset API for system - log pcap-file - return -} - -// ReadSystemLogPcapFile API operation for FortiAnalyzer gets the LogPcap File -// with the specified index value. -// Returns the requested LogPcap File value when the request executes successfully. -// Returns error for service API and SDK errors. -// See the system - log pcap-file chapter in the FortiAnalyzer Handbook - CLI Reference. -func (c *FortiSDKClient) ReadSystemLogPcapFile(globaladom, mkey string, paralist []string) (mapTmp map[string]interface{}, err error) { - path := "/cli/[*]/system/log/pcap-file" - path, err = replaceParaWithValue(path, paralist) - if err != nil { - return nil, fmt.Errorf("%v", err) - } - - - mapTmp, err = read(c, globaladom, path, "get", false) - return -} - - // UpdateSystemLogIoc API operation for FortiAnalyzer updates the specified LogIoc. // Returns the index value of the LogIoc and execution result when the request executes successfully. // Returns error for service API and SDK errors. @@ -4629,6 +4586,49 @@ func (c *FortiSDKClient) ReadSystemLogMailDomain(globaladom, mkey string, parali } +// UpdateSystemLogPcapFile API operation for FortiAnalyzer updates the specified LogPcap File. +// Returns the index value of the LogPcap File and execution result when the request executes successfully. +// Returns error for service API and SDK errors. +// See the system - log pcap-file chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) UpdateSystemLogPcapFile(params *map[string]interface{}, globaladom, mkey string, paralist []string) (output map[string]interface{}, err error) { + path := "/cli/[*]/system/log/pcap-file" + path, err = replaceParaWithValue(path, paralist) + if err != nil { + return nil, fmt.Errorf("%v", err) + } + + + output, err = createUpdate(c, globaladom, path, "set", params, false) + return +} + +// DeleteSystemLogPcapFile API operation for FortiAnalyzer deletes the specified LogPcap File. +// Returns error for service API and SDK errors. +// See the system - log pcap-file chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) DeleteSystemLogPcapFile(globaladom, mkey string, paralist []string) (err error) { + + //No unset API for system - log pcap-file + return +} + +// ReadSystemLogPcapFile API operation for FortiAnalyzer gets the LogPcap File +// with the specified index value. +// Returns the requested LogPcap File value when the request executes successfully. +// Returns error for service API and SDK errors. +// See the system - log pcap-file chapter in the FortiAnalyzer Handbook - CLI Reference. +func (c *FortiSDKClient) ReadSystemLogPcapFile(globaladom, mkey string, paralist []string) (mapTmp map[string]interface{}, err error) { + path := "/cli/[*]/system/log/pcap-file" + path, err = replaceParaWithValue(path, paralist) + if err != nil { + return nil, fmt.Errorf("%v", err) + } + + + mapTmp, err = read(c, globaladom, path, "get", false) + return +} + + // UpdateSystemLogRatelimit API operation for FortiAnalyzer updates the specified LogRatelimit. // Returns the index value of the LogRatelimit and execution result when the request executes successfully. // Returns error for service API and SDK errors. diff --git a/website/docs/r/fortianalyzer_system_global_sslciphersuites.html.markdown b/website/docs/r/fortianalyzer_system_global_sslciphersuites.html.markdown index c015e85..69d7913 100644 --- a/website/docs/r/fortianalyzer_system_global_sslciphersuites.html.markdown +++ b/website/docs/r/fortianalyzer_system_global_sslciphersuites.html.markdown @@ -24,7 +24,7 @@ The following arguments are supported: ## Attribute Reference In addition to all the above arguments, the following attributes are exported: -* `id` - an identifier for the resource with format {{cipher}}. +* `id` - an identifier for the resource with format {{priority}}. ## Import @@ -32,7 +32,7 @@ System GlobalSslCipherSuites can be imported using any of these accepted formats ``` $ export "FORTIANALYZER_IMPORT_TABLE"="true" -$ terraform import fortianalyzer_system_global_sslciphersuites.labelname {{cipher}} +$ terraform import fortianalyzer_system_global_sslciphersuites.labelname {{priority}} $ unset "FORTIANALYZER_IMPORT_TABLE" ```