Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudWafAttackLogHistogram() *schema.Resource
- func DataSourceTencentCloudWafAttackLogList() *schema.Resource
- func DataSourceTencentCloudWafAttackOverview() *schema.Resource
- func DataSourceTencentCloudWafAttackTotalCount() *schema.Resource
- func DataSourceTencentCloudWafCiphers() *schema.Resource
- func DataSourceTencentCloudWafDomains() *schema.Resource
- func DataSourceTencentCloudWafFindDomains() *schema.Resource
- func DataSourceTencentCloudWafInstanceQpsLimit() *schema.Resource
- func DataSourceTencentCloudWafPeakPoints() *schema.Resource
- func DataSourceTencentCloudWafPorts() *schema.Resource
- func DataSourceTencentCloudWafTlsVersions() *schema.Resource
- func DataSourceTencentCloudWafUserClbRegions() *schema.Resource
- func DataSourceTencentCloudWafUserDomains() *schema.Resource
- func DataSourceTencentCloudWafWafInfos() *schema.Resource
- func ResourceTencentCloudWafAntiFake() *schema.Resource
- func ResourceTencentCloudWafAntiInfoLeak() *schema.Resource
- func ResourceTencentCloudWafAutoDenyRules() *schema.Resource
- func ResourceTencentCloudWafCc() *schema.Resource
- func ResourceTencentCloudWafCcAutoStatus() *schema.Resource
- func ResourceTencentCloudWafCcSession() *schema.Resource
- func ResourceTencentCloudWafClbDomain() *schema.Resource
- func ResourceTencentCloudWafClbInstance() *schema.Resource
- func ResourceTencentCloudWafCustomRule() *schema.Resource
- func ResourceTencentCloudWafCustomWhiteRule() *schema.Resource
- func ResourceTencentCloudWafIpAccessControl() *schema.Resource
- func ResourceTencentCloudWafModifyAccessPeriod() *schema.Resource
- func ResourceTencentCloudWafModuleStatus() *schema.Resource
- func ResourceTencentCloudWafProtectionMode() *schema.Resource
- func ResourceTencentCloudWafSaasDomain() *schema.Resource
- func ResourceTencentCloudWafSaasInstance() *schema.Resource
- func ResourceTencentCloudWafWebShell() *schema.Resource
- type WafService
- func (me *WafService) DeleteWafAntiFakeById(ctx context.Context, id, domain string) (errRet error)
- func (me *WafService) DeleteWafAntiInfoLeakById(ctx context.Context, ruleId, domain string) (errRet error)
- func (me *WafService) DeleteWafCcAutoStatusById(ctx context.Context, domain, edition string) (errRet error)
- func (me *WafService) DeleteWafCcById(ctx context.Context, domain, ruleId, name string) (errRet error)
- func (me *WafService) DeleteWafCcSessionById(ctx context.Context, domain, edition, sessionID string) (errRet error)
- func (me *WafService) DeleteWafClbDomainById(ctx context.Context, instanceID, domain, domainId string) (errRet error)
- func (me *WafService) DeleteWafCustomRuleById(ctx context.Context, domain, ruleId string) (errRet error)
- func (me *WafService) DeleteWafCustomWhiteRuleById(ctx context.Context, domain, ruleId string) (errRet error)
- func (me *WafService) DeleteWafIpAccessControlByDiff(ctx context.Context, domain string, ids []string) (errRet error)
- func (me *WafService) DeleteWafIpAccessControlById(ctx context.Context, domain string) (errRet error)
- func (me *WafService) DeleteWafSaasDomainById(ctx context.Context, instanceID, domain string) (errRet error)
- func (me *WafService) DescribeDomainsById(ctx context.Context, instanceID, domain string) (domainInfo *waf.DomainInfo, errRet error)
- func (me *WafService) DescribeSpartaProtectionInfoById(ctx context.Context, domain, edition string) (protectionInfo *waf.DescribeSpartaProtectionInfoResponseParams, errRet error)
- func (me *WafService) DescribeWafAntiFakeById(ctx context.Context, id, domain string) (antiFake *waf.CacheUrlItems, errRet error)
- func (me *WafService) DescribeWafAntiInfoLeakById(ctx context.Context, ruleId, domain string) (antiInfoLeak *waf.DescribeAntiLeakageItem, errRet error)
- func (me *WafService) DescribeWafAttackLogHistogramByFilter(ctx context.Context, param map[string]interface{}) (AttackLogHistogram *waf.GetAttackHistogramResponseParams, errRet error)
- func (me *WafService) DescribeWafAttackLogListByFilter(ctx context.Context, param map[string]interface{}) (AttackLogList []*waf.AttackLogInfo, errRet error)
- func (me *WafService) DescribeWafAttackOverviewByFilter(ctx context.Context, param map[string]interface{}) (AttackOverview *waf.DescribeAttackOverviewResponseParams, errRet error)
- func (me *WafService) DescribeWafAttackTotalCountByFilter(ctx context.Context, param map[string]interface{}) (AttackTotalCount *waf.GetAttackTotalCountResponseParams, errRet error)
- func (me *WafService) DescribeWafAutoDenyRulesById(ctx context.Context, domain string) (autoDenyRules *waf.DescribeWafAutoDenyRulesResponseParams, errRet error)
- func (me *WafService) DescribeWafCcAutoStatusById(ctx context.Context, domain string) (CcAutoStatus *waf.DescribeCCAutoStatusResponseParams, errRet error)
- func (me *WafService) DescribeWafCcById(ctx context.Context, domain, ruleId string) (cc *waf.CCRuleItems, errRet error)
- func (me *WafService) DescribeWafCcSessionById(ctx context.Context, domain, edition, sessionID string) (ccSession *waf.SessionItem, errRet error)
- func (me *WafService) DescribeWafCiphersByFilter(ctx context.Context) (ciphers []*waf.TLSCiphers, errRet error)
- func (me *WafService) DescribeWafClbDomainById(ctx context.Context, instanceID, domain, domainId string) (clbDomainInfo *waf.ClbDomainsInfo, errRet error)
- func (me *WafService) DescribeWafCustomRuleById(ctx context.Context, domain, ruleId string) (CustomRule *waf.DescribeCustomRulesRspRuleListItem, errRet error)
- func (me *WafService) DescribeWafCustomWhiteRuleById(ctx context.Context, domain, ruleId string) (CustomWhiteRule *waf.DescribeCustomRulesRspRuleListItem, errRet error)
- func (me *WafService) DescribeWafDomainsByFilter(ctx context.Context, instanceID, domain string) (domains []*waf.DomainInfo, errRet error)
- func (me *WafService) DescribeWafFindDomainsByFilter(ctx context.Context, param map[string]interface{}) (findDomains []*waf.FindAllDomainDetail, errRet error)
- func (me *WafService) DescribeWafInstanceById(ctx context.Context, instanceId string) (instance *waf.InstanceInfo, errRet error)
- func (me *WafService) DescribeWafInstanceQpsLimitByFilter(ctx context.Context, param map[string]interface{}) (instanceQpsLimit *waf.QpsData, errRet error)
- func (me *WafService) DescribeWafIpAccessControlById(ctx context.Context, domain string) (ipAccessControlList []*waf.IpAccessControlItem, errRet error)
- func (me *WafService) DescribeWafModuleStatusById(ctx context.Context, domain string) (moduleStatus *waf.DescribeModuleStatusResponseParams, errRet error)
- func (me *WafService) DescribeWafPeakPointsByFilter(ctx context.Context, param map[string]interface{}) (PeakPoints []*waf.PeakPointsItem, errRet error)
- func (me *WafService) DescribeWafPortsByFilter(ctx context.Context, param map[string]interface{}) (ports *waf.DescribePortsResponseParams, errRet error)
- func (me *WafService) DescribeWafSaasDomainById(ctx context.Context, instanceID, domain, domainId string) (saasDomain *waf.DomainsPartInfo, errRet error)
- func (me *WafService) DescribeWafTlsVersionsByFilter(ctx context.Context) (tlsVersions []*waf.TLSVersion, errRet error)
- func (me *WafService) DescribeWafUserClbRegionsByFilter(ctx context.Context) (userClbRegions *waf.DescribeUserClbWafRegionsResponseParams, errRet error)
- func (me *WafService) DescribeWafUserDomainsByFilter(ctx context.Context) (userDomains []*waf.UserDomainInfo, errRet error)
- func (me *WafService) DescribeWafWafInfosByFilter(ctx context.Context, param map[string]interface{}) (wafInfos []*waf.ClbHostResult, errRet error)
- func (me *WafService) DescribeWafWebShellById(ctx context.Context, domain string) (webShell *waf.DescribeWebshellStatusResponseParams, errRet error)
Constants ¶
View Source
const ( CUSTOM_RULE_ACTION_TYPE_1 = "1" CUSTOM_RULE_ACTION_TYPE_2 = "2" CUSTOM_RULE_ACTION_TYPE_3 = "3" CUSTOM_RULE_ACTION_TYPE_4 = "4" )
View Source
const ( CUSTOM_RULE_STATUS_0 = "0" CUSTOM_RULE_STATUS_1 = "1" CUSTOM_RULE_STATUS_0_INT = 0 CUSTOM_RULE_STATUS_1_INT = 1 )
View Source
const ( CUSTOM_WHITE_RULE_STATUS_0 = "0" CUSTOM_WHITE_RULE_STATUS_1 = "1" CUSTOM_WHITE_RULE_STATUS_0_INT = 0 CUSTOM_WHITE_RULE_STATUS_1_INT = 1 )
View Source
const ( CLB_DOMAIN_STATUS_0 = 0 CLB_DOMAIN_STATUS_1 = 1 )
View Source
const ( CLB_DOMAIN_ENGINE_10 = 10 CLB_DOMAIN_ENGINE_11 = 11 CLB_DOMAIN_ENGINE_12 = 12 CLB_DOMAIN_ENGINE_20 = 20 CLB_DOMAIN_ENGINE_21 = 21 CLB_DOMAIN_ENGINE_22 = 22 )
View Source
const ( ISCDN_0 = 0 ISCDN_1 = 1 ISCDN_2 = 2 ISCDN_3 = 3 )
View Source
const ( FLOW_MODE_0 = 0 FLOW_MODE_1 = 1 )
View Source
const ( CLS_STATUS_0 = 0 CLS_STATUS_1 = 1 )
View Source
const ( BOT_STATUS_0 = 0 BOT_STATUS_1 = 1 )
View Source
const ( API_SAFE_STATUS_0 = 0 API_SAFE_STATUS_1 = 1 )
View Source
const ( PROTECTION_STATUS_0 = 0 PROTECTION_STATUS_1 = 1 )
View Source
const ( IPV6_ON = 1 IPV6_OFF = 2 )
View Source
const ( ALB_TYPE_CLB = "clb" ALB_TYPE_APISIX = "apisix" ALB_TYPE_TSEGW = "tsegw" )
View Source
const ( CERT_TYPE_0 = 0 CERT_TYPE_1 = 1 CERT_TYPE_2 = 2 )
View Source
const ( UPSTREAM_SCHEME_HTTP = "http" UPSTREAM_SCHEME_HTTPS = "https" )
View Source
const ( IS_GRAY_0 = 0 IS_GRAY_1 = 1 )
View Source
const ( UP_STREAM_TYPE_0 = 0 UP_STREAM_TYPE_1 = 1 )
View Source
const ( IS_HTTP2_0 = 0 IS_HTTP2_1 = 1 )
View Source
const ( IS_WEBSOCKET_0 = 0 IS_WEBSOCKET_1 = 1 )
View Source
const ( LOAD_BALANCE_0 = "0" LOAD_BALANCE_1 = "1" LOAD_BALANCE_2 = "2" )
View Source
const ( HTTPS_REWRITE_0 = 0 HTTPS_REWRITE_1 = 1 )
View Source
const ( ANYCAST_0 = 0 ANYCAST_1 = 1 )
View Source
const ( ACTIVE_CHECK_0 = 0 ACTIVE_CHECK_1 = 1 )
View Source
const ( CIPHER_TEMPLATE_1 = 1 CIPHER_TEMPLATE_2 = 2 CIPHER_TEMPLATE_3 = 3 )
View Source
const ( PROXY_READ_TIMEOUT = 300 PROXY_SEND_TIMEOUT = 300 )
View Source
const ( SNI_TYPE_0 = 0 SNI_TYPE_1 = 1 SNI_TYPE_2 = 2 SNI_TYPE_3 = 3 )
View Source
const ( XFF_RESET_0 = 0 XFF_RESET_1 = 1 )
View Source
const ( IPV6_STATUS_0 = 0 IPV6_STATUS_1 = 1 )
View Source
const ( SAAS_DOMAIN_STATUS_0 = 0 SAAS_DOMAIN_STATUS_1 = 1 )
View Source
const ( IS_KEEP_ALIVE_0 = "0" IS_KEEP_ALIVE_1 = "1" )
View Source
const ( ORDER_ASC = "asc" ORDER_DESC = "desc" )
View Source
const ( WAF_PREMIUM_SAAS = "premium_saas" WAF_ENTERPRISE_SAAS = "enterprise_saas" WAF_ULTIMATE_SAAS = "ultimate_saas" )
View Source
const ( WAF_PREMIUM_CLB = "premium_clb" WAF_ENTERPRISE_CLB = "enterprise_clb" WAF_ULTIMATE_CLB = "ultimate_clb" )
View Source
const ( TIME_UINT_D = "d" TIME_UINT_M = "m" TIME_UINT_Y = "y" )
View Source
const ( REGION_ID_MAINLAND = 1 REGION_ID_NON_MAINLAND = 9 )
View Source
const ( AUTO_RENEW_FLAG_0 = 0 AUTO_RENEW_FLAG_1 = 1 )
View Source
const ( ELASTIC_MODE_0 = 0 ELASTIC_MODE_1 = 1 )
View Source
const ( MAINLAND_0 = 0 MAINLAND_1 = 1 )
View Source
const ( DOMIAN_CATEGORY_ID_SAAS = 102372 DOMAIN_SUB_PRODUCT_CODE_SAAS = "sp_wsm_waf_domain" DOMAIN_PID_SAAS = 1000834 DOMAIN_LABEL_TYPE_SAAS = "sv_wsm_waf_domain" )
View Source
const ( QPS_CATEGORY_ID_SAAS = 101040 QPS_SUB_PRODUCT_CODE_SAAS = "sp_wsm_waf_qpsep" QPS_PID_SAAS = 1000481 QPS_LABEL_TYPE_SAAS = "sv_wsm_waf_qps_ep" )
View Source
const ( DOMIAN_CATEGORY_ID_CLB = 101207 DOMAIN_SUB_PRODUCT_CODE_CLB = "sp_wsm_waf_domain_clb" DOMAIN_PID_CLB = 1001156 DOMAIN_LABEL_TYPE_CLB = "sv_wsm_waf_domain_clb" BOT_MANAGEMENT_CATEGORY_ID_CLB = 1025567 BOT_MANAGEMENT_SUB_PRODUCT_CODE_CLB = "sp_wsm_waf_bot_protection_clb" BOT_MANAGEMENT_PID_CLB = 1017001 API_SECURITY_CATEGORY_ID_CLB = 1027183 API_SECURITY_SUB_PRODUCT_CODE_CLB = "sp_wsm_waf_apiclb" API_SECURITY_PID_CLB = 1028166 BOT_MANAGEMENT_CATEGORY_ID_SAAS = 1025564 BOT_MANAGEMENT_SUB_PRODUCT_CODE_SAAS = "sp_wsm_waf_bot_protection" BOT_MANAGEMENT_PID_SAAS = 1016997 API_SECURITY_CATEGORY_ID_SAAS = 1027180 API_SECURITY_SUB_PRODUCT_CODE_SAAS = "sp_wsm_waf_api" API_SECURITY_PID_SAAS = 1028161 )
View Source
const ( QPS_CATEGORY_ID_CLB = 101210 QPS_SUB_PRODUCT_CODE_CLB = "sp_wsm_waf_qpsep_clb" QPS_PID_CLB = 1001160 QPS_LABEL_TYPE_CLB = "sv_wsm_waf_qps_ep_clb" )
View Source
const ( SAAS_REAL_REGION_MAINLAND_GZ = "gz" SAAS_REAL_REGION_MAINLAND_SH = "sh" SAAS_REAL_REGION_MAINLAND_BJ = "bj" SAAS_REAL_REGION_MAINLAND_CD = "cd" )
View Source
const ( SAAS_REAL_REGION_NON_MAINLAND_HK = "hk" SAAS_REAL_REGION_NON_MAINLAND_SG = "sg" SAAS_REAL_REGION_NON_MAINLAND_TH = "th" SAAS_REAL_REGION_NON_MAINLAND_KR = "kr" SAAS_REAL_REGION_NON_MAINLAND_IN = "in" SAAS_REAL_REGION_NON_MAINLAND_DE = "de" SAAS_REAL_REGION_NON_MAINLAND_CA = "ca" SAAS_REAL_REGION_NON_MAINLAND_USE = "use" SAAS_REAL_REGION_NON_MAINLAND_SAO = "sao" SAAS_REAL_REGION_NON_MAINLAND_USW = "usw" SAAS_REAL_REGION_NON_MAINLAND_JKT = "jkt" )
View Source
const ( EDITION_SAAS = "sparta-waf" EDITION_CLB = "clb-waf" )
View Source
const ( REGION_GZ = "ap-guangzhou" REGION_KR = "ap-seoul" )
View Source
const ( METRIC_NAME_ACCESS = "access" METRIC_NAME_BOTACCESS = "botAccess" METRIC_NAME_DOWN = "down" METRIC_NAME_UP = "up" METRIC_NAME_ATTACK = "attack" METRIC_NAME_CC = "cc" METRIC_NAME_STATUSSERVERERROR = "StatusServerError" METRIC_NAME_STATUSCLIENTERROR = "StatusClientError" METRIC_NAME_STATUSREDIRECT = "StatusRedirect" METRIC_NAME_STATUSOK = "StatusOk" METRIC_NAME_UPSTREAMSERVERERROR = "UpstreamServerError" METRIC_NAME_UPSTREAMCLIENTERROR = "UpstreamClientError" METRIC_NAME_UPSTREAMREDIRECT = "UpstreamRedirect" )
View Source
const ( ANTI_FAKE_URL_STATUS_0 = 0 ANTI_FAKE_URL_STATUS_1 = 1 ANTI_FAKE_URL_STATUS_2 = 2 ANTI_FAKE_URL_STATUS_3 = 3 )
View Source
const ( ANTI_INFO_LEAK_ACTION_TYPE_0 = 0 ANTI_INFO_LEAK_ACTION_TYPE_1 = 1 ANTI_INFO_LEAK_ACTION_TYPE_2 = 2 ANTI_INFO_LEAK_ACTION_TYPE_3 = 3 ANTI_INFO_LEAK_ACTION_TYPE_4 = 4 )
View Source
const ( STRATEGIES_FIELD_RETURNCODE = "returncode" STRATEGIES_FIELD_KEYWORDS = "keywords" STRATEGIES_FIELD_INFORMATION = "information" )
View Source
const ( ANTI_INFO_LEAK_RULE_STATUS_0 = 0 ANTI_INFO_LEAK_RULE_STATUS_1 = 1 )
View Source
const ( BOT_MANAGEMENT_STATUS_0 = 0 BOT_MANAGEMENT_STATUS_1 = 1 )
View Source
const ( API_SECURITY_STATUS_0 = 0 API_SECURITY_STATUS_1 = 1 )
View Source
const (
DescribeDomainVerifyResultSUCCESS = 0
)
View Source
const (
DescribeHostLimitSuccess = "Success"
)
View Source
const (
TLS_VERSION_STATUS_3 = 3
)
Variables ¶
View Source
var ACTIVE_CHECK_STATUS = []int{ ACTIVE_CHECK_0, ACTIVE_CHECK_1, }
View Source
var ALB_TYPES = []string{ ALB_TYPE_CLB, ALB_TYPE_APISIX, ALB_TYPE_TSEGW, }
View Source
var ANTI_FAKE_URL_STATUS = []int{ ANTI_FAKE_URL_STATUS_0, ANTI_FAKE_URL_STATUS_1, ANTI_FAKE_URL_STATUS_2, ANTI_FAKE_URL_STATUS_3, }
View Source
var ANTI_INFO_LEAK_ACTION_TYPE = []int{ ANTI_INFO_LEAK_ACTION_TYPE_0, ANTI_INFO_LEAK_ACTION_TYPE_1, ANTI_INFO_LEAK_ACTION_TYPE_2, ANTI_INFO_LEAK_ACTION_TYPE_3, ANTI_INFO_LEAK_ACTION_TYPE_4, }
View Source
var ANTI_INFO_LEAK_RULE_STATUS = []int{ ANTI_INFO_LEAK_RULE_STATUS_0, ANTI_INFO_LEAK_RULE_STATUS_1, }
View Source
var ANYCAST_STATUS = []int{ ANYCAST_0, ANYCAST_1, }
View Source
var API_SAFE_STATUS = []int{ API_SAFE_STATUS_0, API_SAFE_STATUS_1, }
View Source
var API_SECURITY_LABEL_TYPES_CLB_REGION1 = map[string]string{ WAF_PREMIUM_CLB: "sv_wsm_waf_scene_cpre", WAF_ENTERPRISE_CLB: "sv_wsm_waf_scene_cent", WAF_ULTIMATE_CLB: "sv_wsm_waf_scene_cult", }
View Source
var API_SECURITY_LABEL_TYPES_CLB_REGION9 = map[string]string{ WAF_PREMIUM_CLB: "sv_wsm_waf_scene_cipre", WAF_ENTERPRISE_CLB: "sv_wsm_waf_scene_cient", WAF_ULTIMATE_CLB: "sv_wsm_waf_scene_ciult", }
View Source
var API_SECURITY_LABEL_TYPES_SAAS_REGION1 = map[string]string{ WAF_PREMIUM_SAAS: "sv_wsm_waf_scene_pre", WAF_ENTERPRISE_SAAS: "sv_wsm_waf_scene_ent", WAF_ULTIMATE_SAAS: "sv_wsm_waf_scene_ult", }
View Source
var API_SECURITY_LABEL_TYPES_SAAS_REGION9 = map[string]string{ WAF_PREMIUM_SAAS: "sv_wsm_waf_scene_ipre", WAF_ENTERPRISE_SAAS: "sv_wsm_waf_scene_ient", WAF_ULTIMATE_SAAS: "sv_wsm_waf_scene_iult", }
View Source
var API_SECURITY_STATUS = []int{ API_SECURITY_STATUS_0, API_SECURITY_STATUS_1, }
View Source
var AUTO_RENEW_FLAG = []int{ AUTO_RENEW_FLAG_0, AUTO_RENEW_FLAG_1, }
View Source
var BOT_MANAGEMENT_LABEL_TYPES_CLB = map[int]string{ REGION_ID_MAINLAND: "sv_wsm_waf_scene_bot_protection_clb", REGION_ID_NON_MAINLAND: "sv_wsm_waf_scene_bot_protection_clb_intl", }
View Source
var BOT_MANAGEMENT_LABEL_TYPES_SAAS = map[int]string{ REGION_ID_MAINLAND: "sv_wsm_waf_scene_bot_protection", REGION_ID_NON_MAINLAND: "sv_wsm_waf_scene_bot_protection_intl", }
View Source
var BOT_MANAGEMENT_STATUS = []int{ BOT_MANAGEMENT_STATUS_0, BOT_MANAGEMENT_STATUS_1, }
View Source
var BOT_STATUS = []int{ BOT_STATUS_0, BOT_STATUS_1, }
View Source
var CERT_TYPES = []int{ CERT_TYPE_0, CERT_TYPE_1, CERT_TYPE_2, }
View Source
var CIPHER_TEMPLATES = []int{ CIPHER_TEMPLATE_1, CIPHER_TEMPLATE_2, CIPHER_TEMPLATE_3, }
View Source
var CLB_DOMAIN_ENGINE = []int{ CLB_DOMAIN_ENGINE_10, CLB_DOMAIN_ENGINE_11, CLB_DOMAIN_ENGINE_12, CLB_DOMAIN_ENGINE_20, CLB_DOMAIN_ENGINE_21, CLB_DOMAIN_ENGINE_22, }
View Source
var CLB_DOMAIN_STATUS = []int{ CLB_DOMAIN_STATUS_0, CLB_DOMAIN_STATUS_1, }
View Source
var CLS_STATUS = []int{ CLS_STATUS_0, CLS_STATUS_1, }
View Source
var CUSTOM_RULE_ACTION_TYPE = []string{ CUSTOM_RULE_ACTION_TYPE_1, CUSTOM_RULE_ACTION_TYPE_2, CUSTOM_RULE_ACTION_TYPE_3, CUSTOM_RULE_ACTION_TYPE_4, }
View Source
var CUSTOM_RULE_STATUS = []string{ CUSTOM_RULE_STATUS_0, CUSTOM_RULE_STATUS_1, }
View Source
var CUSTOM_WHITE_RULE_STATUS = []string{ CUSTOM_WHITE_RULE_STATUS_0, CUSTOM_WHITE_RULE_STATUS_1, }
View Source
var EDITION_TYPE = []string{ EDITION_SAAS, EDITION_CLB, }
View Source
var ELASTIC_MODE = []int{ ELASTIC_MODE_0, ELASTIC_MODE_1, }
View Source
var FLOW_MODE_STATUS = []int{ FLOW_MODE_0, FLOW_MODE_1, }
View Source
var HTTPS_REWRITE_STATUS = []int{ HTTPS_REWRITE_0, HTTPS_REWRITE_1, }
View Source
var IPV6_STATUS = []int{ IPV6_STATUS_0, IPV6_STATUS_1, }
View Source
var IS_GRAY_STATUS = []int{ IS_GRAY_0, IS_GRAY_1, }
View Source
var IS_HTTP2_STATUS = []int{ IS_HTTP2_0, IS_HTTP2_1, }
View Source
var IS_KEEP_ALIVE_STATUS = []string{ IS_KEEP_ALIVE_0, IS_KEEP_ALIVE_1, }
View Source
var IS_WEBSOCKET_STATUS = []int{ IS_WEBSOCKET_0, IS_WEBSOCKET_1, }
View Source
var LABEL_TYPES_CLB = map[string]string{ WAF_PREMIUM_CLB: "sv_wsm_waf_package_premium_clb", WAF_ENTERPRISE_CLB: "sv_wsm_waf_package_enterprise_clb", WAF_ULTIMATE_CLB: "sv_wsm_waf_package_ultimate_clb", }
View Source
var LABEL_TYPES_SAAS = map[string]string{ WAF_PREMIUM_SAAS: "sv_wsm_waf_package_premium", WAF_ENTERPRISE_SAAS: "sv_wsm_waf_package_enterprise", WAF_ULTIMATE_SAAS: "sv_wsm_waf_package_ultimate", }
View Source
var LOAD_BALANCE_STATUS = []string{ LOAD_BALANCE_0, LOAD_BALANCE_1, LOAD_BALANCE_2, }
View Source
var MAINLAND = []int{ MAINLAND_0, MAINLAND_1, }
View Source
var MetricNameList = []string{ METRIC_NAME_ACCESS, METRIC_NAME_BOTACCESS, METRIC_NAME_DOWN, METRIC_NAME_UP, METRIC_NAME_ATTACK, METRIC_NAME_CC, METRIC_NAME_STATUSSERVERERROR, METRIC_NAME_STATUSCLIENTERROR, METRIC_NAME_STATUSREDIRECT, METRIC_NAME_STATUSOK, METRIC_NAME_UPSTREAMSERVERERROR, METRIC_NAME_UPSTREAMCLIENTERROR, METRIC_NAME_UPSTREAMREDIRECT, }
View Source
var PID_CLB = map[string]int{ WAF_PREMIUM_CLB: 1001150, WAF_ENTERPRISE_CLB: 1001152, WAF_ULTIMATE_CLB: 1001154, }
View Source
var PID_SAAS = map[string]int{ WAF_PREMIUM_SAAS: 1000827, WAF_ENTERPRISE_SAAS: 1000830, WAF_ULTIMATE_SAAS: 1000832, }
View Source
var PKG_SAAS = map[string]int{
"DOMAIN": 1000834,
"QPS": 1000481,
}
View Source
var PROTECTION_STATUS = []int{ PROTECTION_STATUS_0, PROTECTION_STATUS_1, }
View Source
var SAAS_DOMAIN_STATUS = []int{ SAAS_DOMAIN_STATUS_0, SAAS_DOMAIN_STATUS_1, }
View Source
var SAAS_REAL_REGIONS = append(SAAS_REAL_REGION_MAINLAND, SAAS_REAL_REGION_NON_MAINLAND...)
View Source
var SAAS_REAL_REGION_MAINLAND = []string{ SAAS_REAL_REGION_MAINLAND_GZ, SAAS_REAL_REGION_MAINLAND_SH, SAAS_REAL_REGION_MAINLAND_BJ, SAAS_REAL_REGION_MAINLAND_CD, }
View Source
var SAAS_REAL_REGION_MAINLAND_ID_MAP = map[string]int{ SAAS_REAL_REGION_MAINLAND_GZ: 1, SAAS_REAL_REGION_MAINLAND_SH: 4, SAAS_REAL_REGION_MAINLAND_BJ: 8, SAAS_REAL_REGION_MAINLAND_CD: 16, }
View Source
var SAAS_REAL_REGION_NON_MAINLAND = []string{ SAAS_REAL_REGION_NON_MAINLAND_HK, SAAS_REAL_REGION_NON_MAINLAND_SG, SAAS_REAL_REGION_NON_MAINLAND_TH, SAAS_REAL_REGION_NON_MAINLAND_KR, SAAS_REAL_REGION_NON_MAINLAND_IN, SAAS_REAL_REGION_NON_MAINLAND_DE, SAAS_REAL_REGION_NON_MAINLAND_CA, SAAS_REAL_REGION_NON_MAINLAND_USE, SAAS_REAL_REGION_NON_MAINLAND_SAO, SAAS_REAL_REGION_NON_MAINLAND_USW, SAAS_REAL_REGION_NON_MAINLAND_JKT, }
View Source
var SAAS_REAL_REGION_NON_MAINLAND_ID_MAP = map[string]int{ SAAS_REAL_REGION_NON_MAINLAND_HK: 5, SAAS_REAL_REGION_NON_MAINLAND_SG: 9, SAAS_REAL_REGION_NON_MAINLAND_TH: 23, SAAS_REAL_REGION_NON_MAINLAND_KR: 18, SAAS_REAL_REGION_NON_MAINLAND_IN: 21, SAAS_REAL_REGION_NON_MAINLAND_DE: 17, SAAS_REAL_REGION_NON_MAINLAND_CA: 6, SAAS_REAL_REGION_NON_MAINLAND_USE: 22, SAAS_REAL_REGION_NON_MAINLAND_SAO: 43, SAAS_REAL_REGION_NON_MAINLAND_USW: 51, SAAS_REAL_REGION_NON_MAINLAND_JKT: 72, }
View Source
var SNI_TYPES = []int{ SNI_TYPE_0, SNI_TYPE_1, SNI_TYPE_2, SNI_TYPE_3, }
View Source
var (
STATE_0 = 0
)
View Source
var STRATEGIES_FIELD = []string{ STRATEGIES_FIELD_RETURNCODE, STRATEGIES_FIELD_KEYWORDS, STRATEGIES_FIELD_INFORMATION, }
View Source
var SUB_PRODUCT_CODE_CLB = map[string]string{ WAF_PREMIUM_CLB: "sp_wsm_waf_premium_clb", WAF_ENTERPRISE_CLB: "sp_wsm_waf_enterprise_clb", WAF_ULTIMATE_CLB: "sp_wsm_waf_ultimate_clb", }
View Source
var SUB_PRODUCT_CODE_SAAS = map[string]string{ WAF_PREMIUM_SAAS: "sp_wsm_waf_premium", WAF_ENTERPRISE_SAAS: "sp_wsm_waf_enterprise", WAF_ULTIMATE_SAAS: "sp_wsm_waf_ultimate", }
View Source
var TIME_UNIT = []string{ TIME_UINT_D, TIME_UINT_M, TIME_UINT_Y, }
View Source
var UPSTREAM_SCHEMES = []string{ UPSTREAM_SCHEME_HTTP, UPSTREAM_SCHEME_HTTPS, }
View Source
var UP_STREAM_TYPES = []int{ UP_STREAM_TYPE_0, UP_STREAM_TYPE_1, }
View Source
var WAF_CATEGORY_CLB = []string{ WAF_PREMIUM_CLB, WAF_ENTERPRISE_CLB, WAF_ULTIMATE_CLB, }
View Source
var WAF_CATEGORY_ID_CLB = map[string]int{ WAF_PREMIUM_CLB: 101198, WAF_ENTERPRISE_CLB: 101204, WAF_ULTIMATE_CLB: 101201, }
View Source
var WAF_CATEGORY_ID_SAAS = map[string]int{ WAF_PREMIUM_SAAS: 102375, WAF_ENTERPRISE_SAAS: 102378, WAF_ULTIMATE_SAAS: 102369, }
View Source
var WAF_CATEGORY_SAAS = []string{ WAF_PREMIUM_SAAS, WAF_ENTERPRISE_SAAS, WAF_ULTIMATE_SAAS, }
View Source
var XFF_RESET_STATUS = []int{ XFF_RESET_0, XFF_RESET_1, }
Functions ¶
Types ¶
type WafService ¶
type WafService struct {
// contains filtered or unexported fields
}
func (*WafService) DeleteWafAntiFakeById ¶
func (me *WafService) DeleteWafAntiFakeById(ctx context.Context, id, domain string) (errRet error)
func (*WafService) DeleteWafAntiInfoLeakById ¶
func (me *WafService) DeleteWafAntiInfoLeakById(ctx context.Context, ruleId, domain string) (errRet error)
func (*WafService) DeleteWafCcAutoStatusById ¶
func (me *WafService) DeleteWafCcAutoStatusById(ctx context.Context, domain, edition string) (errRet error)
func (*WafService) DeleteWafCcById ¶
func (me *WafService) DeleteWafCcById(ctx context.Context, domain, ruleId, name string) (errRet error)
func (*WafService) DeleteWafCcSessionById ¶
func (me *WafService) DeleteWafCcSessionById(ctx context.Context, domain, edition, sessionID string) (errRet error)
func (*WafService) DeleteWafClbDomainById ¶
func (me *WafService) DeleteWafClbDomainById(ctx context.Context, instanceID, domain, domainId string) (errRet error)
func (*WafService) DeleteWafCustomRuleById ¶
func (me *WafService) DeleteWafCustomRuleById(ctx context.Context, domain, ruleId string) (errRet error)
func (*WafService) DeleteWafCustomWhiteRuleById ¶
func (me *WafService) DeleteWafCustomWhiteRuleById(ctx context.Context, domain, ruleId string) (errRet error)
func (*WafService) DeleteWafIpAccessControlByDiff ¶
func (*WafService) DeleteWafIpAccessControlById ¶
func (me *WafService) DeleteWafIpAccessControlById(ctx context.Context, domain string) (errRet error)
func (*WafService) DeleteWafSaasDomainById ¶
func (me *WafService) DeleteWafSaasDomainById(ctx context.Context, instanceID, domain string) (errRet error)
func (*WafService) DescribeDomainsById ¶
func (me *WafService) DescribeDomainsById(ctx context.Context, instanceID, domain string) (domainInfo *waf.DomainInfo, errRet error)
func (*WafService) DescribeSpartaProtectionInfoById ¶
func (me *WafService) DescribeSpartaProtectionInfoById(ctx context.Context, domain, edition string) (protectionInfo *waf.DescribeSpartaProtectionInfoResponseParams, errRet error)
func (*WafService) DescribeWafAntiFakeById ¶
func (me *WafService) DescribeWafAntiFakeById(ctx context.Context, id, domain string) (antiFake *waf.CacheUrlItems, errRet error)
func (*WafService) DescribeWafAntiInfoLeakById ¶
func (me *WafService) DescribeWafAntiInfoLeakById(ctx context.Context, ruleId, domain string) (antiInfoLeak *waf.DescribeAntiLeakageItem, errRet error)
func (*WafService) DescribeWafAttackLogHistogramByFilter ¶
func (me *WafService) DescribeWafAttackLogHistogramByFilter(ctx context.Context, param map[string]interface{}) (AttackLogHistogram *waf.GetAttackHistogramResponseParams, errRet error)
func (*WafService) DescribeWafAttackLogListByFilter ¶
func (me *WafService) DescribeWafAttackLogListByFilter(ctx context.Context, param map[string]interface{}) (AttackLogList []*waf.AttackLogInfo, errRet error)
func (*WafService) DescribeWafAttackOverviewByFilter ¶
func (me *WafService) DescribeWafAttackOverviewByFilter(ctx context.Context, param map[string]interface{}) (AttackOverview *waf.DescribeAttackOverviewResponseParams, errRet error)
func (*WafService) DescribeWafAttackTotalCountByFilter ¶
func (me *WafService) DescribeWafAttackTotalCountByFilter(ctx context.Context, param map[string]interface{}) (AttackTotalCount *waf.GetAttackTotalCountResponseParams, errRet error)
func (*WafService) DescribeWafAutoDenyRulesById ¶
func (me *WafService) DescribeWafAutoDenyRulesById(ctx context.Context, domain string) (autoDenyRules *waf.DescribeWafAutoDenyRulesResponseParams, errRet error)
func (*WafService) DescribeWafCcAutoStatusById ¶
func (me *WafService) DescribeWafCcAutoStatusById(ctx context.Context, domain string) (CcAutoStatus *waf.DescribeCCAutoStatusResponseParams, errRet error)
func (*WafService) DescribeWafCcById ¶
func (me *WafService) DescribeWafCcById(ctx context.Context, domain, ruleId string) (cc *waf.CCRuleItems, errRet error)
func (*WafService) DescribeWafCcSessionById ¶
func (me *WafService) DescribeWafCcSessionById(ctx context.Context, domain, edition, sessionID string) (ccSession *waf.SessionItem, errRet error)
func (*WafService) DescribeWafCiphersByFilter ¶
func (me *WafService) DescribeWafCiphersByFilter(ctx context.Context) (ciphers []*waf.TLSCiphers, errRet error)
func (*WafService) DescribeWafClbDomainById ¶
func (me *WafService) DescribeWafClbDomainById(ctx context.Context, instanceID, domain, domainId string) (clbDomainInfo *waf.ClbDomainsInfo, errRet error)
func (*WafService) DescribeWafCustomRuleById ¶
func (me *WafService) DescribeWafCustomRuleById(ctx context.Context, domain, ruleId string) (CustomRule *waf.DescribeCustomRulesRspRuleListItem, errRet error)
func (*WafService) DescribeWafCustomWhiteRuleById ¶
func (me *WafService) DescribeWafCustomWhiteRuleById(ctx context.Context, domain, ruleId string) (CustomWhiteRule *waf.DescribeCustomRulesRspRuleListItem, errRet error)
func (*WafService) DescribeWafDomainsByFilter ¶
func (me *WafService) DescribeWafDomainsByFilter(ctx context.Context, instanceID, domain string) (domains []*waf.DomainInfo, errRet error)
func (*WafService) DescribeWafFindDomainsByFilter ¶
func (me *WafService) DescribeWafFindDomainsByFilter(ctx context.Context, param map[string]interface{}) (findDomains []*waf.FindAllDomainDetail, errRet error)
func (*WafService) DescribeWafInstanceById ¶
func (me *WafService) DescribeWafInstanceById(ctx context.Context, instanceId string) (instance *waf.InstanceInfo, errRet error)
func (*WafService) DescribeWafInstanceQpsLimitByFilter ¶
func (*WafService) DescribeWafIpAccessControlById ¶
func (me *WafService) DescribeWafIpAccessControlById(ctx context.Context, domain string) (ipAccessControlList []*waf.IpAccessControlItem, errRet error)
func (*WafService) DescribeWafModuleStatusById ¶
func (me *WafService) DescribeWafModuleStatusById(ctx context.Context, domain string) (moduleStatus *waf.DescribeModuleStatusResponseParams, errRet error)
func (*WafService) DescribeWafPeakPointsByFilter ¶
func (me *WafService) DescribeWafPeakPointsByFilter(ctx context.Context, param map[string]interface{}) (PeakPoints []*waf.PeakPointsItem, errRet error)
func (*WafService) DescribeWafPortsByFilter ¶
func (me *WafService) DescribeWafPortsByFilter(ctx context.Context, param map[string]interface{}) (ports *waf.DescribePortsResponseParams, errRet error)
func (*WafService) DescribeWafSaasDomainById ¶
func (me *WafService) DescribeWafSaasDomainById(ctx context.Context, instanceID, domain, domainId string) (saasDomain *waf.DomainsPartInfo, errRet error)
func (*WafService) DescribeWafTlsVersionsByFilter ¶
func (me *WafService) DescribeWafTlsVersionsByFilter(ctx context.Context) (tlsVersions []*waf.TLSVersion, errRet error)
func (*WafService) DescribeWafUserClbRegionsByFilter ¶
func (me *WafService) DescribeWafUserClbRegionsByFilter(ctx context.Context) (userClbRegions *waf.DescribeUserClbWafRegionsResponseParams, errRet error)
func (*WafService) DescribeWafUserDomainsByFilter ¶
func (me *WafService) DescribeWafUserDomainsByFilter(ctx context.Context) (userDomains []*waf.UserDomainInfo, errRet error)
func (*WafService) DescribeWafWafInfosByFilter ¶
func (me *WafService) DescribeWafWafInfosByFilter(ctx context.Context, param map[string]interface{}) (wafInfos []*waf.ClbHostResult, errRet error)
func (*WafService) DescribeWafWebShellById ¶
func (me *WafService) DescribeWafWebShellById(ctx context.Context, domain string) (webShell *waf.DescribeWebshellStatusResponseParams, errRet error)
Source Files ¶
- data_source_tc_waf_attack_log_histogram.go
- data_source_tc_waf_attack_log_list.go
- data_source_tc_waf_attack_overview.go
- data_source_tc_waf_attack_total_count.go
- data_source_tc_waf_ciphers.go
- data_source_tc_waf_domains.go
- data_source_tc_waf_find_domains.go
- data_source_tc_waf_instance_qps_limit.go
- data_source_tc_waf_peak_points.go
- data_source_tc_waf_ports.go
- data_source_tc_waf_tls_versions.go
- data_source_tc_waf_user_clb_regions.go
- data_source_tc_waf_user_domains.go
- data_source_tc_waf_waf_infos.go
- extension_waf.go
- resource_tc_waf_anti_fake.go
- resource_tc_waf_anti_info_leak.go
- resource_tc_waf_auto_deny_rules.go
- resource_tc_waf_cc.go
- resource_tc_waf_cc_auto_status.go
- resource_tc_waf_cc_session.go
- resource_tc_waf_clb_domain.go
- resource_tc_waf_clb_instance.go
- resource_tc_waf_custom_rule.go
- resource_tc_waf_custom_white_rule.go
- resource_tc_waf_ip_access_control.go
- resource_tc_waf_modify_access_period.go
- resource_tc_waf_module_status.go
- resource_tc_waf_protection_mode.go
- resource_tc_waf_saas_domain.go
- resource_tc_waf_saas_instance.go
- resource_tc_waf_web_shell.go
- service_tencentcloud_waf.go
Click to show internal directories.
Click to hide internal directories.