Documentation
¶
Index ¶
- Constants
- type AddAntiFakeUrlRequest
- type AddAntiFakeUrlRequestParams
- type AddAntiFakeUrlResponse
- type AddAntiFakeUrlResponseParams
- type AddAntiInfoLeakRulesRequest
- type AddAntiInfoLeakRulesRequestParams
- type AddAntiInfoLeakRulesResponse
- type AddAntiInfoLeakRulesResponseParams
- type AddCustomRuleRequest
- type AddCustomRuleRequestParams
- type AddCustomRuleResponse
- type AddCustomRuleResponseParams
- type AddCustomWhiteRuleRequest
- type AddCustomWhiteRuleRequestParams
- type AddCustomWhiteRuleResponse
- type AddCustomWhiteRuleResponseParams
- type AddSpartaProtectionRequest
- type AddSpartaProtectionRequestParams
- type AddSpartaProtectionResponse
- type AddSpartaProtectionResponseParams
- type ApiPkg
- type AttackLogInfo
- type BatchIpAccessControlData
- type BatchIpAccessControlItem
- type BotPkg
- type BotQPS
- type CCRuleData
- type CCRuleItem
- type CCRuleItems
- type CCRuleLists
- type CacheUrlItems
- type ClbDomainsInfo
- type ClbObject
- type ClbWafRegionItem
- type Client
- func (c *Client) AddAntiFakeUrl(request *AddAntiFakeUrlRequest) (response *AddAntiFakeUrlResponse, err error)
- func (c *Client) AddAntiFakeUrlWithContext(ctx context.Context, request *AddAntiFakeUrlRequest) (response *AddAntiFakeUrlResponse, err error)
- func (c *Client) AddAntiInfoLeakRules(request *AddAntiInfoLeakRulesRequest) (response *AddAntiInfoLeakRulesResponse, err error)
- func (c *Client) AddAntiInfoLeakRulesWithContext(ctx context.Context, request *AddAntiInfoLeakRulesRequest) (response *AddAntiInfoLeakRulesResponse, err error)
- func (c *Client) AddCustomRule(request *AddCustomRuleRequest) (response *AddCustomRuleResponse, err error)
- func (c *Client) AddCustomRuleWithContext(ctx context.Context, request *AddCustomRuleRequest) (response *AddCustomRuleResponse, err error)
- func (c *Client) AddCustomWhiteRule(request *AddCustomWhiteRuleRequest) (response *AddCustomWhiteRuleResponse, err error)
- func (c *Client) AddCustomWhiteRuleWithContext(ctx context.Context, request *AddCustomWhiteRuleRequest) (response *AddCustomWhiteRuleResponse, err error)
- func (c *Client) AddSpartaProtection(request *AddSpartaProtectionRequest) (response *AddSpartaProtectionResponse, err error)
- func (c *Client) AddSpartaProtectionWithContext(ctx context.Context, request *AddSpartaProtectionRequest) (response *AddSpartaProtectionResponse, err error)
- func (c *Client) CreateDeals(request *CreateDealsRequest) (response *CreateDealsResponse, err error)
- func (c *Client) CreateDealsWithContext(ctx context.Context, request *CreateDealsRequest) (response *CreateDealsResponse, err error)
- func (c *Client) CreateHost(request *CreateHostRequest) (response *CreateHostResponse, err error)
- func (c *Client) CreateHostWithContext(ctx context.Context, request *CreateHostRequest) (response *CreateHostResponse, err error)
- func (c *Client) CreateIpAccessControl(request *CreateIpAccessControlRequest) (response *CreateIpAccessControlResponse, err error)
- func (c *Client) CreateIpAccessControlWithContext(ctx context.Context, request *CreateIpAccessControlRequest) (response *CreateIpAccessControlResponse, err error)
- func (c *Client) CreateOwaspWhiteRule(request *CreateOwaspWhiteRuleRequest) (response *CreateOwaspWhiteRuleResponse, err error)
- func (c *Client) CreateOwaspWhiteRuleWithContext(ctx context.Context, request *CreateOwaspWhiteRuleRequest) (response *CreateOwaspWhiteRuleResponse, err error)
- func (c *Client) DeleteAntiFakeUrl(request *DeleteAntiFakeUrlRequest) (response *DeleteAntiFakeUrlResponse, err error)
- func (c *Client) DeleteAntiFakeUrlWithContext(ctx context.Context, request *DeleteAntiFakeUrlRequest) (response *DeleteAntiFakeUrlResponse, err error)
- func (c *Client) DeleteAntiInfoLeakRule(request *DeleteAntiInfoLeakRuleRequest) (response *DeleteAntiInfoLeakRuleResponse, err error)
- func (c *Client) DeleteAntiInfoLeakRuleWithContext(ctx context.Context, request *DeleteAntiInfoLeakRuleRequest) (response *DeleteAntiInfoLeakRuleResponse, err error)
- func (c *Client) DeleteCCRule(request *DeleteCCRuleRequest) (response *DeleteCCRuleResponse, err error)
- func (c *Client) DeleteCCRuleWithContext(ctx context.Context, request *DeleteCCRuleRequest) (response *DeleteCCRuleResponse, err error)
- func (c *Client) DeleteCustomRule(request *DeleteCustomRuleRequest) (response *DeleteCustomRuleResponse, err error)
- func (c *Client) DeleteCustomRuleWithContext(ctx context.Context, request *DeleteCustomRuleRequest) (response *DeleteCustomRuleResponse, err error)
- func (c *Client) DeleteCustomWhiteRule(request *DeleteCustomWhiteRuleRequest) (response *DeleteCustomWhiteRuleResponse, err error)
- func (c *Client) DeleteCustomWhiteRuleWithContext(ctx context.Context, request *DeleteCustomWhiteRuleRequest) (response *DeleteCustomWhiteRuleResponse, err error)
- func (c *Client) DeleteHost(request *DeleteHostRequest) (response *DeleteHostResponse, err error)
- func (c *Client) DeleteHostWithContext(ctx context.Context, request *DeleteHostRequest) (response *DeleteHostResponse, err error)
- func (c *Client) DeleteIpAccessControlV2(request *DeleteIpAccessControlV2Request) (response *DeleteIpAccessControlV2Response, err error)
- func (c *Client) DeleteIpAccessControlV2WithContext(ctx context.Context, request *DeleteIpAccessControlV2Request) (response *DeleteIpAccessControlV2Response, err error)
- func (c *Client) DeleteOwaspRuleStatus(request *DeleteOwaspRuleStatusRequest) (response *DeleteOwaspRuleStatusResponse, err error)
- func (c *Client) DeleteOwaspRuleStatusWithContext(ctx context.Context, request *DeleteOwaspRuleStatusRequest) (response *DeleteOwaspRuleStatusResponse, err error)
- func (c *Client) DeleteOwaspWhiteRule(request *DeleteOwaspWhiteRuleRequest) (response *DeleteOwaspWhiteRuleResponse, err error)
- func (c *Client) DeleteOwaspWhiteRuleWithContext(ctx context.Context, request *DeleteOwaspWhiteRuleRequest) (response *DeleteOwaspWhiteRuleResponse, err error)
- func (c *Client) DeleteSession(request *DeleteSessionRequest) (response *DeleteSessionResponse, err error)
- func (c *Client) DeleteSessionWithContext(ctx context.Context, request *DeleteSessionRequest) (response *DeleteSessionResponse, err error)
- func (c *Client) DeleteSpartaProtection(request *DeleteSpartaProtectionRequest) (response *DeleteSpartaProtectionResponse, err error)
- func (c *Client) DeleteSpartaProtectionWithContext(ctx context.Context, request *DeleteSpartaProtectionRequest) (response *DeleteSpartaProtectionResponse, err error)
- func (c *Client) DescribeAntiFakeRules(request *DescribeAntiFakeRulesRequest) (response *DescribeAntiFakeRulesResponse, err error)
- func (c *Client) DescribeAntiFakeRulesWithContext(ctx context.Context, request *DescribeAntiFakeRulesRequest) (response *DescribeAntiFakeRulesResponse, err error)
- func (c *Client) DescribeAntiInfoLeakageRules(request *DescribeAntiInfoLeakageRulesRequest) (response *DescribeAntiInfoLeakageRulesResponse, err error)
- func (c *Client) DescribeAntiInfoLeakageRulesWithContext(ctx context.Context, request *DescribeAntiInfoLeakageRulesRequest) (response *DescribeAntiInfoLeakageRulesResponse, err error)
- func (c *Client) DescribeAttackOverview(request *DescribeAttackOverviewRequest) (response *DescribeAttackOverviewResponse, err error)
- func (c *Client) DescribeAttackOverviewWithContext(ctx context.Context, request *DescribeAttackOverviewRequest) (response *DescribeAttackOverviewResponse, err error)
- func (c *Client) DescribeAttackType(request *DescribeAttackTypeRequest) (response *DescribeAttackTypeResponse, err error)
- func (c *Client) DescribeAttackTypeWithContext(ctx context.Context, request *DescribeAttackTypeRequest) (response *DescribeAttackTypeResponse, err error)
- func (c *Client) DescribeBatchIpAccessControl(request *DescribeBatchIpAccessControlRequest) (response *DescribeBatchIpAccessControlResponse, err error)
- func (c *Client) DescribeBatchIpAccessControlWithContext(ctx context.Context, request *DescribeBatchIpAccessControlRequest) (response *DescribeBatchIpAccessControlResponse, err error)
- func (c *Client) DescribeCCRule(request *DescribeCCRuleRequest) (response *DescribeCCRuleResponse, err error)
- func (c *Client) DescribeCCRuleList(request *DescribeCCRuleListRequest) (response *DescribeCCRuleListResponse, err error)
- func (c *Client) DescribeCCRuleListWithContext(ctx context.Context, request *DescribeCCRuleListRequest) (response *DescribeCCRuleListResponse, err error)
- func (c *Client) DescribeCCRuleWithContext(ctx context.Context, request *DescribeCCRuleRequest) (response *DescribeCCRuleResponse, err error)
- func (c *Client) DescribeCertificateVerifyResult(request *DescribeCertificateVerifyResultRequest) (response *DescribeCertificateVerifyResultResponse, err error)
- func (c *Client) DescribeCertificateVerifyResultWithContext(ctx context.Context, request *DescribeCertificateVerifyResultRequest) (response *DescribeCertificateVerifyResultResponse, err error)
- func (c *Client) DescribeCiphersDetail(request *DescribeCiphersDetailRequest) (response *DescribeCiphersDetailResponse, err error)
- func (c *Client) DescribeCiphersDetailWithContext(ctx context.Context, request *DescribeCiphersDetailRequest) (response *DescribeCiphersDetailResponse, err error)
- func (c *Client) DescribeCustomRuleList(request *DescribeCustomRuleListRequest) (response *DescribeCustomRuleListResponse, err error)
- func (c *Client) DescribeCustomRuleListWithContext(ctx context.Context, request *DescribeCustomRuleListRequest) (response *DescribeCustomRuleListResponse, err error)
- func (c *Client) DescribeCustomWhiteRule(request *DescribeCustomWhiteRuleRequest) (response *DescribeCustomWhiteRuleResponse, err error)
- func (c *Client) DescribeCustomWhiteRuleWithContext(ctx context.Context, request *DescribeCustomWhiteRuleRequest) (response *DescribeCustomWhiteRuleResponse, err error)
- func (c *Client) DescribeDomainCountInfo(request *DescribeDomainCountInfoRequest) (response *DescribeDomainCountInfoResponse, err error)
- func (c *Client) DescribeDomainCountInfoWithContext(ctx context.Context, request *DescribeDomainCountInfoRequest) (response *DescribeDomainCountInfoResponse, err error)
- func (c *Client) DescribeDomainDetailsClb(request *DescribeDomainDetailsClbRequest) (response *DescribeDomainDetailsClbResponse, err error)
- func (c *Client) DescribeDomainDetailsClbWithContext(ctx context.Context, request *DescribeDomainDetailsClbRequest) (response *DescribeDomainDetailsClbResponse, err error)
- func (c *Client) DescribeDomainDetailsSaas(request *DescribeDomainDetailsSaasRequest) (response *DescribeDomainDetailsSaasResponse, err error)
- func (c *Client) DescribeDomainDetailsSaasWithContext(ctx context.Context, request *DescribeDomainDetailsSaasRequest) (response *DescribeDomainDetailsSaasResponse, err error)
- func (c *Client) DescribeDomainVerifyResult(request *DescribeDomainVerifyResultRequest) (response *DescribeDomainVerifyResultResponse, err error)
- func (c *Client) DescribeDomainVerifyResultWithContext(ctx context.Context, request *DescribeDomainVerifyResultRequest) (response *DescribeDomainVerifyResultResponse, err error)
- func (c *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
- func (c *Client) DescribeDomainsWithContext(ctx context.Context, request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
- func (c *Client) DescribeFindDomainList(request *DescribeFindDomainListRequest) (response *DescribeFindDomainListResponse, err error)
- func (c *Client) DescribeFindDomainListWithContext(ctx context.Context, request *DescribeFindDomainListRequest) (response *DescribeFindDomainListResponse, err error)
- func (c *Client) DescribeHistogram(request *DescribeHistogramRequest) (response *DescribeHistogramResponse, err error)
- func (c *Client) DescribeHistogramWithContext(ctx context.Context, request *DescribeHistogramRequest) (response *DescribeHistogramResponse, err error)
- func (c *Client) DescribeHost(request *DescribeHostRequest) (response *DescribeHostResponse, err error)
- func (c *Client) DescribeHostLimit(request *DescribeHostLimitRequest) (response *DescribeHostLimitResponse, err error)
- func (c *Client) DescribeHostLimitWithContext(ctx context.Context, request *DescribeHostLimitRequest) (response *DescribeHostLimitResponse, err error)
- func (c *Client) DescribeHostWithContext(ctx context.Context, request *DescribeHostRequest) (response *DescribeHostResponse, err error)
- func (c *Client) DescribeHosts(request *DescribeHostsRequest) (response *DescribeHostsResponse, err error)
- func (c *Client) DescribeHostsWithContext(ctx context.Context, request *DescribeHostsRequest) (response *DescribeHostsResponse, err error)
- func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
- func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
- func (c *Client) DescribeIpAccessControl(request *DescribeIpAccessControlRequest) (response *DescribeIpAccessControlResponse, err error)
- func (c *Client) DescribeIpAccessControlWithContext(ctx context.Context, request *DescribeIpAccessControlRequest) (response *DescribeIpAccessControlResponse, err error)
- func (c *Client) DescribeModuleStatus(request *DescribeModuleStatusRequest) (response *DescribeModuleStatusResponse, err error)
- func (c *Client) DescribeModuleStatusWithContext(ctx context.Context, request *DescribeModuleStatusRequest) (response *DescribeModuleStatusResponse, err error)
- func (c *Client) DescribeObjects(request *DescribeObjectsRequest) (response *DescribeObjectsResponse, err error)
- func (c *Client) DescribeObjectsWithContext(ctx context.Context, request *DescribeObjectsRequest) (response *DescribeObjectsResponse, err error)
- func (c *Client) DescribeOwaspRuleTypes(request *DescribeOwaspRuleTypesRequest) (response *DescribeOwaspRuleTypesResponse, err error)
- func (c *Client) DescribeOwaspRuleTypesWithContext(ctx context.Context, request *DescribeOwaspRuleTypesRequest) (response *DescribeOwaspRuleTypesResponse, err error)
- func (c *Client) DescribeOwaspRules(request *DescribeOwaspRulesRequest) (response *DescribeOwaspRulesResponse, err error)
- func (c *Client) DescribeOwaspRulesWithContext(ctx context.Context, request *DescribeOwaspRulesRequest) (response *DescribeOwaspRulesResponse, err error)
- func (c *Client) DescribeOwaspWhiteRules(request *DescribeOwaspWhiteRulesRequest) (response *DescribeOwaspWhiteRulesResponse, err error)
- func (c *Client) DescribeOwaspWhiteRulesWithContext(ctx context.Context, request *DescribeOwaspWhiteRulesRequest) (response *DescribeOwaspWhiteRulesResponse, err error)
- func (c *Client) DescribePeakPoints(request *DescribePeakPointsRequest) (response *DescribePeakPointsResponse, err error)
- func (c *Client) DescribePeakPointsWithContext(ctx context.Context, request *DescribePeakPointsRequest) (response *DescribePeakPointsResponse, err error)
- func (c *Client) DescribePolicyStatus(request *DescribePolicyStatusRequest) (response *DescribePolicyStatusResponse, err error)
- func (c *Client) DescribePolicyStatusWithContext(ctx context.Context, request *DescribePolicyStatusRequest) (response *DescribePolicyStatusResponse, err error)
- func (c *Client) DescribePorts(request *DescribePortsRequest) (response *DescribePortsResponse, err error)
- func (c *Client) DescribePortsWithContext(ctx context.Context, request *DescribePortsRequest) (response *DescribePortsResponse, err error)
- func (c *Client) DescribeRuleLimit(request *DescribeRuleLimitRequest) (response *DescribeRuleLimitResponse, err error)
- func (c *Client) DescribeRuleLimitWithContext(ctx context.Context, request *DescribeRuleLimitRequest) (response *DescribeRuleLimitResponse, err error)
- func (c *Client) DescribeSession(request *DescribeSessionRequest) (response *DescribeSessionResponse, err error)
- func (c *Client) DescribeSessionWithContext(ctx context.Context, request *DescribeSessionRequest) (response *DescribeSessionResponse, err error)
- func (c *Client) DescribeSpartaProtectionInfo(request *DescribeSpartaProtectionInfoRequest) (response *DescribeSpartaProtectionInfoResponse, err error)
- func (c *Client) DescribeSpartaProtectionInfoWithContext(ctx context.Context, request *DescribeSpartaProtectionInfoRequest) (response *DescribeSpartaProtectionInfoResponse, err error)
- func (c *Client) DescribeTlsVersion(request *DescribeTlsVersionRequest) (response *DescribeTlsVersionResponse, err error)
- func (c *Client) DescribeTlsVersionWithContext(ctx context.Context, request *DescribeTlsVersionRequest) (response *DescribeTlsVersionResponse, err error)
- func (c *Client) DescribeTopAttackDomain(request *DescribeTopAttackDomainRequest) (response *DescribeTopAttackDomainResponse, err error)
- func (c *Client) DescribeTopAttackDomainWithContext(ctx context.Context, request *DescribeTopAttackDomainRequest) (response *DescribeTopAttackDomainResponse, err error)
- func (c *Client) DescribeUserClbWafRegions(request *DescribeUserClbWafRegionsRequest) (response *DescribeUserClbWafRegionsResponse, err error)
- func (c *Client) DescribeUserClbWafRegionsWithContext(ctx context.Context, request *DescribeUserClbWafRegionsRequest) (response *DescribeUserClbWafRegionsResponse, err error)
- func (c *Client) DescribeUserDomainInfo(request *DescribeUserDomainInfoRequest) (response *DescribeUserDomainInfoResponse, err error)
- func (c *Client) DescribeUserDomainInfoWithContext(ctx context.Context, request *DescribeUserDomainInfoRequest) (response *DescribeUserDomainInfoResponse, err error)
- func (c *Client) DescribeUserLevel(request *DescribeUserLevelRequest) (response *DescribeUserLevelResponse, err error)
- func (c *Client) DescribeUserLevelWithContext(ctx context.Context, request *DescribeUserLevelRequest) (response *DescribeUserLevelResponse, err error)
- func (c *Client) DescribeVipInfo(request *DescribeVipInfoRequest) (response *DescribeVipInfoResponse, err error)
- func (c *Client) DescribeVipInfoWithContext(ctx context.Context, request *DescribeVipInfoRequest) (response *DescribeVipInfoResponse, err error)
- func (c *Client) DescribeWebshellStatus(request *DescribeWebshellStatusRequest) (response *DescribeWebshellStatusResponse, err error)
- func (c *Client) DescribeWebshellStatusWithContext(ctx context.Context, request *DescribeWebshellStatusRequest) (response *DescribeWebshellStatusResponse, err error)
- func (c *Client) FreshAntiFakeUrl(request *FreshAntiFakeUrlRequest) (response *FreshAntiFakeUrlResponse, err error)
- func (c *Client) FreshAntiFakeUrlWithContext(ctx context.Context, request *FreshAntiFakeUrlRequest) (response *FreshAntiFakeUrlResponse, err error)
- func (c *Client) GenerateDealsAndPayNew(request *GenerateDealsAndPayNewRequest) (response *GenerateDealsAndPayNewResponse, err error)
- func (c *Client) GenerateDealsAndPayNewWithContext(ctx context.Context, request *GenerateDealsAndPayNewRequest) (response *GenerateDealsAndPayNewResponse, err error)
- func (c *Client) GetAttackHistogram(request *GetAttackHistogramRequest) (response *GetAttackHistogramResponse, err error)
- func (c *Client) GetAttackHistogramWithContext(ctx context.Context, request *GetAttackHistogramRequest) (response *GetAttackHistogramResponse, err error)
- func (c *Client) GetAttackTotalCount(request *GetAttackTotalCountRequest) (response *GetAttackTotalCountResponse, err error)
- func (c *Client) GetAttackTotalCountWithContext(ctx context.Context, request *GetAttackTotalCountRequest) (response *GetAttackTotalCountResponse, err error)
- func (c *Client) GetInstanceQpsLimit(request *GetInstanceQpsLimitRequest) (response *GetInstanceQpsLimitResponse, err error)
- func (c *Client) GetInstanceQpsLimitWithContext(ctx context.Context, request *GetInstanceQpsLimitRequest) (response *GetInstanceQpsLimitResponse, err error)
- func (c *Client) ImportIpAccessControl(request *ImportIpAccessControlRequest) (response *ImportIpAccessControlResponse, err error)
- func (c *Client) ImportIpAccessControlWithContext(ctx context.Context, request *ImportIpAccessControlRequest) (response *ImportIpAccessControlResponse, err error)
- func (c *Client) ModifyAntiFakeUrl(request *ModifyAntiFakeUrlRequest) (response *ModifyAntiFakeUrlResponse, err error)
- func (c *Client) ModifyAntiFakeUrlStatus(request *ModifyAntiFakeUrlStatusRequest) (response *ModifyAntiFakeUrlStatusResponse, err error)
- func (c *Client) ModifyAntiFakeUrlStatusWithContext(ctx context.Context, request *ModifyAntiFakeUrlStatusRequest) (response *ModifyAntiFakeUrlStatusResponse, err error)
- func (c *Client) ModifyAntiFakeUrlWithContext(ctx context.Context, request *ModifyAntiFakeUrlRequest) (response *ModifyAntiFakeUrlResponse, err error)
- func (c *Client) ModifyAntiInfoLeakRuleStatus(request *ModifyAntiInfoLeakRuleStatusRequest) (response *ModifyAntiInfoLeakRuleStatusResponse, err error)
- func (c *Client) ModifyAntiInfoLeakRuleStatusWithContext(ctx context.Context, request *ModifyAntiInfoLeakRuleStatusRequest) (response *ModifyAntiInfoLeakRuleStatusResponse, err error)
- func (c *Client) ModifyAntiInfoLeakRules(request *ModifyAntiInfoLeakRulesRequest) (response *ModifyAntiInfoLeakRulesResponse, err error)
- func (c *Client) ModifyAntiInfoLeakRulesWithContext(ctx context.Context, request *ModifyAntiInfoLeakRulesRequest) (response *ModifyAntiInfoLeakRulesResponse, err error)
- func (c *Client) ModifyApiAnalyzeStatus(request *ModifyApiAnalyzeStatusRequest) (response *ModifyApiAnalyzeStatusResponse, err error)
- func (c *Client) ModifyApiAnalyzeStatusWithContext(ctx context.Context, request *ModifyApiAnalyzeStatusRequest) (response *ModifyApiAnalyzeStatusResponse, err error)
- func (c *Client) ModifyBotStatus(request *ModifyBotStatusRequest) (response *ModifyBotStatusResponse, err error)
- func (c *Client) ModifyBotStatusWithContext(ctx context.Context, request *ModifyBotStatusRequest) (response *ModifyBotStatusResponse, err error)
- func (c *Client) ModifyCustomRule(request *ModifyCustomRuleRequest) (response *ModifyCustomRuleResponse, err error)
- func (c *Client) ModifyCustomRuleStatus(request *ModifyCustomRuleStatusRequest) (response *ModifyCustomRuleStatusResponse, err error)
- func (c *Client) ModifyCustomRuleStatusWithContext(ctx context.Context, request *ModifyCustomRuleStatusRequest) (response *ModifyCustomRuleStatusResponse, err error)
- func (c *Client) ModifyCustomRuleWithContext(ctx context.Context, request *ModifyCustomRuleRequest) (response *ModifyCustomRuleResponse, err error)
- func (c *Client) ModifyCustomWhiteRule(request *ModifyCustomWhiteRuleRequest) (response *ModifyCustomWhiteRuleResponse, err error)
- func (c *Client) ModifyCustomWhiteRuleStatus(request *ModifyCustomWhiteRuleStatusRequest) (response *ModifyCustomWhiteRuleStatusResponse, err error)
- func (c *Client) ModifyCustomWhiteRuleStatusWithContext(ctx context.Context, request *ModifyCustomWhiteRuleStatusRequest) (response *ModifyCustomWhiteRuleStatusResponse, err error)
- func (c *Client) ModifyCustomWhiteRuleWithContext(ctx context.Context, request *ModifyCustomWhiteRuleRequest) (response *ModifyCustomWhiteRuleResponse, err error)
- func (c *Client) ModifyDomainIpv6Status(request *ModifyDomainIpv6StatusRequest) (response *ModifyDomainIpv6StatusResponse, err error)
- func (c *Client) ModifyDomainIpv6StatusWithContext(ctx context.Context, request *ModifyDomainIpv6StatusRequest) (response *ModifyDomainIpv6StatusResponse, err error)
- func (c *Client) ModifyDomainPostAction(request *ModifyDomainPostActionRequest) (response *ModifyDomainPostActionResponse, err error)
- func (c *Client) ModifyDomainPostActionWithContext(ctx context.Context, request *ModifyDomainPostActionRequest) (response *ModifyDomainPostActionResponse, err error)
- func (c *Client) ModifyDomainsCLSStatus(request *ModifyDomainsCLSStatusRequest) (response *ModifyDomainsCLSStatusResponse, err error)
- func (c *Client) ModifyDomainsCLSStatusWithContext(ctx context.Context, request *ModifyDomainsCLSStatusRequest) (response *ModifyDomainsCLSStatusResponse, err error)
- func (c *Client) ModifyHost(request *ModifyHostRequest) (response *ModifyHostResponse, err error)
- func (c *Client) ModifyHostFlowMode(request *ModifyHostFlowModeRequest) (response *ModifyHostFlowModeResponse, err error)
- func (c *Client) ModifyHostFlowModeWithContext(ctx context.Context, request *ModifyHostFlowModeRequest) (response *ModifyHostFlowModeResponse, err error)
- func (c *Client) ModifyHostMode(request *ModifyHostModeRequest) (response *ModifyHostModeResponse, err error)
- func (c *Client) ModifyHostModeWithContext(ctx context.Context, request *ModifyHostModeRequest) (response *ModifyHostModeResponse, err error)
- func (c *Client) ModifyHostStatus(request *ModifyHostStatusRequest) (response *ModifyHostStatusResponse, err error)
- func (c *Client) ModifyHostStatusWithContext(ctx context.Context, request *ModifyHostStatusRequest) (response *ModifyHostStatusResponse, err error)
- func (c *Client) ModifyHostWithContext(ctx context.Context, request *ModifyHostRequest) (response *ModifyHostResponse, err error)
- func (c *Client) ModifyInstanceElasticMode(request *ModifyInstanceElasticModeRequest) (response *ModifyInstanceElasticModeResponse, err error)
- func (c *Client) ModifyInstanceElasticModeWithContext(ctx context.Context, request *ModifyInstanceElasticModeRequest) (response *ModifyInstanceElasticModeResponse, err error)
- func (c *Client) ModifyInstanceName(request *ModifyInstanceNameRequest) (response *ModifyInstanceNameResponse, err error)
- func (c *Client) ModifyInstanceNameWithContext(ctx context.Context, request *ModifyInstanceNameRequest) (response *ModifyInstanceNameResponse, err error)
- func (c *Client) ModifyInstanceQpsLimit(request *ModifyInstanceQpsLimitRequest) (response *ModifyInstanceQpsLimitResponse, err error)
- func (c *Client) ModifyInstanceQpsLimitWithContext(ctx context.Context, request *ModifyInstanceQpsLimitRequest) (response *ModifyInstanceQpsLimitResponse, err error)
- func (c *Client) ModifyInstanceRenewFlag(request *ModifyInstanceRenewFlagRequest) (response *ModifyInstanceRenewFlagResponse, err error)
- func (c *Client) ModifyInstanceRenewFlagWithContext(ctx context.Context, request *ModifyInstanceRenewFlagRequest) (response *ModifyInstanceRenewFlagResponse, err error)
- func (c *Client) ModifyIpAccessControl(request *ModifyIpAccessControlRequest) (response *ModifyIpAccessControlResponse, err error)
- func (c *Client) ModifyIpAccessControlWithContext(ctx context.Context, request *ModifyIpAccessControlRequest) (response *ModifyIpAccessControlResponse, err error)
- func (c *Client) ModifyModuleStatus(request *ModifyModuleStatusRequest) (response *ModifyModuleStatusResponse, err error)
- func (c *Client) ModifyModuleStatusWithContext(ctx context.Context, request *ModifyModuleStatusRequest) (response *ModifyModuleStatusResponse, err error)
- func (c *Client) ModifyObject(request *ModifyObjectRequest) (response *ModifyObjectResponse, err error)
- func (c *Client) ModifyObjectWithContext(ctx context.Context, request *ModifyObjectRequest) (response *ModifyObjectResponse, err error)
- func (c *Client) ModifyOwaspRuleStatus(request *ModifyOwaspRuleStatusRequest) (response *ModifyOwaspRuleStatusResponse, err error)
- func (c *Client) ModifyOwaspRuleStatusWithContext(ctx context.Context, request *ModifyOwaspRuleStatusRequest) (response *ModifyOwaspRuleStatusResponse, err error)
- func (c *Client) ModifyOwaspRuleTypeAction(request *ModifyOwaspRuleTypeActionRequest) (response *ModifyOwaspRuleTypeActionResponse, err error)
- func (c *Client) ModifyOwaspRuleTypeActionWithContext(ctx context.Context, request *ModifyOwaspRuleTypeActionRequest) (response *ModifyOwaspRuleTypeActionResponse, err error)
- func (c *Client) ModifyOwaspRuleTypeLevel(request *ModifyOwaspRuleTypeLevelRequest) (response *ModifyOwaspRuleTypeLevelResponse, err error)
- func (c *Client) ModifyOwaspRuleTypeLevelWithContext(ctx context.Context, request *ModifyOwaspRuleTypeLevelRequest) (response *ModifyOwaspRuleTypeLevelResponse, err error)
- func (c *Client) ModifyOwaspRuleTypeStatus(request *ModifyOwaspRuleTypeStatusRequest) (response *ModifyOwaspRuleTypeStatusResponse, err error)
- func (c *Client) ModifyOwaspRuleTypeStatusWithContext(ctx context.Context, request *ModifyOwaspRuleTypeStatusRequest) (response *ModifyOwaspRuleTypeStatusResponse, err error)
- func (c *Client) ModifyOwaspWhiteRule(request *ModifyOwaspWhiteRuleRequest) (response *ModifyOwaspWhiteRuleResponse, err error)
- func (c *Client) ModifyOwaspWhiteRuleWithContext(ctx context.Context, request *ModifyOwaspWhiteRuleRequest) (response *ModifyOwaspWhiteRuleResponse, err error)
- func (c *Client) ModifyProtectionStatus(request *ModifyProtectionStatusRequest) (response *ModifyProtectionStatusResponse, err error)
- func (c *Client) ModifyProtectionStatusWithContext(ctx context.Context, request *ModifyProtectionStatusRequest) (response *ModifyProtectionStatusResponse, err error)
- func (c *Client) ModifySpartaProtection(request *ModifySpartaProtectionRequest) (response *ModifySpartaProtectionResponse, err error)
- func (c *Client) ModifySpartaProtectionMode(request *ModifySpartaProtectionModeRequest) (response *ModifySpartaProtectionModeResponse, err error)
- func (c *Client) ModifySpartaProtectionModeWithContext(ctx context.Context, request *ModifySpartaProtectionModeRequest) (response *ModifySpartaProtectionModeResponse, err error)
- func (c *Client) ModifySpartaProtectionWithContext(ctx context.Context, request *ModifySpartaProtectionRequest) (response *ModifySpartaProtectionResponse, err error)
- func (c *Client) ModifyUserLevel(request *ModifyUserLevelRequest) (response *ModifyUserLevelResponse, err error)
- func (c *Client) ModifyUserLevelWithContext(ctx context.Context, request *ModifyUserLevelRequest) (response *ModifyUserLevelResponse, err error)
- func (c *Client) ModifyUserSignatureRule(request *ModifyUserSignatureRuleRequest) (response *ModifyUserSignatureRuleResponse, err error)
- func (c *Client) ModifyUserSignatureRuleWithContext(ctx context.Context, request *ModifyUserSignatureRuleRequest) (response *ModifyUserSignatureRuleResponse, err error)
- func (c *Client) ModifyWebshellStatus(request *ModifyWebshellStatusRequest) (response *ModifyWebshellStatusResponse, err error)
- func (c *Client) ModifyWebshellStatusWithContext(ctx context.Context, request *ModifyWebshellStatusRequest) (response *ModifyWebshellStatusResponse, err error)
- func (c *Client) RefreshAccessCheckResult(request *RefreshAccessCheckResultRequest) (response *RefreshAccessCheckResultResponse, err error)
- func (c *Client) RefreshAccessCheckResultWithContext(ctx context.Context, request *RefreshAccessCheckResultRequest) (response *RefreshAccessCheckResultResponse, err error)
- func (c *Client) SearchAttackLog(request *SearchAttackLogRequest) (response *SearchAttackLogResponse, err error)
- func (c *Client) SearchAttackLogWithContext(ctx context.Context, request *SearchAttackLogRequest) (response *SearchAttackLogResponse, err error)
- func (c *Client) SwitchElasticMode(request *SwitchElasticModeRequest) (response *SwitchElasticModeResponse, err error)
- func (c *Client) SwitchElasticModeWithContext(ctx context.Context, request *SwitchElasticModeRequest) (response *SwitchElasticModeResponse, err error)
- func (c *Client) UpsertCCRule(request *UpsertCCRuleRequest) (response *UpsertCCRuleResponse, err error)
- func (c *Client) UpsertCCRuleWithContext(ctx context.Context, request *UpsertCCRuleRequest) (response *UpsertCCRuleResponse, err error)
- func (c *Client) UpsertSession(request *UpsertSessionRequest) (response *UpsertSessionResponse, err error)
- func (c *Client) UpsertSessionWithContext(ctx context.Context, request *UpsertSessionRequest) (response *UpsertSessionResponse, err error)
- type CreateDealsGoods
- type CreateDealsGoodsDetail
- type CreateDealsRequest
- type CreateDealsRequestParams
- type CreateDealsResponse
- type CreateDealsResponseParams
- type CreateHostRequest
- type CreateHostRequestParams
- type CreateHostResponse
- type CreateHostResponseParams
- type CreateIpAccessControlRequest
- type CreateIpAccessControlRequestParams
- type CreateIpAccessControlResponse
- type CreateIpAccessControlResponseParams
- type CreateOwaspWhiteRuleRequest
- type CreateOwaspWhiteRuleRequestParams
- type CreateOwaspWhiteRuleResponse
- type CreateOwaspWhiteRuleResponseParams
- type CronJob
- type DealData
- type DeleteAntiFakeUrlRequest
- type DeleteAntiFakeUrlRequestParams
- type DeleteAntiFakeUrlResponse
- type DeleteAntiFakeUrlResponseParams
- type DeleteAntiInfoLeakRuleRequest
- type DeleteAntiInfoLeakRuleRequestParams
- type DeleteAntiInfoLeakRuleResponse
- type DeleteAntiInfoLeakRuleResponseParams
- type DeleteCCRuleRequest
- type DeleteCCRuleRequestParams
- type DeleteCCRuleResponse
- type DeleteCCRuleResponseParams
- type DeleteCustomRuleRequest
- type DeleteCustomRuleRequestParams
- type DeleteCustomRuleResponse
- type DeleteCustomRuleResponseParams
- type DeleteCustomWhiteRuleRequest
- type DeleteCustomWhiteRuleRequestParams
- type DeleteCustomWhiteRuleResponse
- type DeleteCustomWhiteRuleResponseParams
- type DeleteHostRequest
- type DeleteHostRequestParams
- type DeleteHostResponse
- type DeleteHostResponseParams
- type DeleteIpAccessControlV2Request
- type DeleteIpAccessControlV2RequestParams
- type DeleteIpAccessControlV2Response
- type DeleteIpAccessControlV2ResponseParams
- type DeleteOwaspRuleStatusRequest
- type DeleteOwaspRuleStatusRequestParams
- type DeleteOwaspRuleStatusResponse
- type DeleteOwaspRuleStatusResponseParams
- type DeleteOwaspWhiteRuleRequest
- type DeleteOwaspWhiteRuleRequestParams
- type DeleteOwaspWhiteRuleResponse
- type DeleteOwaspWhiteRuleResponseParams
- type DeleteSessionRequest
- type DeleteSessionRequestParams
- type DeleteSessionResponse
- type DeleteSessionResponseParams
- type DeleteSpartaProtectionRequest
- type DeleteSpartaProtectionRequestParams
- type DeleteSpartaProtectionResponse
- type DeleteSpartaProtectionResponseParams
- type DescribeAntiFakeRulesRequest
- type DescribeAntiFakeRulesRequestParams
- type DescribeAntiFakeRulesResponse
- type DescribeAntiFakeRulesResponseParams
- type DescribeAntiInfoLeakRulesStrategyItem
- type DescribeAntiInfoLeakageRulesRequest
- type DescribeAntiInfoLeakageRulesRequestParams
- type DescribeAntiInfoLeakageRulesResponse
- type DescribeAntiInfoLeakageRulesResponseParams
- type DescribeAntiLeakageItem
- type DescribeAttackOverviewRequest
- type DescribeAttackOverviewRequestParams
- type DescribeAttackOverviewResponse
- type DescribeAttackOverviewResponseParams
- type DescribeAttackTypeRequest
- type DescribeAttackTypeRequestParams
- type DescribeAttackTypeResponse
- type DescribeAttackTypeResponseParams
- type DescribeBatchIpAccessControlRequest
- type DescribeBatchIpAccessControlRequestParams
- type DescribeBatchIpAccessControlResponse
- type DescribeBatchIpAccessControlResponseParams
- type DescribeCCRuleListRequest
- type DescribeCCRuleListRequestParams
- type DescribeCCRuleListResponse
- type DescribeCCRuleListResponseParams
- type DescribeCCRuleRequest
- type DescribeCCRuleRequestParams
- type DescribeCCRuleResponse
- type DescribeCCRuleResponseParams
- type DescribeCertificateVerifyResultRequest
- type DescribeCertificateVerifyResultRequestParams
- type DescribeCertificateVerifyResultResponse
- type DescribeCertificateVerifyResultResponseParams
- type DescribeCiphersDetailRequest
- type DescribeCiphersDetailRequestParams
- type DescribeCiphersDetailResponse
- type DescribeCiphersDetailResponseParams
- type DescribeCustomRuleListRequest
- type DescribeCustomRuleListRequestParams
- type DescribeCustomRuleListResponse
- type DescribeCustomRuleListResponseParams
- type DescribeCustomRulesRspRuleListItem
- type DescribeCustomWhiteRuleRequest
- type DescribeCustomWhiteRuleRequestParams
- type DescribeCustomWhiteRuleResponse
- type DescribeCustomWhiteRuleResponseParams
- type DescribeDomainCountInfoRequest
- type DescribeDomainCountInfoRequestParams
- type DescribeDomainCountInfoResponse
- type DescribeDomainCountInfoResponseParams
- type DescribeDomainDetailsClbRequest
- type DescribeDomainDetailsClbRequestParams
- type DescribeDomainDetailsClbResponse
- type DescribeDomainDetailsClbResponseParams
- type DescribeDomainDetailsSaasRequest
- type DescribeDomainDetailsSaasRequestParams
- type DescribeDomainDetailsSaasResponse
- type DescribeDomainDetailsSaasResponseParams
- type DescribeDomainVerifyResultRequest
- type DescribeDomainVerifyResultRequestParams
- type DescribeDomainVerifyResultResponse
- type DescribeDomainVerifyResultResponseParams
- type DescribeDomainsRequest
- type DescribeDomainsRequestParams
- type DescribeDomainsResponse
- type DescribeDomainsResponseParams
- type DescribeFindDomainListRequest
- type DescribeFindDomainListRequestParams
- type DescribeFindDomainListResponse
- type DescribeFindDomainListResponseParams
- type DescribeHistogramRequest
- type DescribeHistogramRequestParams
- type DescribeHistogramResponse
- type DescribeHistogramResponseParams
- type DescribeHostLimitRequest
- type DescribeHostLimitRequestParams
- type DescribeHostLimitResponse
- type DescribeHostLimitResponseParams
- type DescribeHostRequest
- type DescribeHostRequestParams
- type DescribeHostResponse
- type DescribeHostResponseParams
- type DescribeHostsRequest
- type DescribeHostsRequestParams
- type DescribeHostsResponse
- type DescribeHostsResponseParams
- type DescribeInstancesRequest
- type DescribeInstancesRequestParams
- type DescribeInstancesResponse
- type DescribeInstancesResponseParams
- type DescribeIpAccessControlRequest
- type DescribeIpAccessControlRequestParams
- type DescribeIpAccessControlResponse
- type DescribeIpAccessControlResponseParams
- type DescribeModuleStatusRequest
- type DescribeModuleStatusRequestParams
- type DescribeModuleStatusResponse
- type DescribeModuleStatusResponseParams
- type DescribeObjectsRequest
- type DescribeObjectsRequestParams
- type DescribeObjectsResponse
- type DescribeObjectsResponseParams
- type DescribeOwaspRuleTypesRequest
- type DescribeOwaspRuleTypesRequestParams
- type DescribeOwaspRuleTypesResponse
- type DescribeOwaspRuleTypesResponseParams
- type DescribeOwaspRulesRequest
- type DescribeOwaspRulesRequestParams
- type DescribeOwaspRulesResponse
- type DescribeOwaspRulesResponseParams
- type DescribeOwaspWhiteRulesRequest
- type DescribeOwaspWhiteRulesRequestParams
- type DescribeOwaspWhiteRulesResponse
- type DescribeOwaspWhiteRulesResponseParams
- type DescribePeakPointsRequest
- type DescribePeakPointsRequestParams
- type DescribePeakPointsResponse
- type DescribePeakPointsResponseParams
- type DescribePolicyStatusRequest
- type DescribePolicyStatusRequestParams
- type DescribePolicyStatusResponse
- type DescribePolicyStatusResponseParams
- type DescribePortsRequest
- type DescribePortsRequestParams
- type DescribePortsResponse
- type DescribePortsResponseParams
- type DescribeRuleLimitRequest
- type DescribeRuleLimitRequestParams
- type DescribeRuleLimitResponse
- type DescribeRuleLimitResponseParams
- type DescribeSessionRequest
- type DescribeSessionRequestParams
- type DescribeSessionResponse
- type DescribeSessionResponseParams
- type DescribeSpartaProtectionInfoRequest
- type DescribeSpartaProtectionInfoRequestParams
- type DescribeSpartaProtectionInfoResponse
- type DescribeSpartaProtectionInfoResponseParams
- type DescribeTlsVersionRequest
- type DescribeTlsVersionRequestParams
- type DescribeTlsVersionResponse
- type DescribeTlsVersionResponseParams
- type DescribeTopAttackDomainRequest
- type DescribeTopAttackDomainRequestParams
- type DescribeTopAttackDomainResponse
- type DescribeTopAttackDomainResponseParams
- type DescribeUserClbWafRegionsRequest
- type DescribeUserClbWafRegionsRequestParams
- type DescribeUserClbWafRegionsResponse
- type DescribeUserClbWafRegionsResponseParams
- type DescribeUserDomainInfoRequest
- type DescribeUserDomainInfoRequestParams
- type DescribeUserDomainInfoResponse
- type DescribeUserDomainInfoResponseParams
- type DescribeUserLevelRequest
- type DescribeUserLevelRequestParams
- type DescribeUserLevelResponse
- type DescribeUserLevelResponseParams
- type DescribeVipInfoRequest
- type DescribeVipInfoRequestParams
- type DescribeVipInfoResponse
- type DescribeVipInfoResponseParams
- type DescribeWebshellStatusRequest
- type DescribeWebshellStatusRequestParams
- type DescribeWebshellStatusResponse
- type DescribeWebshellStatusResponseParams
- type DomainInfo
- type DomainPackageNew
- type DomainRuleId
- type DomainURI
- type DomainsPartInfo
- type FiltersItemNew
- type FindAllDomainDetail
- type FraudPkg
- type FreshAntiFakeUrlRequest
- type FreshAntiFakeUrlRequestParams
- type FreshAntiFakeUrlResponse
- type FreshAntiFakeUrlResponseParams
- type GenerateDealsAndPayNewRequest
- type GenerateDealsAndPayNewRequestParams
- type GenerateDealsAndPayNewResponse
- type GenerateDealsAndPayNewResponseParams
- type GetAttackHistogramRequest
- type GetAttackHistogramRequestParams
- type GetAttackHistogramResponse
- type GetAttackHistogramResponseParams
- type GetAttackTotalCountRequest
- type GetAttackTotalCountRequestParams
- type GetAttackTotalCountResponse
- type GetAttackTotalCountResponseParams
- type GetInstanceQpsLimitRequest
- type GetInstanceQpsLimitRequestParams
- type GetInstanceQpsLimitResponse
- type GetInstanceQpsLimitResponseParams
- type GoodNews
- type GoodsDetailNew
- type HostDel
- type HostRecord
- type HostStatus
- type HybridPkg
- type ImportIpAccessControlRequest
- type ImportIpAccessControlRequestParams
- type ImportIpAccessControlResponse
- type ImportIpAccessControlResponseParams
- type InstanceInfo
- type IpAccessControlData
- type IpAccessControlItem
- type IpAccessControlParam
- type JobDateTime
- type KVInt
- type LoadBalancer
- type LoadBalancerPackageNew
- type LogHistogramInfo
- type MajorEventsPkg
- type MiniExtendPkg
- type MiniPkg
- type ModifyAntiFakeUrlRequest
- type ModifyAntiFakeUrlRequestParams
- type ModifyAntiFakeUrlResponse
- type ModifyAntiFakeUrlResponseParams
- type ModifyAntiFakeUrlStatusRequest
- type ModifyAntiFakeUrlStatusRequestParams
- type ModifyAntiFakeUrlStatusResponse
- type ModifyAntiFakeUrlStatusResponseParams
- type ModifyAntiInfoLeakRuleStatusRequest
- type ModifyAntiInfoLeakRuleStatusRequestParams
- type ModifyAntiInfoLeakRuleStatusResponse
- type ModifyAntiInfoLeakRuleStatusResponseParams
- type ModifyAntiInfoLeakRulesRequest
- type ModifyAntiInfoLeakRulesRequestParams
- type ModifyAntiInfoLeakRulesResponse
- type ModifyAntiInfoLeakRulesResponseParams
- type ModifyApiAnalyzeStatusRequest
- type ModifyApiAnalyzeStatusRequestParams
- type ModifyApiAnalyzeStatusResponse
- type ModifyApiAnalyzeStatusResponseParams
- type ModifyBotStatusRequest
- type ModifyBotStatusRequestParams
- type ModifyBotStatusResponse
- type ModifyBotStatusResponseParams
- type ModifyCustomRuleRequest
- type ModifyCustomRuleRequestParams
- type ModifyCustomRuleResponse
- type ModifyCustomRuleResponseParams
- type ModifyCustomRuleStatusRequest
- type ModifyCustomRuleStatusRequestParams
- type ModifyCustomRuleStatusResponse
- type ModifyCustomRuleStatusResponseParams
- type ModifyCustomWhiteRuleRequest
- type ModifyCustomWhiteRuleRequestParams
- type ModifyCustomWhiteRuleResponse
- type ModifyCustomWhiteRuleResponseParams
- type ModifyCustomWhiteRuleStatusRequest
- type ModifyCustomWhiteRuleStatusRequestParams
- type ModifyCustomWhiteRuleStatusResponse
- type ModifyCustomWhiteRuleStatusResponseParams
- type ModifyDomainIpv6StatusRequest
- type ModifyDomainIpv6StatusRequestParams
- type ModifyDomainIpv6StatusResponse
- type ModifyDomainIpv6StatusResponseParams
- type ModifyDomainPostActionRequest
- type ModifyDomainPostActionRequestParams
- type ModifyDomainPostActionResponse
- type ModifyDomainPostActionResponseParams
- type ModifyDomainsCLSStatusRequest
- type ModifyDomainsCLSStatusRequestParams
- type ModifyDomainsCLSStatusResponse
- type ModifyDomainsCLSStatusResponseParams
- type ModifyHostFlowModeRequest
- type ModifyHostFlowModeRequestParams
- type ModifyHostFlowModeResponse
- type ModifyHostFlowModeResponseParams
- type ModifyHostModeRequest
- type ModifyHostModeRequestParams
- type ModifyHostModeResponse
- type ModifyHostModeResponseParams
- type ModifyHostRequest
- type ModifyHostRequestParams
- type ModifyHostResponse
- type ModifyHostResponseParams
- type ModifyHostStatusRequest
- type ModifyHostStatusRequestParams
- type ModifyHostStatusResponse
- type ModifyHostStatusResponseParams
- type ModifyInstanceElasticModeRequest
- type ModifyInstanceElasticModeRequestParams
- type ModifyInstanceElasticModeResponse
- type ModifyInstanceElasticModeResponseParams
- type ModifyInstanceNameRequest
- type ModifyInstanceNameRequestParams
- type ModifyInstanceNameResponse
- type ModifyInstanceNameResponseParams
- type ModifyInstanceQpsLimitRequest
- type ModifyInstanceQpsLimitRequestParams
- type ModifyInstanceQpsLimitResponse
- type ModifyInstanceQpsLimitResponseParams
- type ModifyInstanceRenewFlagRequest
- type ModifyInstanceRenewFlagRequestParams
- type ModifyInstanceRenewFlagResponse
- type ModifyInstanceRenewFlagResponseParams
- type ModifyIpAccessControlRequest
- type ModifyIpAccessControlRequestParams
- type ModifyIpAccessControlResponse
- type ModifyIpAccessControlResponseParams
- type ModifyModuleStatusRequest
- type ModifyModuleStatusRequestParams
- type ModifyModuleStatusResponse
- type ModifyModuleStatusResponseParams
- type ModifyObjectRequest
- type ModifyObjectRequestParams
- type ModifyObjectResponse
- type ModifyObjectResponseParams
- type ModifyOwaspRuleStatusRequest
- type ModifyOwaspRuleStatusRequestParams
- type ModifyOwaspRuleStatusResponse
- type ModifyOwaspRuleStatusResponseParams
- type ModifyOwaspRuleTypeActionRequest
- type ModifyOwaspRuleTypeActionRequestParams
- type ModifyOwaspRuleTypeActionResponse
- type ModifyOwaspRuleTypeActionResponseParams
- type ModifyOwaspRuleTypeLevelRequest
- type ModifyOwaspRuleTypeLevelRequestParams
- type ModifyOwaspRuleTypeLevelResponse
- type ModifyOwaspRuleTypeLevelResponseParams
- type ModifyOwaspRuleTypeStatusRequest
- type ModifyOwaspRuleTypeStatusRequestParams
- type ModifyOwaspRuleTypeStatusResponse
- type ModifyOwaspRuleTypeStatusResponseParams
- type ModifyOwaspWhiteRuleRequest
- type ModifyOwaspWhiteRuleRequestParams
- type ModifyOwaspWhiteRuleResponse
- type ModifyOwaspWhiteRuleResponseParams
- type ModifyProtectionStatusRequest
- type ModifyProtectionStatusRequestParams
- type ModifyProtectionStatusResponse
- type ModifyProtectionStatusResponseParams
- type ModifySpartaProtectionModeRequest
- type ModifySpartaProtectionModeRequestParams
- type ModifySpartaProtectionModeResponse
- type ModifySpartaProtectionModeResponseParams
- type ModifySpartaProtectionRequest
- type ModifySpartaProtectionRequestParams
- type ModifySpartaProtectionResponse
- type ModifySpartaProtectionResponseParams
- type ModifyUserLevelRequest
- type ModifyUserLevelRequestParams
- type ModifyUserLevelResponse
- type ModifyUserLevelResponseParams
- type ModifyUserSignatureRuleRequest
- type ModifyUserSignatureRuleRequestParams
- type ModifyUserSignatureRuleResponse
- type ModifyUserSignatureRuleResponseParams
- type ModifyWebshellStatusRequest
- type ModifyWebshellStatusRequestParams
- type ModifyWebshellStatusResponse
- type ModifyWebshellStatusResponseParams
- type OwaspRule
- type OwaspRuleType
- type OwaspWhiteRule
- type PeakPointsItem
- type PiechartItem
- type PortInfo
- type PortItem
- type QPSPackageNew
- type QpsData
- type RefreshAccessCheckResultRequest
- type RefreshAccessCheckResultRequestParams
- type RefreshAccessCheckResultResponse
- type RefreshAccessCheckResultResponseParams
- type ReqUserRule
- type ResponseCode
- type SearchAttackLogRequest
- type SearchAttackLogRequestParams
- type SearchAttackLogResponse
- type SearchAttackLogResponseParams
- type SearchItem
- type SessionData
- type SessionItem
- type SpartaProtectionPort
- type Strategy
- type StrategyForAntiInfoLeak
- type SwitchElasticModeRequest
- type SwitchElasticModeRequestParams
- type SwitchElasticModeResponse
- type SwitchElasticModeResponseParams
- type TLSCiphers
- type TLSVersion
- type TargetEntity
- type TimedJob
- type UpsertCCRuleRequest
- type UpsertCCRuleRequestParams
- type UpsertCCRuleResponse
- type UpsertCCRuleResponseParams
- type UpsertSessionRequest
- type UpsertSessionRequestParams
- type UpsertSessionResponse
- type UpsertSessionResponseParams
- type UserDomainInfo
- type VipInfo
- type WafRuleLimit
- type WebshellStatus
Constants ¶
const ( // CAM signature/authentication error. AUTHFAILURE = "AuthFailure" // The current instance has not purchased the API security package. AUTHFAILURE_ERRCODENOPURCHASED = "AuthFailure.ErrCodeNoPurchased" // DryRun operation means the request will be successful, but the DryRun parameter is passed. DRYRUNOPERATION = "DryRunOperation" // Operation failed. FAILEDOPERATION = "FailedOperation" // CKafka internal error. FAILEDOPERATION_CKAFKAINTERNALERROR = "FailedOperation.CKafkaInternalError" // Failed to call the CLS API. FAILEDOPERATION_CLSDBOPERATIONFAILED = "FailedOperation.CLSDBOperationFailed" // CLS internal error. FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" // Failed to operate the MongoDB database. FAILEDOPERATION_MONGOOPERATIONFAILED = "FailedOperation.MongoOperationFailed" // Failed to operate the MySQL database. FAILEDOPERATION_MYSQLDBOPERATIONFAILED = "FailedOperation.MysqlDBOperationFailed" // Failed to operate the Redis database. FAILEDOPERATION_REDISOPERATIONFAILED = "FailedOperation.RedisOperationFailed" // The session being deleted is in use. FAILEDOPERATION_SESSIONINUSED = "FailedOperation.SessionInUsed" // The number of additions to the blocklist/allowlist exceeds the limit. FAILEDOPERATION_THENUMBEROFADDEDBLACKANDWHITELISTEXCEEDSTHEUPPERLIMIT = "FailedOperation.TheNumberOfAddedBlackAndWhiteListExceedsTheUpperLimit" // Reached the maximum number of one-time deletions. FAILEDOPERATION_THENUMBEROFONETIMEDELETIONSREACHEDTHEUPPERLIMIT = "FailedOperation.TheNumberOfOneTimeDeletionsReachedTheUpperLimit" // Internal error. INTERNALERROR = "InternalError" // Asynchronous call failed. INTERNALERROR_ASYNCHRONOUSCALLFAILED = "InternalError.AsynchronousCallFailed" // DBErr INTERNALERROR_DBERR = "InternalError.DBErr" // InternalError.Unknown INTERNALERROR_UNKNOWN = "InternalError.Unknown" // An internal error exists. Please contact us. INTERNALERROR_UNKNOWNERR = "InternalError.UnknownErr" // Parameter error. INVALIDPARAMETER = "InvalidParameter" // Certificate information parameter error INVALIDPARAMETER_CERTIFICATIONPARAMETERERR = "InvalidParameter.CertificationParameterErr" // The number of domain names reached the upper limit. INVALIDPARAMETER_DOMAINEXCEEDSLIMITERR = "InvalidParameter.DomainExceedsLimitErr" // The domain name is not registered. INVALIDPARAMETER_DOMAINNOTRECORD = "InvalidParameter.DomainNotRecord" // Invalid certificate content. INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" // Logical error: Logical errors in SQL search statements can also lead to mistakes, such as using incorrect operators, wrong conditions, etc. INVALIDPARAMETER_LOGICERR = "InvalidParameter.LogicErr" // Port information parameter error INVALIDPARAMETER_PORTPARAMETERERR = "InvalidParameter.PortParameterErr" // Protective domain parameter error INVALIDPARAMETER_PROTECTIONDOMAINPARAMETERERR = "InvalidParameter.ProtectionDomainParameterErr" // Failed to query certificate by ID. INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" // Syntax error: Logical expression syntax analysis failed. INVALIDPARAMETER_QUERYSTRINGSYNTAXERR = "InvalidParameter.QueryStringSyntaxErr" // Syntax error: SQL search statements must follow specific syntax rules. Failure to do so, such as missing keywords, spelling errors, missing semicolons, etc., will cause SQL statements to not execute. INVALIDPARAMETER_SQLSYNTAXERR = "InvalidParameter.SQLSyntaxErr" // The current instance version does not support enabling TLS by definition. Please upgrade to the Advanced Edition or above. INVALIDPARAMETER_SUPPORTTLSCONFFAILED = "InvalidParameter.SupportTLSConfFailed" // TLS or encryption suite parameter error INVALIDPARAMETER_TLSPARAMETERERR = "InvalidParameter.TLSParameterErr" // Data type error: The data types in SQL search statements must match those in the database, otherwise it will lead to errors. For example, comparing a string with an integer, incorrect date format, etc. INVALIDPARAMETER_TYPEMISMATCH = "InvalidParameter.TypeMismatch" // Permission overstep parameter error INVALIDPARAMETER_UNAUTHORIZEDOPERATIONPARAMETERERR = "InvalidParameter.UnauthorizedOperationParameterErr" // Origin information parameter error INVALIDPARAMETER_UPSTREAMPARAMETERERR = "InvalidParameter.UpstreamParameterErr" // XFF reset parameter error INVALIDPARAMETER_XFFRESETPARAMETERERR = "InvalidParameter.XFFResetParameterErr" // Invalid parameter value. INVALIDPARAMETERVALUE = "InvalidParameterValue" // InvalidRequest INVALIDPARAMETERVALUE_INVALIDREQUEST = "InvalidParameterValue.InvalidRequest" // The quota limit is exceeded. LIMITEXCEEDED = "LimitExceeded" // SpecificationErr LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" // Parameters are missing MISSINGPARAMETER = "MissingParameter" // Operation denied. OPERATIONDENIED = "OperationDenied" // Too frequent requests REQUESTLIMITEXCEEDED = "RequestLimitExceeded" // Resources are occupied. RESOURCEINUSE = "ResourceInUse" // EmptyErr RESOURCEINUSE_EMPTYERR = "ResourceInUse.EmptyErr" // Insufficient resources. RESOURCEINSUFFICIENT = "ResourceInsufficient" // Resources do not exist. RESOURCENOTFOUND = "ResourceNotFound" // ResourceNotFound.NotFound RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" // Resources are unavailable. RESOURCEUNAVAILABLE = "ResourceUnavailable" // The IPv6 network is being allocated. Please wait patiently. RESOURCEUNAVAILABLE_DOMAINIPV6INCONFIGERR = "ResourceUnavailable.DomainIpv6InConfigErr" // Resources are sold out. RESOURCESSOLDOUT = "ResourcesSoldOut" // Unauthorized operation. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // Unknown parameter. UNKNOWNPARAMETER = "UnknownParameter" // The operation is not supported. UNSUPPORTEDOPERATION = "UnsupportedOperation" // InvalidRequest UNSUPPORTEDOPERATION_INVALIDREQUEST = "UnsupportedOperation.InvalidRequest" )
const APIVersion = "2018-01-25"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAntiFakeUrlRequest ¶
type AddAntiFakeUrlRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// uri
Uri *string `json:"Uri,omitnil,omitempty" name:"Uri"`
}
func NewAddAntiFakeUrlRequest ¶
func NewAddAntiFakeUrlRequest() (request *AddAntiFakeUrlRequest)
func (*AddAntiFakeUrlRequest) FromJsonString ¶
func (r *AddAntiFakeUrlRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddAntiFakeUrlRequest) ToJsonString ¶
func (r *AddAntiFakeUrlRequest) ToJsonString() string
type AddAntiFakeUrlRequestParams ¶
type AddAntiFakeUrlRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// uri
Uri *string `json:"Uri,omitnil,omitempty" name:"Uri"`
}
Predefined struct for user
type AddAntiFakeUrlResponse ¶
type AddAntiFakeUrlResponse struct {
*tchttp.BaseResponse
Response *AddAntiFakeUrlResponseParams `json:"Response"`
}
func NewAddAntiFakeUrlResponse ¶
func NewAddAntiFakeUrlResponse() (response *AddAntiFakeUrlResponse)
func (*AddAntiFakeUrlResponse) FromJsonString ¶
func (r *AddAntiFakeUrlResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddAntiFakeUrlResponse) ToJsonString ¶
func (r *AddAntiFakeUrlResponse) ToJsonString() string
type AddAntiFakeUrlResponseParams ¶
type AddAntiFakeUrlResponseParams struct {
// Result
Result *string `json:"Result,omitnil,omitempty" name:"Result"`
// Rule ID
Id *string `json:"Id,omitnil,omitempty" name:"Id"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type AddAntiInfoLeakRulesRequest ¶
type AddAntiInfoLeakRulesRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Actions: 0 (alarm), 1 (replace), 2 (only display the first four digits), 3 (only display the last four digits), 4 (block)
ActionType *uint64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Policy details
Strategies []*StrategyForAntiInfoLeak `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// URL
Uri *string `json:"Uri,omitnil,omitempty" name:"Uri"`
}
func NewAddAntiInfoLeakRulesRequest ¶
func NewAddAntiInfoLeakRulesRequest() (request *AddAntiInfoLeakRulesRequest)
func (*AddAntiInfoLeakRulesRequest) FromJsonString ¶
func (r *AddAntiInfoLeakRulesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddAntiInfoLeakRulesRequest) ToJsonString ¶
func (r *AddAntiInfoLeakRulesRequest) ToJsonString() string
type AddAntiInfoLeakRulesRequestParams ¶
type AddAntiInfoLeakRulesRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Actions: 0 (alarm), 1 (replace), 2 (only display the first four digits), 3 (only display the last four digits), 4 (block)
ActionType *uint64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Policy details
Strategies []*StrategyForAntiInfoLeak `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// URL
Uri *string `json:"Uri,omitnil,omitempty" name:"Uri"`
}
Predefined struct for user
type AddAntiInfoLeakRulesResponse ¶
type AddAntiInfoLeakRulesResponse struct {
*tchttp.BaseResponse
Response *AddAntiInfoLeakRulesResponseParams `json:"Response"`
}
func NewAddAntiInfoLeakRulesResponse ¶
func NewAddAntiInfoLeakRulesResponse() (response *AddAntiInfoLeakRulesResponse)
func (*AddAntiInfoLeakRulesResponse) FromJsonString ¶
func (r *AddAntiInfoLeakRulesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddAntiInfoLeakRulesResponse) ToJsonString ¶
func (r *AddAntiInfoLeakRulesResponse) ToJsonString() string
type AddAntiInfoLeakRulesResponseParams ¶
type AddAntiInfoLeakRulesResponseParams struct {
// Rule ID
RuleId *int64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type AddCustomRuleRequest ¶
type AddCustomRuleRequest struct {
*tchttp.BaseRequest
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Priority
SortId *string `json:"SortId,omitnil,omitempty" name:"SortId"`
// Policy details
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// Domain name for adding policy
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Action type: 1 for Block, 2 captcha, 3 for Observe, 4 for Redirect
ActionType *string `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// If the action is redirect, it indicates the redirect address; otherwise, it can be left blank.
Redirect *string `json:"Redirect,omitnil,omitempty" name:"Redirect"`
// Expiration time: in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// WAF instance type: sparta-waf for SaaS WAF, clb-waf for CLB WAF.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Details of release
Bypass *string `json:"Bypass,omitnil,omitempty" name:"Bypass"`
// Source of the rule addition, default is empty
EventId *string `json:"EventId,omitnil,omitempty" name:"EventId"`
// Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Rule execution time
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
// Rule source. You can determine whether a rule comes from a mini program.
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Rule tag. It is used for mini program rules and identifies whether a rule is a built-in rule or a custom rule.
Label *string `json:"Label,omitnil,omitempty" name:"Label"`
// Switch status. This value is passed when mini program risk control rules are used.
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Interception page ID
PageId *string `json:"PageId,omitnil,omitempty" name:"PageId"`
}
func NewAddCustomRuleRequest ¶
func NewAddCustomRuleRequest() (request *AddCustomRuleRequest)
func (*AddCustomRuleRequest) FromJsonString ¶
func (r *AddCustomRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddCustomRuleRequest) ToJsonString ¶
func (r *AddCustomRuleRequest) ToJsonString() string
type AddCustomRuleRequestParams ¶
type AddCustomRuleRequestParams struct {
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Priority
SortId *string `json:"SortId,omitnil,omitempty" name:"SortId"`
// Policy details
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// Domain name for adding policy
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Action type: 1 for Block, 2 captcha, 3 for Observe, 4 for Redirect
ActionType *string `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// If the action is redirect, it indicates the redirect address; otherwise, it can be left blank.
Redirect *string `json:"Redirect,omitnil,omitempty" name:"Redirect"`
// Expiration time: in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// WAF instance type: sparta-waf for SaaS WAF, clb-waf for CLB WAF.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Details of release
Bypass *string `json:"Bypass,omitnil,omitempty" name:"Bypass"`
// Source of the rule addition, default is empty
EventId *string `json:"EventId,omitnil,omitempty" name:"EventId"`
// Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Rule execution time
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
// Rule source. You can determine whether a rule comes from a mini program.
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Rule tag. It is used for mini program rules and identifies whether a rule is a built-in rule or a custom rule.
Label *string `json:"Label,omitnil,omitempty" name:"Label"`
// Switch status. This value is passed when mini program risk control rules are used.
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Interception page ID
PageId *string `json:"PageId,omitnil,omitempty" name:"PageId"`
}
Predefined struct for user
type AddCustomRuleResponse ¶
type AddCustomRuleResponse struct {
*tchttp.BaseResponse
Response *AddCustomRuleResponseParams `json:"Response"`
}
func NewAddCustomRuleResponse ¶
func NewAddCustomRuleResponse() (response *AddCustomRuleResponse)
func (*AddCustomRuleResponse) FromJsonString ¶
func (r *AddCustomRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddCustomRuleResponse) ToJsonString ¶
func (r *AddCustomRuleResponse) ToJsonString() string
type AddCustomRuleResponseParams ¶
type AddCustomRuleResponseParams struct {
// Operation status code: if all resource operations succeed, the success status code is returned; if any resource operation fails, the content of Message needs to be parsed to see which resource failed.
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// Successfully added rule ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
RuleId *int64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type AddCustomWhiteRuleRequest ¶
type AddCustomWhiteRuleRequest struct {
*tchttp.BaseRequest
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Priority
SortId *string `json:"SortId,omitnil,omitempty" name:"SortId"`
// Expiration time
ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// Policy details
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// Domain name for adding policy
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Details of release
Bypass *string `json:"Bypass,omitnil,omitempty" name:"Bypass"`
// Scheduled task type
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Scheduled task configuration
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
}
func NewAddCustomWhiteRuleRequest ¶
func NewAddCustomWhiteRuleRequest() (request *AddCustomWhiteRuleRequest)
func (*AddCustomWhiteRuleRequest) FromJsonString ¶
func (r *AddCustomWhiteRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddCustomWhiteRuleRequest) ToJsonString ¶
func (r *AddCustomWhiteRuleRequest) ToJsonString() string
type AddCustomWhiteRuleRequestParams ¶
type AddCustomWhiteRuleRequestParams struct {
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Priority
SortId *string `json:"SortId,omitnil,omitempty" name:"SortId"`
// Expiration time
ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// Policy details
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// Domain name for adding policy
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Details of release
Bypass *string `json:"Bypass,omitnil,omitempty" name:"Bypass"`
// Scheduled task type
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Scheduled task configuration
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
}
Predefined struct for user
type AddCustomWhiteRuleResponse ¶
type AddCustomWhiteRuleResponse struct {
*tchttp.BaseResponse
Response *AddCustomWhiteRuleResponseParams `json:"Response"`
}
func NewAddCustomWhiteRuleResponse ¶
func NewAddCustomWhiteRuleResponse() (response *AddCustomWhiteRuleResponse)
func (*AddCustomWhiteRuleResponse) FromJsonString ¶
func (r *AddCustomWhiteRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddCustomWhiteRuleResponse) ToJsonString ¶
func (r *AddCustomWhiteRuleResponse) ToJsonString() string
type AddCustomWhiteRuleResponseParams ¶
type AddCustomWhiteRuleResponseParams struct {
// Operation status code: if all resource operations succeed, the success status code is returned; if any resource operation fails, the content of Message needs to be parsed to see which resource failed.
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// Successfully added rule ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type AddSpartaProtectionRequest ¶
type AddSpartaProtectionRequest struct {
*tchttp.BaseRequest
// Domain requiring protection
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Certificate type
// 0: no certificate, with only the HTTP listening port configured
// 1: self-owned certificate
// 2: managed certificate
CertType *int64 `json:"CertType,omitnil,omitempty" name:"CertType"`
// Whether a layer-7 proxy service is deployed before WAF
// 0: No proxy service deployed
// 1: Proxy service deployed, and WAF will use XFF to obtain the client IP address
// 2: Proxy service deployed and WAF will use remote_addr to obtain the client IP address
// 3: Proxy service deployed, and WAF will use a custom header in ip_headers to obtain the client IP address
IsCdn *int64 `json:"IsCdn,omitnil,omitempty" name:"IsCdn"`
// Upstream type
// 0: proxy to upstream by IP address
// 1: proxy to upstream by domain name
UpstreamType *int64 `json:"UpstreamType,omitnil,omitempty" name:"UpstreamType"`
// Whether to enable websocket
// 0: disable
// 1: enable
IsWebsocket *int64 `json:"IsWebsocket,omitnil,omitempty" name:"IsWebsocket"`
// Load balancing policy for upstream
// 0: round-robin
// 1: IP hash
// 2: weighted round-robin
LoadBalance *string `json:"LoadBalance,omitnil,omitempty" name:"LoadBalance"`
// Service port list configuration
// NginxServerId: fill in '0' in this function
// Port: listening port number
// Protocol: port protocol
// UpstreamPort: same as Port
// UpstreamProtocol: same as Protocol
Ports []*PortItem `json:"Ports,omitnil,omitempty" name:"Ports"`
// (Required) Whether to enable persistent connection
// 0: non-persistent connection
// 1: persistent connection
IsKeepAlive *string `json:"IsKeepAlive,omitnil,omitempty" name:"IsKeepAlive"`
// (Required) Instance ID of the domain name
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// When CertType is 1, this parameter is required, indicating the self-owned certificate chain
Cert *string `json:"Cert,omitnil,omitempty" name:"Cert"`
// When CertType=1, this parameter is required, indicating the private key of the self-owned certificate.
PrivateKey *string `json:"PrivateKey,omitnil,omitempty" name:"PrivateKey"`
// When CertType is 2, this parameter must be filled, indicating the certificate ID hosted on Tencent Cloud's SSL platform
SSLId *string `json:"SSLId,omitnil,omitempty" name:"SSLId"`
// To be deprecated, not required. WAF resource ID.
ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`
// When IsCdn is 3, this parameter is required, indicating a custom header.
IpHeaders []*string `json:"IpHeaders,omitnil,omitempty" name:"IpHeaders"`
// Upstream protocol for HTTPS when the service is configured with an HTTPS port
// http: Use the HTTP protocol for upstream. It is used together with HttpsUpstreamPort.
// https: Use the HTTPS protocol for upstream.
UpstreamScheme *string `json:"UpstreamScheme,omitnil,omitempty" name:"UpstreamScheme"`
// HTTPS upstream port, required only when UpstreamScheme is http
HttpsUpstreamPort *string `json:"HttpsUpstreamPort,omitnil,omitempty" name:"HttpsUpstreamPort"`
// To be deprecated, can be left blank. Whether to enable grayscale: 0 indicates not to enable grayscale.
IsGray *int64 `json:"IsGray,omitnil,omitempty" name:"IsGray"`
// To be deprecated, can be left blank. Grayscale area.
GrayAreas []*string `json:"GrayAreas,omitnil,omitempty" name:"GrayAreas"`
// (Required) Whether to enable forced redirection from HTTP to HTTPS
// 0: do not force redirect
// 1: enable forced redirect
HttpsRewrite *int64 `json:"HttpsRewrite,omitnil,omitempty" name:"HttpsRewrite"`
// Upstream domain when proxy to upstream by domain. When UpstreamType=1, this field needs to be filled
UpstreamDomain *string `json:"UpstreamDomain,omitnil,omitempty" name:"UpstreamDomain"`
// Upstream IP list when IP is back to source. When UpstreamType=0, this field is required
SrcList []*string `json:"SrcList,omitnil,omitempty" name:"SrcList"`
// (Required) Whether to enable HTTP2. You should enable HTTPS as well.
// 0: disable
// 1: enable
IsHttp2 *int64 `json:"IsHttp2,omitnil,omitempty" name:"IsHttp2"`
// WAF instance type. This parameter will be deprecated in later versions and is not required in the current version.
// sparta-waf: SaaS WAF
// clb-waf: CLB WAF
// cdn-waf: web protection capability on CDN
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// To be deprecated, currently just fill in 0. Anycast IP type switch: 0 Ordinary IP, 1 Anycast IP
Anycast *int64 `json:"Anycast,omitnil,omitempty" name:"Anycast"`
// Weight of each IP in the back-to-source IP List, corresponding to SrcList. Required only when UpstreamType is 0, and SrcList contains multiple IPs, and LoadBalance is 2; otherwise, fill in [ ].
Weights []*int64 `json:"Weights,omitnil,omitempty" name:"Weights"`
// (Required) Whether to enable active health check
// 0: disable
// 1: enable
ActiveCheck *int64 `json:"ActiveCheck,omitnil,omitempty" name:"ActiveCheck"`
// TLS version information
TLSVersion *int64 `json:"TLSVersion,omitnil,omitempty" name:"TLSVersion"`
// (Required) Cipher suite template
// 0: default template
// 1: general template
// 2: security template
// 3: custom template
CipherTemplate *int64 `json:"CipherTemplate,omitnil,omitempty" name:"CipherTemplate"`
// Custom encryption suite list. When CipherTemplate is 3, this field is required, indicating the custom encryption suite, value obtained through DescribeCiphersDetail API.
Ciphers []*int64 `json:"Ciphers,omitnil,omitempty" name:"Ciphers"`
// Read timeout between WAF and upstream server, 300s by default.
ProxyReadTimeout *int64 `json:"ProxyReadTimeout,omitnil,omitempty" name:"ProxyReadTimeout"`
// WAF and upstream server write timeout, 300s by default.
ProxySendTimeout *int64 `json:"ProxySendTimeout,omitnil,omitempty" name:"ProxySendTimeout"`
// SNI type during WAF sending request to upstream
// 0: Disable SNI and do not configure server_name in client_hello.
// 1: Enable SNI. server_name in client_hello is a protected domain name.
// 2: Enable SNI. SNI is the origin server domain name during the domain name origin-pull.
// 3: Enable SNI. SNI is a custom domain name.
SniType *int64 `json:"SniType,omitnil,omitempty" name:"SniType"`
// When SniType=3, this parameter is required, indicating a custom SNI;
SniHost *string `json:"SniHost,omitnil,omitempty" name:"SniHost"`
// Whether to enable XFF reset. 0: disable; 1: enable.
XFFReset *int64 `json:"XFFReset,omitnil,omitempty" name:"XFFReset"`
// Domain name remarks
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// Custom upstream host. The default value is an empty string, indicating that protected domain is used as the upstream host.
UpstreamHost *string `json:"UpstreamHost,omitnil,omitempty" name:"UpstreamHost"`
// Whether to enable caching. 0: disable; 1: enable.
ProxyBuffer *int64 `json:"ProxyBuffer,omitnil,omitempty" name:"ProxyBuffer"`
// Whether to enable the test. 0: disable; 1: enable. The test is enabled by default.
ProbeStatus *int64 `json:"ProbeStatus,omitnil,omitempty" name:"ProbeStatus"`
// Whether to enable SM. 0: do not enable SM; 1: add support for SM based on the existing TLS option; 2: enable SM and support only SM client access.
GmType *int64 `json:"GmType,omitnil,omitempty" name:"GmType"`
// SM certificate type. 0: no SM certificate is available; 1: the certificate is a self-owned SM certificate; 2: the certificate is a managed SM certificate.
GmCertType *int64 `json:"GmCertType,omitnil,omitempty" name:"GmCertType"`
// When GmCertType is 1, this parameter needs to be set, indicating the certificate chain of the self-owned SM certificate.
GmCert *string `json:"GmCert,omitnil,omitempty" name:"GmCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the self-owned SM certificate.
GmPrivateKey *string `json:"GmPrivateKey,omitnil,omitempty" name:"GmPrivateKey"`
// When GmCertType is 1, this parameter needs to be set, indicating the encryption certificate of the self-owned SM certificate.
GmEncCert *string `json:"GmEncCert,omitnil,omitempty" name:"GmEncCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the encryption certificate for the self-owned SM certificate.
GmEncPrivateKey *string `json:"GmEncPrivateKey,omitnil,omitempty" name:"GmEncPrivateKey"`
// When GmCertType is 2, this parameter needs to be set, indicating the ID of the certificate managed by the Tencent Cloud SSL platform.
GmSSLId *string `json:"GmSSLId,omitnil,omitempty" name:"GmSSLId"`
}
func NewAddSpartaProtectionRequest ¶
func NewAddSpartaProtectionRequest() (request *AddSpartaProtectionRequest)
func (*AddSpartaProtectionRequest) FromJsonString ¶
func (r *AddSpartaProtectionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddSpartaProtectionRequest) ToJsonString ¶
func (r *AddSpartaProtectionRequest) ToJsonString() string
type AddSpartaProtectionRequestParams ¶
type AddSpartaProtectionRequestParams struct {
// Domain requiring protection
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Certificate type
// 0: no certificate, with only the HTTP listening port configured
// 1: self-owned certificate
// 2: managed certificate
CertType *int64 `json:"CertType,omitnil,omitempty" name:"CertType"`
// Whether a layer-7 proxy service is deployed before WAF
// 0: No proxy service deployed
// 1: Proxy service deployed, and WAF will use XFF to obtain the client IP address
// 2: Proxy service deployed and WAF will use remote_addr to obtain the client IP address
// 3: Proxy service deployed, and WAF will use a custom header in ip_headers to obtain the client IP address
IsCdn *int64 `json:"IsCdn,omitnil,omitempty" name:"IsCdn"`
// Upstream type
// 0: proxy to upstream by IP address
// 1: proxy to upstream by domain name
UpstreamType *int64 `json:"UpstreamType,omitnil,omitempty" name:"UpstreamType"`
// Whether to enable websocket
// 0: disable
// 1: enable
IsWebsocket *int64 `json:"IsWebsocket,omitnil,omitempty" name:"IsWebsocket"`
// Load balancing policy for upstream
// 0: round-robin
// 1: IP hash
// 2: weighted round-robin
LoadBalance *string `json:"LoadBalance,omitnil,omitempty" name:"LoadBalance"`
// Service port list configuration
// NginxServerId: fill in '0' in this function
// Port: listening port number
// Protocol: port protocol
// UpstreamPort: same as Port
// UpstreamProtocol: same as Protocol
Ports []*PortItem `json:"Ports,omitnil,omitempty" name:"Ports"`
// (Required) Whether to enable persistent connection
// 0: non-persistent connection
// 1: persistent connection
IsKeepAlive *string `json:"IsKeepAlive,omitnil,omitempty" name:"IsKeepAlive"`
// (Required) Instance ID of the domain name
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// When CertType is 1, this parameter is required, indicating the self-owned certificate chain
Cert *string `json:"Cert,omitnil,omitempty" name:"Cert"`
// When CertType=1, this parameter is required, indicating the private key of the self-owned certificate.
PrivateKey *string `json:"PrivateKey,omitnil,omitempty" name:"PrivateKey"`
// When CertType is 2, this parameter must be filled, indicating the certificate ID hosted on Tencent Cloud's SSL platform
SSLId *string `json:"SSLId,omitnil,omitempty" name:"SSLId"`
// To be deprecated, not required. WAF resource ID.
ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`
// When IsCdn is 3, this parameter is required, indicating a custom header.
IpHeaders []*string `json:"IpHeaders,omitnil,omitempty" name:"IpHeaders"`
// Upstream protocol for HTTPS when the service is configured with an HTTPS port
// http: Use the HTTP protocol for upstream. It is used together with HttpsUpstreamPort.
// https: Use the HTTPS protocol for upstream.
UpstreamScheme *string `json:"UpstreamScheme,omitnil,omitempty" name:"UpstreamScheme"`
// HTTPS upstream port, required only when UpstreamScheme is http
HttpsUpstreamPort *string `json:"HttpsUpstreamPort,omitnil,omitempty" name:"HttpsUpstreamPort"`
// To be deprecated, can be left blank. Whether to enable grayscale: 0 indicates not to enable grayscale.
IsGray *int64 `json:"IsGray,omitnil,omitempty" name:"IsGray"`
// To be deprecated, can be left blank. Grayscale area.
GrayAreas []*string `json:"GrayAreas,omitnil,omitempty" name:"GrayAreas"`
// (Required) Whether to enable forced redirection from HTTP to HTTPS
// 0: do not force redirect
// 1: enable forced redirect
HttpsRewrite *int64 `json:"HttpsRewrite,omitnil,omitempty" name:"HttpsRewrite"`
// Upstream domain when proxy to upstream by domain. When UpstreamType=1, this field needs to be filled
UpstreamDomain *string `json:"UpstreamDomain,omitnil,omitempty" name:"UpstreamDomain"`
// Upstream IP list when IP is back to source. When UpstreamType=0, this field is required
SrcList []*string `json:"SrcList,omitnil,omitempty" name:"SrcList"`
// (Required) Whether to enable HTTP2. You should enable HTTPS as well.
// 0: disable
// 1: enable
IsHttp2 *int64 `json:"IsHttp2,omitnil,omitempty" name:"IsHttp2"`
// WAF instance type. This parameter will be deprecated in later versions and is not required in the current version.
// sparta-waf: SaaS WAF
// clb-waf: CLB WAF
// cdn-waf: web protection capability on CDN
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// To be deprecated, currently just fill in 0. Anycast IP type switch: 0 Ordinary IP, 1 Anycast IP
Anycast *int64 `json:"Anycast,omitnil,omitempty" name:"Anycast"`
// Weight of each IP in the back-to-source IP List, corresponding to SrcList. Required only when UpstreamType is 0, and SrcList contains multiple IPs, and LoadBalance is 2; otherwise, fill in [ ].
Weights []*int64 `json:"Weights,omitnil,omitempty" name:"Weights"`
// (Required) Whether to enable active health check
// 0: disable
// 1: enable
ActiveCheck *int64 `json:"ActiveCheck,omitnil,omitempty" name:"ActiveCheck"`
// TLS version information
TLSVersion *int64 `json:"TLSVersion,omitnil,omitempty" name:"TLSVersion"`
// (Required) Cipher suite template
// 0: default template
// 1: general template
// 2: security template
// 3: custom template
CipherTemplate *int64 `json:"CipherTemplate,omitnil,omitempty" name:"CipherTemplate"`
// Custom encryption suite list. When CipherTemplate is 3, this field is required, indicating the custom encryption suite, value obtained through DescribeCiphersDetail API.
Ciphers []*int64 `json:"Ciphers,omitnil,omitempty" name:"Ciphers"`
// Read timeout between WAF and upstream server, 300s by default.
ProxyReadTimeout *int64 `json:"ProxyReadTimeout,omitnil,omitempty" name:"ProxyReadTimeout"`
// WAF and upstream server write timeout, 300s by default.
ProxySendTimeout *int64 `json:"ProxySendTimeout,omitnil,omitempty" name:"ProxySendTimeout"`
// SNI type during WAF sending request to upstream
// 0: Disable SNI and do not configure server_name in client_hello.
// 1: Enable SNI. server_name in client_hello is a protected domain name.
// 2: Enable SNI. SNI is the origin server domain name during the domain name origin-pull.
// 3: Enable SNI. SNI is a custom domain name.
SniType *int64 `json:"SniType,omitnil,omitempty" name:"SniType"`
// When SniType=3, this parameter is required, indicating a custom SNI;
SniHost *string `json:"SniHost,omitnil,omitempty" name:"SniHost"`
// Whether to enable XFF reset. 0: disable; 1: enable.
XFFReset *int64 `json:"XFFReset,omitnil,omitempty" name:"XFFReset"`
// Domain name remarks
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// Custom upstream host. The default value is an empty string, indicating that protected domain is used as the upstream host.
UpstreamHost *string `json:"UpstreamHost,omitnil,omitempty" name:"UpstreamHost"`
// Whether to enable caching. 0: disable; 1: enable.
ProxyBuffer *int64 `json:"ProxyBuffer,omitnil,omitempty" name:"ProxyBuffer"`
// Whether to enable the test. 0: disable; 1: enable. The test is enabled by default.
ProbeStatus *int64 `json:"ProbeStatus,omitnil,omitempty" name:"ProbeStatus"`
// Whether to enable SM. 0: do not enable SM; 1: add support for SM based on the existing TLS option; 2: enable SM and support only SM client access.
GmType *int64 `json:"GmType,omitnil,omitempty" name:"GmType"`
// SM certificate type. 0: no SM certificate is available; 1: the certificate is a self-owned SM certificate; 2: the certificate is a managed SM certificate.
GmCertType *int64 `json:"GmCertType,omitnil,omitempty" name:"GmCertType"`
// When GmCertType is 1, this parameter needs to be set, indicating the certificate chain of the self-owned SM certificate.
GmCert *string `json:"GmCert,omitnil,omitempty" name:"GmCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the self-owned SM certificate.
GmPrivateKey *string `json:"GmPrivateKey,omitnil,omitempty" name:"GmPrivateKey"`
// When GmCertType is 1, this parameter needs to be set, indicating the encryption certificate of the self-owned SM certificate.
GmEncCert *string `json:"GmEncCert,omitnil,omitempty" name:"GmEncCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the encryption certificate for the self-owned SM certificate.
GmEncPrivateKey *string `json:"GmEncPrivateKey,omitnil,omitempty" name:"GmEncPrivateKey"`
// When GmCertType is 2, this parameter needs to be set, indicating the ID of the certificate managed by the Tencent Cloud SSL platform.
GmSSLId *string `json:"GmSSLId,omitnil,omitempty" name:"GmSSLId"`
}
Predefined struct for user
type AddSpartaProtectionResponse ¶
type AddSpartaProtectionResponse struct {
*tchttp.BaseResponse
Response *AddSpartaProtectionResponseParams `json:"Response"`
}
func NewAddSpartaProtectionResponse ¶
func NewAddSpartaProtectionResponse() (response *AddSpartaProtectionResponse)
func (*AddSpartaProtectionResponse) FromJsonString ¶
func (r *AddSpartaProtectionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddSpartaProtectionResponse) ToJsonString ¶
func (r *AddSpartaProtectionResponse) ToJsonString() string
type AddSpartaProtectionResponseParams ¶
type AddSpartaProtectionResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ApiPkg ¶
type ApiPkg struct {
// Resource ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
ResourceIds *string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// Status
//
// Note: This field may return null, indicating that no valid values can be obtained.
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Region
//
// Note: This field may return null, indicating that no valid values can be obtained.
Region *int64 `json:"Region,omitnil,omitempty" name:"Region"`
// Start time
//
// Note: This field may return null, indicating that no valid values can be obtained.
BeginTime *string `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`
// End time
//
// Note: This field may return null, indicating that no valid values can be obtained.
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// Application Quantity
//
// Note: This field may return null, indicating that no valid values can be obtained.
InquireNum *int64 `json:"InquireNum,omitnil,omitempty" name:"InquireNum"`
// Usage Quantity
//
// Note: This field may return null, indicating that no valid values can be obtained.
UsedNum *int64 `json:"UsedNum,omitnil,omitempty" name:"UsedNum"`
// Renewal flag.
// Note: This field may return null, indicating that no valid values can be obtained.
RenewFlag *uint64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// Billing item.
// Note: This field may return null, indicating that no valid values can be obtained.
BillingItem *string `json:"BillingItem,omitnil,omitempty" name:"BillingItem"`
// API security 7-day trial flag. 1 for trial. 0 for no trial.
//
// Note: This field may return null, indicating that no valid values can be obtained.
IsAPISecurityTrial *int64 `json:"IsAPISecurityTrial,omitnil,omitempty" name:"IsAPISecurityTrial"`
}
type AttackLogInfo ¶
type AttackLogInfo struct {
// Details of Attack Logs
Content *string `json:"Content,omitnil,omitempty" name:"Content"`
// CLS Returned Content
FileName *string `json:"FileName,omitnil,omitempty" name:"FileName"`
// CLS Returned Content
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// CLS Returned Content
TimeStamp *string `json:"TimeStamp,omitnil,omitempty" name:"TimeStamp"`
}
type BatchIpAccessControlData ¶
type BatchIpAccessControlData struct {
// Total number
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// Entries of blocklist/allowlist
Res []*BatchIpAccessControlItem `json:"Res,omitnil,omitempty" name:"Res"`
}
type BatchIpAccessControlItem ¶
type BatchIpAccessControlItem struct {
// MongoDB Table Auto-increment ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
Id *string `json:"Id,omitnil,omitempty" name:"Id"`
// Blocklist 42 or allowlist 40
ActionType *int64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// IP of the blocklist/allowlist
Ip *string `json:"Ip,omitnil,omitempty" name:"Ip"`
// Remarks
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// Path addition
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Modification time
TsVersion *uint64 `json:"TsVersion,omitnil,omitempty" name:"TsVersion"`
// Timeout period
ValidTs *int64 `json:"ValidTs,omitnil,omitempty" name:"ValidTs"`
// Domain name list
Hosts []*string `json:"Hosts,omitnil,omitempty" name:"Hosts"`
// 55101145
// Note: This field may return null, indicating that no valid values can be obtained.
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// IP list
// Note: This field may return null, indicating that no valid values can be obtained.
IpList []*string `json:"IpList,omitnil,omitempty" name:"IpList"`
// Creation time
//
// Note: This field may return null, indicating that no valid values can be obtained.
CreateTime *uint64 `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// Scheduled task type
// Note: This field may return null, indicating that no valid values can be obtained.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Periodic task type
// Note: This field may return null, indicating that no valid values can be obtained.
CronType *string `json:"CronType,omitnil,omitempty" name:"CronType"`
// Scheduled task configuration details
// Note: This field may return null, indicating that no valid values can be obtained.
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
// Effective status
// Note: This field may return null, indicating that no valid values can be obtained.
ValidStatus *int64 `json:"ValidStatus,omitnil,omitempty" name:"ValidStatus"`
}
type BotPkg ¶
type BotPkg struct {
// Resource ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
ResourceIds *string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// Status
//
// Note: This field may return null, indicating that no valid values can be obtained.
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Region
//
// Note: This field may return null, indicating that no valid values can be obtained.
Region *int64 `json:"Region,omitnil,omitempty" name:"Region"`
// Start time
//
// Note: This field may return null, indicating that no valid values can be obtained.
BeginTime *string `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`
// End time
//
// Note: This field may return null, indicating that no valid values can be obtained.
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// Application Quantity
//
// Note: This field may return null, indicating that no valid values can be obtained.
InquireNum *int64 `json:"InquireNum,omitnil,omitempty" name:"InquireNum"`
// Usage Quantity
//
// Note: This field may return null, indicating that no valid values can be obtained.
UsedNum *int64 `json:"UsedNum,omitnil,omitempty" name:"UsedNum"`
// Sub-product code.
// Note: This field may return null, indicating that no valid values can be obtained.
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// Renewal flag.
// Note: This field may return null, indicating that no valid values can be obtained.
RenewFlag *uint64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// Purchase Page Bot 40% Off
//
// Note: This field may return null, indicating that no valid values can be obtained.
BotCPWaf *int64 `json:"BotCPWaf,omitnil,omitempty" name:"BotCPWaf"`
// Console Buy Bot with 50% Off
//
// Note: This field may return null, indicating that no valid values can be obtained.
BotNPWaf *int64 `json:"BotNPWaf,omitnil,omitempty" name:"BotNPWaf"`
// 7-day Bot Trial Identification, 1 for Trial, 0 for No Trial
//
// Note: This field may return null, indicating that no valid values can be obtained.
IsBotTrial *int64 `json:"IsBotTrial,omitnil,omitempty" name:"IsBotTrial"`
}
type BotQPS ¶
type BotQPS struct {
// Resource ID
ResourceIds *string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// Expiration time
ValidTime *string `json:"ValidTime,omitnil,omitempty" name:"ValidTime"`
// Resource quantity.
Count *uint64 `json:"Count,omitnil,omitempty" name:"Count"`
// Resource Location
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// Maximum QPS Usage
MaxBotQPS *uint64 `json:"MaxBotQPS,omitnil,omitempty" name:"MaxBotQPS"`
// Renewal flag.
// Note: This field may return null, indicating that no valid values can be obtained.
RenewFlag *uint64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
}
type CCRuleData ¶
type CCRuleData struct {
// CC rules
Res []*CCRuleItem `json:"Res,omitnil,omitempty" name:"Res"`
// Number of Rules
TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
}
type CCRuleItem ¶
type CCRuleItem struct {
// Action
ActionType *uint64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Advanced mode
Advance *uint64 `json:"Advance,omitnil,omitempty" name:"Advance"`
// Time period
Interval *uint64 `json:"Interval,omitnil,omitempty" name:"Interval"`
// Limit Attempts
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Matching Method
MatchFunc *uint64 `json:"MatchFunc,omitnil,omitempty" name:"MatchFunc"`
// Name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Priority
Priority *uint64 `json:"Priority,omitnil,omitempty" name:"Priority"`
// Status
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Update Timestamp
TsVersion *uint64 `json:"TsVersion,omitnil,omitempty" name:"TsVersion"`
// Matching URL
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// Policy Action Validity Period
ValidTime *uint64 `json:"ValidTime,omitnil,omitempty" name:"ValidTime"`
// Advanced Parameters
//
// Note: This field may return null, indicating that no valid values can be obtained.
OptionsArr *string `json:"OptionsArr,omitnil,omitempty" name:"OptionsArr"`
// URL length
// Note: This field may return null, indicating that no valid values can be obtained.
Length *uint64 `json:"Length,omitnil,omitempty" name:"Length"`
// Rule ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
RuleId *int64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Event ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
EventId *string `json:"EventId,omitnil,omitempty" name:"EventId"`
// Associated session rules
//
// Note: This field may return null, indicating that no valid values can be obtained.
SessionApplied []*int64 `json:"SessionApplied,omitnil,omitempty" name:"SessionApplied"`
// Creation time
//
// Note: This field may return null, indicating that no valid values can be obtained.
CreateTime *uint64 `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
}
type CCRuleItems ¶
type CCRuleItems struct {
// Name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Mode
Advance *uint64 `json:"Advance,omitnil,omitempty" name:"Advance"`
// Limit
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Detection interval
Interval *uint64 `json:"Interval,omitnil,omitempty" name:"Interval"`
// URL
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// Type to match
MatchFunc *uint64 `json:"MatchFunc,omitnil,omitempty" name:"MatchFunc"`
// Action
ActionType *uint64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Priority
Priority *uint64 `json:"Priority,omitnil,omitempty" name:"Priority"`
// Expiration time
ValidTime *uint64 `json:"ValidTime,omitnil,omitempty" name:"ValidTime"`
// Version
TsVersion *uint64 `json:"TsVersion,omitnil,omitempty" name:"TsVersion"`
// Rule details
Options *string `json:"Options,omitnil,omitempty" name:"Options"`
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Event ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
EventId *string `json:"EventId,omitnil,omitempty" name:"EventId"`
// Associated session rules
//
// Note: This field may return null, indicating that no valid values can be obtained.
SessionApplied []*int64 `json:"SessionApplied,omitnil,omitempty" name:"SessionApplied"`
// Creation time
//
// Note: This field may return null, indicating that no valid values can be obtained.
CreateTime *uint64 `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
}
type CCRuleLists ¶
type CCRuleLists struct {
// Total number
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// Rule
//
// Note: This field may return null, indicating that no valid values can be obtained.
Res []*CCRuleItems `json:"Res,omitnil,omitempty" name:"Res"`
}
type CacheUrlItems ¶
type CacheUrlItems struct {
// Identifier
Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
// Name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// URL
Uri *string `json:"Uri,omitnil,omitempty" name:"Uri"`
// Protocol
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Modification time
//
// Note: This field may return null, indicating that no valid values can be obtained.
ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"`
// Creation time
//
// Note: This field may return null, indicating that no valid values can be obtained.
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
}
type ClbDomainsInfo ¶
type ClbDomainsInfo struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Unique domain name ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Instance ID of the domain name
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Name of the instance of the domain name
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Instance type of the domain name
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Whether a layer-7 proxy service is deployed before the WAF. 0: No proxy service is deployed; 1: The proxy service is deployed. The WAF will use XFF to obtain the client IP address; 2: The proxy service is deployed. The WAF will use remote_addr to obtain the client IP address; 3: The proxy service is deployed. The WAF will use a custom header in ip_headers to obtain the client IP address.
IsCdn *uint64 `json:"IsCdn,omitnil,omitempty" name:"IsCdn"`
// CLB information when the CLB type is clb
LoadBalancerSet []*LoadBalancerPackageNew `json:"LoadBalancerSet,omitnil,omitempty" name:"LoadBalancerSet"`
// CLB WAF traffic mode. 1: cleaning mode; 0: image mode
FlowMode *uint64 `json:"FlowMode,omitnil,omitempty" name:"FlowMode"`
// Domain name-bound CLB status
// Note: This field may return null, indicating that no valid values can be obtained.
State *int64 `json:"State,omitnil,omitempty" name:"State"`
// CLB Type, either CLB or Apisix
//
// Note: This field may return null, indicating that no valid values can be obtained.
AlbType *string `json:"AlbType,omitnil,omitempty" name:"AlbType"`
// IsCdn=3 indicates custom header
//
// Note: This field may return null, indicating that no valid values can be obtained.
IpHeaders []*string `json:"IpHeaders,omitnil,omitempty" name:"IpHeaders"`
// CDC cluster information for the WAF of the cdc-clb-waf type
// Note: This field may return null, indicating that no valid values can be obtained.
CdcClusters *string `json:"CdcClusters,omitnil,omitempty" name:"CdcClusters"`
// Cloud Type: public: Public Cloud; private: Private Cloud; hybrid: Hybrid Cloud
//
// Note: This field may return null, indicating that no valid values can be obtained.
CloudType *string `json:"CloudType,omitnil,omitempty" name:"CloudType"`
// Domain name remarks
// Note: This field may return null, indicating that no valid values can be obtained.
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// Domain name tag.
// Note: This field may return null, indicating that no valid values can be obtained.
Labels []*string `json:"Labels,omitnil,omitempty" name:"Labels"`
}
type ClbObject ¶
type ClbObject struct {
// Object ID
ObjectId *string `json:"ObjectId,omitnil,omitempty" name:"ObjectId"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Instance name
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Precise Domain List
PreciseDomains []*string `json:"PreciseDomains,omitnil,omitempty" name:"PreciseDomains"`
// WAF Feature Switch Status, 0 Off 1 On
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// WAF Log Switch Status, 0 Off 1 On
ClsStatus *int64 `json:"ClsStatus,omitnil,omitempty" name:"ClsStatus"`
// Virtual Domain Name Corresponding to CLB Object
VirtualDomain *string `json:"VirtualDomain,omitnil,omitempty" name:"VirtualDomain"`
// Object name
ObjectName *string `json:"ObjectName,omitnil,omitempty" name:"ObjectName"`
// Public network address
PublicIp []*string `json:"PublicIp,omitnil,omitempty" name:"PublicIp"`
// Private network address
PrivateIp []*string `json:"PrivateIp,omitnil,omitempty" name:"PrivateIp"`
// VPC name
VpcName *string `json:"VpcName,omitnil,omitempty" name:"VpcName"`
// VPC ID
Vpc *string `json:"Vpc,omitnil,omitempty" name:"Vpc"`
// WAF instance level, if no instance is bound, it is 0
InstanceLevel *int64 `json:"InstanceLevel,omitnil,omitempty" name:"InstanceLevel"`
// CLB Shipping Switch
PostCLSStatus *int64 `json:"PostCLSStatus,omitnil,omitempty" name:"PostCLSStatus"`
// Kafka Shipping Switch
PostCKafkaStatus *int64 `json:"PostCKafkaStatus,omitnil,omitempty" name:"PostCKafkaStatus"`
// Object type: CLB: Load Balancer, TSE: Cloud-native Gateway
//
// Note: This field may return null, indicating that no valid values can be obtained.
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// Object Region
//
// Note: This field may return null, indicating that no valid values can be obtained.
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// Proxy status. 0: disabled; 1: Use the first IP address in XFF as the client IP address; 2: Use remote_addr as the client IP address; 3: Obtain the client IP address from the specified header field. The field is given by the IpHeaders field.
// Note: This field may return null, indicating that no valid values can be obtained.
Proxy *uint64 `json:"Proxy,omitnil,omitempty" name:"Proxy"`
// List of header fields for obtaining the client IP. This parameter is effective when IsCdn is 3.
// Note: This field may return null, indicating that no valid values can be obtained.
IpHeaders []*string `json:"IpHeaders,omitnil,omitempty" name:"IpHeaders"`
// Bot protection switch
// Note: This field may return null, indicating that no valid values can be obtained.
BotStatus *int64 `json:"BotStatus,omitnil,omitempty" name:"BotStatus"`
// API protection switch
// Note: This field may return null, indicating that no valid values can be obtained.
ApiStatus *int64 `json:"ApiStatus,omitnil,omitempty" name:"ApiStatus"`
// Object access mode. 0: image mode; 1: cleaning mode; 2: examination mode. By default, the cleaning mode is used.Note: This field may return null, indicating that no valid values can be obtained.
ObjectFlowMode *int64 `json:"ObjectFlowMode,omitnil,omitempty" name:"ObjectFlowMode"`
// VPC ID in numerical format
//
// Note: This field may return null, indicating that no valid values can be obtained.
NumericalVpcId *int64 `json:"NumericalVpcId,omitnil,omitempty" name:"NumericalVpcId"`
}
type ClbWafRegionItem ¶
type ClbWafRegionItem struct {
// Region ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
Id *string `json:"Id,omitnil,omitempty" name:"Id"`
// Regional Chinese Description
//
// Note: This field may return null, indicating that no valid values can be obtained.
Text *string `json:"Text,omitnil,omitempty" name:"Text"`
// Full English Name of the Region
//
// Note: This field may return null, indicating that no valid values can be obtained.
Value *string `json:"Value,omitnil,omitempty" name:"Value"`
// Region encoding
//
// Note: This field may return null, indicating that no valid values can be obtained.
Code *string `json:"Code,omitnil,omitempty" name:"Code"`
}
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddAntiFakeUrl ¶
func (c *Client) AddAntiFakeUrl(request *AddAntiFakeUrlRequest) (response *AddAntiFakeUrlResponse, err error)
AddAntiFakeUrl Add tamper-proof URL
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr"
func (*Client) AddAntiFakeUrlWithContext ¶
func (c *Client) AddAntiFakeUrlWithContext(ctx context.Context, request *AddAntiFakeUrlRequest) (response *AddAntiFakeUrlResponse, err error)
AddAntiFakeUrl Add tamper-proof URL
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr"
func (*Client) AddAntiInfoLeakRules ¶
func (c *Client) AddAntiInfoLeakRules(request *AddAntiInfoLeakRulesRequest) (response *AddAntiInfoLeakRulesResponse, err error)
AddAntiInfoLeakRules Add information leakage prevention rule
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) AddAntiInfoLeakRulesWithContext ¶
func (c *Client) AddAntiInfoLeakRulesWithContext(ctx context.Context, request *AddAntiInfoLeakRulesRequest) (response *AddAntiInfoLeakRulesResponse, err error)
AddAntiInfoLeakRules Add information leakage prevention rule
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) AddCustomRule ¶
func (c *Client) AddCustomRule(request *AddCustomRuleRequest) (response *AddCustomRuleResponse, err error)
AddCustomRule Add access control (from custom policy)
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) AddCustomRuleWithContext ¶
func (c *Client) AddCustomRuleWithContext(ctx context.Context, request *AddCustomRuleRequest) (response *AddCustomRuleResponse, err error)
AddCustomRule Add access control (from custom policy)
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) AddCustomWhiteRule ¶
func (c *Client) AddCustomWhiteRule(request *AddCustomWhiteRuleRequest) (response *AddCustomWhiteRuleResponse, err error)
AddCustomWhiteRule Add precision allowlist rules
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) AddCustomWhiteRuleWithContext ¶
func (c *Client) AddCustomWhiteRuleWithContext(ctx context.Context, request *AddCustomWhiteRuleRequest) (response *AddCustomWhiteRuleResponse, err error)
AddCustomWhiteRule Add precision allowlist rules
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) AddSpartaProtection ¶
func (c *Client) AddSpartaProtection(request *AddSpartaProtectionRequest) (response *AddSpartaProtectionResponse, err error)
AddSpartaProtection Add SaaS WAF protection domain
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_REDISOPERATIONFAILED = "FailedOperation.RedisOperationFailed" INTERNALERROR = "InternalError" INTERNALERROR_ASYNCHRONOUSCALLFAILED = "InternalError.AsynchronousCallFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CERTIFICATIONPARAMETERERR = "InvalidParameter.CertificationParameterErr" INVALIDPARAMETER_DOMAINEXCEEDSLIMITERR = "InvalidParameter.DomainExceedsLimitErr" INVALIDPARAMETER_DOMAINNOTRECORD = "InvalidParameter.DomainNotRecord" INVALIDPARAMETER_PORTPARAMETERERR = "InvalidParameter.PortParameterErr" INVALIDPARAMETER_PROTECTIONDOMAINPARAMETERERR = "InvalidParameter.ProtectionDomainParameterErr" INVALIDPARAMETER_TLSPARAMETERERR = "InvalidParameter.TLSParameterErr" INVALIDPARAMETER_UNAUTHORIZEDOPERATIONPARAMETERERR = "InvalidParameter.UnauthorizedOperationParameterErr" INVALIDPARAMETER_UPSTREAMPARAMETERERR = "InvalidParameter.UpstreamParameterErr" INVALIDPARAMETER_XFFRESETPARAMETERERR = "InvalidParameter.XFFResetParameterErr" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_EMPTYERR = "ResourceInUse.EmptyErr" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) AddSpartaProtectionWithContext ¶
func (c *Client) AddSpartaProtectionWithContext(ctx context.Context, request *AddSpartaProtectionRequest) (response *AddSpartaProtectionResponse, err error)
AddSpartaProtection Add SaaS WAF protection domain
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_REDISOPERATIONFAILED = "FailedOperation.RedisOperationFailed" INTERNALERROR = "InternalError" INTERNALERROR_ASYNCHRONOUSCALLFAILED = "InternalError.AsynchronousCallFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CERTIFICATIONPARAMETERERR = "InvalidParameter.CertificationParameterErr" INVALIDPARAMETER_DOMAINEXCEEDSLIMITERR = "InvalidParameter.DomainExceedsLimitErr" INVALIDPARAMETER_DOMAINNOTRECORD = "InvalidParameter.DomainNotRecord" INVALIDPARAMETER_PORTPARAMETERERR = "InvalidParameter.PortParameterErr" INVALIDPARAMETER_PROTECTIONDOMAINPARAMETERERR = "InvalidParameter.ProtectionDomainParameterErr" INVALIDPARAMETER_TLSPARAMETERERR = "InvalidParameter.TLSParameterErr" INVALIDPARAMETER_UNAUTHORIZEDOPERATIONPARAMETERERR = "InvalidParameter.UnauthorizedOperationParameterErr" INVALIDPARAMETER_UPSTREAMPARAMETERERR = "InvalidParameter.UpstreamParameterErr" INVALIDPARAMETER_XFFRESETPARAMETERERR = "InvalidParameter.XFFResetParameterErr" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_EMPTYERR = "ResourceInUse.EmptyErr" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) CreateDeals ¶
func (c *Client) CreateDeals(request *CreateDealsRequest) (response *CreateDealsResponse, err error)
CreateDeals Billing Resource Purchase, Renewal Order API
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateDealsWithContext ¶
func (c *Client) CreateDealsWithContext(ctx context.Context, request *CreateDealsRequest) (response *CreateDealsResponse, err error)
CreateDeals Billing Resource Purchase, Renewal Order API
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateHost ¶
func (c *Client) CreateHost(request *CreateHostRequest) (response *CreateHostResponse, err error)
CreateHost Add a protection domain in CLB-WAF
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) CreateHostWithContext ¶
func (c *Client) CreateHostWithContext(ctx context.Context, request *CreateHostRequest) (response *CreateHostResponse, err error)
CreateHost Add a protection domain in CLB-WAF
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) CreateIpAccessControl ¶
func (c *Client) CreateIpAccessControl(request *CreateIpAccessControlRequest) (response *CreateIpAccessControlResponse, err error)
CreateIpAccessControl This API is used to add WAF IP allowlists/blocklists.
error code that may be returned:
FAILEDOPERATION_THENUMBEROFADDEDBLACKANDWHITELISTEXCEEDSTHEUPPERLIMIT = "FailedOperation.TheNumberOfAddedBlackAndWhiteListExceedsTheUpperLimit" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateIpAccessControlWithContext ¶
func (c *Client) CreateIpAccessControlWithContext(ctx context.Context, request *CreateIpAccessControlRequest) (response *CreateIpAccessControlResponse, err error)
CreateIpAccessControl This API is used to add WAF IP allowlists/blocklists.
error code that may be returned:
FAILEDOPERATION_THENUMBEROFADDEDBLACKANDWHITELISTEXCEEDSTHEUPPERLIMIT = "FailedOperation.TheNumberOfAddedBlackAndWhiteListExceedsTheUpperLimit" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateOwaspWhiteRule ¶
func (c *Client) CreateOwaspWhiteRule(request *CreateOwaspWhiteRuleRequest) (response *CreateOwaspWhiteRuleResponse, err error)
CreateOwaspWhiteRule This API is used to add a rule engine allowlist.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDREQUEST = "InvalidParameterValue.InvalidRequest" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateOwaspWhiteRuleWithContext ¶
func (c *Client) CreateOwaspWhiteRuleWithContext(ctx context.Context, request *CreateOwaspWhiteRuleRequest) (response *CreateOwaspWhiteRuleResponse, err error)
CreateOwaspWhiteRule This API is used to add a rule engine allowlist.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDREQUEST = "InvalidParameterValue.InvalidRequest" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteAntiFakeUrl ¶
func (c *Client) DeleteAntiFakeUrl(request *DeleteAntiFakeUrlRequest) (response *DeleteAntiFakeUrlResponse, err error)
DeleteAntiFakeUrl Delete tamper-proof URL
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteAntiFakeUrlWithContext ¶
func (c *Client) DeleteAntiFakeUrlWithContext(ctx context.Context, request *DeleteAntiFakeUrlRequest) (response *DeleteAntiFakeUrlResponse, err error)
DeleteAntiFakeUrl Delete tamper-proof URL
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteAntiInfoLeakRule ¶
func (c *Client) DeleteAntiInfoLeakRule(request *DeleteAntiInfoLeakRuleRequest) (response *DeleteAntiInfoLeakRuleResponse, err error)
DeleteAntiInfoLeakRule Delete information leakage prevention rule
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) DeleteAntiInfoLeakRuleWithContext ¶
func (c *Client) DeleteAntiInfoLeakRuleWithContext(ctx context.Context, request *DeleteAntiInfoLeakRuleRequest) (response *DeleteAntiInfoLeakRuleResponse, err error)
DeleteAntiInfoLeakRule Delete information leakage prevention rule
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) DeleteCCRule ¶
func (c *Client) DeleteCCRule(request *DeleteCCRuleRequest) (response *DeleteCCRuleResponse, err error)
DeleteCCRule WAF CC V2 deletion API
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteCCRuleWithContext ¶
func (c *Client) DeleteCCRuleWithContext(ctx context.Context, request *DeleteCCRuleRequest) (response *DeleteCCRuleResponse, err error)
DeleteCCRule WAF CC V2 deletion API
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteCustomRule ¶
func (c *Client) DeleteCustomRule(request *DeleteCustomRuleRequest) (response *DeleteCustomRuleResponse, err error)
DeleteCustomRule Delete custom rule
error code that may be returned:
INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteCustomRuleWithContext ¶
func (c *Client) DeleteCustomRuleWithContext(ctx context.Context, request *DeleteCustomRuleRequest) (response *DeleteCustomRuleResponse, err error)
DeleteCustomRule Delete custom rule
error code that may be returned:
INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteCustomWhiteRule ¶
func (c *Client) DeleteCustomWhiteRule(request *DeleteCustomWhiteRuleRequest) (response *DeleteCustomWhiteRuleResponse, err error)
DeleteCustomWhiteRule Delete precision allowlist rules
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteCustomWhiteRuleWithContext ¶
func (c *Client) DeleteCustomWhiteRuleWithContext(ctx context.Context, request *DeleteCustomWhiteRuleRequest) (response *DeleteCustomWhiteRuleResponse, err error)
DeleteCustomWhiteRule Delete precision allowlist rules
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteHost ¶
func (c *Client) DeleteHost(request *DeleteHostRequest) (response *DeleteHostResponse, err error)
DeleteHost This API is used to delete a domain name protected by CLB WAF. Batch operation is supported.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DeleteHostWithContext ¶
func (c *Client) DeleteHostWithContext(ctx context.Context, request *DeleteHostRequest) (response *DeleteHostResponse, err error)
DeleteHost This API is used to delete a domain name protected by CLB WAF. Batch operation is supported.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DeleteIpAccessControlV2 ¶
func (c *Client) DeleteIpAccessControlV2(request *DeleteIpAccessControlV2Request) (response *DeleteIpAccessControlV2Response, err error)
DeleteIpAccessControlV2 This API is used to delete latest versions of WAF IP allowlists/blocklists.
error code that may be returned:
FAILEDOPERATION_THENUMBEROFONETIMEDELETIONSREACHEDTHEUPPERLIMIT = "FailedOperation.TheNumberOfOneTimeDeletionsReachedTheUpperLimit" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteIpAccessControlV2WithContext ¶
func (c *Client) DeleteIpAccessControlV2WithContext(ctx context.Context, request *DeleteIpAccessControlV2Request) (response *DeleteIpAccessControlV2Response, err error)
DeleteIpAccessControlV2 This API is used to delete latest versions of WAF IP allowlists/blocklists.
error code that may be returned:
FAILEDOPERATION_THENUMBEROFONETIMEDELETIONSREACHEDTHEUPPERLIMIT = "FailedOperation.TheNumberOfOneTimeDeletionsReachedTheUpperLimit" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteOwaspRuleStatus ¶
func (c *Client) DeleteOwaspRuleStatus(request *DeleteOwaspRuleStatusRequest) (response *DeleteOwaspRuleStatusResponse, err error)
DeleteOwaspRuleStatus This API is used to unlock the Door God rule status.
error code that may be returned:
FAILEDOPERATION_THENUMBEROFONETIMEDELETIONSREACHEDTHEUPPERLIMIT = "FailedOperation.TheNumberOfOneTimeDeletionsReachedTheUpperLimit" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteOwaspRuleStatusWithContext ¶
func (c *Client) DeleteOwaspRuleStatusWithContext(ctx context.Context, request *DeleteOwaspRuleStatusRequest) (response *DeleteOwaspRuleStatusResponse, err error)
DeleteOwaspRuleStatus This API is used to unlock the Door God rule status.
error code that may be returned:
FAILEDOPERATION_THENUMBEROFONETIMEDELETIONSREACHEDTHEUPPERLIMIT = "FailedOperation.TheNumberOfOneTimeDeletionsReachedTheUpperLimit" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteOwaspWhiteRule ¶
func (c *Client) DeleteOwaspWhiteRule(request *DeleteOwaspWhiteRuleRequest) (response *DeleteOwaspWhiteRuleResponse, err error)
DeleteOwaspWhiteRule This API is used to delete a user rule engine allowlist.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteOwaspWhiteRuleWithContext ¶
func (c *Client) DeleteOwaspWhiteRuleWithContext(ctx context.Context, request *DeleteOwaspWhiteRuleRequest) (response *DeleteOwaspWhiteRuleResponse, err error)
DeleteOwaspWhiteRule This API is used to delete a user rule engine allowlist.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteSession ¶
func (c *Client) DeleteSession(request *DeleteSessionRequest) (response *DeleteSessionResponse, err error)
DeleteSession Delete CC attack session settings
error code that may be returned:
FAILEDOPERATION_SESSIONINUSED = "FailedOperation.SessionInUsed" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteSessionWithContext ¶
func (c *Client) DeleteSessionWithContext(ctx context.Context, request *DeleteSessionRequest) (response *DeleteSessionResponse, err error)
DeleteSession Delete CC attack session settings
error code that may be returned:
FAILEDOPERATION_SESSIONINUSED = "FailedOperation.SessionInUsed" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteSpartaProtection ¶
func (c *Client) DeleteSpartaProtection(request *DeleteSpartaProtectionRequest) (response *DeleteSpartaProtectionResponse, err error)
DeleteSpartaProtection This API is used to delete a domain name protected by SaaS WAF.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_ASYNCHRONOUSCALLFAILED = "InternalError.AsynchronousCallFailed" INVALIDPARAMETER_UNAUTHORIZEDOPERATIONPARAMETERERR = "InvalidParameter.UnauthorizedOperationParameterErr" RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (*Client) DeleteSpartaProtectionWithContext ¶
func (c *Client) DeleteSpartaProtectionWithContext(ctx context.Context, request *DeleteSpartaProtectionRequest) (response *DeleteSpartaProtectionResponse, err error)
DeleteSpartaProtection This API is used to delete a domain name protected by SaaS WAF.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_ASYNCHRONOUSCALLFAILED = "InternalError.AsynchronousCallFailed" INVALIDPARAMETER_UNAUTHORIZEDOPERATIONPARAMETERERR = "InvalidParameter.UnauthorizedOperationParameterErr" RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (*Client) DescribeAntiFakeRules ¶
func (c *Client) DescribeAntiFakeRules(request *DescribeAntiFakeRulesRequest) (response *DescribeAntiFakeRulesResponse, err error)
DescribeAntiFakeRules Obtain a tamper-proof URL
error code that may be returned:
INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeAntiFakeRulesWithContext ¶
func (c *Client) DescribeAntiFakeRulesWithContext(ctx context.Context, request *DescribeAntiFakeRulesRequest) (response *DescribeAntiFakeRulesResponse, err error)
DescribeAntiFakeRules Obtain a tamper-proof URL
error code that may be returned:
INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeAntiInfoLeakageRules ¶
func (c *Client) DescribeAntiInfoLeakageRules(request *DescribeAntiInfoLeakageRulesRequest) (response *DescribeAntiInfoLeakageRulesResponse, err error)
DescribeAntiInfoLeakageRules Obtain the information leakage prevention rule list
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) DescribeAntiInfoLeakageRulesWithContext ¶
func (c *Client) DescribeAntiInfoLeakageRulesWithContext(ctx context.Context, request *DescribeAntiInfoLeakageRulesRequest) (response *DescribeAntiInfoLeakageRulesResponse, err error)
DescribeAntiInfoLeakageRules Obtain the information leakage prevention rule list
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) DescribeAttackOverview ¶
func (c *Client) DescribeAttackOverview(request *DescribeAttackOverviewRequest) (response *DescribeAttackOverviewResponse, err error)
DescribeAttackOverview This API is used to describe the attack overview.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeAttackOverviewWithContext ¶
func (c *Client) DescribeAttackOverviewWithContext(ctx context.Context, request *DescribeAttackOverviewRequest) (response *DescribeAttackOverviewResponse, err error)
DescribeAttackOverview This API is used to describe the attack overview.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeAttackType ¶
func (c *Client) DescribeAttackType(request *DescribeAttackTypeRequest) (response *DescribeAttackTypeResponse, err error)
DescribeAttackType Query the top N attack types for a specified domain
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeAttackTypeWithContext ¶
func (c *Client) DescribeAttackTypeWithContext(ctx context.Context, request *DescribeAttackTypeRequest) (response *DescribeAttackTypeResponse, err error)
DescribeAttackType Query the top N attack types for a specified domain
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeBatchIpAccessControl ¶
func (c *Client) DescribeBatchIpAccessControl(request *DescribeBatchIpAccessControlRequest) (response *DescribeBatchIpAccessControlResponse, err error)
DescribeBatchIpAccessControl This API is used to query the IP blocklist and allowlist for WAF batch protection.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) DescribeBatchIpAccessControlWithContext ¶
func (c *Client) DescribeBatchIpAccessControlWithContext(ctx context.Context, request *DescribeBatchIpAccessControlRequest) (response *DescribeBatchIpAccessControlResponse, err error)
DescribeBatchIpAccessControl This API is used to query the IP blocklist and allowlist for WAF batch protection.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) DescribeCCRule ¶
func (c *Client) DescribeCCRule(request *DescribeCCRuleRequest) (response *DescribeCCRuleResponse, err error)
DescribeCCRule WAF CC V2 query API
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribeCCRuleList ¶
func (c *Client) DescribeCCRuleList(request *DescribeCCRuleListRequest) (response *DescribeCCRuleListResponse, err error)
DescribeCCRuleList Query CC rules based on multiple conditions
error code that may be returned:
INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeCCRuleListWithContext ¶
func (c *Client) DescribeCCRuleListWithContext(ctx context.Context, request *DescribeCCRuleListRequest) (response *DescribeCCRuleListResponse, err error)
DescribeCCRuleList Query CC rules based on multiple conditions
error code that may be returned:
INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeCCRuleWithContext ¶
func (c *Client) DescribeCCRuleWithContext(ctx context.Context, request *DescribeCCRuleRequest) (response *DescribeCCRuleResponse, err error)
DescribeCCRule WAF CC V2 query API
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribeCertificateVerifyResult ¶
func (c *Client) DescribeCertificateVerifyResult(request *DescribeCertificateVerifyResultRequest) (response *DescribeCertificateVerifyResultResponse, err error)
DescribeCertificateVerifyResult Obtain certificate inspection result
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (*Client) DescribeCertificateVerifyResultWithContext ¶
func (c *Client) DescribeCertificateVerifyResultWithContext(ctx context.Context, request *DescribeCertificateVerifyResultRequest) (response *DescribeCertificateVerifyResultResponse, err error)
DescribeCertificateVerifyResult Obtain certificate inspection result
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (*Client) DescribeCiphersDetail ¶
func (c *Client) DescribeCiphersDetail(request *DescribeCiphersDetailRequest) (response *DescribeCiphersDetailResponse, err error)
DescribeCiphersDetail Query SaaS WAF cipher suite information
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeCiphersDetailWithContext ¶
func (c *Client) DescribeCiphersDetailWithContext(ctx context.Context, request *DescribeCiphersDetailRequest) (response *DescribeCiphersDetailResponse, err error)
DescribeCiphersDetail Query SaaS WAF cipher suite information
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeCustomRuleList ¶
func (c *Client) DescribeCustomRuleList(request *DescribeCustomRuleListRequest) (response *DescribeCustomRuleListResponse, err error)
DescribeCustomRuleList Obtain the access control policy list in the protection configuration
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeCustomRuleListWithContext ¶
func (c *Client) DescribeCustomRuleListWithContext(ctx context.Context, request *DescribeCustomRuleListRequest) (response *DescribeCustomRuleListResponse, err error)
DescribeCustomRuleList Obtain the access control policy list in the protection configuration
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeCustomWhiteRule ¶
func (c *Client) DescribeCustomWhiteRule(request *DescribeCustomWhiteRuleRequest) (response *DescribeCustomWhiteRuleResponse, err error)
DescribeCustomWhiteRule Obtain the precision allowlist policy list in the protection configuration
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeCustomWhiteRuleWithContext ¶
func (c *Client) DescribeCustomWhiteRuleWithContext(ctx context.Context, request *DescribeCustomWhiteRuleRequest) (response *DescribeCustomWhiteRuleResponse, err error)
DescribeCustomWhiteRule Obtain the precision allowlist policy list in the protection configuration
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDomainCountInfo ¶
func (c *Client) DescribeDomainCountInfo(request *DescribeDomainCountInfoRequest) (response *DescribeDomainCountInfoResponse, err error)
DescribeDomainCountInfo Obtain domain overview
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDomainCountInfoWithContext ¶
func (c *Client) DescribeDomainCountInfoWithContext(ctx context.Context, request *DescribeDomainCountInfoRequest) (response *DescribeDomainCountInfoResponse, err error)
DescribeDomainCountInfo Obtain domain overview
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDomainDetailsClb ¶
func (c *Client) DescribeDomainDetailsClb(request *DescribeDomainDetailsClbRequest) (response *DescribeDomainDetailsClbResponse, err error)
DescribeDomainDetailsClb Obtain CLB WAF domain details
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDomainDetailsClbWithContext ¶
func (c *Client) DescribeDomainDetailsClbWithContext(ctx context.Context, request *DescribeDomainDetailsClbRequest) (response *DescribeDomainDetailsClbResponse, err error)
DescribeDomainDetailsClb Obtain CLB WAF domain details
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDomainDetailsSaas ¶
func (c *Client) DescribeDomainDetailsSaas(request *DescribeDomainDetailsSaasRequest) (response *DescribeDomainDetailsSaasResponse, err error)
DescribeDomainDetailsSaas Query individual SaaS WAF domain details
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDomainDetailsSaasWithContext ¶
func (c *Client) DescribeDomainDetailsSaasWithContext(ctx context.Context, request *DescribeDomainDetailsSaasRequest) (response *DescribeDomainDetailsSaasResponse, err error)
DescribeDomainDetailsSaas Query individual SaaS WAF domain details
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDomainVerifyResult ¶
func (c *Client) DescribeDomainVerifyResult(request *DescribeDomainVerifyResultRequest) (response *DescribeDomainVerifyResultResponse, err error)
DescribeDomainVerifyResult Obtain the result of adding domain operation
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCEINUSE = "ResourceInUse"
func (*Client) DescribeDomainVerifyResultWithContext ¶
func (c *Client) DescribeDomainVerifyResultWithContext(ctx context.Context, request *DescribeDomainVerifyResultRequest) (response *DescribeDomainVerifyResultResponse, err error)
DescribeDomainVerifyResult Obtain the result of adding domain operation
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCEINUSE = "ResourceInUse"
func (*Client) DescribeDomains ¶
func (c *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
DescribeDomains Query detailed information of all user domains
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDomainsWithContext ¶
func (c *Client) DescribeDomainsWithContext(ctx context.Context, request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
DescribeDomains Query detailed information of all user domains
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeFindDomainList ¶
func (c *Client) DescribeFindDomainList(request *DescribeFindDomainListRequest) (response *DescribeFindDomainListResponse, err error)
DescribeFindDomainList Obtain discovered domain name list API
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeFindDomainListWithContext ¶
func (c *Client) DescribeFindDomainListWithContext(ctx context.Context, request *DescribeFindDomainListRequest) (response *DescribeFindDomainListResponse, err error)
DescribeFindDomainList Obtain discovered domain name list API
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeHistogram ¶
func (c *Client) DescribeHistogram(request *DescribeHistogramRequest) (response *DescribeHistogramResponse, err error)
DescribeHistogram Query various conditions of cluster analysis
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeHistogramWithContext ¶
func (c *Client) DescribeHistogramWithContext(ctx context.Context, request *DescribeHistogramRequest) (response *DescribeHistogramResponse, err error)
DescribeHistogram Query various conditions of cluster analysis
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeHost ¶
func (c *Client) DescribeHost(request *DescribeHostRequest) (response *DescribeHostResponse, err error)
DescribeHost Obtain protection domain details in CLB-WAF
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeHostLimit ¶
func (c *Client) DescribeHostLimit(request *DescribeHostLimitRequest) (response *DescribeHostLimitResponse, err error)
DescribeHostLimit Firstly verify when adding a domain whether a package has been purchased, whether the limit of purchased package has not been reached, and whether the domain has already been added
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeHostLimitWithContext ¶
func (c *Client) DescribeHostLimitWithContext(ctx context.Context, request *DescribeHostLimitRequest) (response *DescribeHostLimitResponse, err error)
DescribeHostLimit Firstly verify when adding a domain whether a package has been purchased, whether the limit of purchased package has not been reached, and whether the domain has already been added
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeHostWithContext ¶
func (c *Client) DescribeHostWithContext(ctx context.Context, request *DescribeHostRequest) (response *DescribeHostResponse, err error)
DescribeHost Obtain protection domain details in CLB-WAF
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeHosts ¶
func (c *Client) DescribeHosts(request *DescribeHostsRequest) (response *DescribeHostsResponse, err error)
DescribeHosts Obtain protection domain list in CLB-WAF
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeHostsWithContext ¶
func (c *Client) DescribeHostsWithContext(ctx context.Context, request *DescribeHostsRequest) (response *DescribeHostsResponse, err error)
DescribeHosts Obtain protection domain list in CLB-WAF
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeInstances ¶
func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
DescribeInstances Query detailed information of all user instances
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInstancesWithContext ¶
func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
DescribeInstances Query detailed information of all user instances
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeIpAccessControl ¶
func (c *Client) DescribeIpAccessControl(request *DescribeIpAccessControlRequest) (response *DescribeIpAccessControlResponse, err error)
DescribeIpAccessControl WAF IP blocklist/allowlist query
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) DescribeIpAccessControlWithContext ¶
func (c *Client) DescribeIpAccessControlWithContext(ctx context.Context, request *DescribeIpAccessControlRequest) (response *DescribeIpAccessControlResponse, err error)
DescribeIpAccessControl WAF IP blocklist/allowlist query
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) DescribeModuleStatus ¶
func (c *Client) DescribeModuleStatus(request *DescribeModuleStatusRequest) (response *DescribeModuleStatusResponse, err error)
DescribeModuleStatus Query the switch status of each WAF basic security module, check if each module is enabled
error code that may be returned:
FAILEDOPERATION_MONGOOPERATIONFAILED = "FailedOperation.MongoOperationFailed" INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeModuleStatusWithContext ¶
func (c *Client) DescribeModuleStatusWithContext(ctx context.Context, request *DescribeModuleStatusRequest) (response *DescribeModuleStatusResponse, err error)
DescribeModuleStatus Query the switch status of each WAF basic security module, check if each module is enabled
error code that may be returned:
FAILEDOPERATION_MONGOOPERATIONFAILED = "FailedOperation.MongoOperationFailed" INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeObjects ¶
func (c *Client) DescribeObjects(request *DescribeObjectsRequest) (response *DescribeObjectsResponse, err error)
DescribeObjects View protected object list
error code that may be returned:
FAILEDOPERATION_MONGOOPERATIONFAILED = "FailedOperation.MongoOperationFailed" INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeObjectsWithContext ¶
func (c *Client) DescribeObjectsWithContext(ctx context.Context, request *DescribeObjectsRequest) (response *DescribeObjectsResponse, err error)
DescribeObjects View protected object list
error code that may be returned:
FAILEDOPERATION_MONGOOPERATIONFAILED = "FailedOperation.MongoOperationFailed" INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeOwaspRuleTypes ¶
func (c *Client) DescribeOwaspRuleTypes(request *DescribeOwaspRuleTypesRequest) (response *DescribeOwaspRuleTypesResponse, err error)
DescribeOwaspRuleTypes This API is used to query the rule types of the rule engine.
error code that may be returned:
INTERNALERROR_UNKNOWN = "InternalError.Unknown" INVALIDPARAMETERVALUE_INVALIDREQUEST = "InvalidParameterValue.InvalidRequest" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound"
func (*Client) DescribeOwaspRuleTypesWithContext ¶
func (c *Client) DescribeOwaspRuleTypesWithContext(ctx context.Context, request *DescribeOwaspRuleTypesRequest) (response *DescribeOwaspRuleTypesResponse, err error)
DescribeOwaspRuleTypes This API is used to query the rule types of the rule engine.
error code that may be returned:
INTERNALERROR_UNKNOWN = "InternalError.Unknown" INVALIDPARAMETERVALUE_INVALIDREQUEST = "InvalidParameterValue.InvalidRequest" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound"
func (*Client) DescribeOwaspRules ¶
func (c *Client) DescribeOwaspRules(request *DescribeOwaspRulesRequest) (response *DescribeOwaspRulesResponse, err error)
DescribeOwaspRules This API is used to query the rule list of the rule engine.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeOwaspRulesWithContext ¶
func (c *Client) DescribeOwaspRulesWithContext(ctx context.Context, request *DescribeOwaspRulesRequest) (response *DescribeOwaspRulesResponse, err error)
DescribeOwaspRules This API is used to query the rule list of the rule engine.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeOwaspWhiteRules ¶
func (c *Client) DescribeOwaspWhiteRules(request *DescribeOwaspWhiteRulesRequest) (response *DescribeOwaspWhiteRulesResponse, err error)
DescribeOwaspWhiteRules This API is used to retrieve the allowlist for the rule engine.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeOwaspWhiteRulesWithContext ¶
func (c *Client) DescribeOwaspWhiteRulesWithContext(ctx context.Context, request *DescribeOwaspWhiteRulesRequest) (response *DescribeOwaspWhiteRulesResponse, err error)
DescribeOwaspWhiteRules This API is used to retrieve the allowlist for the rule engine.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribePeakPoints ¶
func (c *Client) DescribePeakPoints(request *DescribePeakPointsRequest) (response *DescribePeakPointsResponse, err error)
DescribePeakPoints Query business and attack summary trends
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribePeakPointsWithContext ¶
func (c *Client) DescribePeakPointsWithContext(ctx context.Context, request *DescribePeakPointsRequest) (response *DescribePeakPointsResponse, err error)
DescribePeakPoints Query business and attack summary trends
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribePolicyStatus ¶
func (c *Client) DescribePolicyStatus(request *DescribePolicyStatusRequest) (response *DescribePolicyStatusResponse, err error)
DescribePolicyStatus Obtain protection status and the effective instance ID
error code that may be returned:
INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribePolicyStatusWithContext ¶
func (c *Client) DescribePolicyStatusWithContext(ctx context.Context, request *DescribePolicyStatusRequest) (response *DescribePolicyStatusResponse, err error)
DescribePolicyStatus Obtain protection status and the effective instance ID
error code that may be returned:
INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribePorts ¶
func (c *Client) DescribePorts(request *DescribePortsRequest) (response *DescribePortsResponse, err error)
DescribePorts Obtain the SaaS-type WAF protection port list
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribePortsWithContext ¶
func (c *Client) DescribePortsWithContext(ctx context.Context, request *DescribePortsRequest) (response *DescribePortsResponse, err error)
DescribePorts Obtain the SaaS-type WAF protection port list
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribeRuleLimit ¶
func (c *Client) DescribeRuleLimit(request *DescribeRuleLimitRequest) (response *DescribeRuleLimitResponse, err error)
DescribeRuleLimit Obtain specific specification limits for each module
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeRuleLimitWithContext ¶
func (c *Client) DescribeRuleLimitWithContext(ctx context.Context, request *DescribeRuleLimitRequest) (response *DescribeRuleLimitResponse, err error)
DescribeRuleLimit Obtain specific specification limits for each module
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeSession ¶
func (c *Client) DescribeSession(request *DescribeSessionRequest) (response *DescribeSessionResponse, err error)
DescribeSession WAF session definition query API
error code that may be returned:
INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeSessionWithContext ¶
func (c *Client) DescribeSessionWithContext(ctx context.Context, request *DescribeSessionRequest) (response *DescribeSessionResponse, err error)
DescribeSession WAF session definition query API
error code that may be returned:
INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeSpartaProtectionInfo ¶
func (c *Client) DescribeSpartaProtectionInfo(request *DescribeSpartaProtectionInfoRequest) (response *DescribeSpartaProtectionInfoResponse, err error)
DescribeSpartaProtectionInfo WAF Sparta - Obtain protection domain information
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribeSpartaProtectionInfoWithContext ¶
func (c *Client) DescribeSpartaProtectionInfoWithContext(ctx context.Context, request *DescribeSpartaProtectionInfoRequest) (response *DescribeSpartaProtectionInfoResponse, err error)
DescribeSpartaProtectionInfo WAF Sparta - Obtain protection domain information
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribeTlsVersion ¶
func (c *Client) DescribeTlsVersion(request *DescribeTlsVersionRequest) (response *DescribeTlsVersionResponse, err error)
DescribeTlsVersion This API is used to query TLS versions supported by SaaS WAF.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeTlsVersionWithContext ¶
func (c *Client) DescribeTlsVersionWithContext(ctx context.Context, request *DescribeTlsVersionRequest) (response *DescribeTlsVersionResponse, err error)
DescribeTlsVersion This API is used to query TLS versions supported by SaaS WAF.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeTopAttackDomain ¶
func (c *Client) DescribeTopAttackDomain(request *DescribeTopAttackDomainRequest) (response *DescribeTopAttackDomainResponse, err error)
DescribeTopAttackDomain Query top 5 attack domains
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeTopAttackDomainWithContext ¶
func (c *Client) DescribeTopAttackDomainWithContext(ctx context.Context, request *DescribeTopAttackDomainRequest) (response *DescribeTopAttackDomainResponse, err error)
DescribeTopAttackDomain Query top 5 attack domains
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeUserClbWafRegions ¶
func (c *Client) DescribeUserClbWafRegions(request *DescribeUserClbWafRegionsRequest) (response *DescribeUserClbWafRegionsResponse, err error)
DescribeUserClbWafRegions During the addition and modification of Domain Configuration for CLB-type WAF, it is required to display the supported region list for CLB-type WAF (clb-waf) through DescribeUserClbWafRegions to obtain the currently available region list for the customer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeUserClbWafRegionsWithContext ¶
func (c *Client) DescribeUserClbWafRegionsWithContext(ctx context.Context, request *DescribeUserClbWafRegionsRequest) (response *DescribeUserClbWafRegionsResponse, err error)
DescribeUserClbWafRegions During the addition and modification of Domain Configuration for CLB-type WAF, it is required to display the supported region list for CLB-type WAF (clb-waf) through DescribeUserClbWafRegions to obtain the currently available region list for the customer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeUserDomainInfo ¶
func (c *Client) DescribeUserDomainInfo(request *DescribeUserDomainInfoRequest) (response *DescribeUserDomainInfoResponse, err error)
DescribeUserDomainInfo Query Domain Information for SaaS and CLB
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeUserDomainInfoWithContext ¶
func (c *Client) DescribeUserDomainInfoWithContext(ctx context.Context, request *DescribeUserDomainInfoRequest) (response *DescribeUserDomainInfoResponse, err error)
DescribeUserDomainInfo Query Domain Information for SaaS and CLB
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeUserLevel ¶
func (c *Client) DescribeUserLevel(request *DescribeUserLevelRequest) (response *DescribeUserLevelResponse, err error)
DescribeUserLevel Obtain the user protection rule level
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeUserLevelWithContext ¶
func (c *Client) DescribeUserLevelWithContext(ctx context.Context, request *DescribeUserLevelRequest) (response *DescribeUserLevelResponse, err error)
DescribeUserLevel Obtain the user protection rule level
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeVipInfo ¶
func (c *Client) DescribeVipInfo(request *DescribeVipInfoRequest) (response *DescribeVipInfoResponse, err error)
DescribeVipInfo Query VIP information based on filter criteria
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeVipInfoWithContext ¶
func (c *Client) DescribeVipInfoWithContext(ctx context.Context, request *DescribeVipInfoRequest) (response *DescribeVipInfoResponse, err error)
DescribeVipInfo Query VIP information based on filter criteria
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeWebshellStatus ¶
func (c *Client) DescribeWebshellStatus(request *DescribeWebshellStatusRequest) (response *DescribeWebshellStatusResponse, err error)
DescribeWebshellStatus Obtain the webshell status of a domain
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeWebshellStatusWithContext ¶
func (c *Client) DescribeWebshellStatusWithContext(ctx context.Context, request *DescribeWebshellStatusRequest) (response *DescribeWebshellStatusResponse, err error)
DescribeWebshellStatus Obtain the webshell status of a domain
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) FreshAntiFakeUrl ¶
func (c *Client) FreshAntiFakeUrl(request *FreshAntiFakeUrlRequest) (response *FreshAntiFakeUrlResponse, err error)
FreshAntiFakeUrl Refresh a tamper-proof URL
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) FreshAntiFakeUrlWithContext ¶
func (c *Client) FreshAntiFakeUrlWithContext(ctx context.Context, request *FreshAntiFakeUrlRequest) (response *FreshAntiFakeUrlResponse, err error)
FreshAntiFakeUrl Refresh a tamper-proof URL
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) GenerateDealsAndPayNew ¶
func (c *Client) GenerateDealsAndPayNew(request *GenerateDealsAndPayNewRequest) (response *GenerateDealsAndPayNewResponse, err error)
GenerateDealsAndPayNew Billing Resource Purchase, Renewal Order API
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) GenerateDealsAndPayNewWithContext ¶
func (c *Client) GenerateDealsAndPayNewWithContext(ctx context.Context, request *GenerateDealsAndPayNewRequest) (response *GenerateDealsAndPayNewResponse, err error)
GenerateDealsAndPayNew Billing Resource Purchase, Renewal Order API
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) GetAttackHistogram ¶
func (c *Client) GetAttackHistogram(request *GetAttackHistogramRequest) (response *GetAttackHistogramResponse, err error)
GetAttackHistogram This API is used to generate a bar chart for the generation time of attack logs.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSDBOPERATIONFAILED = "FailedOperation.CLSDBOperationFailed" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INTERNALERROR_UNKNOWNERR = "InternalError.UnknownErr" INVALIDPARAMETER_LOGICERR = "InvalidParameter.LogicErr" INVALIDPARAMETER_QUERYSTRINGSYNTAXERR = "InvalidParameter.QueryStringSyntaxErr" INVALIDPARAMETER_SQLSYNTAXERR = "InvalidParameter.SQLSyntaxErr" INVALIDPARAMETER_TYPEMISMATCH = "InvalidParameter.TypeMismatch"
func (*Client) GetAttackHistogramWithContext ¶
func (c *Client) GetAttackHistogramWithContext(ctx context.Context, request *GetAttackHistogramRequest) (response *GetAttackHistogramResponse, err error)
GetAttackHistogram This API is used to generate a bar chart for the generation time of attack logs.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSDBOPERATIONFAILED = "FailedOperation.CLSDBOperationFailed" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INTERNALERROR_UNKNOWNERR = "InternalError.UnknownErr" INVALIDPARAMETER_LOGICERR = "InvalidParameter.LogicErr" INVALIDPARAMETER_QUERYSTRINGSYNTAXERR = "InvalidParameter.QueryStringSyntaxErr" INVALIDPARAMETER_SQLSYNTAXERR = "InvalidParameter.SQLSyntaxErr" INVALIDPARAMETER_TYPEMISMATCH = "InvalidParameter.TypeMismatch"
func (*Client) GetAttackTotalCount ¶
func (c *Client) GetAttackTotalCount(request *GetAttackTotalCountRequest) (response *GetAttackTotalCountResponse, err error)
GetAttackTotalCount Display total attack count by querying based on conditions
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSDBOPERATIONFAILED = "FailedOperation.CLSDBOperationFailed" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INTERNALERROR_UNKNOWNERR = "InternalError.UnknownErr" INVALIDPARAMETER_LOGICERR = "InvalidParameter.LogicErr" INVALIDPARAMETER_QUERYSTRINGSYNTAXERR = "InvalidParameter.QueryStringSyntaxErr" INVALIDPARAMETER_SQLSYNTAXERR = "InvalidParameter.SQLSyntaxErr" INVALIDPARAMETER_TYPEMISMATCH = "InvalidParameter.TypeMismatch"
func (*Client) GetAttackTotalCountWithContext ¶
func (c *Client) GetAttackTotalCountWithContext(ctx context.Context, request *GetAttackTotalCountRequest) (response *GetAttackTotalCountResponse, err error)
GetAttackTotalCount Display total attack count by querying based on conditions
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSDBOPERATIONFAILED = "FailedOperation.CLSDBOperationFailed" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INTERNALERROR_UNKNOWNERR = "InternalError.UnknownErr" INVALIDPARAMETER_LOGICERR = "InvalidParameter.LogicErr" INVALIDPARAMETER_QUERYSTRINGSYNTAXERR = "InvalidParameter.QueryStringSyntaxErr" INVALIDPARAMETER_SQLSYNTAXERR = "InvalidParameter.SQLSyntaxErr" INVALIDPARAMETER_TYPEMISMATCH = "InvalidParameter.TypeMismatch"
func (*Client) GetInstanceQpsLimit ¶
func (c *Client) GetInstanceQpsLimit(request *GetInstanceQpsLimitRequest) (response *GetInstanceQpsLimitResponse, err error)
GetInstanceQpsLimit Obtain the elastic QPS limit of package instances
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSDBOPERATIONFAILED = "FailedOperation.CLSDBOperationFailed" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INTERNALERROR_UNKNOWNERR = "InternalError.UnknownErr" INVALIDPARAMETER_LOGICERR = "InvalidParameter.LogicErr" INVALIDPARAMETER_QUERYSTRINGSYNTAXERR = "InvalidParameter.QueryStringSyntaxErr" INVALIDPARAMETER_SQLSYNTAXERR = "InvalidParameter.SQLSyntaxErr" INVALIDPARAMETER_TYPEMISMATCH = "InvalidParameter.TypeMismatch"
func (*Client) GetInstanceQpsLimitWithContext ¶
func (c *Client) GetInstanceQpsLimitWithContext(ctx context.Context, request *GetInstanceQpsLimitRequest) (response *GetInstanceQpsLimitResponse, err error)
GetInstanceQpsLimit Obtain the elastic QPS limit of package instances
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSDBOPERATIONFAILED = "FailedOperation.CLSDBOperationFailed" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INTERNALERROR_UNKNOWNERR = "InternalError.UnknownErr" INVALIDPARAMETER_LOGICERR = "InvalidParameter.LogicErr" INVALIDPARAMETER_QUERYSTRINGSYNTAXERR = "InvalidParameter.QueryStringSyntaxErr" INVALIDPARAMETER_SQLSYNTAXERR = "InvalidParameter.SQLSyntaxErr" INVALIDPARAMETER_TYPEMISMATCH = "InvalidParameter.TypeMismatch"
func (*Client) ImportIpAccessControl ¶
func (c *Client) ImportIpAccessControl(request *ImportIpAccessControlRequest) (response *ImportIpAccessControlResponse, err error)
ImportIpAccessControl This API is used to import IP allowlists/blocklists.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSDBOPERATIONFAILED = "FailedOperation.CLSDBOperationFailed" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INTERNALERROR_UNKNOWNERR = "InternalError.UnknownErr" INVALIDPARAMETER_LOGICERR = "InvalidParameter.LogicErr" INVALIDPARAMETER_QUERYSTRINGSYNTAXERR = "InvalidParameter.QueryStringSyntaxErr" INVALIDPARAMETER_SQLSYNTAXERR = "InvalidParameter.SQLSyntaxErr" INVALIDPARAMETER_TYPEMISMATCH = "InvalidParameter.TypeMismatch"
func (*Client) ImportIpAccessControlWithContext ¶
func (c *Client) ImportIpAccessControlWithContext(ctx context.Context, request *ImportIpAccessControlRequest) (response *ImportIpAccessControlResponse, err error)
ImportIpAccessControl This API is used to import IP allowlists/blocklists.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSDBOPERATIONFAILED = "FailedOperation.CLSDBOperationFailed" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INTERNALERROR_UNKNOWNERR = "InternalError.UnknownErr" INVALIDPARAMETER_LOGICERR = "InvalidParameter.LogicErr" INVALIDPARAMETER_QUERYSTRINGSYNTAXERR = "InvalidParameter.QueryStringSyntaxErr" INVALIDPARAMETER_SQLSYNTAXERR = "InvalidParameter.SQLSyntaxErr" INVALIDPARAMETER_TYPEMISMATCH = "InvalidParameter.TypeMismatch"
func (*Client) ModifyAntiFakeUrl ¶
func (c *Client) ModifyAntiFakeUrl(request *ModifyAntiFakeUrlRequest) (response *ModifyAntiFakeUrlResponse, err error)
ModifyAntiFakeUrl Edit a tamper-proof URL
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) ModifyAntiFakeUrlStatus ¶
func (c *Client) ModifyAntiFakeUrlStatus(request *ModifyAntiFakeUrlStatusRequest) (response *ModifyAntiFakeUrlStatusResponse, err error)
ModifyAntiFakeUrlStatus Toggle tamper-proof switch
error code that may be returned:
INTERNALERROR = "InternalError" LIMITEXCEEDED = "LimitExceeded" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) ModifyAntiFakeUrlStatusWithContext ¶
func (c *Client) ModifyAntiFakeUrlStatusWithContext(ctx context.Context, request *ModifyAntiFakeUrlStatusRequest) (response *ModifyAntiFakeUrlStatusResponse, err error)
ModifyAntiFakeUrlStatus Toggle tamper-proof switch
error code that may be returned:
INTERNALERROR = "InternalError" LIMITEXCEEDED = "LimitExceeded" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) ModifyAntiFakeUrlWithContext ¶
func (c *Client) ModifyAntiFakeUrlWithContext(ctx context.Context, request *ModifyAntiFakeUrlRequest) (response *ModifyAntiFakeUrlResponse, err error)
ModifyAntiFakeUrl Edit a tamper-proof URL
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) ModifyAntiInfoLeakRuleStatus ¶
func (c *Client) ModifyAntiInfoLeakRuleStatus(request *ModifyAntiInfoLeakRuleStatusRequest) (response *ModifyAntiInfoLeakRuleStatusResponse, err error)
ModifyAntiInfoLeakRuleStatus Information leakage prevention toggle rule switch
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) ModifyAntiInfoLeakRuleStatusWithContext ¶
func (c *Client) ModifyAntiInfoLeakRuleStatusWithContext(ctx context.Context, request *ModifyAntiInfoLeakRuleStatusRequest) (response *ModifyAntiInfoLeakRuleStatusResponse, err error)
ModifyAntiInfoLeakRuleStatus Information leakage prevention toggle rule switch
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) ModifyAntiInfoLeakRules ¶
func (c *Client) ModifyAntiInfoLeakRules(request *ModifyAntiInfoLeakRulesRequest) (response *ModifyAntiInfoLeakRulesResponse, err error)
ModifyAntiInfoLeakRules Edit an information leakage prevention rule
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) ModifyAntiInfoLeakRulesWithContext ¶
func (c *Client) ModifyAntiInfoLeakRulesWithContext(ctx context.Context, request *ModifyAntiInfoLeakRulesRequest) (response *ModifyAntiInfoLeakRulesResponse, err error)
ModifyAntiInfoLeakRules Edit an information leakage prevention rule
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) ModifyApiAnalyzeStatus ¶
func (c *Client) ModifyApiAnalyzeStatus(request *ModifyApiAnalyzeStatusRequest) (response *ModifyApiAnalyzeStatusResponse, err error)
ModifyApiAnalyzeStatus API analysis page switch
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) ModifyApiAnalyzeStatusWithContext ¶
func (c *Client) ModifyApiAnalyzeStatusWithContext(ctx context.Context, request *ModifyApiAnalyzeStatusRequest) (response *ModifyApiAnalyzeStatusResponse, err error)
ModifyApiAnalyzeStatus API analysis page switch
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) ModifyBotStatus ¶
func (c *Client) ModifyBotStatus(request *ModifyBotStatusRequest) (response *ModifyBotStatusResponse, err error)
ModifyBotStatus Bot_V2 bot master switch update
error code that may be returned:
AUTHFAILURE_ERRCODENOPURCHASED = "AuthFailure.ErrCodeNoPurchased" INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION_INVALIDREQUEST = "UnsupportedOperation.InvalidRequest"
func (*Client) ModifyBotStatusWithContext ¶
func (c *Client) ModifyBotStatusWithContext(ctx context.Context, request *ModifyBotStatusRequest) (response *ModifyBotStatusResponse, err error)
ModifyBotStatus Bot_V2 bot master switch update
error code that may be returned:
AUTHFAILURE_ERRCODENOPURCHASED = "AuthFailure.ErrCodeNoPurchased" INTERNALERROR = "InternalError" UNSUPPORTEDOPERATION_INVALIDREQUEST = "UnsupportedOperation.InvalidRequest"
func (*Client) ModifyCustomRule ¶
func (c *Client) ModifyCustomRule(request *ModifyCustomRuleRequest) (response *ModifyCustomRuleResponse, err error)
ModifyCustomRule This API is used to edit a custom rule.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyCustomRuleStatus ¶
func (c *Client) ModifyCustomRuleStatus(request *ModifyCustomRuleStatusRequest) (response *ModifyCustomRuleStatusResponse, err error)
ModifyCustomRuleStatus Enable or disable access control (from custom policy)
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyCustomRuleStatusWithContext ¶
func (c *Client) ModifyCustomRuleStatusWithContext(ctx context.Context, request *ModifyCustomRuleStatusRequest) (response *ModifyCustomRuleStatusResponse, err error)
ModifyCustomRuleStatus Enable or disable access control (from custom policy)
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyCustomRuleWithContext ¶
func (c *Client) ModifyCustomRuleWithContext(ctx context.Context, request *ModifyCustomRuleRequest) (response *ModifyCustomRuleResponse, err error)
ModifyCustomRule This API is used to edit a custom rule.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyCustomWhiteRule ¶
func (c *Client) ModifyCustomWhiteRule(request *ModifyCustomWhiteRuleRequest) (response *ModifyCustomWhiteRuleResponse, err error)
ModifyCustomWhiteRule This API is used to edit a precise allowlist.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyCustomWhiteRuleStatus ¶
func (c *Client) ModifyCustomWhiteRuleStatus(request *ModifyCustomWhiteRuleStatusRequest) (response *ModifyCustomWhiteRuleStatusResponse, err error)
ModifyCustomWhiteRuleStatus Enable or disable a precision allowlist
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyCustomWhiteRuleStatusWithContext ¶
func (c *Client) ModifyCustomWhiteRuleStatusWithContext(ctx context.Context, request *ModifyCustomWhiteRuleStatusRequest) (response *ModifyCustomWhiteRuleStatusResponse, err error)
ModifyCustomWhiteRuleStatus Enable or disable a precision allowlist
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyCustomWhiteRuleWithContext ¶
func (c *Client) ModifyCustomWhiteRuleWithContext(ctx context.Context, request *ModifyCustomWhiteRuleRequest) (response *ModifyCustomWhiteRuleResponse, err error)
ModifyCustomWhiteRule This API is used to edit a precise allowlist.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyDomainIpv6Status ¶
func (c *Client) ModifyDomainIpv6Status(request *ModifyDomainIpv6StatusRequest) (response *ModifyDomainIpv6StatusResponse, err error)
ModifyDomainIpv6Status Toggle the IPv6 switch
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCEUNAVAILABLE_DOMAINIPV6INCONFIGERR = "ResourceUnavailable.DomainIpv6InConfigErr" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyDomainIpv6StatusWithContext ¶
func (c *Client) ModifyDomainIpv6StatusWithContext(ctx context.Context, request *ModifyDomainIpv6StatusRequest) (response *ModifyDomainIpv6StatusResponse, err error)
ModifyDomainIpv6Status Toggle the IPv6 switch
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCEUNAVAILABLE_DOMAINIPV6INCONFIGERR = "ResourceUnavailable.DomainIpv6InConfigErr" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyDomainPostAction ¶
func (c *Client) ModifyDomainPostAction(request *ModifyDomainPostActionRequest) (response *ModifyDomainPostActionResponse, err error)
ModifyDomainPostAction This API is used to modify the domain shipping status.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CKAFKAINTERNALERROR = "FailedOperation.CKafkaInternalError" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyDomainPostActionWithContext ¶
func (c *Client) ModifyDomainPostActionWithContext(ctx context.Context, request *ModifyDomainPostActionRequest) (response *ModifyDomainPostActionResponse, err error)
ModifyDomainPostAction This API is used to modify the domain shipping status.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CKAFKAINTERNALERROR = "FailedOperation.CKafkaInternalError" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyDomainsCLSStatus ¶
func (c *Client) ModifyDomainsCLSStatus(request *ModifyDomainsCLSStatusRequest) (response *ModifyDomainsCLSStatusResponse, err error)
ModifyDomainsCLSStatus Enable or disable access log for domain list
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyDomainsCLSStatusWithContext ¶
func (c *Client) ModifyDomainsCLSStatusWithContext(ctx context.Context, request *ModifyDomainsCLSStatusRequest) (response *ModifyDomainsCLSStatusResponse, err error)
ModifyDomainsCLSStatus Enable or disable access log for domain list
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyHost ¶
func (c *Client) ModifyHost(request *ModifyHostRequest) (response *ModifyHostResponse, err error)
ModifyHost This API is used to edit the configuration of domain names protected by CLB WAF.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyHostFlowMode ¶
func (c *Client) ModifyHostFlowMode(request *ModifyHostFlowModeRequest) (response *ModifyHostFlowModeResponse, err error)
ModifyHostFlowMode This API is used to set the traffic mode for domain names protected by CLB WAF. The mode can be mirror mode or cleaning mode.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyHostFlowModeWithContext ¶
func (c *Client) ModifyHostFlowModeWithContext(ctx context.Context, request *ModifyHostFlowModeRequest) (response *ModifyHostFlowModeResponse, err error)
ModifyHostFlowMode This API is used to set the traffic mode for domain names protected by CLB WAF. The mode can be mirror mode or cleaning mode.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyHostMode ¶
func (c *Client) ModifyHostMode(request *ModifyHostModeRequest) (response *ModifyHostModeResponse, err error)
ModifyHostMode Set CLB WAF protection domain status
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyHostModeWithContext ¶
func (c *Client) ModifyHostModeWithContext(ctx context.Context, request *ModifyHostModeRequest) (response *ModifyHostModeResponse, err error)
ModifyHostMode Set CLB WAF protection domain status
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyHostStatus ¶
func (c *Client) ModifyHostStatus(request *ModifyHostStatusRequest) (response *ModifyHostStatusResponse, err error)
ModifyHostStatus This API is used to enable or disable CLB WAF for a protected domain name.
Batch operation is supported.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyHostStatusWithContext ¶
func (c *Client) ModifyHostStatusWithContext(ctx context.Context, request *ModifyHostStatusRequest) (response *ModifyHostStatusResponse, err error)
ModifyHostStatus This API is used to enable or disable CLB WAF for a protected domain name.
Batch operation is supported.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyHostWithContext ¶
func (c *Client) ModifyHostWithContext(ctx context.Context, request *ModifyHostRequest) (response *ModifyHostResponse, err error)
ModifyHost This API is used to edit the configuration of domain names protected by CLB WAF.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyInstanceElasticMode ¶
func (c *Client) ModifyInstanceElasticMode(request *ModifyInstanceElasticModeRequest) (response *ModifyInstanceElasticModeResponse, err error)
ModifyInstanceElasticMode Modify the QPS elastic billing switch for an instance
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyInstanceElasticModeWithContext ¶
func (c *Client) ModifyInstanceElasticModeWithContext(ctx context.Context, request *ModifyInstanceElasticModeRequest) (response *ModifyInstanceElasticModeResponse, err error)
ModifyInstanceElasticMode Modify the QPS elastic billing switch for an instance
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyInstanceName ¶
func (c *Client) ModifyInstanceName(request *ModifyInstanceNameRequest) (response *ModifyInstanceNameResponse, err error)
ModifyInstanceName Modify instance name
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) ModifyInstanceNameWithContext ¶
func (c *Client) ModifyInstanceNameWithContext(ctx context.Context, request *ModifyInstanceNameRequest) (response *ModifyInstanceNameResponse, err error)
ModifyInstanceName Modify instance name
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) ModifyInstanceQpsLimit ¶
func (c *Client) ModifyInstanceQpsLimit(request *ModifyInstanceQpsLimitRequest) (response *ModifyInstanceQpsLimitResponse, err error)
ModifyInstanceQpsLimit Set elastic QPS limit for package instances
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) ModifyInstanceQpsLimitWithContext ¶
func (c *Client) ModifyInstanceQpsLimitWithContext(ctx context.Context, request *ModifyInstanceQpsLimitRequest) (response *ModifyInstanceQpsLimitResponse, err error)
ModifyInstanceQpsLimit Set elastic QPS limit for package instances
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) ModifyInstanceRenewFlag ¶
func (c *Client) ModifyInstanceRenewFlag(request *ModifyInstanceRenewFlagRequest) (response *ModifyInstanceRenewFlagResponse, err error)
ModifyInstanceRenewFlag Enable or disable auto-renewal for instance
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyInstanceRenewFlagWithContext ¶
func (c *Client) ModifyInstanceRenewFlagWithContext(ctx context.Context, request *ModifyInstanceRenewFlagRequest) (response *ModifyInstanceRenewFlagResponse, err error)
ModifyInstanceRenewFlag Enable or disable auto-renewal for instance
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyIpAccessControl ¶
func (c *Client) ModifyIpAccessControl(request *ModifyIpAccessControlRequest) (response *ModifyIpAccessControlResponse, err error)
ModifyIpAccessControl This API is used to edit WAF IP allowlists/blocklists.
error code that may be returned:
FAILEDOPERATION_THENUMBEROFADDEDBLACKANDWHITELISTEXCEEDSTHEUPPERLIMIT = "FailedOperation.TheNumberOfAddedBlackAndWhiteListExceedsTheUpperLimit" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyIpAccessControlWithContext ¶
func (c *Client) ModifyIpAccessControlWithContext(ctx context.Context, request *ModifyIpAccessControlRequest) (response *ModifyIpAccessControlResponse, err error)
ModifyIpAccessControl This API is used to edit WAF IP allowlists/blocklists.
error code that may be returned:
FAILEDOPERATION_THENUMBEROFADDEDBLACKANDWHITELISTEXCEEDSTHEUPPERLIMIT = "FailedOperation.TheNumberOfAddedBlackAndWhiteListExceedsTheUpperLimit" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyModuleStatus ¶
func (c *Client) ModifyModuleStatus(request *ModifyModuleStatusRequest) (response *ModifyModuleStatusResponse, err error)
ModifyModuleStatus Set the switch for the basic security module under a certain domain
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) ModifyModuleStatusWithContext ¶
func (c *Client) ModifyModuleStatusWithContext(ctx context.Context, request *ModifyModuleStatusRequest) (response *ModifyModuleStatusResponse, err error)
ModifyModuleStatus Set the switch for the basic security module under a certain domain
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) ModifyObject ¶
func (c *Client) ModifyObject(request *ModifyObjectRequest) (response *ModifyObjectResponse, err error)
ModifyObject Modify protection object
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" INTERNALERROR_DBERR = "InternalError.DBErr" LIMITEXCEEDED = "LimitExceeded" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) ModifyObjectWithContext ¶
func (c *Client) ModifyObjectWithContext(ctx context.Context, request *ModifyObjectRequest) (response *ModifyObjectResponse, err error)
ModifyObject Modify protection object
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" INTERNALERROR_DBERR = "InternalError.DBErr" LIMITEXCEEDED = "LimitExceeded" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) ModifyOwaspRuleStatus ¶
func (c *Client) ModifyOwaspRuleStatus(request *ModifyOwaspRuleStatusRequest) (response *ModifyOwaspRuleStatusResponse, err error)
ModifyOwaspRuleStatus This API is used to refresh the rule switch.
error code that may be returned:
INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) ModifyOwaspRuleStatusWithContext ¶
func (c *Client) ModifyOwaspRuleStatusWithContext(ctx context.Context, request *ModifyOwaspRuleStatusRequest) (response *ModifyOwaspRuleStatusResponse, err error)
ModifyOwaspRuleStatus This API is used to refresh the rule switch.
error code that may be returned:
INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) ModifyOwaspRuleTypeAction ¶
func (c *Client) ModifyOwaspRuleTypeAction(request *ModifyOwaspRuleTypeActionRequest) (response *ModifyOwaspRuleTypeActionResponse, err error)
ModifyOwaspRuleTypeAction This API is used to update the protection mode of the rule type.
error code that may be returned:
INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) ModifyOwaspRuleTypeActionWithContext ¶
func (c *Client) ModifyOwaspRuleTypeActionWithContext(ctx context.Context, request *ModifyOwaspRuleTypeActionRequest) (response *ModifyOwaspRuleTypeActionResponse, err error)
ModifyOwaspRuleTypeAction This API is used to update the protection mode of the rule type.
error code that may be returned:
INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) ModifyOwaspRuleTypeLevel ¶
func (c *Client) ModifyOwaspRuleTypeLevel(request *ModifyOwaspRuleTypeLevelRequest) (response *ModifyOwaspRuleTypeLevelResponse, err error)
ModifyOwaspRuleTypeLevel This API is used to update the protection level of a rule type.
error code that may be returned:
INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) ModifyOwaspRuleTypeLevelWithContext ¶
func (c *Client) ModifyOwaspRuleTypeLevelWithContext(ctx context.Context, request *ModifyOwaspRuleTypeLevelRequest) (response *ModifyOwaspRuleTypeLevelResponse, err error)
ModifyOwaspRuleTypeLevel This API is used to update the protection level of a rule type.
error code that may be returned:
INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) ModifyOwaspRuleTypeStatus ¶
func (c *Client) ModifyOwaspRuleTypeStatus(request *ModifyOwaspRuleTypeStatusRequest) (response *ModifyOwaspRuleTypeStatusResponse, err error)
ModifyOwaspRuleTypeStatus This API is used to update the rule type switch.
error code that may be returned:
INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) ModifyOwaspRuleTypeStatusWithContext ¶
func (c *Client) ModifyOwaspRuleTypeStatusWithContext(ctx context.Context, request *ModifyOwaspRuleTypeStatusRequest) (response *ModifyOwaspRuleTypeStatusResponse, err error)
ModifyOwaspRuleTypeStatus This API is used to update the rule type switch.
error code that may be returned:
INTERNALERROR_DBERR = "InternalError.DBErr"
func (*Client) ModifyOwaspWhiteRule ¶
func (c *Client) ModifyOwaspWhiteRule(request *ModifyOwaspWhiteRuleRequest) (response *ModifyOwaspWhiteRuleResponse, err error)
ModifyOwaspWhiteRule This API is used to edit the allowlist for the rule engine.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDREQUEST = "InvalidParameterValue.InvalidRequest" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyOwaspWhiteRuleWithContext ¶
func (c *Client) ModifyOwaspWhiteRuleWithContext(ctx context.Context, request *ModifyOwaspWhiteRuleRequest) (response *ModifyOwaspWhiteRuleResponse, err error)
ModifyOwaspWhiteRule This API is used to edit the allowlist for the rule engine.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDCERTIFICATE = "InvalidParameter.InvalidCertificate" INVALIDPARAMETER_QUERYCERTBYSSLIDFAILED = "InvalidParameter.QueryCertBySSLIDFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDREQUEST = "InvalidParameterValue.InvalidRequest" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyProtectionStatus ¶
func (c *Client) ModifyProtectionStatus(request *ModifyProtectionStatusRequest) (response *ModifyProtectionStatusResponse, err error)
ModifyProtectionStatus This API is used to obtain the enabling status of the basic security protection module of WAF.
error code that may be returned:
INTERNALERROR = "InternalError" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyProtectionStatusWithContext ¶
func (c *Client) ModifyProtectionStatusWithContext(ctx context.Context, request *ModifyProtectionStatusRequest) (response *ModifyProtectionStatusResponse, err error)
ModifyProtectionStatus This API is used to obtain the enabling status of the basic security protection module of WAF.
error code that may be returned:
INTERNALERROR = "InternalError" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifySpartaProtection ¶
func (c *Client) ModifySpartaProtection(request *ModifySpartaProtectionRequest) (response *ModifySpartaProtectionResponse, err error)
ModifySpartaProtection This API is used to edit the configuration of domain names protected by SaaS WAF.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_MYSQLDBOPERATIONFAILED = "FailedOperation.MysqlDBOperationFailed" INTERNALERROR = "InternalError" INTERNALERROR_ASYNCHRONOUSCALLFAILED = "InternalError.AsynchronousCallFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CERTIFICATIONPARAMETERERR = "InvalidParameter.CertificationParameterErr" INVALIDPARAMETER_PORTPARAMETERERR = "InvalidParameter.PortParameterErr" INVALIDPARAMETER_PROTECTIONDOMAINPARAMETERERR = "InvalidParameter.ProtectionDomainParameterErr" INVALIDPARAMETER_SUPPORTTLSCONFFAILED = "InvalidParameter.SupportTLSConfFailed" INVALIDPARAMETER_TLSPARAMETERERR = "InvalidParameter.TLSParameterErr" INVALIDPARAMETER_UPSTREAMPARAMETERERR = "InvalidParameter.UpstreamParameterErr" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifySpartaProtectionMode ¶
func (c *Client) ModifySpartaProtectionMode(request *ModifySpartaProtectionModeRequest) (response *ModifySpartaProtectionModeResponse, err error)
ModifySpartaProtectionMode Set WAF protection status
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifySpartaProtectionModeWithContext ¶
func (c *Client) ModifySpartaProtectionModeWithContext(ctx context.Context, request *ModifySpartaProtectionModeRequest) (response *ModifySpartaProtectionModeResponse, err error)
ModifySpartaProtectionMode Set WAF protection status
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBERR = "InternalError.DBErr" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifySpartaProtectionWithContext ¶
func (c *Client) ModifySpartaProtectionWithContext(ctx context.Context, request *ModifySpartaProtectionRequest) (response *ModifySpartaProtectionResponse, err error)
ModifySpartaProtection This API is used to edit the configuration of domain names protected by SaaS WAF.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_MYSQLDBOPERATIONFAILED = "FailedOperation.MysqlDBOperationFailed" INTERNALERROR = "InternalError" INTERNALERROR_ASYNCHRONOUSCALLFAILED = "InternalError.AsynchronousCallFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CERTIFICATIONPARAMETERERR = "InvalidParameter.CertificationParameterErr" INVALIDPARAMETER_PORTPARAMETERERR = "InvalidParameter.PortParameterErr" INVALIDPARAMETER_PROTECTIONDOMAINPARAMETERERR = "InvalidParameter.ProtectionDomainParameterErr" INVALIDPARAMETER_SUPPORTTLSCONFFAILED = "InvalidParameter.SupportTLSConfFailed" INVALIDPARAMETER_TLSPARAMETERERR = "InvalidParameter.TLSParameterErr" INVALIDPARAMETER_UPSTREAMPARAMETERERR = "InvalidParameter.UpstreamParameterErr" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyUserLevel ¶
func (c *Client) ModifyUserLevel(request *ModifyUserLevelRequest) (response *ModifyUserLevelResponse, err error)
ModifyUserLevel Modify the user protection rule level
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyUserLevelWithContext ¶
func (c *Client) ModifyUserLevelWithContext(ctx context.Context, request *ModifyUserLevelRequest) (response *ModifyUserLevelResponse, err error)
ModifyUserLevel Modify the user protection rule level
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyUserSignatureRule ¶
func (c *Client) ModifyUserSignatureRule(request *ModifyUserSignatureRuleRequest) (response *ModifyUserSignatureRuleResponse, err error)
ModifyUserSignatureRule Modify user protection rules, turn on/off specific rules
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyUserSignatureRuleWithContext ¶
func (c *Client) ModifyUserSignatureRuleWithContext(ctx context.Context, request *ModifyUserSignatureRuleRequest) (response *ModifyUserSignatureRuleResponse, err error)
ModifyUserSignatureRule Modify user protection rules, turn on/off specific rules
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyWebshellStatus ¶
func (c *Client) ModifyWebshellStatus(request *ModifyWebshellStatusRequest) (response *ModifyWebshellStatusResponse, err error)
ModifyWebshellStatus Set the Webshell status of a domain.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyWebshellStatusWithContext ¶
func (c *Client) ModifyWebshellStatusWithContext(ctx context.Context, request *ModifyWebshellStatusRequest) (response *ModifyWebshellStatusResponse, err error)
ModifyWebshellStatus Set the Webshell status of a domain.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) RefreshAccessCheckResult ¶
func (c *Client) RefreshAccessCheckResult(request *RefreshAccessCheckResultRequest) (response *RefreshAccessCheckResultResponse, err error)
RefreshAccessCheckResult Refresh integration check results. The backend will generate integration check tasks
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) RefreshAccessCheckResultWithContext ¶
func (c *Client) RefreshAccessCheckResultWithContext(ctx context.Context, request *RefreshAccessCheckResultRequest) (response *RefreshAccessCheckResultResponse, err error)
RefreshAccessCheckResult Refresh integration check results. The backend will generate integration check tasks
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) SearchAttackLog ¶
func (c *Client) SearchAttackLog(request *SearchAttackLogRequest) (response *SearchAttackLogResponse, err error)
SearchAttackLog The new version of the CLS API has parameter changes, with query changed to query_string to support Lucene syntax for API search queries.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSDBOPERATIONFAILED = "FailedOperation.CLSDBOperationFailed" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INTERNALERROR_UNKNOWNERR = "InternalError.UnknownErr" INVALIDPARAMETER_LOGICERR = "InvalidParameter.LogicErr" INVALIDPARAMETER_QUERYSTRINGSYNTAXERR = "InvalidParameter.QueryStringSyntaxErr" INVALIDPARAMETER_TYPEMISMATCH = "InvalidParameter.TypeMismatch" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) SearchAttackLogWithContext ¶
func (c *Client) SearchAttackLogWithContext(ctx context.Context, request *SearchAttackLogRequest) (response *SearchAttackLogResponse, err error)
SearchAttackLog The new version of the CLS API has parameter changes, with query changed to query_string to support Lucene syntax for API search queries.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CLSDBOPERATIONFAILED = "FailedOperation.CLSDBOperationFailed" FAILEDOPERATION_CLSINTERNALERROR = "FailedOperation.CLSInternalError" INTERNALERROR = "InternalError" INTERNALERROR_UNKNOWNERR = "InternalError.UnknownErr" INVALIDPARAMETER_LOGICERR = "InvalidParameter.LogicErr" INVALIDPARAMETER_QUERYSTRINGSYNTAXERR = "InvalidParameter.QueryStringSyntaxErr" INVALIDPARAMETER_TYPEMISMATCH = "InvalidParameter.TypeMismatch" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) SwitchElasticMode ¶
func (c *Client) SwitchElasticMode(request *SwitchElasticModeRequest) (response *SwitchElasticModeResponse, err error)
SwitchElasticMode Toggle elasticity switch
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter"
func (*Client) SwitchElasticModeWithContext ¶
func (c *Client) SwitchElasticModeWithContext(ctx context.Context, request *SwitchElasticModeRequest) (response *SwitchElasticModeResponse, err error)
SwitchElasticMode Toggle elasticity switch
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter"
func (*Client) UpsertCCRule ¶
func (c *Client) UpsertCCRule(request *UpsertCCRuleRequest) (response *UpsertCCRuleResponse, err error)
UpsertCCRule WAF CC V2 upsert API
error code that may be returned:
INTERNALERROR = "InternalError" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) UpsertCCRuleWithContext ¶
func (c *Client) UpsertCCRuleWithContext(ctx context.Context, request *UpsertCCRuleRequest) (response *UpsertCCRuleResponse, err error)
UpsertCCRule WAF CC V2 upsert API
error code that may be returned:
INTERNALERROR = "InternalError" LIMITEXCEEDED_SPECIFICATIONERR = "LimitExceeded.SpecificationErr" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) UpsertSession ¶
func (c *Client) UpsertSession(request *UpsertSessionRequest) (response *UpsertSessionResponse, err error)
UpsertSession WAF session definition upsert API
error code that may be returned:
FAILEDOPERATION = "FailedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) UpsertSessionWithContext ¶
func (c *Client) UpsertSessionWithContext(ctx context.Context, request *UpsertSessionRequest) (response *UpsertSessionResponse, err error)
UpsertSession WAF session definition upsert API
error code that may be returned:
FAILEDOPERATION = "FailedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
type CreateDealsGoods ¶
type CreateDealsGoods struct {
// Number of products
GoodsNum *int64 `json:"GoodsNum,omitnil,omitempty" name:"GoodsNum"`
// Product Detail
GoodsDetail *CreateDealsGoodsDetail `json:"GoodsDetail,omitnil,omitempty" name:"GoodsDetail"`
// Order type ID, which is used to uniquely identify a business scene. (There are three scenes in total: new purchase, configuration change, and renewal.)
// Advanced Edition: 102375 (new purchase), 102376 (renewal), and 102377 (configuration change)
// Enterprise Edition: 102378 (new purchase), 102379 (renewal), and 102380 (configuration change)
// Ultimate Edition: 102369 (new purchase), 102370 (renewal), and 102371 (configuration change)
// Domain name package: 102372 (new purchase), 102373 (renewal), and 102374 (configuration change)
// Business expansion package: 101040 (new purchase), 101041 (renewal), and 101042 (configuration change)
//
// Advanced Edition - CLB: 101198 (new purchase), 101199 (renewal), and 101200 (configuration change)
// Enterprise Edition - CLB: 101204 (new purchase), 101205 (renewal), and 101206 (configuration change)
// Ultimate Edition - CLB: 101201 (new purchase), 101202 (renewal), and 101203 (configuration change)
// Domain name package - CLB: 101207 (new purchase), 101208 (renewal), and 101209 (configuration change)
// Business expansion package - CLB: 101210 (new purchase), 101211 (renewal), and 101212 (configuration adjustment)
//
// Note: This field may return null, indicating that no valid values can be obtained.
GoodsCategoryId *int64 `json:"GoodsCategoryId,omitnil,omitempty" name:"GoodsCategoryId"`
// Region ID for purchasing WAF instance
//
// 1 indicates purchasing resources in Chinese mainland.
// 9 indicates purchasing resources outside Chinese mainland.
// Note: This field may return null, indicating that no valid values can be obtained.
RegionId *int64 `json:"RegionId,omitnil,omitempty" name:"RegionId"`
}
type CreateDealsGoodsDetail ¶
type CreateDealsGoodsDetail struct {
// Time interval
// Note: This field may return null, indicating that no valid values can be obtained.
TimeSpan *int64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
// Unit, support for purchasing d, m, y, i.e., (day, month, year)
//
// Note: This field may return null, indicating that no valid values can be obtained.
TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"`
// Sub-product tag. It is mandatory for new purchase and renewal. For configuration change, it will be placed in oldConfig and newConfig.
//
// SaaS Advanced Edition: sp_wsm_waf_premium
// SaaS Enterprise Edition: sp_wsm_waf_enterprise
// SaaS Ultimate Edition: sp_wsm_waf_ultimate
// SaaS business expansion package: sp_wsm_waf_qpsep
// SaaS domain name expansion package: sp_wsm_waf_domain
//
// Advanced Edition - CLB: sp_wsm_waf_premium_clb
// Enterprise Edition - CLB: sp_wsm_waf_enterprise_clb
// Ultimate Edition - CLB: sp_wsm_waf_ultimate_clb
// business expansion package - CLB: sp_wsm_waf_qpsep_clb
// Domain name expansion package - CLB: sp_wsm_waf_domain_clb
//
// Note: This field may return null, indicating that no valid values can be obtained.
SubProductCode *string `json:"SubProductCode,omitnil,omitempty" name:"SubProductCode"`
// PID applied for a business product (corresponding to a pricing formula). The pricing model can be found through PID billing.
// Advanced Edition: 1000827
// Enterprise Edition: 1000830
// Ultimate Edition: 1000832
// Domain name package: 1000834
// Business expansion package: 1000481
// Advanced Edition - CLB: 1001150
// Enterprise Edition - CLB: 1001152
// Ultimate Edition - CLB: 1001154
// Domain name package - CLB: 1001156
// Business expansion package - CLB: 1001160
//
// Note: This field may return null, indicating that no valid values can be obtained.
Pid *int64 `json:"Pid,omitnil,omitempty" name:"Pid"`
// WAF Instance Name
//
// Note: This field may return null, indicating that no valid values can be obtained.
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// 1: Auto-renewal, 0: No Auto-renewal
//
// Note: This field may return null, indicating that no valid values can be obtained.
AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`
// Actual Geographic Information of WAF Purchase
//
// Note: This field may return null, indicating that no valid values can be obtained.
RealRegion *int64 `json:"RealRegion,omitnil,omitempty" name:"RealRegion"`
// Billing Detail Tag Array
//
// SaaS Advanced Edition: sv_wsm_waf_package_premium
// SaaS Enterprise Edition: sv_wsm_waf_package_enterprise
// SaaS Ultimate Edition: sv_wsm_waf_package_ultimate
// SaaS non-Chinese Mainland Advanced Edition: sv_wsm_waf_package_premium_intl
// SaaS non-Chinese Mainland Enterprise Edition: sv_wsm_waf_package_enterprise_intl
// SaaS non-Chinese Mainland Ultimate Edition: sv_wsm_waf_package_ultimate_intl
// SaaS business expansion package: sv_wsm_waf_qps_ep
// SaaS domain name expansion package: sv_wsm_waf_domain
//
// Advanced Edition CLB: sv_wsm_waf_package_premium_clb
// Enterprise Edition CLB: sv_wsm_waf_package_enterprise_clb
// Ultimate Edition CLB: sv_wsm_waf_package_ultimate_clb
// Non-Chinese Mainland Advanced Edition CLB: sv_wsm_waf_package_premium_clb_intl
// Non-Chinese Mainland Enterprise Edition CLB: sv_wsm_waf_package_premium_clb_intl
// Non-Chinese Mainland Ultimate Edition CLB: sv_wsm_waf_package_ultimate_clb_intl
// Business expansion package CLB: sv_wsm_waf_qps_ep_clb
// Domain name expansion package CLB: sv_wsm_waf_domain_clb
//
// Note: This field may return null, indicating that no valid values can be obtained.
LabelTypes []*string `json:"LabelTypes,omitnil,omitempty" name:"LabelTypes"`
// Number of Billing Detail Tags, Generally Corresponds One-to-One with SvLabelType
//
// Note: This field may return null, indicating that no valid values can be obtained.
LabelCounts []*int64 `json:"LabelCounts,omitnil,omitempty" name:"LabelCounts"`
// Dynamic Configuration Usage, Instance Expiration Time
//
// Note: This field may return null, indicating that no valid values can be obtained.
CurDeadline *string `json:"CurDeadline,omitnil,omitempty" name:"CurDeadline"`
// Purchasing Bot or API Security for Existing Instances
//
// Note: This field may return null, indicating that no valid values can be obtained.
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Resource ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`
}
type CreateDealsRequest ¶
type CreateDealsRequest struct {
*tchttp.BaseRequest
// Billing and ordering input parameters
Goods []*CreateDealsGoods `json:"Goods,omitnil,omitempty" name:"Goods"`
}
func NewCreateDealsRequest ¶
func NewCreateDealsRequest() (request *CreateDealsRequest)
func (*CreateDealsRequest) FromJsonString ¶
func (r *CreateDealsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDealsRequest) ToJsonString ¶
func (r *CreateDealsRequest) ToJsonString() string
type CreateDealsRequestParams ¶
type CreateDealsRequestParams struct {
// Billing and ordering input parameters
Goods []*CreateDealsGoods `json:"Goods,omitnil,omitempty" name:"Goods"`
}
Predefined struct for user
type CreateDealsResponse ¶
type CreateDealsResponse struct {
*tchttp.BaseResponse
Response *CreateDealsResponseParams `json:"Response"`
}
func NewCreateDealsResponse ¶
func NewCreateDealsResponse() (response *CreateDealsResponse)
func (*CreateDealsResponse) FromJsonString ¶
func (r *CreateDealsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDealsResponse) ToJsonString ¶
func (r *CreateDealsResponse) ToJsonString() string
type CreateDealsResponseParams ¶
type CreateDealsResponseParams struct {
// Billing order response structure
//
// Note: This field may return null, indicating that no valid values can be obtained.
Data *DealData `json:"Data,omitnil,omitempty" name:"Data"`
// 1: Success, 0: Failure
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Returned message
//
// Note: This field may return null, indicating that no valid values can be obtained.
ReturnMessage *string `json:"ReturnMessage,omitnil,omitempty" name:"ReturnMessage"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type CreateHostRequest ¶
type CreateHostRequest struct {
*tchttp.BaseRequest
// Protection Domain Configuration Information
Host *HostRecord `json:"Host,omitnil,omitempty" name:"Host"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
func NewCreateHostRequest ¶
func NewCreateHostRequest() (request *CreateHostRequest)
func (*CreateHostRequest) FromJsonString ¶
func (r *CreateHostRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateHostRequest) ToJsonString ¶
func (r *CreateHostRequest) ToJsonString() string
type CreateHostRequestParams ¶
type CreateHostRequestParams struct {
// Protection Domain Configuration Information
Host *HostRecord `json:"Host,omitnil,omitempty" name:"Host"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
Predefined struct for user
type CreateHostResponse ¶
type CreateHostResponse struct {
*tchttp.BaseResponse
Response *CreateHostResponseParams `json:"Response"`
}
func NewCreateHostResponse ¶
func NewCreateHostResponse() (response *CreateHostResponse)
func (*CreateHostResponse) FromJsonString ¶
func (r *CreateHostResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateHostResponse) ToJsonString ¶
func (r *CreateHostResponse) ToJsonString() string
type CreateHostResponseParams ¶
type CreateHostResponseParams struct {
// Unique ID of domain
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type CreateIpAccessControlRequest ¶
type CreateIpAccessControlRequest struct {
*tchttp.BaseRequest
// Specific domain name, for example, test.qcloudwaf.com.
// Global domain name, that is, global.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// IP parameter list.
IpList []*string `json:"IpList,omitnil,omitempty" name:"IpList"`
// 42: blocklist; 40: allowlist.
ActionType *int64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// valid_ts indicates a valid date. Its value is a second-level timestamp, such as 1680570420, which indicates 2023-04-04 09:07:00.
ValidTS *int64 `json:"ValidTS,omitnil,omitempty" name:"ValidTS"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// WAF instance type: sparta-waf for SaaS WAF, clb-waf for CLB WAF.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Valid values: batch (adding in batches), bot (adding to the bot details list in bot traffic analysis), cc (adding to IP addresses of the CC attack type in the attack log list), custom (default value for adding not in batches).
SourceType *string `json:"SourceType,omitnil,omitempty" name:"SourceType"`
// Remarks
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// Scheduled configuration type.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Details of scheduled configuration.
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
}
func NewCreateIpAccessControlRequest ¶
func NewCreateIpAccessControlRequest() (request *CreateIpAccessControlRequest)
func (*CreateIpAccessControlRequest) FromJsonString ¶
func (r *CreateIpAccessControlRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateIpAccessControlRequest) ToJsonString ¶
func (r *CreateIpAccessControlRequest) ToJsonString() string
type CreateIpAccessControlRequestParams ¶
type CreateIpAccessControlRequestParams struct {
// Specific domain name, for example, test.qcloudwaf.com.
// Global domain name, that is, global.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// IP parameter list.
IpList []*string `json:"IpList,omitnil,omitempty" name:"IpList"`
// 42: blocklist; 40: allowlist.
ActionType *int64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// valid_ts indicates a valid date. Its value is a second-level timestamp, such as 1680570420, which indicates 2023-04-04 09:07:00.
//
// Deprecated: ValidTS is deprecated.
ValidTS *int64 `json:"ValidTS,omitnil,omitempty" name:"ValidTS"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// WAF instance type: sparta-waf for SaaS WAF, clb-waf for CLB WAF.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Valid values: batch (adding in batches), bot (adding to the bot details list in bot traffic analysis), cc (adding to IP addresses of the CC attack type in the attack log list), custom (default value for adding not in batches).
SourceType *string `json:"SourceType,omitnil,omitempty" name:"SourceType"`
// Remarks
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// Scheduled configuration type.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Details of scheduled configuration.
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
}
Predefined struct for user
type CreateIpAccessControlResponse ¶
type CreateIpAccessControlResponse struct {
*tchttp.BaseResponse
Response *CreateIpAccessControlResponseParams `json:"Response"`
}
func NewCreateIpAccessControlResponse ¶
func NewCreateIpAccessControlResponse() (response *CreateIpAccessControlResponse)
func (*CreateIpAccessControlResponse) FromJsonString ¶
func (r *CreateIpAccessControlResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateIpAccessControlResponse) ToJsonString ¶
func (r *CreateIpAccessControlResponse) ToJsonString() string
type CreateIpAccessControlResponseParams ¶
type CreateIpAccessControlResponseParams struct {
// ID of the new rule.
//
// Note: This field may return null, indicating that no valid values can be obtained.
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type CreateOwaspWhiteRuleRequest ¶
type CreateOwaspWhiteRuleRequest struct {
*tchttp.BaseRequest
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule-Based matching policy list.
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// ID list of allowlisted rules.
Ids []*uint64 `json:"Ids,omitnil,omitempty" name:"Ids"`
// Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`
// Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Scheduled task configuration
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
// If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}
func NewCreateOwaspWhiteRuleRequest ¶
func NewCreateOwaspWhiteRuleRequest() (request *CreateOwaspWhiteRuleRequest)
func (*CreateOwaspWhiteRuleRequest) FromJsonString ¶
func (r *CreateOwaspWhiteRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateOwaspWhiteRuleRequest) ToJsonString ¶
func (r *CreateOwaspWhiteRuleRequest) ToJsonString() string
type CreateOwaspWhiteRuleRequestParams ¶
type CreateOwaspWhiteRuleRequestParams struct {
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule-Based matching policy list.
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// ID list of allowlisted rules.
Ids []*uint64 `json:"Ids,omitnil,omitempty" name:"Ids"`
// Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`
// Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Scheduled task configuration
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
// If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}
Predefined struct for user
type CreateOwaspWhiteRuleResponse ¶
type CreateOwaspWhiteRuleResponse struct {
*tchttp.BaseResponse
Response *CreateOwaspWhiteRuleResponseParams `json:"Response"`
}
func NewCreateOwaspWhiteRuleResponse ¶
func NewCreateOwaspWhiteRuleResponse() (response *CreateOwaspWhiteRuleResponse)
func (*CreateOwaspWhiteRuleResponse) FromJsonString ¶
func (r *CreateOwaspWhiteRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateOwaspWhiteRuleResponse) ToJsonString ¶
func (r *CreateOwaspWhiteRuleResponse) ToJsonString() string
type CreateOwaspWhiteRuleResponseParams ¶
type CreateOwaspWhiteRuleResponseParams struct {
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type CronJob ¶
type CronJob struct {
// Execution day of each month.
Days []*uint64 `json:"Days,omitnil,omitempty" name:"Days"`
// Execution day of each week.
WDays []*uint64 `json:"WDays,omitnil,omitempty" name:"WDays"`
// Start time.
StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// End time
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}
type DealData ¶
type DealData struct {
// Order Number List: the number of elements matches the number of elements in the Goods array of the request package. Product details correspond to orders in sequence
DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
// Large Order Number, a large order number can have multiple sub-orders, indicating the same order placement [{},{}]
BigDealId *string `json:"BigDealId,omitnil,omitempty" name:"BigDealId"`
}
type DeleteAntiFakeUrlRequest ¶
type DeleteAntiFakeUrlRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Id
Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
}
func NewDeleteAntiFakeUrlRequest ¶
func NewDeleteAntiFakeUrlRequest() (request *DeleteAntiFakeUrlRequest)
func (*DeleteAntiFakeUrlRequest) FromJsonString ¶
func (r *DeleteAntiFakeUrlRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAntiFakeUrlRequest) ToJsonString ¶
func (r *DeleteAntiFakeUrlRequest) ToJsonString() string
type DeleteAntiFakeUrlRequestParams ¶
type DeleteAntiFakeUrlRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Id
Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
}
Predefined struct for user
type DeleteAntiFakeUrlResponse ¶
type DeleteAntiFakeUrlResponse struct {
*tchttp.BaseResponse
Response *DeleteAntiFakeUrlResponseParams `json:"Response"`
}
func NewDeleteAntiFakeUrlResponse ¶
func NewDeleteAntiFakeUrlResponse() (response *DeleteAntiFakeUrlResponse)
func (*DeleteAntiFakeUrlResponse) FromJsonString ¶
func (r *DeleteAntiFakeUrlResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAntiFakeUrlResponse) ToJsonString ¶
func (r *DeleteAntiFakeUrlResponse) ToJsonString() string
type DeleteAntiFakeUrlResponseParams ¶
type DeleteAntiFakeUrlResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteAntiInfoLeakRuleRequest ¶
type DeleteAntiInfoLeakRuleRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}
func NewDeleteAntiInfoLeakRuleRequest ¶
func NewDeleteAntiInfoLeakRuleRequest() (request *DeleteAntiInfoLeakRuleRequest)
func (*DeleteAntiInfoLeakRuleRequest) FromJsonString ¶
func (r *DeleteAntiInfoLeakRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAntiInfoLeakRuleRequest) ToJsonString ¶
func (r *DeleteAntiInfoLeakRuleRequest) ToJsonString() string
type DeleteAntiInfoLeakRuleRequestParams ¶
type DeleteAntiInfoLeakRuleRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}
Predefined struct for user
type DeleteAntiInfoLeakRuleResponse ¶
type DeleteAntiInfoLeakRuleResponse struct {
*tchttp.BaseResponse
Response *DeleteAntiInfoLeakRuleResponseParams `json:"Response"`
}
func NewDeleteAntiInfoLeakRuleResponse ¶
func NewDeleteAntiInfoLeakRuleResponse() (response *DeleteAntiInfoLeakRuleResponse)
func (*DeleteAntiInfoLeakRuleResponse) FromJsonString ¶
func (r *DeleteAntiInfoLeakRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAntiInfoLeakRuleResponse) ToJsonString ¶
func (r *DeleteAntiInfoLeakRuleResponse) ToJsonString() string
type DeleteAntiInfoLeakRuleResponseParams ¶
type DeleteAntiInfoLeakRuleResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteCCRuleRequest ¶
type DeleteCCRuleRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// clb-waf or sparta-waf
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Rule ID
RuleId *int64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}
func NewDeleteCCRuleRequest ¶
func NewDeleteCCRuleRequest() (request *DeleteCCRuleRequest)
func (*DeleteCCRuleRequest) FromJsonString ¶
func (r *DeleteCCRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCCRuleRequest) ToJsonString ¶
func (r *DeleteCCRuleRequest) ToJsonString() string
type DeleteCCRuleRequestParams ¶
type DeleteCCRuleRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// clb-waf or sparta-waf
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Rule ID
RuleId *int64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}
Predefined struct for user
type DeleteCCRuleResponse ¶
type DeleteCCRuleResponse struct {
*tchttp.BaseResponse
Response *DeleteCCRuleResponseParams `json:"Response"`
}
func NewDeleteCCRuleResponse ¶
func NewDeleteCCRuleResponse() (response *DeleteCCRuleResponse)
func (*DeleteCCRuleResponse) FromJsonString ¶
func (r *DeleteCCRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCCRuleResponse) ToJsonString ¶
func (r *DeleteCCRuleResponse) ToJsonString() string
type DeleteCCRuleResponseParams ¶
type DeleteCCRuleResponseParams struct {
// Normally null
//
// Note: This field may return null, indicating that no valid values can be obtained.
Data *string `json:"Data,omitnil,omitempty" name:"Data"`
// Operational rule ID
RuleId *int64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteCustomRuleRequest ¶
type DeleteCustomRuleRequest struct {
*tchttp.BaseRequest
// Deleted domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Deleted rule ID
RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Version of WAF. clb-waf indicates CLB WAF; sparta-waf indicates SaaS WAF. sparta-waf by default.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// List of rules to be deleted in batches
DomainRuleIdList []*DomainRuleId `json:"DomainRuleIdList,omitnil,omitempty" name:"DomainRuleIdList"`
}
func NewDeleteCustomRuleRequest ¶
func NewDeleteCustomRuleRequest() (request *DeleteCustomRuleRequest)
func (*DeleteCustomRuleRequest) FromJsonString ¶
func (r *DeleteCustomRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCustomRuleRequest) ToJsonString ¶
func (r *DeleteCustomRuleRequest) ToJsonString() string
type DeleteCustomRuleRequestParams ¶
type DeleteCustomRuleRequestParams struct {
// Deleted domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Deleted rule ID
RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Version of WAF. clb-waf indicates CLB WAF; sparta-waf indicates SaaS WAF. sparta-waf by default.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// List of rules to be deleted in batches
DomainRuleIdList []*DomainRuleId `json:"DomainRuleIdList,omitnil,omitempty" name:"DomainRuleIdList"`
}
Predefined struct for user
type DeleteCustomRuleResponse ¶
type DeleteCustomRuleResponse struct {
*tchttp.BaseResponse
Response *DeleteCustomRuleResponseParams `json:"Response"`
}
func NewDeleteCustomRuleResponse ¶
func NewDeleteCustomRuleResponse() (response *DeleteCustomRuleResponse)
func (*DeleteCustomRuleResponse) FromJsonString ¶
func (r *DeleteCustomRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCustomRuleResponse) ToJsonString ¶
func (r *DeleteCustomRuleResponse) ToJsonString() string
type DeleteCustomRuleResponseParams ¶
type DeleteCustomRuleResponseParams struct {
// Operation status code: if all resource operations succeed, the success status code is returned; if any resource operation fails, the content of Message needs to be parsed to see which resource failed.
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteCustomWhiteRuleRequest ¶
type DeleteCustomWhiteRuleRequest struct {
*tchttp.BaseRequest
// Deleted domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Deleted rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}
func NewDeleteCustomWhiteRuleRequest ¶
func NewDeleteCustomWhiteRuleRequest() (request *DeleteCustomWhiteRuleRequest)
func (*DeleteCustomWhiteRuleRequest) FromJsonString ¶
func (r *DeleteCustomWhiteRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCustomWhiteRuleRequest) ToJsonString ¶
func (r *DeleteCustomWhiteRuleRequest) ToJsonString() string
type DeleteCustomWhiteRuleRequestParams ¶
type DeleteCustomWhiteRuleRequestParams struct {
// Deleted domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Deleted rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}
Predefined struct for user
type DeleteCustomWhiteRuleResponse ¶
type DeleteCustomWhiteRuleResponse struct {
*tchttp.BaseResponse
Response *DeleteCustomWhiteRuleResponseParams `json:"Response"`
}
func NewDeleteCustomWhiteRuleResponse ¶
func NewDeleteCustomWhiteRuleResponse() (response *DeleteCustomWhiteRuleResponse)
func (*DeleteCustomWhiteRuleResponse) FromJsonString ¶
func (r *DeleteCustomWhiteRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCustomWhiteRuleResponse) ToJsonString ¶
func (r *DeleteCustomWhiteRuleResponse) ToJsonString() string
type DeleteCustomWhiteRuleResponseParams ¶
type DeleteCustomWhiteRuleResponseParams struct {
// Operation status code: if all resource operations succeed, the success status code is returned; if any resource operation fails, the content of Message needs to be parsed to see which resource failed.
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteHostRequest ¶
type DeleteHostRequest struct {
*tchttp.BaseRequest
// List of domains to be deleted
HostsDel []*HostDel `json:"HostsDel,omitnil,omitempty" name:"HostsDel"`
}
func NewDeleteHostRequest ¶
func NewDeleteHostRequest() (request *DeleteHostRequest)
func (*DeleteHostRequest) FromJsonString ¶
func (r *DeleteHostRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteHostRequest) ToJsonString ¶
func (r *DeleteHostRequest) ToJsonString() string
type DeleteHostRequestParams ¶
type DeleteHostRequestParams struct {
// List of domains to be deleted
HostsDel []*HostDel `json:"HostsDel,omitnil,omitempty" name:"HostsDel"`
}
Predefined struct for user
type DeleteHostResponse ¶
type DeleteHostResponse struct {
*tchttp.BaseResponse
Response *DeleteHostResponseParams `json:"Response"`
}
func NewDeleteHostResponse ¶
func NewDeleteHostResponse() (response *DeleteHostResponse)
func (*DeleteHostResponse) FromJsonString ¶
func (r *DeleteHostResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteHostResponse) ToJsonString ¶
func (r *DeleteHostResponse) ToJsonString() string
type DeleteHostResponseParams ¶
type DeleteHostResponseParams struct {
// Domain name deletion result. Code represents the status code, and Message represents details.
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteIpAccessControlV2Request ¶
type DeleteIpAccessControlV2Request struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule ID list. Batch deletion is supported. This parameter does not need to be specified when DeleteAll is true.
RuleIds []*uint64 `json:"RuleIds,omitnil,omitempty" name:"RuleIds"`
// Whether to delete all IP blocklists/allowlists under the corresponding domain name. true: delete all lists; false: delete only the specified lists. Batch protection is not supported.
DeleteAll *bool `json:"DeleteAll,omitnil,omitempty" name:"DeleteAll"`
// batch: indicates batch protection IP allowlists/blocklists.
SourceType *string `json:"SourceType,omitnil,omitempty" name:"SourceType"`
// IP blocklist/allowlist type. 40: IP allowlist; 42: IP blocklist. This parameter should be passed in when DeleteAll is true.
ActionType *uint64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
}
func NewDeleteIpAccessControlV2Request ¶
func NewDeleteIpAccessControlV2Request() (request *DeleteIpAccessControlV2Request)
func (*DeleteIpAccessControlV2Request) FromJsonString ¶
func (r *DeleteIpAccessControlV2Request) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteIpAccessControlV2Request) ToJsonString ¶
func (r *DeleteIpAccessControlV2Request) ToJsonString() string
type DeleteIpAccessControlV2RequestParams ¶
type DeleteIpAccessControlV2RequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule ID list. Batch deletion is supported. This parameter does not need to be specified when DeleteAll is true.
RuleIds []*uint64 `json:"RuleIds,omitnil,omitempty" name:"RuleIds"`
// Whether to delete all IP blocklists/allowlists under the corresponding domain name. true: delete all lists; false: delete only the specified lists. Batch protection is not supported.
DeleteAll *bool `json:"DeleteAll,omitnil,omitempty" name:"DeleteAll"`
// batch: indicates batch protection IP allowlists/blocklists.
SourceType *string `json:"SourceType,omitnil,omitempty" name:"SourceType"`
// IP blocklist/allowlist type. 40: IP allowlist; 42: IP blocklist. This parameter should be passed in when DeleteAll is true.
ActionType *uint64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
}
Predefined struct for user
type DeleteIpAccessControlV2Response ¶
type DeleteIpAccessControlV2Response struct {
*tchttp.BaseResponse
Response *DeleteIpAccessControlV2ResponseParams `json:"Response"`
}
func NewDeleteIpAccessControlV2Response ¶
func NewDeleteIpAccessControlV2Response() (response *DeleteIpAccessControlV2Response)
func (*DeleteIpAccessControlV2Response) FromJsonString ¶
func (r *DeleteIpAccessControlV2Response) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteIpAccessControlV2Response) ToJsonString ¶
func (r *DeleteIpAccessControlV2Response) ToJsonString() string
type DeleteIpAccessControlV2ResponseParams ¶
type DeleteIpAccessControlV2ResponseParams struct {
// Number of items that fail to be deleted during deletion in batches.
FailedCount *int64 `json:"FailedCount,omitnil,omitempty" name:"FailedCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteOwaspRuleStatusRequest ¶
type DeleteOwaspRuleStatusRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule ID list
RuleIDs []*string `json:"RuleIDs,omitnil,omitempty" name:"RuleIDs"`
}
func NewDeleteOwaspRuleStatusRequest ¶
func NewDeleteOwaspRuleStatusRequest() (request *DeleteOwaspRuleStatusRequest)
func (*DeleteOwaspRuleStatusRequest) FromJsonString ¶
func (r *DeleteOwaspRuleStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteOwaspRuleStatusRequest) ToJsonString ¶
func (r *DeleteOwaspRuleStatusRequest) ToJsonString() string
type DeleteOwaspRuleStatusRequestParams ¶
type DeleteOwaspRuleStatusRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule ID list
RuleIDs []*string `json:"RuleIDs,omitnil,omitempty" name:"RuleIDs"`
}
Predefined struct for user
type DeleteOwaspRuleStatusResponse ¶
type DeleteOwaspRuleStatusResponse struct {
*tchttp.BaseResponse
Response *DeleteOwaspRuleStatusResponseParams `json:"Response"`
}
func NewDeleteOwaspRuleStatusResponse ¶
func NewDeleteOwaspRuleStatusResponse() (response *DeleteOwaspRuleStatusResponse)
func (*DeleteOwaspRuleStatusResponse) FromJsonString ¶
func (r *DeleteOwaspRuleStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteOwaspRuleStatusResponse) ToJsonString ¶
func (r *DeleteOwaspRuleStatusResponse) ToJsonString() string
type DeleteOwaspRuleStatusResponseParams ¶
type DeleteOwaspRuleStatusResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteOwaspWhiteRuleRequest ¶
type DeleteOwaspWhiteRuleRequest struct {
*tchttp.BaseRequest
// ID list of allowlisted rules.
Ids []*uint64 `json:"Ids,omitnil,omitempty" name:"Ids"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
func NewDeleteOwaspWhiteRuleRequest ¶
func NewDeleteOwaspWhiteRuleRequest() (request *DeleteOwaspWhiteRuleRequest)
func (*DeleteOwaspWhiteRuleRequest) FromJsonString ¶
func (r *DeleteOwaspWhiteRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteOwaspWhiteRuleRequest) ToJsonString ¶
func (r *DeleteOwaspWhiteRuleRequest) ToJsonString() string
type DeleteOwaspWhiteRuleRequestParams ¶
type DeleteOwaspWhiteRuleRequestParams struct {
// ID list of allowlisted rules.
Ids []*uint64 `json:"Ids,omitnil,omitempty" name:"Ids"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
Predefined struct for user
type DeleteOwaspWhiteRuleResponse ¶
type DeleteOwaspWhiteRuleResponse struct {
*tchttp.BaseResponse
Response *DeleteOwaspWhiteRuleResponseParams `json:"Response"`
}
func NewDeleteOwaspWhiteRuleResponse ¶
func NewDeleteOwaspWhiteRuleResponse() (response *DeleteOwaspWhiteRuleResponse)
func (*DeleteOwaspWhiteRuleResponse) FromJsonString ¶
func (r *DeleteOwaspWhiteRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteOwaspWhiteRuleResponse) ToJsonString ¶
func (r *DeleteOwaspWhiteRuleResponse) ToJsonString() string
type DeleteOwaspWhiteRuleResponseParams ¶
type DeleteOwaspWhiteRuleResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteSessionRequest ¶
type DeleteSessionRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// clb-waf or sparta-waf
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// SessionID to be deleted
SessionID *int64 `json:"SessionID,omitnil,omitempty" name:"SessionID"`
}
func NewDeleteSessionRequest ¶
func NewDeleteSessionRequest() (request *DeleteSessionRequest)
func (*DeleteSessionRequest) FromJsonString ¶
func (r *DeleteSessionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSessionRequest) ToJsonString ¶
func (r *DeleteSessionRequest) ToJsonString() string
type DeleteSessionRequestParams ¶
type DeleteSessionRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// clb-waf or sparta-waf
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// SessionID to be deleted
SessionID *int64 `json:"SessionID,omitnil,omitempty" name:"SessionID"`
}
Predefined struct for user
type DeleteSessionResponse ¶
type DeleteSessionResponse struct {
*tchttp.BaseResponse
Response *DeleteSessionResponseParams `json:"Response"`
}
func NewDeleteSessionResponse ¶
func NewDeleteSessionResponse() (response *DeleteSessionResponse)
func (*DeleteSessionResponse) FromJsonString ¶
func (r *DeleteSessionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSessionResponse) ToJsonString ¶
func (r *DeleteSessionResponse) ToJsonString() string
type DeleteSessionResponseParams ¶
type DeleteSessionResponseParams struct {
// Result
//
// Note: This field may return null, indicating that no valid values can be obtained.
Data *string `json:"Data,omitnil,omitempty" name:"Data"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteSpartaProtectionRequest ¶
type DeleteSpartaProtectionRequest struct {
*tchttp.BaseRequest
// Domain name list
Domains []*string `json:"Domains,omitnil,omitempty" name:"Domains"`
// Instance type
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// (Required) Instance ID of the domain name
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
func NewDeleteSpartaProtectionRequest ¶
func NewDeleteSpartaProtectionRequest() (request *DeleteSpartaProtectionRequest)
func (*DeleteSpartaProtectionRequest) FromJsonString ¶
func (r *DeleteSpartaProtectionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSpartaProtectionRequest) ToJsonString ¶
func (r *DeleteSpartaProtectionRequest) ToJsonString() string
type DeleteSpartaProtectionRequestParams ¶
type DeleteSpartaProtectionRequestParams struct {
// Domain name list
Domains []*string `json:"Domains,omitnil,omitempty" name:"Domains"`
// Instance type
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// (Required) Instance ID of the domain name
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
Predefined struct for user
type DeleteSpartaProtectionResponse ¶
type DeleteSpartaProtectionResponse struct {
*tchttp.BaseResponse
Response *DeleteSpartaProtectionResponseParams `json:"Response"`
}
func NewDeleteSpartaProtectionResponse ¶
func NewDeleteSpartaProtectionResponse() (response *DeleteSpartaProtectionResponse)
func (*DeleteSpartaProtectionResponse) FromJsonString ¶
func (r *DeleteSpartaProtectionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSpartaProtectionResponse) ToJsonString ¶
func (r *DeleteSpartaProtectionResponse) ToJsonString() string
type DeleteSpartaProtectionResponseParams ¶
type DeleteSpartaProtectionResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeAntiFakeRulesRequest ¶
type DescribeAntiFakeRulesRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Offset
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter array. A name can be one of the following values: RuleID, ParamName, Url, Action, Method, Source, and Status.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
// asc or desc
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// Currently supports sorting by TS
By *string `json:"By,omitnil,omitempty" name:"By"`
}
func NewDescribeAntiFakeRulesRequest ¶
func NewDescribeAntiFakeRulesRequest() (request *DescribeAntiFakeRulesRequest)
func (*DescribeAntiFakeRulesRequest) FromJsonString ¶
func (r *DescribeAntiFakeRulesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAntiFakeRulesRequest) ToJsonString ¶
func (r *DescribeAntiFakeRulesRequest) ToJsonString() string
type DescribeAntiFakeRulesRequestParams ¶
type DescribeAntiFakeRulesRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Offset
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter array. A name can be one of the following values: RuleID, ParamName, Url, Action, Method, Source, and Status.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
// asc or desc
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// Currently supports sorting by TS
By *string `json:"By,omitnil,omitempty" name:"By"`
}
Predefined struct for user
type DescribeAntiFakeRulesResponse ¶
type DescribeAntiFakeRulesResponse struct {
*tchttp.BaseResponse
Response *DescribeAntiFakeRulesResponseParams `json:"Response"`
}
func NewDescribeAntiFakeRulesResponse ¶
func NewDescribeAntiFakeRulesResponse() (response *DescribeAntiFakeRulesResponse)
func (*DescribeAntiFakeRulesResponse) FromJsonString ¶
func (r *DescribeAntiFakeRulesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAntiFakeRulesResponse) ToJsonString ¶
func (r *DescribeAntiFakeRulesResponse) ToJsonString() string
type DescribeAntiFakeRulesResponseParams ¶
type DescribeAntiFakeRulesResponseParams struct {
// Total number
Total *uint64 `json:"Total,omitnil,omitempty" name:"Total"`
// Returned value
// Note: This field may return null, indicating that no valid values can be obtained.
Data []*CacheUrlItems `json:"Data,omitnil,omitempty" name:"Data"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeAntiInfoLeakageRulesRequest ¶
type DescribeAntiInfoLeakageRulesRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Page turning support, read offset
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Paging support, read length limit
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Sort method, asc or desc
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// Filter. The following values are allowed:
// RuleId,Match_field,Name,Action,Status
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func NewDescribeAntiInfoLeakageRulesRequest ¶
func NewDescribeAntiInfoLeakageRulesRequest() (request *DescribeAntiInfoLeakageRulesRequest)
func (*DescribeAntiInfoLeakageRulesRequest) FromJsonString ¶
func (r *DescribeAntiInfoLeakageRulesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAntiInfoLeakageRulesRequest) ToJsonString ¶
func (r *DescribeAntiInfoLeakageRulesRequest) ToJsonString() string
type DescribeAntiInfoLeakageRulesRequestParams ¶
type DescribeAntiInfoLeakageRulesRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Page turning support, read offset
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Paging support, read length limit
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Sort method, asc or desc
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// Filter. The following values are allowed:
// RuleId,Match_field,Name,Action,Status
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
}
Predefined struct for user
type DescribeAntiInfoLeakageRulesResponse ¶
type DescribeAntiInfoLeakageRulesResponse struct {
*tchttp.BaseResponse
Response *DescribeAntiInfoLeakageRulesResponseParams `json:"Response"`
}
func NewDescribeAntiInfoLeakageRulesResponse ¶
func NewDescribeAntiInfoLeakageRulesResponse() (response *DescribeAntiInfoLeakageRulesResponse)
func (*DescribeAntiInfoLeakageRulesResponse) FromJsonString ¶
func (r *DescribeAntiInfoLeakageRulesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAntiInfoLeakageRulesResponse) ToJsonString ¶
func (r *DescribeAntiInfoLeakageRulesResponse) ToJsonString() string
type DescribeAntiInfoLeakageRulesResponseParams ¶
type DescribeAntiInfoLeakageRulesResponseParams struct {
// Number of records
Total *uint64 `json:"Total,omitnil,omitempty" name:"Total"`
// List of rules
RuleList []*DescribeAntiLeakageItem `json:"RuleList,omitnil,omitempty" name:"RuleList"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeAntiLeakageItem ¶
type DescribeAntiLeakageItem struct {
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Status value
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Action
Action *string `json:"Action,omitnil,omitempty" name:"Action"`
// Creation time
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// Match condition
// Note: This field may return null, indicating that no valid values can be obtained.
Strategies []*DescribeAntiInfoLeakRulesStrategyItem `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// Matched URL
//
// Note: This field may return null, indicating that no valid values can be obtained.
Uri *string `json:"Uri,omitnil,omitempty" name:"Uri"`
// Modification time
//
// Note: This field may return null, indicating that no valid values can be obtained.
ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"`
}
type DescribeAttackOverviewRequest ¶
type DescribeAttackOverviewRequest struct {
*tchttp.BaseRequest
// Query start time
FromTime *string `json:"FromTime,omitnil,omitempty" name:"FromTime"`
// Query end time
ToTime *string `json:"ToTime,omitnil,omitempty" name:"ToTime"`
// Customer app ID
Appid *uint64 `json:"Appid,omitnil,omitempty" name:"Appid"`
// Queried domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Only two values are valid: sparta-waf, clb-waf. No filtering if not input.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// WAF instance ID. No filter will be carried out if it is not input.
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
func NewDescribeAttackOverviewRequest ¶
func NewDescribeAttackOverviewRequest() (request *DescribeAttackOverviewRequest)
func (*DescribeAttackOverviewRequest) FromJsonString ¶
func (r *DescribeAttackOverviewRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAttackOverviewRequest) ToJsonString ¶
func (r *DescribeAttackOverviewRequest) ToJsonString() string
type DescribeAttackOverviewRequestParams ¶
type DescribeAttackOverviewRequestParams struct {
// Query start time
FromTime *string `json:"FromTime,omitnil,omitempty" name:"FromTime"`
// Query end time
ToTime *string `json:"ToTime,omitnil,omitempty" name:"ToTime"`
// Customer app ID
Appid *uint64 `json:"Appid,omitnil,omitempty" name:"Appid"`
// Queried domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Only two values are valid: sparta-waf, clb-waf. No filtering if not input.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// WAF instance ID. No filter will be carried out if it is not input.
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
Predefined struct for user
type DescribeAttackOverviewResponse ¶
type DescribeAttackOverviewResponse struct {
*tchttp.BaseResponse
Response *DescribeAttackOverviewResponseParams `json:"Response"`
}
func NewDescribeAttackOverviewResponse ¶
func NewDescribeAttackOverviewResponse() (response *DescribeAttackOverviewResponse)
func (*DescribeAttackOverviewResponse) FromJsonString ¶
func (r *DescribeAttackOverviewResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAttackOverviewResponse) ToJsonString ¶
func (r *DescribeAttackOverviewResponse) ToJsonString() string
type DescribeAttackOverviewResponseParams ¶
type DescribeAttackOverviewResponseParams struct {
// Total number of access requests
AccessCount *uint64 `json:"AccessCount,omitnil,omitempty" name:"AccessCount"`
// Total web attacks
AttackCount *uint64 `json:"AttackCount,omitnil,omitempty" name:"AttackCount"`
// Total number of access controls
ACLCount *uint64 `json:"ACLCount,omitnil,omitempty" name:"ACLCount"`
// Total CC attacks
CCCount *uint64 `json:"CCCount,omitnil,omitempty" name:"CCCount"`
// Total bot attack count
BotCount *uint64 `json:"BotCount,omitnil,omitempty" name:"BotCount"`
// Total API assets
ApiAssetsCount *uint64 `json:"ApiAssetsCount,omitnil,omitempty" name:"ApiAssetsCount"`
// Number of API risk events
//
// Note: This field may return null, indicating that no valid values can be obtained.
ApiRiskEventCount *uint64 `json:"ApiRiskEventCount,omitnil,omitempty" name:"ApiRiskEventCount"`
// Total number of blocklisted IP addresses.
// Note: This field may return null, indicating that no valid values can be obtained.
IPBlackCount *uint64 `json:"IPBlackCount,omitnil,omitempty" name:"IPBlackCount"`
// Total number of tamper-proof items
//
// Note: This field may return null, indicating that no valid values can be obtained.
TamperCount *uint64 `json:"TamperCount,omitnil,omitempty" name:"TamperCount"`
// Total number of information leaks
//
// Note: This field may return null, indicating that no valid values can be obtained.
LeakCount *uint64 `json:"LeakCount,omitnil,omitempty" name:"LeakCount"`
// Weekly proportion of API risk events.
//
// Note: This field may return null, indicating that no valid values can be obtained.
ApiRiskEventCircleCount *int64 `json:"ApiRiskEventCircleCount,omitnil,omitempty" name:"ApiRiskEventCircleCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeAttackTypeRequest ¶
type DescribeAttackTypeRequest struct {
*tchttp.BaseRequest
// Start time
FromTime *string `json:"FromTime,omitnil,omitempty" name:"FromTime"`
// End time
ToTime *string `json:"ToTime,omitnil,omitempty" name:"ToTime"`
// Compatible host, gradually phasing out Host field
Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// Only two values are valid: sparta-waf, clb-waf. No filtering if not input.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// WAF instance ID. No filter will be carried out if it is not input.
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Domain filtering, not applied if not input, used to replace Host field and phase out Host
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
func NewDescribeAttackTypeRequest ¶
func NewDescribeAttackTypeRequest() (request *DescribeAttackTypeRequest)
func (*DescribeAttackTypeRequest) FromJsonString ¶
func (r *DescribeAttackTypeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAttackTypeRequest) ToJsonString ¶
func (r *DescribeAttackTypeRequest) ToJsonString() string
type DescribeAttackTypeRequestParams ¶
type DescribeAttackTypeRequestParams struct {
// Start time
FromTime *string `json:"FromTime,omitnil,omitempty" name:"FromTime"`
// End time
ToTime *string `json:"ToTime,omitnil,omitempty" name:"ToTime"`
// Compatible host, gradually phasing out Host field
Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// Only two values are valid: sparta-waf, clb-waf. No filtering if not input.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// WAF instance ID. No filter will be carried out if it is not input.
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Domain filtering, not applied if not input, used to replace Host field and phase out Host
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
Predefined struct for user
type DescribeAttackTypeResponse ¶
type DescribeAttackTypeResponse struct {
*tchttp.BaseResponse
Response *DescribeAttackTypeResponseParams `json:"Response"`
}
func NewDescribeAttackTypeResponse ¶
func NewDescribeAttackTypeResponse() (response *DescribeAttackTypeResponse)
func (*DescribeAttackTypeResponse) FromJsonString ¶
func (r *DescribeAttackTypeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAttackTypeResponse) ToJsonString ¶
func (r *DescribeAttackTypeResponse) ToJsonString() string
type DescribeAttackTypeResponseParams ¶
type DescribeAttackTypeResponseParams struct {
// Quantity
Piechart []*PiechartItem `json:"Piechart,omitnil,omitempty" name:"Piechart"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeBatchIpAccessControlRequest ¶
type DescribeBatchIpAccessControlRequest struct {
*tchttp.BaseRequest
// Filter criteria: supports ActionType 40/42, IP: IP address, Domain: Three types of domains
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
// Offset
OffSet *uint64 `json:"OffSet,omitnil,omitempty" name:"OffSet"`
// Limit
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Sort parameters
Sort *string `json:"Sort,omitnil,omitempty" name:"Sort"`
}
func NewDescribeBatchIpAccessControlRequest ¶
func NewDescribeBatchIpAccessControlRequest() (request *DescribeBatchIpAccessControlRequest)
func (*DescribeBatchIpAccessControlRequest) FromJsonString ¶
func (r *DescribeBatchIpAccessControlRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBatchIpAccessControlRequest) ToJsonString ¶
func (r *DescribeBatchIpAccessControlRequest) ToJsonString() string
type DescribeBatchIpAccessControlRequestParams ¶
type DescribeBatchIpAccessControlRequestParams struct {
// Filter criteria: supports ActionType 40/42, IP: IP address, Domain: Three types of domains
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
// Offset
OffSet *uint64 `json:"OffSet,omitnil,omitempty" name:"OffSet"`
// Limit
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Sort parameters
Sort *string `json:"Sort,omitnil,omitempty" name:"Sort"`
}
Predefined struct for user
type DescribeBatchIpAccessControlResponse ¶
type DescribeBatchIpAccessControlResponse struct {
*tchttp.BaseResponse
Response *DescribeBatchIpAccessControlResponseParams `json:"Response"`
}
func NewDescribeBatchIpAccessControlResponse ¶
func NewDescribeBatchIpAccessControlResponse() (response *DescribeBatchIpAccessControlResponse)
func (*DescribeBatchIpAccessControlResponse) FromJsonString ¶
func (r *DescribeBatchIpAccessControlResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBatchIpAccessControlResponse) ToJsonString ¶
func (r *DescribeBatchIpAccessControlResponse) ToJsonString() string
type DescribeBatchIpAccessControlResponseParams ¶
type DescribeBatchIpAccessControlResponseParams struct {
// Output
// Note: This field may return null, indicating that no valid values can be obtained.
Data *BatchIpAccessControlData `json:"Data,omitnil,omitempty" name:"Data"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeCCRuleListRequest ¶
type DescribeCCRuleListRequest struct {
*tchttp.BaseRequest
// Domain name of the API to be queried
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Offset
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Currently supports sorting by ts_version
By *string `json:"By,omitnil,omitempty" name:"By"`
// Filter array. A name can be one of the following values: RuleID, ParamName, Url, Action, Method, Source, and Status.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
// asc or desc
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
}
func NewDescribeCCRuleListRequest ¶
func NewDescribeCCRuleListRequest() (request *DescribeCCRuleListRequest)
func (*DescribeCCRuleListRequest) FromJsonString ¶
func (r *DescribeCCRuleListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCCRuleListRequest) ToJsonString ¶
func (r *DescribeCCRuleListRequest) ToJsonString() string
type DescribeCCRuleListRequestParams ¶
type DescribeCCRuleListRequestParams struct {
// Domain name of the API to be queried
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Offset
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Currently supports sorting by ts_version
By *string `json:"By,omitnil,omitempty" name:"By"`
// Filter array. A name can be one of the following values: RuleID, ParamName, Url, Action, Method, Source, and Status.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
// asc or desc
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
}
Predefined struct for user
type DescribeCCRuleListResponse ¶
type DescribeCCRuleListResponse struct {
*tchttp.BaseResponse
Response *DescribeCCRuleListResponseParams `json:"Response"`
}
func NewDescribeCCRuleListResponse ¶
func NewDescribeCCRuleListResponse() (response *DescribeCCRuleListResponse)
func (*DescribeCCRuleListResponse) FromJsonString ¶
func (r *DescribeCCRuleListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCCRuleListResponse) ToJsonString ¶
func (r *DescribeCCRuleListResponse) ToJsonString() string
type DescribeCCRuleListResponseParams ¶
type DescribeCCRuleListResponseParams struct {
// List of CC rules found
//
// Note: This field may return null, indicating that no valid values can be obtained.
Data *CCRuleLists `json:"Data,omitnil,omitempty" name:"Data"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeCCRuleRequest ¶
type DescribeCCRuleRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Page number
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Number of pages
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Sort parameters
Sort *string `json:"Sort,omitnil,omitempty" name:"Sort"`
// clb-waf or sparta-waf
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Filter criteria.
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
}
func NewDescribeCCRuleRequest ¶
func NewDescribeCCRuleRequest() (request *DescribeCCRuleRequest)
func (*DescribeCCRuleRequest) FromJsonString ¶
func (r *DescribeCCRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCCRuleRequest) ToJsonString ¶
func (r *DescribeCCRuleRequest) ToJsonString() string
type DescribeCCRuleRequestParams ¶
type DescribeCCRuleRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Page number
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Number of pages
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Sort parameters
Sort *string `json:"Sort,omitnil,omitempty" name:"Sort"`
// clb-waf or sparta-waf
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Filter criteria.
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
}
Predefined struct for user
type DescribeCCRuleResponse ¶
type DescribeCCRuleResponse struct {
*tchttp.BaseResponse
Response *DescribeCCRuleResponseParams `json:"Response"`
}
func NewDescribeCCRuleResponse ¶
func NewDescribeCCRuleResponse() (response *DescribeCCRuleResponse)
func (*DescribeCCRuleResponse) FromJsonString ¶
func (r *DescribeCCRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCCRuleResponse) ToJsonString ¶
func (r *DescribeCCRuleResponse) ToJsonString() string
type DescribeCCRuleResponseParams ¶
type DescribeCCRuleResponseParams struct {
// Result
// Note: This field may return null, indicating that no valid values can be obtained.
Data *CCRuleData `json:"Data,omitnil,omitempty" name:"Data"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeCertificateVerifyResultRequest ¶
type DescribeCertificateVerifyResultRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Certificate type. 0: Do not check international standard certificates; 1: The certificate is a self-owned certificate; 2: The certificate is a managed certificate.
CertType *int64 `json:"CertType,omitnil,omitempty" name:"CertType"`
// When CertType is 1, this parameter is required, indicating the self-owned certificate chain
Certificate *string `json:"Certificate,omitnil,omitempty" name:"Certificate"`
// When CertType is 2, this parameter must be filled, indicating the certificate ID hosted on Tencent Cloud's SSL platform
CertID *string `json:"CertID,omitnil,omitempty" name:"CertID"`
// When CertType=1, this parameter is required, indicating the private key of the self-owned certificate.
PrivateKey *string `json:"PrivateKey,omitnil,omitempty" name:"PrivateKey"`
// SM certificate type. 0: Do not check SM certificates; 1: The certificate is a self-owned SM certificate; 2: The certificate is a managed SM certificate.
GmCertType *int64 `json:"GmCertType,omitnil,omitempty" name:"GmCertType"`
// When GmCertType is 1, this parameter needs to be set, indicating the certificate chain of the self-owned SM certificate.
GmCert *string `json:"GmCert,omitnil,omitempty" name:"GmCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the self-owned SM certificate.
GmPrivateKey *string `json:"GmPrivateKey,omitnil,omitempty" name:"GmPrivateKey"`
// When GmCertType is 1, this parameter needs to be set, indicating the encryption certificate of the self-owned SM certificate.
GmEncCert *string `json:"GmEncCert,omitnil,omitempty" name:"GmEncCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the encryption certificate for the self-owned SM certificate.
GmEncPrivateKey *string `json:"GmEncPrivateKey,omitnil,omitempty" name:"GmEncPrivateKey"`
// When GmCertType is 2, this parameter needs to be set, indicating the ID of the certificate managed by the Tencent Cloud SSL platform.
GmSSLId *string `json:"GmSSLId,omitnil,omitempty" name:"GmSSLId"`
}
func NewDescribeCertificateVerifyResultRequest ¶
func NewDescribeCertificateVerifyResultRequest() (request *DescribeCertificateVerifyResultRequest)
func (*DescribeCertificateVerifyResultRequest) FromJsonString ¶
func (r *DescribeCertificateVerifyResultRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCertificateVerifyResultRequest) ToJsonString ¶
func (r *DescribeCertificateVerifyResultRequest) ToJsonString() string
type DescribeCertificateVerifyResultRequestParams ¶
type DescribeCertificateVerifyResultRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Certificate type. 0: Do not check international standard certificates; 1: The certificate is a self-owned certificate; 2: The certificate is a managed certificate.
CertType *int64 `json:"CertType,omitnil,omitempty" name:"CertType"`
// When CertType is 1, this parameter is required, indicating the self-owned certificate chain
Certificate *string `json:"Certificate,omitnil,omitempty" name:"Certificate"`
// When CertType is 2, this parameter must be filled, indicating the certificate ID hosted on Tencent Cloud's SSL platform
CertID *string `json:"CertID,omitnil,omitempty" name:"CertID"`
// When CertType=1, this parameter is required, indicating the private key of the self-owned certificate.
PrivateKey *string `json:"PrivateKey,omitnil,omitempty" name:"PrivateKey"`
// SM certificate type. 0: Do not check SM certificates; 1: The certificate is a self-owned SM certificate; 2: The certificate is a managed SM certificate.
GmCertType *int64 `json:"GmCertType,omitnil,omitempty" name:"GmCertType"`
// When GmCertType is 1, this parameter needs to be set, indicating the certificate chain of the self-owned SM certificate.
GmCert *string `json:"GmCert,omitnil,omitempty" name:"GmCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the self-owned SM certificate.
GmPrivateKey *string `json:"GmPrivateKey,omitnil,omitempty" name:"GmPrivateKey"`
// When GmCertType is 1, this parameter needs to be set, indicating the encryption certificate of the self-owned SM certificate.
GmEncCert *string `json:"GmEncCert,omitnil,omitempty" name:"GmEncCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the encryption certificate for the self-owned SM certificate.
GmEncPrivateKey *string `json:"GmEncPrivateKey,omitnil,omitempty" name:"GmEncPrivateKey"`
// When GmCertType is 2, this parameter needs to be set, indicating the ID of the certificate managed by the Tencent Cloud SSL platform.
GmSSLId *string `json:"GmSSLId,omitnil,omitempty" name:"GmSSLId"`
}
Predefined struct for user
type DescribeCertificateVerifyResultResponse ¶
type DescribeCertificateVerifyResultResponse struct {
*tchttp.BaseResponse
Response *DescribeCertificateVerifyResultResponseParams `json:"Response"`
}
func NewDescribeCertificateVerifyResultResponse ¶
func NewDescribeCertificateVerifyResultResponse() (response *DescribeCertificateVerifyResultResponse)
func (*DescribeCertificateVerifyResultResponse) FromJsonString ¶
func (r *DescribeCertificateVerifyResultResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCertificateVerifyResultResponse) ToJsonString ¶
func (r *DescribeCertificateVerifyResultResponse) ToJsonString() string
type DescribeCertificateVerifyResultResponseParams ¶
type DescribeCertificateVerifyResultResponseParams struct {
// Status code
// 0: normal certificate
// 310: abnormal certificate
// 311: certificate expired
// 312: certificate about to expire
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Error details
Detail []*string `json:"Detail,omitnil,omitempty" name:"Detail"`
// Expiration time
NotAfter *string `json:"NotAfter,omitnil,omitempty" name:"NotAfter"`
// Whether the certificate is changed
// 0: not changed
// 1: changed
// Note: This field may return null, indicating that no valid values can be obtained.
Changed *int64 `json:"Changed,omitnil,omitempty" name:"Changed"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeCiphersDetailRequest ¶
type DescribeCiphersDetailRequest struct {
*tchttp.BaseRequest
}
func NewDescribeCiphersDetailRequest ¶
func NewDescribeCiphersDetailRequest() (request *DescribeCiphersDetailRequest)
func (*DescribeCiphersDetailRequest) FromJsonString ¶
func (r *DescribeCiphersDetailRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCiphersDetailRequest) ToJsonString ¶
func (r *DescribeCiphersDetailRequest) ToJsonString() string
type DescribeCiphersDetailRequestParams ¶
type DescribeCiphersDetailRequestParams struct {
}
Predefined struct for user
type DescribeCiphersDetailResponse ¶
type DescribeCiphersDetailResponse struct {
*tchttp.BaseResponse
Response *DescribeCiphersDetailResponseParams `json:"Response"`
}
func NewDescribeCiphersDetailResponse ¶
func NewDescribeCiphersDetailResponse() (response *DescribeCiphersDetailResponse)
func (*DescribeCiphersDetailResponse) FromJsonString ¶
func (r *DescribeCiphersDetailResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCiphersDetailResponse) ToJsonString ¶
func (r *DescribeCiphersDetailResponse) ToJsonString() string
type DescribeCiphersDetailResponseParams ¶
type DescribeCiphersDetailResponseParams struct {
// Cipher suite information
//
// Note: This field may return null, indicating that no valid values can be obtained.
Ciphers []*TLSCiphers `json:"Ciphers,omitnil,omitempty" name:"Ciphers"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeCustomRuleListRequest ¶
type DescribeCustomRuleListRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Offset
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter array. A name can be one of the following: RuleID, RuleName, and Match.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
// asc or desc
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// exp_ts or mod_ts
By *string `json:"By,omitnil,omitempty" name:"By"`
// Domain name list to query. This parameter is not required on the access control page.
DomainList []*string `json:"DomainList,omitnil,omitempty" name:"DomainList"`
}
func NewDescribeCustomRuleListRequest ¶
func NewDescribeCustomRuleListRequest() (request *DescribeCustomRuleListRequest)
func (*DescribeCustomRuleListRequest) FromJsonString ¶
func (r *DescribeCustomRuleListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomRuleListRequest) ToJsonString ¶
func (r *DescribeCustomRuleListRequest) ToJsonString() string
type DescribeCustomRuleListRequestParams ¶
type DescribeCustomRuleListRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Offset
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter array. A name can be one of the following: RuleID, RuleName, and Match.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
// asc or desc
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// exp_ts or mod_ts
By *string `json:"By,omitnil,omitempty" name:"By"`
// Domain name list to query. This parameter is not required on the access control page.
DomainList []*string `json:"DomainList,omitnil,omitempty" name:"DomainList"`
}
Predefined struct for user
type DescribeCustomRuleListResponse ¶
type DescribeCustomRuleListResponse struct {
*tchttp.BaseResponse
Response *DescribeCustomRuleListResponseParams `json:"Response"`
}
func NewDescribeCustomRuleListResponse ¶
func NewDescribeCustomRuleListResponse() (response *DescribeCustomRuleListResponse)
func (*DescribeCustomRuleListResponse) FromJsonString ¶
func (r *DescribeCustomRuleListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomRuleListResponse) ToJsonString ¶
func (r *DescribeCustomRuleListResponse) ToJsonString() string
type DescribeCustomRuleListResponseParams ¶
type DescribeCustomRuleListResponseParams struct {
// Rule details
RuleList []*DescribeCustomRulesRspRuleListItem `json:"RuleList,omitnil,omitempty" name:"RuleList"`
// Number of rules
TotalCount *string `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeCustomRulesRspRuleListItem ¶
type DescribeCustomRulesRspRuleListItem struct {
// Action type
ActionType *string `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Skipped Policy
Bypass *string `json:"Bypass,omitnil,omitempty" name:"Bypass"`
// Creation time
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// Expiration time
ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// Policy name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// URL for redirection
Redirect *string `json:"Redirect,omitnil,omitempty" name:"Redirect"`
// Policy ID
RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Priority
SortId *string `json:"SortId,omitnil,omitempty" name:"SortId"`
// Status
Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// Policy details
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// Event ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
EventId *string `json:"EventId,omitnil,omitempty" name:"EventId"`
// Modification time
//
// Note: This field may return null, indicating that no valid values can be obtained.
ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"`
// Effective status
// Note: This field may return null, indicating that no valid values can be obtained.
ValidStatus *int64 `json:"ValidStatus,omitnil,omitempty" name:"ValidStatus"`
// Source
// Note: This field may return null, indicating that no valid values can be obtained.
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Scheduled task type
// Note: This field may return null, indicating that no valid values can be obtained.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Scheduled task configuration
// Note: This field may return null, indicating that no valid values can be obtained.
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
// Periodic task granularity
// Note: This field may return null, indicating that no valid values can be obtained.
CronType *string `json:"CronType,omitnil,omitempty" name:"CronType"`
// Custom tag in risk control rules, indicating whether a rule is built-in or user-defined
// Note: This field may return null, indicating that no valid values can be obtained.
Label *string `json:"Label,omitnil,omitempty" name:"Label"`
// ID of the blocked page
// Note: This field may return null, indicating that no valid values can be obtained.
PageId *string `json:"PageId,omitnil,omitempty" name:"PageId"`
// Domain name
//
// Note: This field may return null, indicating that no valid values can be obtained.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
type DescribeCustomWhiteRuleRequest ¶
type DescribeCustomWhiteRuleRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Offset.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter array. A name can be one of the following: RuleID, RuleName, and Match.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
// asc or desc
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// exp_ts or mod_ts
By *string `json:"By,omitnil,omitempty" name:"By"`
}
func NewDescribeCustomWhiteRuleRequest ¶
func NewDescribeCustomWhiteRuleRequest() (request *DescribeCustomWhiteRuleRequest)
func (*DescribeCustomWhiteRuleRequest) FromJsonString ¶
func (r *DescribeCustomWhiteRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomWhiteRuleRequest) ToJsonString ¶
func (r *DescribeCustomWhiteRuleRequest) ToJsonString() string
type DescribeCustomWhiteRuleRequestParams ¶
type DescribeCustomWhiteRuleRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Offset.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter array. A name can be one of the following: RuleID, RuleName, and Match.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
// asc or desc
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// exp_ts or mod_ts
By *string `json:"By,omitnil,omitempty" name:"By"`
}
Predefined struct for user
type DescribeCustomWhiteRuleResponse ¶
type DescribeCustomWhiteRuleResponse struct {
*tchttp.BaseResponse
Response *DescribeCustomWhiteRuleResponseParams `json:"Response"`
}
func NewDescribeCustomWhiteRuleResponse ¶
func NewDescribeCustomWhiteRuleResponse() (response *DescribeCustomWhiteRuleResponse)
func (*DescribeCustomWhiteRuleResponse) FromJsonString ¶
func (r *DescribeCustomWhiteRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomWhiteRuleResponse) ToJsonString ¶
func (r *DescribeCustomWhiteRuleResponse) ToJsonString() string
type DescribeCustomWhiteRuleResponseParams ¶
type DescribeCustomWhiteRuleResponseParams struct {
// Rule details
RuleList []*DescribeCustomRulesRspRuleListItem `json:"RuleList,omitnil,omitempty" name:"RuleList"`
// Number of rules
TotalCount *string `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeDomainCountInfoRequest ¶
type DescribeDomainCountInfoRequest struct {
*tchttp.BaseRequest
}
func NewDescribeDomainCountInfoRequest ¶
func NewDescribeDomainCountInfoRequest() (request *DescribeDomainCountInfoRequest)
func (*DescribeDomainCountInfoRequest) FromJsonString ¶
func (r *DescribeDomainCountInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainCountInfoRequest) ToJsonString ¶
func (r *DescribeDomainCountInfoRequest) ToJsonString() string
type DescribeDomainCountInfoRequestParams ¶
type DescribeDomainCountInfoRequestParams struct {
}
Predefined struct for user
type DescribeDomainCountInfoResponse ¶
type DescribeDomainCountInfoResponse struct {
*tchttp.BaseResponse
Response *DescribeDomainCountInfoResponseParams `json:"Response"`
}
func NewDescribeDomainCountInfoResponse ¶
func NewDescribeDomainCountInfoResponse() (response *DescribeDomainCountInfoResponse)
func (*DescribeDomainCountInfoResponse) FromJsonString ¶
func (r *DescribeDomainCountInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainCountInfoResponse) ToJsonString ¶
func (r *DescribeDomainCountInfoResponse) ToJsonString() string
type DescribeDomainCountInfoResponseParams ¶
type DescribeDomainCountInfoResponseParams struct {
// Total number of domain names
AllDomain *uint64 `json:"AllDomain,omitnil,omitempty" name:"AllDomain"`
// Last discovery time
UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
// Total number of connected domains
WafDomainCount *uint64 `json:"WafDomainCount,omitnil,omitempty" name:"WafDomainCount"`
// Remaining quota
LeftDomainCount *uint64 `json:"LeftDomainCount,omitnil,omitempty" name:"LeftDomainCount"`
// Number of protected domain names
OpenWafDomain *uint64 `json:"OpenWafDomain,omitnil,omitempty" name:"OpenWafDomain"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeDomainDetailsClbRequest ¶
type DescribeDomainDetailsClbRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
func NewDescribeDomainDetailsClbRequest ¶
func NewDescribeDomainDetailsClbRequest() (request *DescribeDomainDetailsClbRequest)
func (*DescribeDomainDetailsClbRequest) FromJsonString ¶
func (r *DescribeDomainDetailsClbRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainDetailsClbRequest) ToJsonString ¶
func (r *DescribeDomainDetailsClbRequest) ToJsonString() string
type DescribeDomainDetailsClbRequestParams ¶
type DescribeDomainDetailsClbRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
Predefined struct for user
type DescribeDomainDetailsClbResponse ¶
type DescribeDomainDetailsClbResponse struct {
*tchttp.BaseResponse
Response *DescribeDomainDetailsClbResponseParams `json:"Response"`
}
func NewDescribeDomainDetailsClbResponse ¶
func NewDescribeDomainDetailsClbResponse() (response *DescribeDomainDetailsClbResponse)
func (*DescribeDomainDetailsClbResponse) FromJsonString ¶
func (r *DescribeDomainDetailsClbResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainDetailsClbResponse) ToJsonString ¶
func (r *DescribeDomainDetailsClbResponse) ToJsonString() string
type DescribeDomainDetailsClbResponseParams ¶
type DescribeDomainDetailsClbResponseParams struct {
// CLB domain details
DomainsClbPartInfo *ClbDomainsInfo `json:"DomainsClbPartInfo,omitnil,omitempty" name:"DomainsClbPartInfo"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeDomainDetailsSaasRequest ¶
type DescribeDomainDetailsSaasRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
func NewDescribeDomainDetailsSaasRequest ¶
func NewDescribeDomainDetailsSaasRequest() (request *DescribeDomainDetailsSaasRequest)
func (*DescribeDomainDetailsSaasRequest) FromJsonString ¶
func (r *DescribeDomainDetailsSaasRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainDetailsSaasRequest) ToJsonString ¶
func (r *DescribeDomainDetailsSaasRequest) ToJsonString() string
type DescribeDomainDetailsSaasRequestParams ¶
type DescribeDomainDetailsSaasRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
Predefined struct for user
type DescribeDomainDetailsSaasResponse ¶
type DescribeDomainDetailsSaasResponse struct {
*tchttp.BaseResponse
Response *DescribeDomainDetailsSaasResponseParams `json:"Response"`
}
func NewDescribeDomainDetailsSaasResponse ¶
func NewDescribeDomainDetailsSaasResponse() (response *DescribeDomainDetailsSaasResponse)
func (*DescribeDomainDetailsSaasResponse) FromJsonString ¶
func (r *DescribeDomainDetailsSaasResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainDetailsSaasResponse) ToJsonString ¶
func (r *DescribeDomainDetailsSaasResponse) ToJsonString() string
type DescribeDomainDetailsSaasResponseParams ¶
type DescribeDomainDetailsSaasResponseParams struct {
// Domain name details
DomainsPartInfo *DomainsPartInfo `json:"DomainsPartInfo,omitnil,omitempty" name:"DomainsPartInfo"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeDomainVerifyResultRequest ¶
type DescribeDomainVerifyResultRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
func NewDescribeDomainVerifyResultRequest ¶
func NewDescribeDomainVerifyResultRequest() (request *DescribeDomainVerifyResultRequest)
func (*DescribeDomainVerifyResultRequest) FromJsonString ¶
func (r *DescribeDomainVerifyResultRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainVerifyResultRequest) ToJsonString ¶
func (r *DescribeDomainVerifyResultRequest) ToJsonString() string
type DescribeDomainVerifyResultRequestParams ¶
type DescribeDomainVerifyResultRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
Predefined struct for user
type DescribeDomainVerifyResultResponse ¶
type DescribeDomainVerifyResultResponse struct {
*tchttp.BaseResponse
Response *DescribeDomainVerifyResultResponseParams `json:"Response"`
}
func NewDescribeDomainVerifyResultResponse ¶
func NewDescribeDomainVerifyResultResponse() (response *DescribeDomainVerifyResultResponse)
func (*DescribeDomainVerifyResultResponse) FromJsonString ¶
func (r *DescribeDomainVerifyResultResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainVerifyResultResponse) ToJsonString ¶
func (r *DescribeDomainVerifyResultResponse) ToJsonString() string
type DescribeDomainVerifyResultResponseParams ¶
type DescribeDomainVerifyResultResponseParams struct {
// Result description: if possible, return an empty string
Msg *string `json:"Msg,omitnil,omitempty" name:"Msg"`
// Inspection status. 0 indicates that it can be added; greater than 0 indicates that it cannot be added.
VerifyCode *int64 `json:"VerifyCode,omitnil,omitempty" name:"VerifyCode"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeDomainsRequest ¶
type DescribeDomainsRequest struct {
*tchttp.BaseRequest
// Paging offset, a multiple of limit. The minimum value is 0, and the maximum value is Total/Limit rounded up.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Number of returned domains
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter array. The filter fields are as follows. Edition: instance version, which can be set to sparta-waf or clb-waf; Domain: domain name; DomainId: domain name ID; InstanceName: instance name; InstanceId: instance ID; FlowMode: traffic access mode, which supports only CLB WAF; FlowCheckMode: traffic inspection mode, which supports only CLB WAF; ClsStatus: log switch; Status: WAF switch; BotStatus: BOT switch; ApiStatus: API security switch; Engine: engine mode; UpstreamIP: origin server IP address, which supports only SaaS WAF; UpstreamDomain: origin server domain name, which supports only SaaS WAF; DomainState: domain name status, which supports only SaaS WAF; SgState: security group status, which supports only SaaS WAF; Label: group tag, which supports the filtering of only one tag at a time.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func NewDescribeDomainsRequest ¶
func NewDescribeDomainsRequest() (request *DescribeDomainsRequest)
func (*DescribeDomainsRequest) FromJsonString ¶
func (r *DescribeDomainsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainsRequest) ToJsonString ¶
func (r *DescribeDomainsRequest) ToJsonString() string
type DescribeDomainsRequestParams ¶
type DescribeDomainsRequestParams struct {
// Paging offset, a multiple of limit. The minimum value is 0, and the maximum value is Total/Limit rounded up.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Number of returned domains
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter array. The filter fields are as follows. Edition: instance version, which can be set to sparta-waf or clb-waf; Domain: domain name; DomainId: domain name ID; InstanceName: instance name; InstanceId: instance ID; FlowMode: traffic access mode, which supports only CLB WAF; FlowCheckMode: traffic inspection mode, which supports only CLB WAF; ClsStatus: log switch; Status: WAF switch; BotStatus: BOT switch; ApiStatus: API security switch; Engine: engine mode; UpstreamIP: origin server IP address, which supports only SaaS WAF; UpstreamDomain: origin server domain name, which supports only SaaS WAF; DomainState: domain name status, which supports only SaaS WAF; SgState: security group status, which supports only SaaS WAF; Label: group tag, which supports the filtering of only one tag at a time.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
}
Predefined struct for user
type DescribeDomainsResponse ¶
type DescribeDomainsResponse struct {
*tchttp.BaseResponse
Response *DescribeDomainsResponseParams `json:"Response"`
}
func NewDescribeDomainsResponse ¶
func NewDescribeDomainsResponse() (response *DescribeDomainsResponse)
func (*DescribeDomainsResponse) FromJsonString ¶
func (r *DescribeDomainsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainsResponse) ToJsonString ¶
func (r *DescribeDomainsResponse) ToJsonString() string
type DescribeDomainsResponseParams ¶
type DescribeDomainsResponseParams struct {
// Total number
Total *uint64 `json:"Total,omitnil,omitempty" name:"Total"`
// Domain list
//
// Note: This field may return null, indicating that no valid values can be obtained.
Domains []*DomainInfo `json:"Domains,omitnil,omitempty" name:"Domains"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeFindDomainListRequest ¶
type DescribeFindDomainListRequest struct {
*tchttp.BaseRequest
// Pagination
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity per page
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter criteria.
Key *string `json:"Key,omitnil,omitempty" name:"Key"`
// Whether to access WAF
IsWafDomain *string `json:"IsWafDomain,omitnil,omitempty" name:"IsWafDomain"`
// Sort parameters
By *string `json:"By,omitnil,omitempty" name:"By"`
// Sorting method
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
}
func NewDescribeFindDomainListRequest ¶
func NewDescribeFindDomainListRequest() (request *DescribeFindDomainListRequest)
func (*DescribeFindDomainListRequest) FromJsonString ¶
func (r *DescribeFindDomainListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeFindDomainListRequest) ToJsonString ¶
func (r *DescribeFindDomainListRequest) ToJsonString() string
type DescribeFindDomainListRequestParams ¶
type DescribeFindDomainListRequestParams struct {
// Pagination
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity per page
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter criteria.
Key *string `json:"Key,omitnil,omitempty" name:"Key"`
// Whether to access WAF
IsWafDomain *string `json:"IsWafDomain,omitnil,omitempty" name:"IsWafDomain"`
// Sort parameters
By *string `json:"By,omitnil,omitempty" name:"By"`
// Sorting method
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
}
Predefined struct for user
type DescribeFindDomainListResponse ¶
type DescribeFindDomainListResponse struct {
*tchttp.BaseResponse
Response *DescribeFindDomainListResponseParams `json:"Response"`
}
func NewDescribeFindDomainListResponse ¶
func NewDescribeFindDomainListResponse() (response *DescribeFindDomainListResponse)
func (*DescribeFindDomainListResponse) FromJsonString ¶
func (r *DescribeFindDomainListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeFindDomainListResponse) ToJsonString ¶
func (r *DescribeFindDomainListResponse) ToJsonString() string
type DescribeFindDomainListResponseParams ¶
type DescribeFindDomainListResponseParams struct {
// Total number of domain names
Total *uint64 `json:"Total,omitnil,omitempty" name:"Total"`
// Domain information list
List []*FindAllDomainDetail `json:"List,omitnil,omitempty" name:"List"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeHistogramRequest ¶
type DescribeHistogramRequest struct {
*tchttp.BaseRequest
// Start time
FromTime *string `json:"FromTime,omitnil,omitempty" name:"FromTime"`
// End time
ToTime *string `json:"ToTime,omitnil,omitempty" name:"ToTime"`
// Clustering fields. ip: IP aggregation; art: response time aggregation; url: URL aggregation; local: city aggregation after IP conversion; qps: second-level peak request count aggregation; up: peak upstream bandwidth aggregation; down: peak downstream bandwidth aggregation
QueryField *string `json:"QueryField,omitnil,omitempty" name:"QueryField"`
// Condition, access for access logs, attack for attack logs
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Compatible host, gradually phasing out Host field
Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// Only two values are valid: sparta-waf, clb-waf. No filtering if not input.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// WAF instance ID. No filter will be carried out if it is not input.
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Domain filtering, not applied if not input, used to replace Host field and phase out Host
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
func NewDescribeHistogramRequest ¶
func NewDescribeHistogramRequest() (request *DescribeHistogramRequest)
func (*DescribeHistogramRequest) FromJsonString ¶
func (r *DescribeHistogramRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeHistogramRequest) ToJsonString ¶
func (r *DescribeHistogramRequest) ToJsonString() string
type DescribeHistogramRequestParams ¶
type DescribeHistogramRequestParams struct {
// Start time
FromTime *string `json:"FromTime,omitnil,omitempty" name:"FromTime"`
// End time
ToTime *string `json:"ToTime,omitnil,omitempty" name:"ToTime"`
// Clustering fields. ip: IP aggregation; art: response time aggregation; url: URL aggregation; local: city aggregation after IP conversion; qps: second-level peak request count aggregation; up: peak upstream bandwidth aggregation; down: peak downstream bandwidth aggregation
QueryField *string `json:"QueryField,omitnil,omitempty" name:"QueryField"`
// Condition, access for access logs, attack for attack logs
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Compatible host, gradually phasing out Host field
Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// Only two values are valid: sparta-waf, clb-waf. No filtering if not input.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// WAF instance ID. No filter will be carried out if it is not input.
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Domain filtering, not applied if not input, used to replace Host field and phase out Host
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
Predefined struct for user
type DescribeHistogramResponse ¶
type DescribeHistogramResponse struct {
*tchttp.BaseResponse
Response *DescribeHistogramResponseParams `json:"Response"`
}
func NewDescribeHistogramResponse ¶
func NewDescribeHistogramResponse() (response *DescribeHistogramResponse)
func (*DescribeHistogramResponse) FromJsonString ¶
func (r *DescribeHistogramResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeHistogramResponse) ToJsonString ¶
func (r *DescribeHistogramResponse) ToJsonString() string
type DescribeHistogramResponseParams ¶
type DescribeHistogramResponseParams struct {
// Statistical data
Histogram []*string `json:"Histogram,omitnil,omitempty" name:"Histogram"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeHostLimitRequest ¶
type DescribeHostLimitRequest struct {
*tchttp.BaseRequest
// Added domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Traffic source
AlbType *string `json:"AlbType,omitnil,omitempty" name:"AlbType"`
}
func NewDescribeHostLimitRequest ¶
func NewDescribeHostLimitRequest() (request *DescribeHostLimitRequest)
func (*DescribeHostLimitRequest) FromJsonString ¶
func (r *DescribeHostLimitRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeHostLimitRequest) ToJsonString ¶
func (r *DescribeHostLimitRequest) ToJsonString() string
type DescribeHostLimitRequestParams ¶
type DescribeHostLimitRequestParams struct {
// Added domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Traffic source
AlbType *string `json:"AlbType,omitnil,omitempty" name:"AlbType"`
}
Predefined struct for user
type DescribeHostLimitResponse ¶
type DescribeHostLimitResponse struct {
*tchttp.BaseResponse
Response *DescribeHostLimitResponseParams `json:"Response"`
}
func NewDescribeHostLimitResponse ¶
func NewDescribeHostLimitResponse() (response *DescribeHostLimitResponse)
func (*DescribeHostLimitResponse) FromJsonString ¶
func (r *DescribeHostLimitResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeHostLimitResponse) ToJsonString ¶
func (r *DescribeHostLimitResponse) ToJsonString() string
type DescribeHostLimitResponseParams ¶
type DescribeHostLimitResponseParams struct {
// Successfully returned status code
//
// Note: This field may return null, indicating that no valid values can be obtained.
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeHostRequest ¶
type DescribeHostRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
func NewDescribeHostRequest ¶
func NewDescribeHostRequest() (request *DescribeHostRequest)
func (*DescribeHostRequest) FromJsonString ¶
func (r *DescribeHostRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeHostRequest) ToJsonString ¶
func (r *DescribeHostRequest) ToJsonString() string
type DescribeHostRequestParams ¶
type DescribeHostRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
Predefined struct for user
type DescribeHostResponse ¶
type DescribeHostResponse struct {
*tchttp.BaseResponse
Response *DescribeHostResponseParams `json:"Response"`
}
func NewDescribeHostResponse ¶
func NewDescribeHostResponse() (response *DescribeHostResponse)
func (*DescribeHostResponse) FromJsonString ¶
func (r *DescribeHostResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeHostResponse) ToJsonString ¶
func (r *DescribeHostResponse) ToJsonString() string
type DescribeHostResponseParams ¶
type DescribeHostResponseParams struct {
// Domain name details
Host *HostRecord `json:"Host,omitnil,omitempty" name:"Host"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeHostsRequest ¶
type DescribeHostsRequest struct {
*tchttp.BaseRequest
// Protection domain. If a specific protection domain is to be queried, this parameter should be input. It requires an accurate domain and does not support fuzzy search.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Protection domain ID. If it is to query a specific protection domain, this parameter is input, requiring the accurate domain ID. This parameter does not support fuzzy search.
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Searching criteria, fuzzy search on domain based on this parameter
Search *string `json:"Search,omitnil,omitempty" name:"Search"`
// Complex search criteria
Item *SearchItem `json:"Item,omitnil,omitempty" name:"Item"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
func NewDescribeHostsRequest ¶
func NewDescribeHostsRequest() (request *DescribeHostsRequest)
func (*DescribeHostsRequest) FromJsonString ¶
func (r *DescribeHostsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeHostsRequest) ToJsonString ¶
func (r *DescribeHostsRequest) ToJsonString() string
type DescribeHostsRequestParams ¶
type DescribeHostsRequestParams struct {
// Protection domain. If a specific protection domain is to be queried, this parameter should be input. It requires an accurate domain and does not support fuzzy search.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Protection domain ID. If it is to query a specific protection domain, this parameter is input, requiring the accurate domain ID. This parameter does not support fuzzy search.
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Searching criteria, fuzzy search on domain based on this parameter
Search *string `json:"Search,omitnil,omitempty" name:"Search"`
// Complex search criteria
Item *SearchItem `json:"Item,omitnil,omitempty" name:"Item"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
Predefined struct for user
type DescribeHostsResponse ¶
type DescribeHostsResponse struct {
*tchttp.BaseResponse
Response *DescribeHostsResponseParams `json:"Response"`
}
func NewDescribeHostsResponse ¶
func NewDescribeHostsResponse() (response *DescribeHostsResponse)
func (*DescribeHostsResponse) FromJsonString ¶
func (r *DescribeHostsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeHostsResponse) ToJsonString ¶
func (r *DescribeHostsResponse) ToJsonString() string
type DescribeHostsResponseParams ¶
type DescribeHostsResponseParams struct {
// Length of a protection domain list
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// List of protection domains
//
// Note: This field may return null, indicating that no valid values can be obtained.
HostList []*HostRecord `json:"HostList,omitnil,omitempty" name:"HostList"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeInstancesRequest ¶
type DescribeInstancesRequest struct {
*tchttp.BaseRequest
// Offset.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter array
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
// Deletion delay flag.
FreeDelayFlag *uint64 `json:"FreeDelayFlag,omitnil,omitempty" name:"FreeDelayFlag"`
}
func NewDescribeInstancesRequest ¶
func NewDescribeInstancesRequest() (request *DescribeInstancesRequest)
func (*DescribeInstancesRequest) FromJsonString ¶
func (r *DescribeInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesRequest) ToJsonString ¶
func (r *DescribeInstancesRequest) ToJsonString() string
type DescribeInstancesRequestParams ¶
type DescribeInstancesRequestParams struct {
// Offset.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter array
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
// Deletion delay flag.
FreeDelayFlag *uint64 `json:"FreeDelayFlag,omitnil,omitempty" name:"FreeDelayFlag"`
}
Predefined struct for user
type DescribeInstancesResponse ¶
type DescribeInstancesResponse struct {
*tchttp.BaseResponse
Response *DescribeInstancesResponseParams `json:"Response"`
}
func NewDescribeInstancesResponse ¶
func NewDescribeInstancesResponse() (response *DescribeInstancesResponse)
func (*DescribeInstancesResponse) FromJsonString ¶
func (r *DescribeInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesResponse) ToJsonString ¶
func (r *DescribeInstancesResponse) ToJsonString() string
type DescribeInstancesResponseParams ¶
type DescribeInstancesResponseParams struct {
// Total number
Total *uint64 `json:"Total,omitnil,omitempty" name:"Total"`
// Instance list
Instances []*InstanceInfo `json:"Instances,omitnil,omitempty" name:"Instances"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeIpAccessControlRequest ¶
type DescribeIpAccessControlRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Count identifier
Count *uint64 `json:"Count,omitnil,omitempty" name:"Count"`
// Action. 40 for querying the allowlist, 42 for querying the blocklist
ActionType *uint64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Timestamp of the minimum valid time
VtsMin *uint64 `json:"VtsMin,omitnil,omitempty" name:"VtsMin"`
// Timestamp of the maximum valid time
VtsMax *uint64 `json:"VtsMax,omitnil,omitempty" name:"VtsMax"`
// Timestamp for minimum creation time
CtsMin *uint64 `json:"CtsMin,omitnil,omitempty" name:"CtsMin"`
// Timestamp for Maximum Creation Time
CtsMax *uint64 `json:"CtsMax,omitnil,omitempty" name:"CtsMax"`
// Paging offset, a multiple of limit. The minimum value is 0, and the maximum value is Total/Limit rounded up.
OffSet *uint64 `json:"OffSet,omitnil,omitempty" name:"OffSet"`
// Number of records returned per page, which is 20 by default.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Source.
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Sort parameters
Sort *string `json:"Sort,omitnil,omitempty" name:"Sort"`
// IP
Ip *string `json:"Ip,omitnil,omitempty" name:"Ip"`
// Effective status.
ValidStatus *int64 `json:"ValidStatus,omitnil,omitempty" name:"ValidStatus"`
// Timestamp of the minimum valid time
ValidTimeStampMin *string `json:"ValidTimeStampMin,omitnil,omitempty" name:"ValidTimeStampMin"`
// Timestamp of the maximum valid time
ValidTimeStampMax *string `json:"ValidTimeStampMax,omitnil,omitempty" name:"ValidTimeStampMax"`
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Filter by scheduled task type. Valid values: 0, 1, 2, 3, 4.
TimerType *int64 `json:"TimerType,omitnil,omitempty" name:"TimerType"`
}
func NewDescribeIpAccessControlRequest ¶
func NewDescribeIpAccessControlRequest() (request *DescribeIpAccessControlRequest)
func (*DescribeIpAccessControlRequest) FromJsonString ¶
func (r *DescribeIpAccessControlRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeIpAccessControlRequest) ToJsonString ¶
func (r *DescribeIpAccessControlRequest) ToJsonString() string
type DescribeIpAccessControlRequestParams ¶
type DescribeIpAccessControlRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Count identifier
Count *uint64 `json:"Count,omitnil,omitempty" name:"Count"`
// Action. 40 for querying the allowlist, 42 for querying the blocklist
ActionType *uint64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Timestamp of the minimum valid time
//
// Deprecated: VtsMin is deprecated.
VtsMin *uint64 `json:"VtsMin,omitnil,omitempty" name:"VtsMin"`
// Timestamp of the maximum valid time
//
// Deprecated: VtsMax is deprecated.
VtsMax *uint64 `json:"VtsMax,omitnil,omitempty" name:"VtsMax"`
// Timestamp for minimum creation time
CtsMin *uint64 `json:"CtsMin,omitnil,omitempty" name:"CtsMin"`
// Timestamp for Maximum Creation Time
CtsMax *uint64 `json:"CtsMax,omitnil,omitempty" name:"CtsMax"`
// Paging offset, a multiple of limit. The minimum value is 0, and the maximum value is Total/Limit rounded up.
OffSet *uint64 `json:"OffSet,omitnil,omitempty" name:"OffSet"`
// Number of records returned per page, which is 20 by default.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Source.
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Sort parameters
Sort *string `json:"Sort,omitnil,omitempty" name:"Sort"`
// IP
Ip *string `json:"Ip,omitnil,omitempty" name:"Ip"`
// Effective status.
ValidStatus *int64 `json:"ValidStatus,omitnil,omitempty" name:"ValidStatus"`
// Timestamp of the minimum valid time
ValidTimeStampMin *string `json:"ValidTimeStampMin,omitnil,omitempty" name:"ValidTimeStampMin"`
// Timestamp of the maximum valid time
ValidTimeStampMax *string `json:"ValidTimeStampMax,omitnil,omitempty" name:"ValidTimeStampMax"`
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Filter by scheduled task type. Valid values: 0, 1, 2, 3, 4.
TimerType *int64 `json:"TimerType,omitnil,omitempty" name:"TimerType"`
}
Predefined struct for user
type DescribeIpAccessControlResponse ¶
type DescribeIpAccessControlResponse struct {
*tchttp.BaseResponse
Response *DescribeIpAccessControlResponseParams `json:"Response"`
}
func NewDescribeIpAccessControlResponse ¶
func NewDescribeIpAccessControlResponse() (response *DescribeIpAccessControlResponse)
func (*DescribeIpAccessControlResponse) FromJsonString ¶
func (r *DescribeIpAccessControlResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeIpAccessControlResponse) ToJsonString ¶
func (r *DescribeIpAccessControlResponse) ToJsonString() string
type DescribeIpAccessControlResponseParams ¶
type DescribeIpAccessControlResponseParams struct {
// Output.
// Note: This field may return null, indicating that no valid values can be obtained.
Data *IpAccessControlData `json:"Data,omitnil,omitempty" name:"Data"`
// Total number of IP addresses in the used IP allowlist/blocklist.
//
// Note: This field may return null, indicating that no valid values can be obtained.
UsedTotal *uint64 `json:"UsedTotal,omitnil,omitempty" name:"UsedTotal"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeModuleStatusRequest ¶
type DescribeModuleStatusRequest struct {
*tchttp.BaseRequest
// Domain to query status
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
func NewDescribeModuleStatusRequest ¶
func NewDescribeModuleStatusRequest() (request *DescribeModuleStatusRequest)
func (*DescribeModuleStatusRequest) FromJsonString ¶
func (r *DescribeModuleStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeModuleStatusRequest) ToJsonString ¶
func (r *DescribeModuleStatusRequest) ToJsonString() string
type DescribeModuleStatusRequestParams ¶
type DescribeModuleStatusRequestParams struct {
// Domain to query status
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
Predefined struct for user
type DescribeModuleStatusResponse ¶
type DescribeModuleStatusResponse struct {
*tchttp.BaseResponse
Response *DescribeModuleStatusResponseParams `json:"Response"`
}
func NewDescribeModuleStatusResponse ¶
func NewDescribeModuleStatusResponse() (response *DescribeModuleStatusResponse)
func (*DescribeModuleStatusResponse) FromJsonString ¶
func (r *DescribeModuleStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeModuleStatusResponse) ToJsonString ¶
func (r *DescribeModuleStatusResponse) ToJsonString() string
type DescribeModuleStatusResponseParams ¶
type DescribeModuleStatusResponseParams struct {
// Whether web security rules are enabled
WebSecurity *uint64 `json:"WebSecurity,omitnil,omitempty" name:"WebSecurity"`
// Whether access control rule is enabled
AccessControl *int64 `json:"AccessControl,omitnil,omitempty" name:"AccessControl"`
// Whether CC protection is enabled.
CcProtection *uint64 `json:"CcProtection,omitnil,omitempty" name:"CcProtection"`
// Whether web tamper-proof is enabled
AntiTamper *uint64 `json:"AntiTamper,omitnil,omitempty" name:"AntiTamper"`
// Whether information leakage prevention is enabled
AntiLeakage *uint64 `json:"AntiLeakage,omitnil,omitempty" name:"AntiLeakage"`
// Whether API security is enabled
ApiProtection *uint64 `json:"ApiProtection,omitnil,omitempty" name:"ApiProtection"`
// Traffic limiting module switch
RateLimit *uint64 `json:"RateLimit,omitnil,omitempty" name:"RateLimit"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeObjectsRequest ¶
type DescribeObjectsRequest struct {
*tchttp.BaseRequest
// Supported filters:
// ObjectId: CLB instance ID
// VIP: public IP address of the CLB instance
// InstanceId: WAF instance ID
// Domain: precise domain name
// Status: WAF protection switch status. 0: disabled; 1: enabled
// ClsStatus: WAF log switch. 0: disabled; 1: enabled
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func NewDescribeObjectsRequest ¶
func NewDescribeObjectsRequest() (request *DescribeObjectsRequest)
func (*DescribeObjectsRequest) FromJsonString ¶
func (r *DescribeObjectsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeObjectsRequest) ToJsonString ¶
func (r *DescribeObjectsRequest) ToJsonString() string
type DescribeObjectsRequestParams ¶
type DescribeObjectsRequestParams struct {
// Supported filters:
// ObjectId: CLB instance ID
// VIP: public IP address of the CLB instance
// InstanceId: WAF instance ID
// Domain: precise domain name
// Status: WAF protection switch status. 0: disabled; 1: enabled
// ClsStatus: WAF log switch. 0: disabled; 1: enabled
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
}
Predefined struct for user
type DescribeObjectsResponse ¶
type DescribeObjectsResponse struct {
*tchttp.BaseResponse
Response *DescribeObjectsResponseParams `json:"Response"`
}
func NewDescribeObjectsResponse ¶
func NewDescribeObjectsResponse() (response *DescribeObjectsResponse)
func (*DescribeObjectsResponse) FromJsonString ¶
func (r *DescribeObjectsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeObjectsResponse) ToJsonString ¶
func (r *DescribeObjectsResponse) ToJsonString() string
type DescribeObjectsResponseParams ¶
type DescribeObjectsResponseParams struct {
// Object list
ClbObjects []*ClbObject `json:"ClbObjects,omitnil,omitempty" name:"ClbObjects"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeOwaspRuleTypesRequest ¶
type DescribeOwaspRuleTypesRequest struct {
*tchttp.BaseRequest
// Domain names to be queried
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Page number, defaults to 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity per page. defaults to 10.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter conditions. supports rule ID, CVE ID, and description.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func NewDescribeOwaspRuleTypesRequest ¶
func NewDescribeOwaspRuleTypesRequest() (request *DescribeOwaspRuleTypesRequest)
func (*DescribeOwaspRuleTypesRequest) FromJsonString ¶
func (r *DescribeOwaspRuleTypesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeOwaspRuleTypesRequest) ToJsonString ¶
func (r *DescribeOwaspRuleTypesRequest) ToJsonString() string
type DescribeOwaspRuleTypesRequestParams ¶
type DescribeOwaspRuleTypesRequestParams struct {
// Domain names to be queried
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Page number, defaults to 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity per page. defaults to 10.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Filter conditions. supports rule ID, CVE ID, and description.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
}
Predefined struct for user
type DescribeOwaspRuleTypesResponse ¶
type DescribeOwaspRuleTypesResponse struct {
*tchttp.BaseResponse
Response *DescribeOwaspRuleTypesResponseParams `json:"Response"`
}
func NewDescribeOwaspRuleTypesResponse ¶
func NewDescribeOwaspRuleTypesResponse() (response *DescribeOwaspRuleTypesResponse)
func (*DescribeOwaspRuleTypesResponse) FromJsonString ¶
func (r *DescribeOwaspRuleTypesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeOwaspRuleTypesResponse) ToJsonString ¶
func (r *DescribeOwaspRuleTypesResponse) ToJsonString() string
type DescribeOwaspRuleTypesResponseParams ¶
type DescribeOwaspRuleTypesResponseParams struct {
// Number of rule types.
Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`
// Rule type list and information.
List []*OwaspRuleType `json:"List,omitnil,omitempty" name:"List"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeOwaspRulesRequest ¶
type DescribeOwaspRulesRequest struct {
*tchttp.BaseRequest
// Domain to be queried
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Page number, defaults to 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity per page. defaults to 10.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Specifies the field used to sort. valid values: RuleId, UpdateTime.
By *string `json:"By,omitnil,omitempty" name:"By"`
// Sorting method. supports asc, desc.
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// Specifies the criteria, support rule ID, rule type, rule description, CVE ID, rule Status, and threat level.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func NewDescribeOwaspRulesRequest ¶
func NewDescribeOwaspRulesRequest() (request *DescribeOwaspRulesRequest)
func (*DescribeOwaspRulesRequest) FromJsonString ¶
func (r *DescribeOwaspRulesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeOwaspRulesRequest) ToJsonString ¶
func (r *DescribeOwaspRulesRequest) ToJsonString() string
type DescribeOwaspRulesRequestParams ¶
type DescribeOwaspRulesRequestParams struct {
// Domain to be queried
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Page number, defaults to 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity per page. defaults to 10.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Specifies the field used to sort. valid values: RuleId, UpdateTime.
By *string `json:"By,omitnil,omitempty" name:"By"`
// Sorting method. supports asc, desc.
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// Specifies the criteria, support rule ID, rule type, rule description, CVE ID, rule Status, and threat level.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
}
Predefined struct for user
type DescribeOwaspRulesResponse ¶
type DescribeOwaspRulesResponse struct {
*tchttp.BaseResponse
Response *DescribeOwaspRulesResponseParams `json:"Response"`
}
func NewDescribeOwaspRulesResponse ¶
func NewDescribeOwaspRulesResponse() (response *DescribeOwaspRulesResponse)
func (*DescribeOwaspRulesResponse) FromJsonString ¶
func (r *DescribeOwaspRulesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeOwaspRulesResponse) ToJsonString ¶
func (r *DescribeOwaspRulesResponse) ToJsonString() string
type DescribeOwaspRulesResponseParams ¶
type DescribeOwaspRulesResponseParams struct {
// Total number of rules.
Total *uint64 `json:"Total,omitnil,omitempty" name:"Total"`
// List of rules
List []*OwaspRule `json:"List,omitnil,omitempty" name:"List"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeOwaspWhiteRulesRequest ¶
type DescribeOwaspWhiteRulesRequest struct {
*tchttp.BaseRequest
// Domain to be queried
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Paginate, defaults to 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity per page. defaults to 10.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Specifies the field used to sort. valid values: CreateTime (creation time), UpdateTime (update time).
By *string `json:"By,omitnil,omitempty" name:"By"`
// Sorting method. supports asc, desc.
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// Filter conditions, support RuleId: whitelist rule ID, Name: rule Name, RuleType: whitelist rule type, Status: rule enabling Status, ValidStatus: rule effective Status, TimerType: effective method, ID: specific whitelist ID, determine whether it is a rule ID or type ID based on RuleType.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func NewDescribeOwaspWhiteRulesRequest ¶
func NewDescribeOwaspWhiteRulesRequest() (request *DescribeOwaspWhiteRulesRequest)
func (*DescribeOwaspWhiteRulesRequest) FromJsonString ¶
func (r *DescribeOwaspWhiteRulesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeOwaspWhiteRulesRequest) ToJsonString ¶
func (r *DescribeOwaspWhiteRulesRequest) ToJsonString() string
type DescribeOwaspWhiteRulesRequestParams ¶
type DescribeOwaspWhiteRulesRequestParams struct {
// Domain to be queried
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Paginate, defaults to 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Capacity per page. defaults to 10.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Specifies the field used to sort. valid values: CreateTime (creation time), UpdateTime (update time).
By *string `json:"By,omitnil,omitempty" name:"By"`
// Sorting method. supports asc, desc.
Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// Filter conditions, support RuleId: whitelist rule ID, Name: rule Name, RuleType: whitelist rule type, Status: rule enabling Status, ValidStatus: rule effective Status, TimerType: effective method, ID: specific whitelist ID, determine whether it is a rule ID or type ID based on RuleType.
Filters []*FiltersItemNew `json:"Filters,omitnil,omitempty" name:"Filters"`
}
Predefined struct for user
type DescribeOwaspWhiteRulesResponse ¶
type DescribeOwaspWhiteRulesResponse struct {
*tchttp.BaseResponse
Response *DescribeOwaspWhiteRulesResponseParams `json:"Response"`
}
func NewDescribeOwaspWhiteRulesResponse ¶
func NewDescribeOwaspWhiteRulesResponse() (response *DescribeOwaspWhiteRulesResponse)
func (*DescribeOwaspWhiteRulesResponse) FromJsonString ¶
func (r *DescribeOwaspWhiteRulesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeOwaspWhiteRulesResponse) ToJsonString ¶
func (r *DescribeOwaspWhiteRulesResponse) ToJsonString() string
type DescribeOwaspWhiteRulesResponseParams ¶
type DescribeOwaspWhiteRulesResponseParams struct {
// Total number of rules.
Total *uint64 `json:"Total,omitnil,omitempty" name:"Total"`
// Rule allowlist list
List []*OwaspWhiteRule `json:"List,omitnil,omitempty" name:"List"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribePeakPointsRequest ¶
type DescribePeakPointsRequest struct {
*tchttp.BaseRequest
// Query start time
FromTime *string `json:"FromTime,omitnil,omitempty" name:"FromTime"`
// Query End Time
ToTime *string `json:"ToTime,omitnil,omitempty" name:"ToTime"`
// The domain to query, leave this parameter blank if querying data for all domains
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Only two values are valid: sparta-waf, clb-waf. No filtering if not input.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// WAF instance ID. No filter will be carried out if it is not input.
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Twelve available values:
// access: peak QPS trend chart
// botAccess: peak bot QPS trend chart
// down: downstream peak bandwidth trend chart
// up: upstream peak bandwidth trend chart
// attack: trend chart of total web attacks
// cc: trend chart of total CC attacks
// bw: trend chart of total attacks from blocklisted IP addresses
// tamper: trend chart of total tampering attacks
// leak: total leakage trend chart
// acl: trend chart of total access control attacks
// http_status: status code trend chart
// wx_access: trend chart of peak WeChat mini program QPS
MetricName *string `json:"MetricName,omitnil,omitempty" name:"MetricName"`
}
func NewDescribePeakPointsRequest ¶
func NewDescribePeakPointsRequest() (request *DescribePeakPointsRequest)
func (*DescribePeakPointsRequest) FromJsonString ¶
func (r *DescribePeakPointsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePeakPointsRequest) ToJsonString ¶
func (r *DescribePeakPointsRequest) ToJsonString() string
type DescribePeakPointsRequestParams ¶
type DescribePeakPointsRequestParams struct {
// Query start time
FromTime *string `json:"FromTime,omitnil,omitempty" name:"FromTime"`
// Query End Time
ToTime *string `json:"ToTime,omitnil,omitempty" name:"ToTime"`
// The domain to query, leave this parameter blank if querying data for all domains
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Only two values are valid: sparta-waf, clb-waf. No filtering if not input.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// WAF instance ID. No filter will be carried out if it is not input.
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Twelve available values:
// access: peak QPS trend chart
// botAccess: peak bot QPS trend chart
// down: downstream peak bandwidth trend chart
// up: upstream peak bandwidth trend chart
// attack: trend chart of total web attacks
// cc: trend chart of total CC attacks
// bw: trend chart of total attacks from blocklisted IP addresses
// tamper: trend chart of total tampering attacks
// leak: total leakage trend chart
// acl: trend chart of total access control attacks
// http_status: status code trend chart
// wx_access: trend chart of peak WeChat mini program QPS
MetricName *string `json:"MetricName,omitnil,omitempty" name:"MetricName"`
}
Predefined struct for user
type DescribePeakPointsResponse ¶
type DescribePeakPointsResponse struct {
*tchttp.BaseResponse
Response *DescribePeakPointsResponseParams `json:"Response"`
}
func NewDescribePeakPointsResponse ¶
func NewDescribePeakPointsResponse() (response *DescribePeakPointsResponse)
func (*DescribePeakPointsResponse) FromJsonString ¶
func (r *DescribePeakPointsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePeakPointsResponse) ToJsonString ¶
func (r *DescribePeakPointsResponse) ToJsonString() string
type DescribePeakPointsResponseParams ¶
type DescribePeakPointsResponseParams struct {
// Data points
Points []*PeakPointsItem `json:"Points,omitnil,omitempty" name:"Points"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribePolicyStatusRequest ¶
type DescribePolicyStatusRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// clb-waf or saas-waf
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
}
func NewDescribePolicyStatusRequest ¶
func NewDescribePolicyStatusRequest() (request *DescribePolicyStatusRequest)
func (*DescribePolicyStatusRequest) FromJsonString ¶
func (r *DescribePolicyStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePolicyStatusRequest) ToJsonString ¶
func (r *DescribePolicyStatusRequest) ToJsonString() string
type DescribePolicyStatusRequestParams ¶
type DescribePolicyStatusRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// clb-waf or saas-waf
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
}
Predefined struct for user
type DescribePolicyStatusResponse ¶
type DescribePolicyStatusResponse struct {
*tchttp.BaseResponse
Response *DescribePolicyStatusResponseParams `json:"Response"`
}
func NewDescribePolicyStatusResponse ¶
func NewDescribePolicyStatusResponse() (response *DescribePolicyStatusResponse)
func (*DescribePolicyStatusResponse) FromJsonString ¶
func (r *DescribePolicyStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePolicyStatusResponse) ToJsonString ¶
func (r *DescribePolicyStatusResponse) ToJsonString() string
type DescribePolicyStatusResponseParams ¶
type DescribePolicyStatusResponseParams struct {
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Protection status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribePortsRequest ¶
type DescribePortsRequest struct {
*tchttp.BaseRequest
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Instance type
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
}
func NewDescribePortsRequest ¶
func NewDescribePortsRequest() (request *DescribePortsRequest)
func (*DescribePortsRequest) FromJsonString ¶
func (r *DescribePortsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePortsRequest) ToJsonString ¶
func (r *DescribePortsRequest) ToJsonString() string
type DescribePortsRequestParams ¶
type DescribePortsRequestParams struct {
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Instance type
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
}
Predefined struct for user
type DescribePortsResponse ¶
type DescribePortsResponse struct {
*tchttp.BaseResponse
Response *DescribePortsResponseParams `json:"Response"`
}
func NewDescribePortsResponse ¶
func NewDescribePortsResponse() (response *DescribePortsResponse)
func (*DescribePortsResponse) FromJsonString ¶
func (r *DescribePortsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePortsResponse) ToJsonString ¶
func (r *DescribePortsResponse) ToJsonString() string
type DescribePortsResponseParams ¶
type DescribePortsResponseParams struct {
// HTTP Port List
HttpPorts []*string `json:"HttpPorts,omitnil,omitempty" name:"HttpPorts"`
// HTTPS port list
HttpsPorts []*string `json:"HttpsPorts,omitnil,omitempty" name:"HttpsPorts"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeRuleLimitRequest ¶
type DescribeRuleLimitRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
func NewDescribeRuleLimitRequest ¶
func NewDescribeRuleLimitRequest() (request *DescribeRuleLimitRequest)
func (*DescribeRuleLimitRequest) FromJsonString ¶
func (r *DescribeRuleLimitRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRuleLimitRequest) ToJsonString ¶
func (r *DescribeRuleLimitRequest) ToJsonString() string
type DescribeRuleLimitRequestParams ¶
type DescribeRuleLimitRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
Predefined struct for user
type DescribeRuleLimitResponse ¶
type DescribeRuleLimitResponse struct {
*tchttp.BaseResponse
Response *DescribeRuleLimitResponseParams `json:"Response"`
}
func NewDescribeRuleLimitResponse ¶
func NewDescribeRuleLimitResponse() (response *DescribeRuleLimitResponse)
func (*DescribeRuleLimitResponse) FromJsonString ¶
func (r *DescribeRuleLimitResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRuleLimitResponse) ToJsonString ¶
func (r *DescribeRuleLimitResponse) ToJsonString() string
type DescribeRuleLimitResponseParams ¶
type DescribeRuleLimitResponseParams struct {
// WAF module specifications
Res *WafRuleLimit `json:"Res,omitnil,omitempty" name:"Res"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeSessionRequest ¶
type DescribeSessionRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// clb-waf or sparta-waf
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
}
func NewDescribeSessionRequest ¶
func NewDescribeSessionRequest() (request *DescribeSessionRequest)
func (*DescribeSessionRequest) FromJsonString ¶
func (r *DescribeSessionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSessionRequest) ToJsonString ¶
func (r *DescribeSessionRequest) ToJsonString() string
type DescribeSessionRequestParams ¶
type DescribeSessionRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// clb-waf or sparta-waf
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
}
Predefined struct for user
type DescribeSessionResponse ¶
type DescribeSessionResponse struct {
*tchttp.BaseResponse
Response *DescribeSessionResponseParams `json:"Response"`
}
func NewDescribeSessionResponse ¶
func NewDescribeSessionResponse() (response *DescribeSessionResponse)
func (*DescribeSessionResponse) FromJsonString ¶
func (r *DescribeSessionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSessionResponse) ToJsonString ¶
func (r *DescribeSessionResponse) ToJsonString() string
type DescribeSessionResponseParams ¶
type DescribeSessionResponseParams struct {
// Returned result
// Note: This field may return null, indicating that no valid values can be obtained.
Data *SessionData `json:"Data,omitnil,omitempty" name:"Data"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeSpartaProtectionInfoRequest ¶
type DescribeSpartaProtectionInfoRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Version
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Instance
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
func NewDescribeSpartaProtectionInfoRequest ¶
func NewDescribeSpartaProtectionInfoRequest() (request *DescribeSpartaProtectionInfoRequest)
func (*DescribeSpartaProtectionInfoRequest) FromJsonString ¶
func (r *DescribeSpartaProtectionInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSpartaProtectionInfoRequest) ToJsonString ¶
func (r *DescribeSpartaProtectionInfoRequest) ToJsonString() string
type DescribeSpartaProtectionInfoRequestParams ¶
type DescribeSpartaProtectionInfoRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Version
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Instance
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
Predefined struct for user
type DescribeSpartaProtectionInfoResponse ¶
type DescribeSpartaProtectionInfoResponse struct {
*tchttp.BaseResponse
Response *DescribeSpartaProtectionInfoResponseParams `json:"Response"`
}
func NewDescribeSpartaProtectionInfoResponse ¶
func NewDescribeSpartaProtectionInfoResponse() (response *DescribeSpartaProtectionInfoResponse)
func (*DescribeSpartaProtectionInfoResponse) FromJsonString ¶
func (r *DescribeSpartaProtectionInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSpartaProtectionInfoResponse) ToJsonString ¶
func (r *DescribeSpartaProtectionInfoResponse) ToJsonString() string
type DescribeSpartaProtectionInfoResponseParams ¶
type DescribeSpartaProtectionInfoResponseParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// CNAME value
Cname *string `json:"Cname,omitnil,omitempty" name:"Cname"`
// Status
Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// Source IP address list
SrcList []*string `json:"SrcList,omitnil,omitempty" name:"SrcList"`
// Certificate type
CertType *string `json:"CertType,omitnil,omitempty" name:"CertType"`
// Certificate
Cert *string `json:"Cert,omitnil,omitempty" name:"Cert"`
// Private key
PrivateKey *string `json:"PrivateKey,omitnil,omitempty" name:"PrivateKey"`
// SSL ID
Sslid *string `json:"Sslid,omitnil,omitempty" name:"Sslid"`
// Whether it is a CDN
IsCdn *string `json:"IsCdn,omitnil,omitempty" name:"IsCdn"`
// Grayscale area list
GrayAreas []*string `json:"GrayAreas,omitnil,omitempty" name:"GrayAreas"`
// Engine
Engine *string `json:"Engine,omitnil,omitempty" name:"Engine"`
// HTTPS rewriting
HttpsRewrite *string `json:"HttpsRewrite,omitnil,omitempty" name:"HttpsRewrite"`
// upstreamType value
UpstreamType *string `json:"UpstreamType,omitnil,omitempty" name:"UpstreamType"`
// Value of upstreamDomain
UpstreamDomain *string `json:"UpstreamDomain,omitnil,omitempty" name:"UpstreamDomain"`
// Value of upstreamScheme
UpstreamScheme *string `json:"UpstreamScheme,omitnil,omitempty" name:"UpstreamScheme"`
// Whether it is HTTP2.
IsHttp2 *string `json:"IsHttp2,omitnil,omitempty" name:"IsHttp2"`
// Whether it includes WebSocket
IsWebsocket *string `json:"IsWebsocket,omitnil,omitempty" name:"IsWebsocket"`
// LoadBalance information
LoadBalance *string `json:"LoadBalance,omitnil,omitempty" name:"LoadBalance"`
// Value of httpsUpstreamPort
HttpsUpstreamPort *string `json:"HttpsUpstreamPort,omitnil,omitempty" name:"HttpsUpstreamPort"`
// Port information
Ports []*PortItem `json:"Ports,omitnil,omitempty" name:"Ports"`
// Whether it is grayscale
IsGray *string `json:"IsGray,omitnil,omitempty" name:"IsGray"`
// Mode
Mode *string `json:"Mode,omitnil,omitempty" name:"Mode"`
// Defense level: 100, 200, 300
Level *string `json:"Level,omitnil,omitempty" name:"Level"`
// Whether to maintain a long connection with the origin server
IsKeepAlive *string `json:"IsKeepAlive,omitnil,omitempty" name:"IsKeepAlive"`
// 0: BGP; 1: Anycast.
// Note: This field may return null, indicating that no valid values can be obtained.
Anycast *string `json:"Anycast,omitnil,omitempty" name:"Anycast"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeTlsVersionRequest ¶
type DescribeTlsVersionRequest struct {
*tchttp.BaseRequest
}
func NewDescribeTlsVersionRequest ¶
func NewDescribeTlsVersionRequest() (request *DescribeTlsVersionRequest)
func (*DescribeTlsVersionRequest) FromJsonString ¶
func (r *DescribeTlsVersionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTlsVersionRequest) ToJsonString ¶
func (r *DescribeTlsVersionRequest) ToJsonString() string
type DescribeTlsVersionRequestParams ¶
type DescribeTlsVersionRequestParams struct {
}
Predefined struct for user
type DescribeTlsVersionResponse ¶
type DescribeTlsVersionResponse struct {
*tchttp.BaseResponse
Response *DescribeTlsVersionResponseParams `json:"Response"`
}
func NewDescribeTlsVersionResponse ¶
func NewDescribeTlsVersionResponse() (response *DescribeTlsVersionResponse)
func (*DescribeTlsVersionResponse) FromJsonString ¶
func (r *DescribeTlsVersionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTlsVersionResponse) ToJsonString ¶
func (r *DescribeTlsVersionResponse) ToJsonString() string
type DescribeTlsVersionResponseParams ¶
type DescribeTlsVersionResponseParams struct {
// TLS key value
TLS []*TLSVersion `json:"TLS,omitnil,omitempty" name:"TLS"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeTopAttackDomainRequest ¶
type DescribeTopAttackDomainRequest struct {
*tchttp.BaseRequest
// Query start time
FromTime *string `json:"FromTime,omitnil,omitempty" name:"FromTime"`
// Query end time
ToTime *string `json:"ToTime,omitnil,omitempty" name:"ToTime"`
// Top N, selectable from 0-10. The default is 10.
Count *uint64 `json:"Count,omitnil,omitempty" name:"Count"`
// Only two values are valid: sparta-waf, clb-waf. No filtering if not input.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// WAF instance ID. No filter will be carried out if it is not input.
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
func NewDescribeTopAttackDomainRequest ¶
func NewDescribeTopAttackDomainRequest() (request *DescribeTopAttackDomainRequest)
func (*DescribeTopAttackDomainRequest) FromJsonString ¶
func (r *DescribeTopAttackDomainRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTopAttackDomainRequest) ToJsonString ¶
func (r *DescribeTopAttackDomainRequest) ToJsonString() string
type DescribeTopAttackDomainRequestParams ¶
type DescribeTopAttackDomainRequestParams struct {
// Query start time
FromTime *string `json:"FromTime,omitnil,omitempty" name:"FromTime"`
// Query end time
ToTime *string `json:"ToTime,omitnil,omitempty" name:"ToTime"`
// Top N, selectable from 0-10. The default is 10.
Count *uint64 `json:"Count,omitnil,omitempty" name:"Count"`
// Only two values are valid: sparta-waf, clb-waf. No filtering if not input.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// WAF instance ID. No filter will be carried out if it is not input.
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
Predefined struct for user
type DescribeTopAttackDomainResponse ¶
type DescribeTopAttackDomainResponse struct {
*tchttp.BaseResponse
Response *DescribeTopAttackDomainResponseParams `json:"Response"`
}
func NewDescribeTopAttackDomainResponse ¶
func NewDescribeTopAttackDomainResponse() (response *DescribeTopAttackDomainResponse)
func (*DescribeTopAttackDomainResponse) FromJsonString ¶
func (r *DescribeTopAttackDomainResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTopAttackDomainResponse) ToJsonString ¶
func (r *DescribeTopAttackDomainResponse) ToJsonString() string
type DescribeTopAttackDomainResponseParams ¶
type DescribeTopAttackDomainResponseParams struct {
// CC attack domain list
CC []*KVInt `json:"CC,omitnil,omitempty" name:"CC"`
// Web attack domain list
Web []*KVInt `json:"Web,omitnil,omitempty" name:"Web"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeUserClbWafRegionsRequest ¶
type DescribeUserClbWafRegionsRequest struct {
*tchttp.BaseRequest
// Traffic source. The default value is clb if not specified. clb: Cloud Load Balancer; tsegw: cloud-native API gateway; scf: Serverless Cloud Function; apisix: other gateways on Tencent Cloud.
AlbType *string `json:"AlbType,omitnil,omitempty" name:"AlbType"`
}
func NewDescribeUserClbWafRegionsRequest ¶
func NewDescribeUserClbWafRegionsRequest() (request *DescribeUserClbWafRegionsRequest)
func (*DescribeUserClbWafRegionsRequest) FromJsonString ¶
func (r *DescribeUserClbWafRegionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUserClbWafRegionsRequest) ToJsonString ¶
func (r *DescribeUserClbWafRegionsRequest) ToJsonString() string
type DescribeUserClbWafRegionsRequestParams ¶
type DescribeUserClbWafRegionsRequestParams struct {
// Traffic source. The default value is clb if not specified. clb: Cloud Load Balancer; tsegw: cloud-native API gateway; scf: Serverless Cloud Function; apisix: other gateways on Tencent Cloud.
AlbType *string `json:"AlbType,omitnil,omitempty" name:"AlbType"`
}
Predefined struct for user
type DescribeUserClbWafRegionsResponse ¶
type DescribeUserClbWafRegionsResponse struct {
*tchttp.BaseResponse
Response *DescribeUserClbWafRegionsResponseParams `json:"Response"`
}
func NewDescribeUserClbWafRegionsResponse ¶
func NewDescribeUserClbWafRegionsResponse() (response *DescribeUserClbWafRegionsResponse)
func (*DescribeUserClbWafRegionsResponse) FromJsonString ¶
func (r *DescribeUserClbWafRegionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUserClbWafRegionsResponse) ToJsonString ¶
func (r *DescribeUserClbWafRegionsResponse) ToJsonString() string
type DescribeUserClbWafRegionsResponseParams ¶
type DescribeUserClbWafRegionsResponseParams struct {
// Region (in standard ap-format) list
//
// Note: This field may return null, indicating that no valid values can be obtained.
Data []*string `json:"Data,omitnil,omitempty" name:"Data"`
// Geographical information with detailed attributes
//
// Note: This field may return null, indicating that no valid values can be obtained.
RichDatas []*ClbWafRegionItem `json:"RichDatas,omitnil,omitempty" name:"RichDatas"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeUserDomainInfoRequest ¶
type DescribeUserDomainInfoRequest struct {
*tchttp.BaseRequest
}
func NewDescribeUserDomainInfoRequest ¶
func NewDescribeUserDomainInfoRequest() (request *DescribeUserDomainInfoRequest)
func (*DescribeUserDomainInfoRequest) FromJsonString ¶
func (r *DescribeUserDomainInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUserDomainInfoRequest) ToJsonString ¶
func (r *DescribeUserDomainInfoRequest) ToJsonString() string
type DescribeUserDomainInfoRequestParams ¶
type DescribeUserDomainInfoRequestParams struct {
}
Predefined struct for user
type DescribeUserDomainInfoResponse ¶
type DescribeUserDomainInfoResponse struct {
*tchttp.BaseResponse
Response *DescribeUserDomainInfoResponseParams `json:"Response"`
}
func NewDescribeUserDomainInfoResponse ¶
func NewDescribeUserDomainInfoResponse() (response *DescribeUserDomainInfoResponse)
func (*DescribeUserDomainInfoResponse) FromJsonString ¶
func (r *DescribeUserDomainInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUserDomainInfoResponse) ToJsonString ¶
func (r *DescribeUserDomainInfoResponse) ToJsonString() string
type DescribeUserDomainInfoResponseParams ¶
type DescribeUserDomainInfoResponseParams struct {
// SaaS and CLB domain information
UsersInfo []*UserDomainInfo `json:"UsersInfo,omitnil,omitempty" name:"UsersInfo"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeUserLevelRequest ¶
type DescribeUserLevelRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
func NewDescribeUserLevelRequest ¶
func NewDescribeUserLevelRequest() (request *DescribeUserLevelRequest)
func (*DescribeUserLevelRequest) FromJsonString ¶
func (r *DescribeUserLevelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUserLevelRequest) ToJsonString ¶
func (r *DescribeUserLevelRequest) ToJsonString() string
type DescribeUserLevelRequestParams ¶
type DescribeUserLevelRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
Predefined struct for user
type DescribeUserLevelResponse ¶
type DescribeUserLevelResponse struct {
*tchttp.BaseResponse
Response *DescribeUserLevelResponseParams `json:"Response"`
}
func NewDescribeUserLevelResponse ¶
func NewDescribeUserLevelResponse() (response *DescribeUserLevelResponse)
func (*DescribeUserLevelResponse) FromJsonString ¶
func (r *DescribeUserLevelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUserLevelResponse) ToJsonString ¶
func (r *DescribeUserLevelResponse) ToJsonString() string
type DescribeUserLevelResponseParams ¶
type DescribeUserLevelResponseParams struct {
// 300: Normal, 400: Strict
Level *uint64 `json:"Level,omitnil,omitempty" name:"Level"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeVipInfoRequest ¶
type DescribeVipInfoRequest struct {
*tchttp.BaseRequest
// WAF instance ID list
InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}
func NewDescribeVipInfoRequest ¶
func NewDescribeVipInfoRequest() (request *DescribeVipInfoRequest)
func (*DescribeVipInfoRequest) FromJsonString ¶
func (r *DescribeVipInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeVipInfoRequest) ToJsonString ¶
func (r *DescribeVipInfoRequest) ToJsonString() string
type DescribeVipInfoRequestParams ¶
type DescribeVipInfoRequestParams struct {
// WAF instance ID list
InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}
Predefined struct for user
type DescribeVipInfoResponse ¶
type DescribeVipInfoResponse struct {
*tchttp.BaseResponse
Response *DescribeVipInfoResponseParams `json:"Response"`
}
func NewDescribeVipInfoResponse ¶
func NewDescribeVipInfoResponse() (response *DescribeVipInfoResponse)
func (*DescribeVipInfoResponse) FromJsonString ¶
func (r *DescribeVipInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeVipInfoResponse) ToJsonString ¶
func (r *DescribeVipInfoResponse) ToJsonString() string
type DescribeVipInfoResponseParams ¶
type DescribeVipInfoResponseParams struct {
// VIP information
VipInfo []*VipInfo `json:"VipInfo,omitnil,omitempty" name:"VipInfo"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeWebshellStatusRequest ¶
type DescribeWebshellStatusRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
func NewDescribeWebshellStatusRequest ¶
func NewDescribeWebshellStatusRequest() (request *DescribeWebshellStatusRequest)
func (*DescribeWebshellStatusRequest) FromJsonString ¶
func (r *DescribeWebshellStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeWebshellStatusRequest) ToJsonString ¶
func (r *DescribeWebshellStatusRequest) ToJsonString() string
type DescribeWebshellStatusRequestParams ¶
type DescribeWebshellStatusRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
Predefined struct for user
type DescribeWebshellStatusResponse ¶
type DescribeWebshellStatusResponse struct {
*tchttp.BaseResponse
Response *DescribeWebshellStatusResponseParams `json:"Response"`
}
func NewDescribeWebshellStatusResponse ¶
func NewDescribeWebshellStatusResponse() (response *DescribeWebshellStatusResponse)
func (*DescribeWebshellStatusResponse) FromJsonString ¶
func (r *DescribeWebshellStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeWebshellStatusResponse) ToJsonString ¶
func (r *DescribeWebshellStatusResponse) ToJsonString() string
type DescribeWebshellStatusResponseParams ¶
type DescribeWebshellStatusResponseParams struct {
// Webshell domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Enabling status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DomainInfo ¶
type DomainInfo struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// CNAME Address
Cname *string `json:"Cname,omitnil,omitempty" name:"Cname"`
// Instance type of the domain name.
// sparta-waf: SaaS WAF instance
// clb-waf: CLB WAF instance
// cdc-clb-waf: CLB WAF instances in the CDC environment
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Region
// "Toronto": "ca"
// "Guangzhou": "gz"
// "Chengdu": "cd"
// "Fuzhou": "fzec"
// "Shenzhen": "szx"
// "India": "in"
// "Jinan": "jnec"
// "Chongqing": "cq"
// "Tianjin": "tsn"
// "Northeast Europe": "ru"
// "Nanjing": "nj"
// "Silicon Valley, USA": "usw"
// "Thailand": "th"
// "Guangzhou Open": "gzopen"
// "Shenzhen Finance": "szjr"
// "Frankfurt": "de"
// "Japan": "jp"
// "Virginia": "use"
// "Beijing": "bj"
// "Hong Kong (China)": "hk"
// "Hangzhou": "hzec"
// "Beijing Finance": "bjjr"
// "Shanghai Finance": "shjr"
// "Taipei (China)": "tpe"
// "Seoul": "kr"
// "Shanghai": "sh"
// "Singapore": "sg"
// "Qingyuan": "qy"
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// Instance name
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Access log switch status
// 0: disabled
// 1: enabled
ClsStatus *uint64 `json:"ClsStatus,omitnil,omitempty" name:"ClsStatus"`
// CLB WAF usage mode
// 0: image mode
// 1: cleaning mode
FlowMode *uint64 `json:"FlowMode,omitnil,omitempty" name:"FlowMode"`
// WAF switch status
// 0: disabled
// 1: enabled
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Rule engine protection mode
// 0: observation mode
// 1: interception mode
Mode *uint64 `json:"Mode,omitnil,omitempty" name:"Mode"`
// Joint status of rule engine and AI engine protection modes.
// 1: initial status: interception for the rule engine and disabled for the AI engine
// 10: observation for the rule engine and disabled for the AI engine
// 11: observation for both the rule engine and AI engine
// 12: observation for the rule engine and interception for the AI engine
// 20: interception for the rule engine and disabled for the AI engine
// 21: interception for the rule engine and observation for the AI engine
// 22: interception for both the rule engine and AI engine
Engine *uint64 `json:"Engine,omitnil,omitempty" name:"Engine"`
// Sandbox cluster origin-pull outbound IP list
CCList []*string `json:"CCList,omitnil,omitempty" name:"CCList"`
// Production cluster origin-pull outbound IP list
RsList []*string `json:"RsList,omitnil,omitempty" name:"RsList"`
// Service port configuration
Ports []*PortInfo `json:"Ports,omitnil,omitempty" name:"Ports"`
// CLB-related configuration
LoadBalancerSet []*LoadBalancerPackageNew `json:"LoadBalancerSet,omitnil,omitempty" name:"LoadBalancerSet"`
// User ID
AppId *uint64 `json:"AppId,omitnil,omitempty" name:"AppId"`
// LB listener status of the domain name protected by CLB WAF0: Operation successful.
// 4: The LB is being bound.
// 6: The LB is being unbound.
// 7: Failed to unbind the LB.
// 8: Failed to bind the LB.
// 10: Internal error.
State *int64 `json:"State,omitnil,omitempty" name:"State"`
// Creation time
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// IPv6 switch status.
// 0: disabled
// 1: enabled
Ipv6Status *int64 `json:"Ipv6Status,omitnil,omitempty" name:"Ipv6Status"`
// Bot switch status.
// 0: disabled
// 1: disabled
// 2: enabled
// 3: enabled
BotStatus *int64 `json:"BotStatus,omitnil,omitempty" name:"BotStatus"`
// Instance version information.
// 101: Small and Micro Agile Edition
// 102: Small and Micro Ultra-light Edition
// 2: Advanced Edition
// 3: Enterprise Edition
// 4: Ultimate Edition
// 6: Exclusive Edition
Level *int64 `json:"Level,omitnil,omitempty" name:"Level"`
// Shipping status of CLS.
// 0: disabled
// 1: enabled
PostCLSStatus *int64 `json:"PostCLSStatus,omitnil,omitempty" name:"PostCLSStatus"`
// Shipping status of CKafka.
// 0: disabled
// 1: enabled
PostCKafkaStatus *int64 `json:"PostCKafkaStatus,omitnil,omitempty" name:"PostCKafkaStatus"`
// Cluster information accessed by the CDC instance domain name, which can be ignored for non-CDC instances.
// Note: This field may return null, indicating that no valid values can be obtained.
CdcClusters *string `json:"CdcClusters,omitnil,omitempty" name:"CdcClusters"`
// API security switch status.
// 0: disabled
// 1: enabled
// Note: This field may return null, indicating that no valid values can be obtained.
ApiStatus *int64 `json:"ApiStatus,omitnil,omitempty" name:"ApiStatus"`
// Application-based CLB type. The default value is clb.
// clb: layer-7 CLB
// apisix: APISIX gateway
// Note: This field may return null, indicating that no valid values can be obtained.
AlbType *string `json:"AlbType,omitnil,omitempty" name:"AlbType"`
// Security group status.
// 0: not display
// 1: non-Tencent Cloud origin server
// 2: Security group binding failed.
// 3: security groups changed.
// Note: This field may return null, indicating that no valid values can be obtained.
SgState *int64 `json:"SgState,omitnil,omitempty" name:"SgState"`
// Detailed Explanation of Security Group Status
//
// Note: This field may return null, indicating that no valid values can be obtained.
SgDetail *string `json:"SgDetail,omitnil,omitempty" name:"SgDetail"`
// Domain name cloud environment. hybrid: hybrid cloud domain name
// public: public cloud domain name
// Note: This field may return null, indicating that no valid values can be obtained.
CloudType *string `json:"CloudType,omitnil,omitempty" name:"CloudType"`
// Domain name remarks
// Note: This field may return null, indicating that no valid values can be obtained.
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// SaaS WAF origin server IP list
// Note: This field may return null, indicating that no valid values can be obtained.
SrcList []*string `json:"SrcList,omitnil,omitempty" name:"SrcList"`
// SaaS WAF origin server domain name list
// Note: This field may return null, indicating that no valid values can be obtained.
UpstreamDomainList []*string `json:"UpstreamDomainList,omitnil,omitempty" name:"UpstreamDomainList"`
// Security group ID
// Note: This field may return null, indicating that no valid values can be obtained.
SgID *string `json:"SgID,omitnil,omitempty" name:"SgID"`
// CLB WAF access status
// Note: This field may return null, indicating that no valid values can be obtained.
AccessStatus *int64 `json:"AccessStatus,omitnil,omitempty" name:"AccessStatus"`
// Domain name tag.
// Note: This field may return null, indicating that no valid values can be obtained.
Labels []*string `json:"Labels,omitnil,omitempty" name:"Labels"`
}
type DomainPackageNew ¶
type DomainPackageNew struct {
// Resource ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
ResourceIds *string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// Expiration time
//
// Note: This field may return null, indicating that no valid values can be obtained.
ValidTime *string `json:"ValidTime,omitnil,omitempty" name:"ValidTime"`
// Auto-renewal, 1: Enabled, 0: Disabled
//
// Note: This field may return null, indicating that no valid values can be obtained.
RenewFlag *uint64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// Number of Package Purchases
//
// Note: This field may return null, indicating that no valid values can be obtained.
Count *uint64 `json:"Count,omitnil,omitempty" name:"Count"`
// Package Purchase Region, currently not used in CLB-WAF
//
// Note: This field may return null, indicating that no valid values can be obtained.
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
}
type DomainRuleId ¶
type DomainRuleId struct {
// Domain name
//
// Note: This field may return null, indicating that no valid values can be obtained.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}
type DomainURI ¶
type DomainURI struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Version
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Instance ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
type DomainsPartInfo ¶
type DomainsPartInfo struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Unique domain name ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Unique instance ID of the domain name
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Instance type of the domain name
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Instance name of the domain name
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Certificate
Cert *string `json:"Cert,omitnil,omitempty" name:"Cert"`
// Creation time
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// Status of the rule engine and AI engine
// 1: initial status. Interception for the rule engine and disabled for the AI engine.
// 10: observation for the rule engine and disabled for the AI engine
// 11: observation for both the rule engine and AI engine
// 12: observation for the rule engine and interception for the AI engine
// 20: interception for the rule engine and disabled for the AI engine
// 21: interception for the rule engine and observation for the AI engine
// 22: interception for both the rule engine and AI engine
Engine *uint64 `json:"Engine,omitnil,omitempty" name:"Engine"`
// Whether to enable forced redirection from HTTP to HTTPS
// 0: do not force redirection
// 1: enable forced redirection
HttpsRewrite *uint64 `json:"HttpsRewrite,omitnil,omitempty" name:"HttpsRewrite"`
// HTTPS origin-pull port
HttpsUpstreamPort *string `json:"HttpsUpstreamPort,omitnil,omitempty" name:"HttpsUpstreamPort"`
// Whether a layer-7 proxy service is deployed before WAF
// 0: No proxy service deployed
// 1: Proxy service deployed, and WAF will use XFF to obtain the client IP address
// 2: Proxy service deployed and WAF will use remote_addr to obtain the client IP address
// 3: Proxy service deployed and WAF will use the custom header in ip_headers to obtain the client IP address
IsCdn *uint64 `json:"IsCdn,omitnil,omitempty" name:"IsCdn"`
// This parameter has been deprecated.
IsGray *uint64 `json:"IsGray,omitnil,omitempty" name:"IsGray"`
// Whether to enable HTTP2. You should enable HTTPS as well.
// 0: disable
// 1: enable
IsHttp2 *uint64 `json:"IsHttp2,omitnil,omitempty" name:"IsHttp2"`
// Whether to enable support for WebSocket
// 0: disable
// 1: enable
IsWebsocket *uint64 `json:"IsWebsocket,omitnil,omitempty" name:"IsWebsocket"`
// Load balancing policy for origin-pull
// 0: round-robin
// 1: IP hash
// 2: weighted round-robin
LoadBalance *uint64 `json:"LoadBalance,omitnil,omitempty" name:"LoadBalance"`
// Protection mode
// 0: observation mode
// 1: interception mode
Mode *uint64 `json:"Mode,omitnil,omitempty" name:"Mode"`
// Private key of the self-owned certificate
PrivateKey *string `json:"PrivateKey,omitnil,omitempty" name:"PrivateKey"`
// When CertType is 2, this parameter must be filled, indicating the certificate ID hosted on Tencent Cloud's SSL platform
SSLId *string `json:"SSLId,omitnil,omitempty" name:"SSLId"`
// Origin domain when domain is back to source. When UpstreamType=1, this field needs to be filled
UpstreamDomain *string `json:"UpstreamDomain,omitnil,omitempty" name:"UpstreamDomain"`
// Origin-pull type
// 0: origin-pull via IP address
// 1: origin-pull via domain name
UpstreamType *uint64 `json:"UpstreamType,omitnil,omitempty" name:"UpstreamType"`
// Origin IP list when IP is back to source. When UpstreamType=0, this field is required
SrcList []*string `json:"SrcList,omitnil,omitempty" name:"SrcList"`
// Domain name port configuration
Ports []*PortInfo `json:"Ports,omitnil,omitempty" name:"Ports"`
// Certificate type
// 0: no certificate, with only the HTTP listening port configured
// 1: self-owned certificate
// 2: managed certificate
CertType *uint64 `json:"CertType,omitnil,omitempty" name:"CertType"`
// Origin-pull protocol for HTTPS when the service is configured with an HTTPS port
// http: Use the HTTP protocol for origin-pull. It is used together with HttpsUpstreamPort.
// https: Use the HTTPS protocol for origin-pull.
UpstreamScheme *string `json:"UpstreamScheme,omitnil,omitempty" name:"UpstreamScheme"`
// Whether to enable access logging
// 0: disable
// 1: enable
Cls *uint64 `json:"Cls,omitnil,omitempty" name:"Cls"`
// CNAME record for accessing a domain name protected by SaaS WAF
Cname *string `json:"Cname,omitnil,omitempty" name:"Cname"`
// Whether to enable persistent connection
// 0: non-persistent connection
// 1: persistent connection
IsKeepAlive *uint64 `json:"IsKeepAlive,omitnil,omitempty" name:"IsKeepAlive"`
// Whether to enable proactive health check
// 0: disable
// 1: enable
// Note: This field may return null, indicating that no valid values can be obtained.
ActiveCheck *uint64 `json:"ActiveCheck,omitnil,omitempty" name:"ActiveCheck"`
// TLS version information
//
// Note: This field may return null, indicating that no valid values can be obtained.
TLSVersion *int64 `json:"TLSVersion,omitnil,omitempty" name:"TLSVersion"`
// Custom encryption suite list. When CipherTemplate is 3, this field is required, indicating the custom encryption suite, value obtained through DescribeCiphersDetail API.
//
// Note: This field may return null, indicating that no valid values can be obtained.
Ciphers []*int64 `json:"Ciphers,omitnil,omitempty" name:"Ciphers"`
// Cipher suite template
// 0: default template
// 1: general template
// 2: security template
// 3: custom template
// Note: This field may return null, indicating that no valid values can be obtained.
CipherTemplate *int64 `json:"CipherTemplate,omitnil,omitempty" name:"CipherTemplate"`
// Read timeout between WAF and origin server, 300s by default.
//
// Note: This field may return null, indicating that no valid values can be obtained.
ProxyReadTimeout *int64 `json:"ProxyReadTimeout,omitnil,omitempty" name:"ProxyReadTimeout"`
// WAF and origin server write timeout, 300s by default.
//
// Note: This field may return null, indicating that no valid values can be obtained.
ProxySendTimeout *int64 `json:"ProxySendTimeout,omitnil,omitempty" name:"ProxySendTimeout"`
// SNI type during WAF origin-pull
// 0: Disable SNI and do not configure server_name in client_hello.
// 1: Enable SNI. server_name in client_hello is a protected domain name.
// 2: Enable SNI. SNI is the origin server domain name during the domain name origin-pull.
// 3: Enable SNI. SNI is a custom domain name.
// Note: This field may return null, indicating that no valid values can be obtained.
SniType *int64 `json:"SniType,omitnil,omitempty" name:"SniType"`
// When SniType=3, this parameter is required, indicating a custom SNI;
//
// Note: This field may return null, indicating that no valid values can be obtained.
SniHost *string `json:"SniHost,omitnil,omitempty" name:"SniHost"`
// Weight of the IP address for origin-pull
// Note: This field may return null, indicating that no valid values can be obtained.
Weights []*string `json:"Weights,omitnil,omitempty" name:"Weights"`
// IsCdn=3 indicates custom header
//
// Note: This field may return null, indicating that no valid values can be obtained.
IpHeaders []*string `json:"IpHeaders,omitnil,omitempty" name:"IpHeaders"`
// Whether to enable XFF reset
// 0: disable
// 1: enable
// Note: This field may return null, indicating that no valid values can be obtained.
XFFReset *int64 `json:"XFFReset,omitnil,omitempty" name:"XFFReset"`
// Domain name remarks
// Note: This field may return null, indicating that no valid values can be obtained.
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// Custom origin-pull host. The default value is a null string, indicating that a protected domain name is used as the origin-pull host.
// Note: This field may return null, indicating that no valid values can be obtained.
UpstreamHost *string `json:"UpstreamHost,omitnil,omitempty" name:"UpstreamHost"`
// Protection rule
// Note: This field may return null, indicating that no valid values can be obtained.
Level *string `json:"Level,omitnil,omitempty" name:"Level"`
// Whether to enable caching. 0: disable; 1: enable.
// Note: This field may return null, indicating that no valid values can be obtained.
ProxyBuffer *int64 `json:"ProxyBuffer,omitnil,omitempty" name:"ProxyBuffer"`
// Whether to enable SM. 0: do not enable SM; 1: add support for SM based on the existing TLS option; 2: enable SM and support only SM client access.
// Note: This field may return null, indicating that no valid values can be obtained.
GmType *int64 `json:"GmType,omitnil,omitempty" name:"GmType"`
// SM certificate type. 0: no SM certificate is available; 1: the certificate is a self-owned SM certificate; 2: the certificate is a managed SM certificate.
// Note: This field may return null, indicating that no valid values can be obtained.
GmCertType *int64 `json:"GmCertType,omitnil,omitempty" name:"GmCertType"`
// When GmCertType is 1, this parameter needs to be set, indicating the certificate chain of the self-owned SM certificate.
// Note: This field may return null, indicating that no valid values can be obtained.
GmCert *string `json:"GmCert,omitnil,omitempty" name:"GmCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the self-owned SM certificate.
// Note: This field may return null, indicating that no valid values can be obtained.
GmPrivateKey *string `json:"GmPrivateKey,omitnil,omitempty" name:"GmPrivateKey"`
// When GmCertType is 1, this parameter needs to be set, indicating the encryption certificate of the self-owned SM certificate.
// Note: This field may return null, indicating that no valid values can be obtained.
GmEncCert *string `json:"GmEncCert,omitnil,omitempty" name:"GmEncCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the encryption certificate for the self-owned SM certificate.
// Note: This field may return null, indicating that no valid values can be obtained.
GmEncPrivateKey *string `json:"GmEncPrivateKey,omitnil,omitempty" name:"GmEncPrivateKey"`
// When GmCertType is 2, this parameter needs to be set, indicating the ID of the certificate managed by the Tencent Cloud SSL platform.
// Note: This field may return null, indicating that no valid values can be obtained.
GmSSLId *string `json:"GmSSLId,omitnil,omitempty" name:"GmSSLId"`
// Domain name tag.
// Note: This field may return null, indicating that no valid values can be obtained.
Labels []*string `json:"Labels,omitnil,omitempty" name:"Labels"`
}
type FiltersItemNew ¶
type FiltersItemNew struct {
// Field name, used for filtering
// Filter the sub-order number (value) by DealName.
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Values after filtering
Values []*string `json:"Values,omitnil,omitempty" name:"Values"`
// Exact search or not
ExactMatch *bool `json:"ExactMatch,omitnil,omitempty" name:"ExactMatch"`
}
type FindAllDomainDetail ¶
type FindAllDomainDetail struct {
// User ID
Appid *uint64 `json:"Appid,omitnil,omitempty" name:"Appid"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain IP
Ips []*string `json:"Ips,omitnil,omitempty" name:"Ips"`
// Detection time
FindTime *string `json:"FindTime,omitnil,omitempty" name:"FindTime"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// WAF type
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Whether to access WAF
IsWafDomain *uint64 `json:"IsWafDomain,omitnil,omitempty" name:"IsWafDomain"`
}
type FraudPkg ¶
type FraudPkg struct {
// Resource ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
ResourceIds *string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// Status
//
// Note: This field may return null, indicating that no valid values can be obtained.
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Region
//
// Note: This field may return null, indicating that no valid values can be obtained.
Region *int64 `json:"Region,omitnil,omitempty" name:"Region"`
// Start time
//
// Note: This field may return null, indicating that no valid values can be obtained.
BeginTime *string `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`
// End time
//
// Note: This field may return null, indicating that no valid values can be obtained.
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// Application Quantity
//
// Note: This field may return null, indicating that no valid values can be obtained.
InquireNum *int64 `json:"InquireNum,omitnil,omitempty" name:"InquireNum"`
// Usage Quantity
//
// Note: This field may return null, indicating that no valid values can be obtained.
UsedNum *int64 `json:"UsedNum,omitnil,omitempty" name:"UsedNum"`
// Renewal flag.
// Note: This field may return null, indicating that no valid values can be obtained.
RenewFlag *uint64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
}
type FreshAntiFakeUrlRequest ¶
type FreshAntiFakeUrlRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Id
Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
}
func NewFreshAntiFakeUrlRequest ¶
func NewFreshAntiFakeUrlRequest() (request *FreshAntiFakeUrlRequest)
func (*FreshAntiFakeUrlRequest) FromJsonString ¶
func (r *FreshAntiFakeUrlRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*FreshAntiFakeUrlRequest) ToJsonString ¶
func (r *FreshAntiFakeUrlRequest) ToJsonString() string
type FreshAntiFakeUrlRequestParams ¶
type FreshAntiFakeUrlRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Id
Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
}
Predefined struct for user
type FreshAntiFakeUrlResponse ¶
type FreshAntiFakeUrlResponse struct {
*tchttp.BaseResponse
Response *FreshAntiFakeUrlResponseParams `json:"Response"`
}
func NewFreshAntiFakeUrlResponse ¶
func NewFreshAntiFakeUrlResponse() (response *FreshAntiFakeUrlResponse)
func (*FreshAntiFakeUrlResponse) FromJsonString ¶
func (r *FreshAntiFakeUrlResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*FreshAntiFakeUrlResponse) ToJsonString ¶
func (r *FreshAntiFakeUrlResponse) ToJsonString() string
type FreshAntiFakeUrlResponseParams ¶
type FreshAntiFakeUrlResponseParams struct {
// Whether the result is successful
Result *string `json:"Result,omitnil,omitempty" name:"Result"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type GenerateDealsAndPayNewRequest ¶
type GenerateDealsAndPayNewRequest struct {
*tchttp.BaseRequest
// Billing and ordering input parameters
Goods []*GoodNews `json:"Goods,omitnil,omitempty" name:"Goods"`
}
func NewGenerateDealsAndPayNewRequest ¶
func NewGenerateDealsAndPayNewRequest() (request *GenerateDealsAndPayNewRequest)
func (*GenerateDealsAndPayNewRequest) FromJsonString ¶
func (r *GenerateDealsAndPayNewRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GenerateDealsAndPayNewRequest) ToJsonString ¶
func (r *GenerateDealsAndPayNewRequest) ToJsonString() string
type GenerateDealsAndPayNewRequestParams ¶
type GenerateDealsAndPayNewRequestParams struct {
// Billing and ordering input parameters
Goods []*GoodNews `json:"Goods,omitnil,omitempty" name:"Goods"`
}
Predefined struct for user
type GenerateDealsAndPayNewResponse ¶
type GenerateDealsAndPayNewResponse struct {
*tchttp.BaseResponse
Response *GenerateDealsAndPayNewResponseParams `json:"Response"`
}
func NewGenerateDealsAndPayNewResponse ¶
func NewGenerateDealsAndPayNewResponse() (response *GenerateDealsAndPayNewResponse)
func (*GenerateDealsAndPayNewResponse) FromJsonString ¶
func (r *GenerateDealsAndPayNewResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GenerateDealsAndPayNewResponse) ToJsonString ¶
func (r *GenerateDealsAndPayNewResponse) ToJsonString() string
type GenerateDealsAndPayNewResponseParams ¶
type GenerateDealsAndPayNewResponseParams struct {
// Billing order response structure
//
// Note: This field may return null, indicating that no valid values can be obtained.
Data *DealData `json:"Data,omitnil,omitempty" name:"Data"`
// 1: Success, 0: Failure
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Returned message
//
// Note: This field may return null, indicating that no valid values can be obtained.
ReturnMessage *string `json:"ReturnMessage,omitnil,omitempty" name:"ReturnMessage"`
// Purchased instance ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type GetAttackHistogramRequest ¶
type GetAttackHistogramRequest struct {
*tchttp.BaseRequest
// Queried domain: use all for all domains
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Query start time
StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// Query end time
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// Lucene syntax.
QueryString *string `json:"QueryString,omitnil,omitempty" name:"QueryString"`
}
func NewGetAttackHistogramRequest ¶
func NewGetAttackHistogramRequest() (request *GetAttackHistogramRequest)
func (*GetAttackHistogramRequest) FromJsonString ¶
func (r *GetAttackHistogramRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAttackHistogramRequest) ToJsonString ¶
func (r *GetAttackHistogramRequest) ToJsonString() string
type GetAttackHistogramRequestParams ¶
type GetAttackHistogramRequestParams struct {
// Queried domain: use all for all domains
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Query start time
StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// Query end time
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// Lucene syntax.
QueryString *string `json:"QueryString,omitnil,omitempty" name:"QueryString"`
}
Predefined struct for user
type GetAttackHistogramResponse ¶
type GetAttackHistogramResponse struct {
*tchttp.BaseResponse
Response *GetAttackHistogramResponseParams `json:"Response"`
}
func NewGetAttackHistogramResponse ¶
func NewGetAttackHistogramResponse() (response *GetAttackHistogramResponse)
func (*GetAttackHistogramResponse) FromJsonString ¶
func (r *GetAttackHistogramResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAttackHistogramResponse) ToJsonString ¶
func (r *GetAttackHistogramResponse) ToJsonString() string
type GetAttackHistogramResponseParams ¶
type GetAttackHistogramResponseParams struct {
// Statistics details
Data []*LogHistogramInfo `json:"Data,omitnil,omitempty" name:"Data"`
// Time period size
Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
// Number of entries counted
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type GetAttackTotalCountRequest ¶
type GetAttackTotalCountRequest struct {
*tchttp.BaseRequest
// Start time
StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// End time
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// Domain names queried. Fill in all for all domain names.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Query criteria, "" by default
QueryString *string `json:"QueryString,omitnil,omitempty" name:"QueryString"`
}
func NewGetAttackTotalCountRequest ¶
func NewGetAttackTotalCountRequest() (request *GetAttackTotalCountRequest)
func (*GetAttackTotalCountRequest) FromJsonString ¶
func (r *GetAttackTotalCountRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAttackTotalCountRequest) ToJsonString ¶
func (r *GetAttackTotalCountRequest) ToJsonString() string
type GetAttackTotalCountRequestParams ¶
type GetAttackTotalCountRequestParams struct {
// Start time
StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// End time
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// Domain names queried. Fill in all for all domain names.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Query criteria, "" by default
QueryString *string `json:"QueryString,omitnil,omitempty" name:"QueryString"`
}
Predefined struct for user
type GetAttackTotalCountResponse ¶
type GetAttackTotalCountResponse struct {
*tchttp.BaseResponse
Response *GetAttackTotalCountResponseParams `json:"Response"`
}
func NewGetAttackTotalCountResponse ¶
func NewGetAttackTotalCountResponse() (response *GetAttackTotalCountResponse)
func (*GetAttackTotalCountResponse) FromJsonString ¶
func (r *GetAttackTotalCountResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAttackTotalCountResponse) ToJsonString ¶
func (r *GetAttackTotalCountResponse) ToJsonString() string
type GetAttackTotalCountResponseParams ¶
type GetAttackTotalCountResponseParams struct {
// Total attack count
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type GetInstanceQpsLimitRequest ¶
type GetInstanceQpsLimitRequest struct {
*tchttp.BaseRequest
// Package instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Package type.
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
}
func NewGetInstanceQpsLimitRequest ¶
func NewGetInstanceQpsLimitRequest() (request *GetInstanceQpsLimitRequest)
func (*GetInstanceQpsLimitRequest) FromJsonString ¶
func (r *GetInstanceQpsLimitRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetInstanceQpsLimitRequest) ToJsonString ¶
func (r *GetInstanceQpsLimitRequest) ToJsonString() string
type GetInstanceQpsLimitRequestParams ¶
type GetInstanceQpsLimitRequestParams struct {
// Package instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Package type.
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
}
Predefined struct for user
type GetInstanceQpsLimitResponse ¶
type GetInstanceQpsLimitResponse struct {
*tchttp.BaseResponse
Response *GetInstanceQpsLimitResponseParams `json:"Response"`
}
func NewGetInstanceQpsLimitResponse ¶
func NewGetInstanceQpsLimitResponse() (response *GetInstanceQpsLimitResponse)
func (*GetInstanceQpsLimitResponse) FromJsonString ¶
func (r *GetInstanceQpsLimitResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetInstanceQpsLimitResponse) ToJsonString ¶
func (r *GetInstanceQpsLimitResponse) ToJsonString() string
type GetInstanceQpsLimitResponseParams ¶
type GetInstanceQpsLimitResponseParams struct {
// Elastic QPS related value set
QpsData *QpsData `json:"QpsData,omitnil,omitempty" name:"QpsData"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type GoodNews ¶
type GoodNews struct {
// Number of products
GoodsNum *int64 `json:"GoodsNum,omitnil,omitempty" name:"GoodsNum"`
// Product Detail
GoodsDetail *GoodsDetailNew `json:"GoodsDetail,omitnil,omitempty" name:"GoodsDetail"`
// Order type ID, which is used to uniquely identify a business scene. (There are three scenes in total: new purchase, configuration change, and renewal.)
// Advanced Edition: 102375 (new purchase), 102376 (renewal), and 102377 (configuration change)
// Enterprise Edition: 102378 (new purchase), 102379 (renewal), and 102380 (configuration change)
// Ultimate Edition: 102369 (new purchase), 102370 (renewal), and 102371 (configuration change)
// Domain name package: 102372 (new purchase), 102373 (renewal), and 102374 (configuration change)
// Business expansion package: 101040 (new purchase), 101041 (renewal), and 101042 (configuration change)
//
// Advanced Edition - CLB: 101198 (new purchase), 101199 (renewal), and 101200 (configuration change)
// Enterprise Edition - CLB: 101204 (new purchase), 101205 (renewal), and 101206 (configuration change)
// Ultimate Edition - CLB: 101201 (new purchase), 101202 (renewal), and 101203 (configuration change)
// Domain name package - CLB: 101207 (new purchase), 101208 (renewal), and 101209 (configuration change)
// Business expansion package - CLB: 101210 (new purchase), 101211 (renewal), and 101212 (configuration adjustment)
//
// Note: This field may return null, indicating that no valid values can be obtained.
GoodsCategoryId *int64 `json:"GoodsCategoryId,omitnil,omitempty" name:"GoodsCategoryId"`
// Region ID for purchasing WAF instance
//
// 1 indicates purchasing resources in Chinese mainland.
// 9 indicates purchasing resources outside Chinese mainland.
// Note: This field may return null, indicating that no valid values can be obtained.
RegionId *int64 `json:"RegionId,omitnil,omitempty" name:"RegionId"`
}
type GoodsDetailNew ¶
type GoodsDetailNew struct {
// Time interval
// Note: This field may return null, indicating that no valid values can be obtained.
TimeSpan *int64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
// Unit, support for purchasing d, m, y, i.e., (day, month, year)
//
// Note: This field may return null, indicating that no valid values can be obtained.
TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"`
// Sub-product tag. It is mandatory for new purchase and renewal. For configuration change, it will be placed in oldConfig and newConfig.
//
// SaaS Advanced Edition: sp_wsm_waf_premium
// SaaS Enterprise Edition: sp_wsm_waf_enterprise
// SaaS Ultimate Edition: sp_wsm_waf_ultimate
// SaaS business expansion package: sp_wsm_waf_qpsep
// SaaS domain name expansion package: sp_wsm_waf_domain
//
// Advanced Edition - CLB: sp_wsm_waf_premium_clb
// Enterprise Edition - CLB: sp_wsm_waf_enterprise_clb
// Ultimate Edition - CLB: sp_wsm_waf_ultimate_clb
// Business expansion package - CLB: sp_wsm_waf_qpsep_clb
// Domain name expansion package - CLB: sp_wsm_waf_domain_clb
//
// Note: This field may return null, indicating that no valid values can be obtained.
SubProductCode *string `json:"SubProductCode,omitnil,omitempty" name:"SubProductCode"`
// PID applied for a business product (corresponding to a pricing formula). The pricing model can be found through PID billing.
// Advanced Edition: 1000827
// Enterprise Edition: 1000830
// Ultimate Edition: 1000832
// Domain name package: 1000834
// Business expansion package: 1000481
// Advanced Edition - CLB: 1001150
// Enterprise Edition - CLB: 1001152
// Ultimate Edition - CLB: 1001154
// Domain name package - CLB: 1001156
// Business expansion package - CLB: 1001160
//
// Note: This field may return null, indicating that no valid values can be obtained.
Pid *int64 `json:"Pid,omitnil,omitempty" name:"Pid"`
// WAF Instance Name
//
// Note: This field may return null, indicating that no valid values can be obtained.
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// 1: Auto-renewal, 0: No Auto-renewal
//
// Note: This field may return null, indicating that no valid values can be obtained.
AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`
// Actual Geographic Information of WAF Purchase
//
// Note: This field may return null, indicating that no valid values can be obtained.
RealRegion *int64 `json:"RealRegion,omitnil,omitempty" name:"RealRegion"`
// Billing Detail Tag Array
//
// SaaS Advanced Edition: sv_wsm_waf_package_premium
// SaaS Enterprise Edition: sv_wsm_waf_package_enterprise
// SaaS Ultimate Edition: sv_wsm_waf_package_ultimate
// SaaS non-Chinese Mainland Advanced Edition: sv_wsm_waf_package_premium_intl
// SaaS non-Chinese Mainland Enterprise Edition: sv_wsm_waf_package_enterprise_intl
// SaaS non-Chinese Mainland Ultimate Edition: sv_wsm_waf_package_ultimate_intl
// SaaS business expansion package: sv_wsm_waf_qps_ep
// SaaS domain name expansion package: sv_wsm_waf_domain
//
// Advanced Edition CLB: sv_wsm_waf_package_premium_clb
// Enterprise Edition CLB: sv_wsm_waf_package_enterprise_clb
// Ultimate Edition CLB: sv_wsm_waf_package_ultimate_clb
// Non-Chinese Mainland Advanced Edition CLB: sv_wsm_waf_package_premium_clb_intl
// Non-Chinese Mainland Enterprise Edition CLB: sv_wsm_waf_package_premium_clb_intl
// Non-Chinese Mainland Ultimate Edition CLB: sv_wsm_waf_package_ultimate_clb_intl
// Business expansion package CLB: sv_wsm_waf_qps_ep_clb
// Domain name expansion package CLB: sv_wsm_waf_domain_clb
//
// Note: This field may return null, indicating that no valid values can be obtained.
LabelTypes []*string `json:"LabelTypes,omitnil,omitempty" name:"LabelTypes"`
// Number of Billing Detail Tags, Generally Corresponds One-to-One with SvLabelType
//
// Note: This field may return null, indicating that no valid values can be obtained.
LabelCounts []*int64 `json:"LabelCounts,omitnil,omitempty" name:"LabelCounts"`
// Dynamic Configuration Usage, Instance Expiration Time
//
// Note: This field may return null, indicating that no valid values can be obtained.
CurDeadline *string `json:"CurDeadline,omitnil,omitempty" name:"CurDeadline"`
// Purchasing Bot or API Security for Existing Instances
//
// Note: This field may return null, indicating that no valid values can be obtained.
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Resource ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`
// CLB WAF or SaaS WAF mode.
// Note: This field may return null, indicating that no valid values can be obtained.
MicroVersion *string `json:"MicroVersion,omitnil,omitempty" name:"MicroVersion"`
}
type HostRecord ¶
type HostRecord struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Unique domain name ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Primary Domain, empty upon input
MainDomain *string `json:"MainDomain,omitnil,omitempty" name:"MainDomain"`
// Rule engine protection mode
// 0: observation mode
// 1: interception mode
Mode *uint64 `json:"Mode,omitnil,omitempty" name:"Mode"`
// Binding relationship between WAF and CLB
// 0: unbound
// 1: bound
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Domain name listener status of CLB WAF
// 0: operation successful
// 4: CLB instance binding in progress
// 6: CLB instance unbinding in progress
// 7: CLB instance unbinding failed
// 8: CLB instance binding failed
// 10: internal error
State *uint64 `json:"State,omitnil,omitempty" name:"State"`
// Status of the rule engine and AI engine
// 1: initial status. Interception for the rule engine and disabled for the AI engine.
// 10: observation for the rule engine and disabled for the AI engine
// 11: observation for both the rule engine and AI engine
// 12: observation for the rule engine and interception for the AI engine
// 20: interception for the rule engine and disabled for the AI engine
// 21: interception for the rule engine and observation for the AI engine
// 22: interception for both the rule engine and AI engine
Engine *uint64 `json:"Engine,omitnil,omitempty" name:"Engine"`
// Whether a layer-7 proxy service is deployed before WAF. 0: No proxy service deployed; 1: Proxy service deployed, and WAF will use XFF to obtain the client IP address; 2: Proxy service deployed, and WAF will use remote_addr to obtain the client IP address; 3: Proxy service deployed, and WAF will use the custom header in ip_headers to obtain the client IP address.
IsCdn *uint64 `json:"IsCdn,omitnil,omitempty" name:"IsCdn"`
// List of the information on the bound CLB instance
LoadBalancerSet []*LoadBalancer `json:"LoadBalancerSet,omitnil,omitempty" name:"LoadBalancerSet"`
// Region of the CLB instance bound to the domain name. Separate multiple regions by commas.
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// Instance type of the domain name. For CLB WAF, the value is "clb-waf".
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Traffic mode of domain names protected by CLB WAF
// 1: cleaning mode
// 0: mirror mode
FlowMode *uint64 `json:"FlowMode,omitnil,omitempty" name:"FlowMode"`
// Whether to enable access logging
// 1: enable
// 0: disable
ClsStatus *uint64 `json:"ClsStatus,omitnil,omitempty" name:"ClsStatus"`
// Protection Level, Optional Values: 100, 200, 300
//
// Note: This field may return null, indicating that no valid values can be obtained.
Level *uint64 `json:"Level,omitnil,omitempty" name:"Level"`
// List of CDC clusters to which the domain name needs to be delivered. Specify this parameter for CDC scenes only.
// Note: This field may return null, indicating that no valid values can be obtained.
CdcClusters []*string `json:"CdcClusters,omitnil,omitempty" name:"CdcClusters"`
// Application CLB type. Default value: clb.
// clb: layer-7 CLB
// tsegw: Tencent Cloud API Gateway
// scf: Tencent Cloud Serverless
// apisix: Other Tencent Cloud Gateway. eg: APISIX gateway
// Note: This field may return null, indicating that no valid values can be obtained.
AlbType *string `json:"AlbType,omitnil,omitempty" name:"AlbType"`
// IsCdn=3 required for this parameter, indicates custom header
//
// Note: This field may return null, indicating that no valid values can be obtained.
IpHeaders []*string `json:"IpHeaders,omitnil,omitempty" name:"IpHeaders"`
// Rule engine type
// 1: menshen
// 2: tiga
// Note: This field may return null, indicating that no valid values can be obtained.
EngineType *int64 `json:"EngineType,omitnil,omitempty" name:"EngineType"`
// Cloud type
// public: public cloud
// private: private cloud
// hybrid: hybrid cloud
// Note: This field may return null, indicating that no valid values can be obtained.
CloudType *string `json:"CloudType,omitnil,omitempty" name:"CloudType"`
// Domain name remarks
// Note: This field may return null, indicating that no valid values can be obtained.
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
}
type HostStatus ¶
type HostStatus struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// WAF switch. 1: On, 0: Off
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
type HybridPkg ¶
type HybridPkg struct {
// Resource ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
ResourceIds *string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// Status
//
// Note: This field may return null, indicating that no valid values can be obtained.
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Region
//
// Note: This field may return null, indicating that no valid values can be obtained.
Region *int64 `json:"Region,omitnil,omitempty" name:"Region"`
// Start time
//
// Note: This field may return null, indicating that no valid values can be obtained.
BeginTime *string `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`
// End time
//
// Note: This field may return null, indicating that no valid values can be obtained.
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// Application Quantity
//
// Note: This field may return null, indicating that no valid values can be obtained.
InquireNum *int64 `json:"InquireNum,omitnil,omitempty" name:"InquireNum"`
// Usage Quantity
//
// Note: This field may return null, indicating that no valid values can be obtained.
UsedNum *int64 `json:"UsedNum,omitnil,omitempty" name:"UsedNum"`
// Renewal flag.
// Note: This field may return null, indicating that no valid values can be obtained.
RenewFlag *uint64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
}
type ImportIpAccessControlRequest ¶
type ImportIpAccessControlRequest struct {
*tchttp.BaseRequest
// List of imported IP allowlists/blocklists.
Data []*IpAccessControlParam `json:"Data,omitnil,omitempty" name:"Data"`
// Specific domain name, for example, test.qcloudwaf.com.
// Global domain name, that is, global.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Batch protection IP blocklists/allowlists or not. If yes, the value is batch; otherwise, it is empty.
SourceType *string `json:"SourceType,omitnil,omitempty" name:"SourceType"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
func NewImportIpAccessControlRequest ¶
func NewImportIpAccessControlRequest() (request *ImportIpAccessControlRequest)
func (*ImportIpAccessControlRequest) FromJsonString ¶
func (r *ImportIpAccessControlRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ImportIpAccessControlRequest) ToJsonString ¶
func (r *ImportIpAccessControlRequest) ToJsonString() string
type ImportIpAccessControlRequestParams ¶
type ImportIpAccessControlRequestParams struct {
// List of imported IP allowlists/blocklists.
Data []*IpAccessControlParam `json:"Data,omitnil,omitempty" name:"Data"`
// Specific domain name, for example, test.qcloudwaf.com.
// Global domain name, that is, global.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Batch protection IP blocklists/allowlists or not. If yes, the value is batch; otherwise, it is empty.
SourceType *string `json:"SourceType,omitnil,omitempty" name:"SourceType"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
Predefined struct for user
type ImportIpAccessControlResponse ¶
type ImportIpAccessControlResponse struct {
*tchttp.BaseResponse
Response *ImportIpAccessControlResponseParams `json:"Response"`
}
func NewImportIpAccessControlResponse ¶
func NewImportIpAccessControlResponse() (response *ImportIpAccessControlResponse)
func (*ImportIpAccessControlResponse) FromJsonString ¶
func (r *ImportIpAccessControlResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ImportIpAccessControlResponse) ToJsonString ¶
func (r *ImportIpAccessControlResponse) ToJsonString() string
type ImportIpAccessControlResponseParams ¶
type ImportIpAccessControlResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type InstanceInfo ¶
type InstanceInfo struct {
// Unique Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Instance name
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Resource ID corresponding to the Instance, for billing usage
ResourceIds *string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// Instance region
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// Payment mode
PayMode *uint64 `json:"PayMode,omitnil,omitempty" name:"PayMode"`
// Auto-renewal flag.
//
// 0: disable
//
// 1: enable
RenewFlag *uint64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// Elastic billing switch.
// 0: disable
//
// 1: enable
Mode *uint64 `json:"Mode,omitnil,omitempty" name:"Mode"`
// Instance package version.
// 101: Small and Micro Edition.
// 102: Ultra-light Edition.
// 2: Advanced Edition.
// 3: Enterprise Edition.
// 4: Ultimate Edition.
// 6: Exclusive Edition
Level *uint64 `json:"Level,omitnil,omitempty" name:"Level"`
// Instance expiration time
ValidTime *string `json:"ValidTime,omitnil,omitempty" name:"ValidTime"`
// Instance Start Time
BeginTime *string `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`
// Configured Domain Count
DomainCount *uint64 `json:"DomainCount,omitnil,omitempty" name:"DomainCount"`
// Maximum Domain Count
SubDomainLimit *uint64 `json:"SubDomainLimit,omitnil,omitempty" name:"SubDomainLimit"`
// Configured Primary Domain Count
MainDomainCount *uint64 `json:"MainDomainCount,omitnil,omitempty" name:"MainDomainCount"`
// Maximum Number of Primary Domain Names
MainDomainLimit *uint64 `json:"MainDomainLimit,omitnil,omitempty" name:"MainDomainLimit"`
// Instance QPS Peak within 30 Days
MaxQPS *uint64 `json:"MaxQPS,omitnil,omitempty" name:"MaxQPS"`
// QPS Expansion Package Information
QPS *QPSPackageNew `json:"QPS,omitnil,omitempty" name:"QPS"`
// Domain Extension Package Information
DomainPkg *DomainPackageNew `json:"DomainPkg,omitnil,omitempty" name:"DomainPkg"`
// User appid.
AppId *uint64 `json:"AppId,omitnil,omitempty" name:"AppId"`
// CLB or SaaS
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Business Security Package
//
// Note: This field may return null, indicating that no valid values can be obtained.
FraudPkg *FraudPkg `json:"FraudPkg,omitnil,omitempty" name:"FraudPkg"`
// Bot Resource Package
//
// Note: This field may return null, indicating that no valid values can be obtained.
BotPkg *BotPkg `json:"BotPkg,omitnil,omitempty" name:"BotPkg"`
// Bot's QPS details
//
// Note: This field may return null, indicating that no valid values can be obtained.
BotQPS *BotQPS `json:"BotQPS,omitnil,omitempty" name:"BotQPS"`
// QPS Elastic Billing Cap
//
// Note: This field may return null, indicating that no valid values can be obtained.
ElasticBilling *uint64 `json:"ElasticBilling,omitnil,omitempty" name:"ElasticBilling"`
// Attack Log Shipping Switch
//
// Note: This field may return null, indicating that no valid values can be obtained.
AttackLogPost *int64 `json:"AttackLogPost,omitnil,omitempty" name:"AttackLogPost"`
// Peak Bandwidth, in B/s (Bytes per Second)
//
// Note: This field may return null, indicating that no valid values can be obtained.
MaxBandwidth *uint64 `json:"MaxBandwidth,omitnil,omitempty" name:"MaxBandwidth"`
// Whether API security is purchased
APISecurity *uint64 `json:"APISecurity,omitnil,omitempty" name:"APISecurity"`
// Purchased QPS Specification
//
// Note: This field may return null, indicating that no valid values can be obtained.
QpsStandard *uint64 `json:"QpsStandard,omitnil,omitempty" name:"QpsStandard"`
// Purchased Bandwidth Specification
//
// Note: This field may return null, indicating that no valid values can be obtained.
BandwidthStandard *uint64 `json:"BandwidthStandard,omitnil,omitempty" name:"BandwidthStandard"`
// Instance status
//
// Note: This field may return null, indicating that no valid values can be obtained.
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Instance Sandbox QPS Value
//
// Note: This field may return null, indicating that no valid values can be obtained.
SandboxQps *uint64 `json:"SandboxQps,omitnil,omitempty" name:"SandboxQps"`
// Whether API Security is on Trial
//
// Note: This field may return null, indicating that no valid values can be obtained.
IsAPISecurityTrial *uint64 `json:"IsAPISecurityTrial,omitnil,omitempty" name:"IsAPISecurityTrial"`
// Premium Package
//
// Note: This field may return null, indicating that no valid values can be obtained.
MajorEventsPkg *MajorEventsPkg `json:"MajorEventsPkg,omitnil,omitempty" name:"MajorEventsPkg"`
// Hybrid Cloud Sub-node Package
//
// Note: This field may return null, indicating that no valid values can be obtained.
HybridPkg *HybridPkg `json:"HybridPkg,omitnil,omitempty" name:"HybridPkg"`
// API security resource package
//
// Note: This field may return null, indicating that no valid values can be obtained.
ApiPkg *ApiPkg `json:"ApiPkg,omitnil,omitempty" name:"ApiPkg"`
// MMPS Acceleration Package
//
// Note: This field may return null, indicating that no valid values can be obtained.
MiniPkg *MiniPkg `json:"MiniPkg,omitnil,omitempty" name:"MiniPkg"`
// Mini Program QPS Specification
//
// Note: This field may return null, indicating that no valid values can be obtained.
MiniQpsStandard *uint64 `json:"MiniQpsStandard,omitnil,omitempty" name:"MiniQpsStandard"`
// Mini Program QPS Peak
//
// Note: This field may return null, indicating that no valid values can be obtained.
MiniMaxQPS *uint64 `json:"MiniMaxQPS,omitnil,omitempty" name:"MiniMaxQPS"`
// Last overage time.
// Note: This field may return null, indicating that no valid values can be obtained.
LastQpsExceedTime *string `json:"LastQpsExceedTime,omitnil,omitempty" name:"LastQpsExceedTime"`
// ID quantity expansion package for secure mini program access.
//
// Note: This field may return null, indicating that no valid values can be obtained.
MiniExtendPkg *MiniExtendPkg `json:"MiniExtendPkg,omitnil,omitempty" name:"MiniExtendPkg"`
// Billing item.
// Note: This field may return null, indicating that no valid values can be obtained.
BillingItem *string `json:"BillingItem,omitnil,omitempty" name:"BillingItem"`
// Flag for delay of instance deletion.
//
// Note: This field may return null, indicating that no valid values can be obtained.
FreeDelayFlag *uint64 `json:"FreeDelayFlag,omitnil,omitempty" name:"FreeDelayFlag"`
}
type IpAccessControlData ¶
type IpAccessControlData struct {
// IP Blocklist/Allowlist
//
// Note: This field may return null, indicating that no valid values can be obtained.
Res []*IpAccessControlItem `json:"Res,omitnil,omitempty" name:"Res"`
// Counting.
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
}
type IpAccessControlItem ¶
type IpAccessControlItem struct {
// MongoDB Table Auto-increment ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
Id *string `json:"Id,omitnil,omitempty" name:"Id"`
// Action
ActionType *uint64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// ip
Ip *string `json:"Ip,omitnil,omitempty" name:"Ip"`
// Remarks
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// Source.
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Update Timestamp
//
// Note: This field may return null, indicating that no valid values can be obtained.
TsVersion *uint64 `json:"TsVersion,omitnil,omitempty" name:"TsVersion"`
// Expiration Timestamp
ValidTs *uint64 `json:"ValidTs,omitnil,omitempty" name:"ValidTs"`
// Effective status.
// Note: This field may return null, indicating that no valid values can be obtained.
ValidStatus *int64 `json:"ValidStatus,omitnil,omitempty" name:"ValidStatus"`
// 55000001
// Note: This field may return null, indicating that no valid values can be obtained.
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// IP list.
// Note: This field may return null, indicating that no valid values can be obtained.
IpList []*string `json:"IpList,omitnil,omitempty" name:"IpList"`
// Rule creation time
//
// Note: This field may return null, indicating that no valid values can be obtained.
CreateTime *uint64 `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// Scheduled task type
//
// Note: This field may return null, indicating that no valid values can be obtained.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Periodic task type.
//
// Note: This field may return null, indicating that no valid values can be obtained.
CronType *string `json:"CronType,omitnil,omitempty" name:"CronType"`
// Details of scheduled task configuration.
//
// Note: This field may return null, indicating that no valid values can be obtained.
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
}
type IpAccessControlParam ¶
type IpAccessControlParam struct {
// IP list.
IpList []*string `json:"IpList,omitnil,omitempty" name:"IpList"`
// valid_ts indicates a valid date. Its value is a second-level timestamp, such as 1680570420, which indicates 2023-04-04 09:07:00.
ValidTs *uint64 `json:"ValidTs,omitnil,omitempty" name:"ValidTs"`
// 42: blocklist; 40: allowlist.
ActionType *int64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Remarks
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
}
type JobDateTime ¶
type JobDateTime struct {
// Time parameter for scheduled execution.
Timed []*TimedJob `json:"Timed,omitnil,omitempty" name:"Timed"`
// Time parameter for periodic execution.
Cron []*CronJob `json:"Cron,omitnil,omitempty" name:"Cron"`
// Specifies the time zone.
TimeTZone *string `json:"TimeTZone,omitnil,omitempty" name:"TimeTZone"`
}
type LoadBalancer ¶
type LoadBalancer struct {
// CLB LD's ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB LD's Name
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// CLB Listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Name of CLB Listener
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// IP of CLB Instance
Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// Port of the CLB Instance
Vport *uint64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// CLB LD's Region
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// Listener Protocol, HTTP, HTTPS
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Zone of the CLB Listener
Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// CLB's VPC ID, -1 for public network, fill in the actual number for private network
//
// Note: This field may return null, indicating that no valid values can be obtained.
NumericalVpcId *int64 `json:"NumericalVpcId,omitnil,omitempty" name:"NumericalVpcId"`
// CLB Network Type
//
// Note: This field may return null, indicating that no valid values can be obtained.
LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
// CLB Domain Name
//
// Note: This field may return null, indicating that no valid values can be obtained.
LoadBalancerDomain *string `json:"LoadBalancerDomain,omitnil,omitempty" name:"LoadBalancerDomain"`
}
type LoadBalancerPackageNew ¶
type LoadBalancerPackageNew struct {
// Listener ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Listening Name
//
// Note: This field may return null, indicating that no valid values can be obtained.
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// CLB instance ID
// Note: This field may return null, indicating that no valid values can be obtained.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB name
//
// Note: This field may return null, indicating that no valid values can be obtained.
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// Protocol
//
// Note: This field may return null, indicating that no valid values can be obtained.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Region
// "Toronto": "ca",
// "Guangzhou": "gz",
// "Chengdu": "cd",
// "Fuzhou": "fzec",
// "Shenzhen": "szx",
// "India": "in",
// "Jinan": "jnec",
// "Chongqing": "cq",
// "Tianjin": "tsn",
// "Northeast Europe": "ru",
// "Nanjing": "nj",
// "Silicon Valley (U.S.)": "usw",
// "Thailand": "th",
// "Guangzhou Open": "gzopen",
// "Shenzhen Finance": "szjr",
// "Frankfurt": "de",
// "Japan": "jp",
// "Virginia": "use",
// "Beijing": "bj",
// "Hong Kong (China)": "hk",
// "Hangzhou": "hzec",
// "Beijing Finance": "bjjr",
// "Shanghai Finance": "shjr",
// "Taipei (China)": "tpe",
// "Seoul": "kr",
// "Shanghai": "sh",
// "Singapore": "sg",
// "Qingyuan": "qy"
// Note: This field may return null, indicating that no valid values can be obtained.
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// Access IP
//
// Note: This field may return null, indicating that no valid values can be obtained.
Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// Access Port
//
// Note: This field may return null, indicating that no valid values can be obtained.
Vport *uint64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// Region
//
// Note: This field may return null, indicating that no valid values can be obtained.
Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// VPCID
// Note: This field may return null, indicating that no valid values can be obtained.
NumericalVpcId *int64 `json:"NumericalVpcId,omitnil,omitempty" name:"NumericalVpcId"`
// CLB Type
//
// Note: This field may return null, indicating that no valid values can be obtained.
LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
// Domain Name of CLB
//
// Note: This field may return null, indicating that no valid values can be obtained.
LoadBalancerDomain *string `json:"LoadBalancerDomain,omitnil,omitempty" name:"LoadBalancerDomain"`
}
type LogHistogramInfo ¶
type MajorEventsPkg ¶
type MajorEventsPkg struct {
// Resource ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
ResourceIds *string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// Status
//
// Note: This field may return null, indicating that no valid values can be obtained.
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Region
//
// Note: This field may return null, indicating that no valid values can be obtained.
Region *int64 `json:"Region,omitnil,omitempty" name:"Region"`
// Start time
//
// Note: This field may return null, indicating that no valid values can be obtained.
BeginTime *string `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`
// End time
//
// Note: This field may return null, indicating that no valid values can be obtained.
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// Application Quantity
//
// Note: This field may return null, indicating that no valid values can be obtained.
InquireNum *int64 `json:"InquireNum,omitnil,omitempty" name:"InquireNum"`
// Usage Quantity
//
// Note: This field may return null, indicating that no valid values can be obtained.
UsedNum *int64 `json:"UsedNum,omitnil,omitempty" name:"UsedNum"`
// Renewal flag.
// Note: This field may return null, indicating that no valid values can be obtained.
RenewFlag *uint64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// Billing item.
// Note: This field may return null, indicating that no valid values can be obtained.
BillingItem *string `json:"BillingItem,omitnil,omitempty" name:"BillingItem"`
// Protection Package Status
//
// Note: This field may return null, indicating that no valid values can be obtained.
HWState *int64 `json:"HWState,omitnil,omitempty" name:"HWState"`
}
type MiniExtendPkg ¶
type MiniExtendPkg struct {
// Resource ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
ResourceIds *string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// Status
//
// Note: This field may return null, indicating that no valid values can be obtained.
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Region
//
// Note: This field may return null, indicating that no valid values can be obtained.
Region *int64 `json:"Region,omitnil,omitempty" name:"Region"`
// Start time
//
// Note: This field may return null, indicating that no valid values can be obtained.
BeginTime *string `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`
// End time
//
// Note: This field may return null, indicating that no valid values can be obtained.
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// Purchase quantity.
// Note: This field may return null, indicating that no valid values can be obtained.
Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
// Renewal flag.
// Note: This field may return null, indicating that no valid values can be obtained.
RenewFlag *uint64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// Billing item.
// Note: This field may return null, indicating that no valid values can be obtained.
BillingItem *string `json:"BillingItem,omitnil,omitempty" name:"BillingItem"`
}
type MiniPkg ¶
type MiniPkg struct {
// Resource ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
ResourceIds *string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// Status
//
// Note: This field may return null, indicating that no valid values can be obtained.
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Region
//
// Note: This field may return null, indicating that no valid values can be obtained.
Region *int64 `json:"Region,omitnil,omitempty" name:"Region"`
// Start time
//
// Note: This field may return null, indicating that no valid values can be obtained.
BeginTime *string `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`
// End time
//
// Note: This field may return null, indicating that no valid values can be obtained.
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// Purchase quantity.
// Note: This field may return null, indicating that no valid values can be obtained.
Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
// Renewal flag.
// Note: This field may return null, indicating that no valid values can be obtained.
RenewFlag *uint64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// Billing item.
// Note: This field may return null, indicating that no valid values can be obtained.
BillingItem *string `json:"BillingItem,omitnil,omitempty" name:"BillingItem"`
}
type ModifyAntiFakeUrlRequest ¶
type ModifyAntiFakeUrlRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// uri
Uri *string `json:"Uri,omitnil,omitempty" name:"Uri"`
// ID
Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`
}
func NewModifyAntiFakeUrlRequest ¶
func NewModifyAntiFakeUrlRequest() (request *ModifyAntiFakeUrlRequest)
func (*ModifyAntiFakeUrlRequest) FromJsonString ¶
func (r *ModifyAntiFakeUrlRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAntiFakeUrlRequest) ToJsonString ¶
func (r *ModifyAntiFakeUrlRequest) ToJsonString() string
type ModifyAntiFakeUrlRequestParams ¶
type ModifyAntiFakeUrlRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// uri
Uri *string `json:"Uri,omitnil,omitempty" name:"Uri"`
// ID
Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`
}
Predefined struct for user
type ModifyAntiFakeUrlResponse ¶
type ModifyAntiFakeUrlResponse struct {
*tchttp.BaseResponse
Response *ModifyAntiFakeUrlResponseParams `json:"Response"`
}
func NewModifyAntiFakeUrlResponse ¶
func NewModifyAntiFakeUrlResponse() (response *ModifyAntiFakeUrlResponse)
func (*ModifyAntiFakeUrlResponse) FromJsonString ¶
func (r *ModifyAntiFakeUrlResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAntiFakeUrlResponse) ToJsonString ¶
func (r *ModifyAntiFakeUrlResponse) ToJsonString() string
type ModifyAntiFakeUrlResponseParams ¶
type ModifyAntiFakeUrlResponseParams struct {
// Result
Result *string `json:"Result,omitnil,omitempty" name:"Result"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyAntiFakeUrlStatusRequest ¶
type ModifyAntiFakeUrlStatusRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// ID List
Ids []*uint64 `json:"Ids,omitnil,omitempty" name:"Ids"`
}
func NewModifyAntiFakeUrlStatusRequest ¶
func NewModifyAntiFakeUrlStatusRequest() (request *ModifyAntiFakeUrlStatusRequest)
func (*ModifyAntiFakeUrlStatusRequest) FromJsonString ¶
func (r *ModifyAntiFakeUrlStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAntiFakeUrlStatusRequest) ToJsonString ¶
func (r *ModifyAntiFakeUrlStatusRequest) ToJsonString() string
type ModifyAntiFakeUrlStatusRequestParams ¶
type ModifyAntiFakeUrlStatusRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// ID List
Ids []*uint64 `json:"Ids,omitnil,omitempty" name:"Ids"`
}
Predefined struct for user
type ModifyAntiFakeUrlStatusResponse ¶
type ModifyAntiFakeUrlStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyAntiFakeUrlStatusResponseParams `json:"Response"`
}
func NewModifyAntiFakeUrlStatusResponse ¶
func NewModifyAntiFakeUrlStatusResponse() (response *ModifyAntiFakeUrlStatusResponse)
func (*ModifyAntiFakeUrlStatusResponse) FromJsonString ¶
func (r *ModifyAntiFakeUrlStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAntiFakeUrlStatusResponse) ToJsonString ¶
func (r *ModifyAntiFakeUrlStatusResponse) ToJsonString() string
type ModifyAntiFakeUrlStatusResponseParams ¶
type ModifyAntiFakeUrlStatusResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyAntiInfoLeakRuleStatusRequest ¶
type ModifyAntiInfoLeakRuleStatusRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}
func NewModifyAntiInfoLeakRuleStatusRequest ¶
func NewModifyAntiInfoLeakRuleStatusRequest() (request *ModifyAntiInfoLeakRuleStatusRequest)
func (*ModifyAntiInfoLeakRuleStatusRequest) FromJsonString ¶
func (r *ModifyAntiInfoLeakRuleStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAntiInfoLeakRuleStatusRequest) ToJsonString ¶
func (r *ModifyAntiInfoLeakRuleStatusRequest) ToJsonString() string
type ModifyAntiInfoLeakRuleStatusRequestParams ¶
type ModifyAntiInfoLeakRuleStatusRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}
Predefined struct for user
type ModifyAntiInfoLeakRuleStatusResponse ¶
type ModifyAntiInfoLeakRuleStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyAntiInfoLeakRuleStatusResponseParams `json:"Response"`
}
func NewModifyAntiInfoLeakRuleStatusResponse ¶
func NewModifyAntiInfoLeakRuleStatusResponse() (response *ModifyAntiInfoLeakRuleStatusResponse)
func (*ModifyAntiInfoLeakRuleStatusResponse) FromJsonString ¶
func (r *ModifyAntiInfoLeakRuleStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAntiInfoLeakRuleStatusResponse) ToJsonString ¶
func (r *ModifyAntiInfoLeakRuleStatusResponse) ToJsonString() string
type ModifyAntiInfoLeakRuleStatusResponseParams ¶
type ModifyAntiInfoLeakRuleStatusResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyAntiInfoLeakRulesRequest ¶
type ModifyAntiInfoLeakRulesRequest struct {
*tchttp.BaseRequest
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Action value
ActionType *uint64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Policy array
Strategies []*StrategyForAntiInfoLeak `json:"Strategies,omitnil,omitempty" name:"Strategies"`
}
func NewModifyAntiInfoLeakRulesRequest ¶
func NewModifyAntiInfoLeakRulesRequest() (request *ModifyAntiInfoLeakRulesRequest)
func (*ModifyAntiInfoLeakRulesRequest) FromJsonString ¶
func (r *ModifyAntiInfoLeakRulesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAntiInfoLeakRulesRequest) ToJsonString ¶
func (r *ModifyAntiInfoLeakRulesRequest) ToJsonString() string
type ModifyAntiInfoLeakRulesRequestParams ¶
type ModifyAntiInfoLeakRulesRequestParams struct {
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Action value
ActionType *uint64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Policy array
Strategies []*StrategyForAntiInfoLeak `json:"Strategies,omitnil,omitempty" name:"Strategies"`
}
Predefined struct for user
type ModifyAntiInfoLeakRulesResponse ¶
type ModifyAntiInfoLeakRulesResponse struct {
*tchttp.BaseResponse
Response *ModifyAntiInfoLeakRulesResponseParams `json:"Response"`
}
func NewModifyAntiInfoLeakRulesResponse ¶
func NewModifyAntiInfoLeakRulesResponse() (response *ModifyAntiInfoLeakRulesResponse)
func (*ModifyAntiInfoLeakRulesResponse) FromJsonString ¶
func (r *ModifyAntiInfoLeakRulesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAntiInfoLeakRulesResponse) ToJsonString ¶
func (r *ModifyAntiInfoLeakRulesResponse) ToJsonString() string
type ModifyAntiInfoLeakRulesResponseParams ¶
type ModifyAntiInfoLeakRulesResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyApiAnalyzeStatusRequest ¶
type ModifyApiAnalyzeStatusRequest struct {
*tchttp.BaseRequest
// Enabling status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// List of entities to be bulk enabled
TargetList []*TargetEntity `json:"TargetList,omitnil,omitempty" name:"TargetList"`
}
func NewModifyApiAnalyzeStatusRequest ¶
func NewModifyApiAnalyzeStatusRequest() (request *ModifyApiAnalyzeStatusRequest)
func (*ModifyApiAnalyzeStatusRequest) FromJsonString ¶
func (r *ModifyApiAnalyzeStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyApiAnalyzeStatusRequest) ToJsonString ¶
func (r *ModifyApiAnalyzeStatusRequest) ToJsonString() string
type ModifyApiAnalyzeStatusRequestParams ¶
type ModifyApiAnalyzeStatusRequestParams struct {
// Enabling status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// List of entities to be bulk enabled
TargetList []*TargetEntity `json:"TargetList,omitnil,omitempty" name:"TargetList"`
}
Predefined struct for user
type ModifyApiAnalyzeStatusResponse ¶
type ModifyApiAnalyzeStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyApiAnalyzeStatusResponseParams `json:"Response"`
}
func NewModifyApiAnalyzeStatusResponse ¶
func NewModifyApiAnalyzeStatusResponse() (response *ModifyApiAnalyzeStatusResponse)
func (*ModifyApiAnalyzeStatusResponse) FromJsonString ¶
func (r *ModifyApiAnalyzeStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyApiAnalyzeStatusResponse) ToJsonString ¶
func (r *ModifyApiAnalyzeStatusResponse) ToJsonString() string
type ModifyApiAnalyzeStatusResponseParams ¶
type ModifyApiAnalyzeStatusResponseParams struct {
// Number of Activated. If the returned value is 3 (greater than the number of domains supported for activation), the activation has failed.
//
// Note: This field may return null, indicating that no valid values can be obtained.
Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
// Domain list not supported to enable
//
// Note: This field may return null, indicating that no valid values can be obtained.
UnSupportedList []*string `json:"UnSupportedList,omitnil,omitempty" name:"UnSupportedList"`
// Domain list with enabling/disabling failed
//
// Note: This field may return null, indicating that no valid values can be obtained.
FailDomainList []*string `json:"FailDomainList,omitnil,omitempty" name:"FailDomainList"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyBotStatusRequest ¶
type ModifyBotStatusRequest struct {
*tchttp.BaseRequest
// Category
Category *string `json:"Category,omitnil,omitempty" name:"Category"`
// Status
Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Whether it is the bot 4.0 version
IsVersionFour *bool `json:"IsVersionFour,omitnil,omitempty" name:"IsVersionFour"`
// Enter the bot version number, scenario-based version: 4.1.0
BotVersion *string `json:"BotVersion,omitnil,omitempty" name:"BotVersion"`
// List of domain names on which bot detection is to be enabled or disabled in batch
DomainList []*string `json:"DomainList,omitnil,omitempty" name:"DomainList"`
}
func NewModifyBotStatusRequest ¶
func NewModifyBotStatusRequest() (request *ModifyBotStatusRequest)
func (*ModifyBotStatusRequest) FromJsonString ¶
func (r *ModifyBotStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBotStatusRequest) ToJsonString ¶
func (r *ModifyBotStatusRequest) ToJsonString() string
type ModifyBotStatusRequestParams ¶
type ModifyBotStatusRequestParams struct {
// Category
Category *string `json:"Category,omitnil,omitempty" name:"Category"`
// Status
Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Whether it is the bot 4.0 version
IsVersionFour *bool `json:"IsVersionFour,omitnil,omitempty" name:"IsVersionFour"`
// Enter the bot version number, scenario-based version: 4.1.0
BotVersion *string `json:"BotVersion,omitnil,omitempty" name:"BotVersion"`
// List of domain names on which bot detection is to be enabled or disabled in batch
DomainList []*string `json:"DomainList,omitnil,omitempty" name:"DomainList"`
}
Predefined struct for user
type ModifyBotStatusResponse ¶
type ModifyBotStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyBotStatusResponseParams `json:"Response"`
}
func NewModifyBotStatusResponse ¶
func NewModifyBotStatusResponse() (response *ModifyBotStatusResponse)
func (*ModifyBotStatusResponse) FromJsonString ¶
func (r *ModifyBotStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBotStatusResponse) ToJsonString ¶
func (r *ModifyBotStatusResponse) ToJsonString() string
type ModifyBotStatusResponseParams ¶
type ModifyBotStatusResponseParams struct {
// Normally null
//
// Note: This field may return null, indicating that no valid values can be obtained.
Data *string `json:"Data,omitnil,omitempty" name:"Data"`
// List of domain names for which no bots are purchased
// Note: This field may return null, indicating that no valid values can be obtained.
UnSupportedList []*string `json:"UnSupportedList,omitnil,omitempty" name:"UnSupportedList"`
// List of domain names which bots are purchased but the operation fails
// Note: This field may return null, indicating that no valid values can be obtained.
FailDomainList []*string `json:"FailDomainList,omitnil,omitempty" name:"FailDomainList"`
// Number of successes
Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyCustomRuleRequest ¶
type ModifyCustomRuleRequest struct {
*tchttp.BaseRequest
// Edited domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Edited rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Edited rule name
RuleName *string `json:"RuleName,omitnil,omitempty" name:"RuleName"`
// Executed actions: 0-allow, 1-block, 2-CAPTCHA, 3-observe, 4-redirect
RuleAction *string `json:"RuleAction,omitnil,omitempty" name:"RuleAction"`
// Matching condition array
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// Version of WAF. clb-waf indicates CLB WAF; sparta-waf indicates SaaS WAF. sparta-waf by default.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Redirected URL when action is set to redirect, / by default
Redirect *string `json:"Redirect,omitnil,omitempty" name:"Redirect"`
// Whether to continue executing other check logic upon allowing. geoip: continue region blocking protection; cc: continue CC policy protection; owasp: continue web application protection; ai: continue AI engine protection; antileakage: continue information leakage prevention. If multiple values are entered, separate them with commas (,).
// The default value is "geoip,cc,owasp,ai,antileakage".
Bypass *string `json:"Bypass,omitnil,omitempty" name:"Bypass"`
// Priority, an integer from 1 to 100. The smaller the number, the higher the execution priority of this rule.
//
// The default value is 100.
SortId *uint64 `json:"SortId,omitnil,omitempty" name:"SortId"`
// Rule expiration deadline: 0 - permanently effective; other values correspond to the timestamp of the specified time.
//
// The default value is 0.
ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// Scheduled task type
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Scheduled task configuration
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
// Rule source. This parameter checks whether the rule source is mini program.
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Enabling status. Pass the value for rules of mini program risk control.
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// ID of the blocked page
PageId *string `json:"PageId,omitnil,omitempty" name:"PageId"`
}
func NewModifyCustomRuleRequest ¶
func NewModifyCustomRuleRequest() (request *ModifyCustomRuleRequest)
func (*ModifyCustomRuleRequest) FromJsonString ¶
func (r *ModifyCustomRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCustomRuleRequest) ToJsonString ¶
func (r *ModifyCustomRuleRequest) ToJsonString() string
type ModifyCustomRuleRequestParams ¶
type ModifyCustomRuleRequestParams struct {
// Edited domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Edited rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Edited rule name
RuleName *string `json:"RuleName,omitnil,omitempty" name:"RuleName"`
// Executed actions: 0-allow, 1-block, 2-CAPTCHA, 3-observe, 4-redirect
RuleAction *string `json:"RuleAction,omitnil,omitempty" name:"RuleAction"`
// Matching condition array
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// Version of WAF. clb-waf indicates CLB WAF; sparta-waf indicates SaaS WAF. sparta-waf by default.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Redirected URL when action is set to redirect, / by default
Redirect *string `json:"Redirect,omitnil,omitempty" name:"Redirect"`
// Whether to continue executing other check logic upon allowing. geoip: continue region blocking protection; cc: continue CC policy protection; owasp: continue web application protection; ai: continue AI engine protection; antileakage: continue information leakage prevention. If multiple values are entered, separate them with commas (,).
// The default value is "geoip,cc,owasp,ai,antileakage".
Bypass *string `json:"Bypass,omitnil,omitempty" name:"Bypass"`
// Priority, an integer from 1 to 100. The smaller the number, the higher the execution priority of this rule.
//
// The default value is 100.
SortId *uint64 `json:"SortId,omitnil,omitempty" name:"SortId"`
// Rule expiration deadline: 0 - permanently effective; other values correspond to the timestamp of the specified time.
//
// The default value is 0.
ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// Scheduled task type
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Scheduled task configuration
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
// Rule source. This parameter checks whether the rule source is mini program.
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Enabling status. Pass the value for rules of mini program risk control.
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// ID of the blocked page
PageId *string `json:"PageId,omitnil,omitempty" name:"PageId"`
}
Predefined struct for user
type ModifyCustomRuleResponse ¶
type ModifyCustomRuleResponse struct {
*tchttp.BaseResponse
Response *ModifyCustomRuleResponseParams `json:"Response"`
}
func NewModifyCustomRuleResponse ¶
func NewModifyCustomRuleResponse() (response *ModifyCustomRuleResponse)
func (*ModifyCustomRuleResponse) FromJsonString ¶
func (r *ModifyCustomRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCustomRuleResponse) ToJsonString ¶
func (r *ModifyCustomRuleResponse) ToJsonString() string
type ModifyCustomRuleResponseParams ¶
type ModifyCustomRuleResponseParams struct {
// Operation status code: if all resource operations succeed, the success status code is returned; if any resource operation fails, the content of Message needs to be parsed to see which resource failed.
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyCustomRuleStatusRequest ¶
type ModifyCustomRuleStatusRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Status of the switch: 1 is On, 0 is Off
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Version of WAF. clb-waf indicates CLB WAF; sparta-waf indicates SaaS WAF. sparta-waf by default.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Rule ID
DomainRuleIdList []*DomainRuleId `json:"DomainRuleIdList,omitnil,omitempty" name:"DomainRuleIdList"`
}
func NewModifyCustomRuleStatusRequest ¶
func NewModifyCustomRuleStatusRequest() (request *ModifyCustomRuleStatusRequest)
func (*ModifyCustomRuleStatusRequest) FromJsonString ¶
func (r *ModifyCustomRuleStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCustomRuleStatusRequest) ToJsonString ¶
func (r *ModifyCustomRuleStatusRequest) ToJsonString() string
type ModifyCustomRuleStatusRequestParams ¶
type ModifyCustomRuleStatusRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Status of the switch: 1 is On, 0 is Off
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Version of WAF. clb-waf indicates CLB WAF; sparta-waf indicates SaaS WAF. sparta-waf by default.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Rule ID
DomainRuleIdList []*DomainRuleId `json:"DomainRuleIdList,omitnil,omitempty" name:"DomainRuleIdList"`
}
Predefined struct for user
type ModifyCustomRuleStatusResponse ¶
type ModifyCustomRuleStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyCustomRuleStatusResponseParams `json:"Response"`
}
func NewModifyCustomRuleStatusResponse ¶
func NewModifyCustomRuleStatusResponse() (response *ModifyCustomRuleStatusResponse)
func (*ModifyCustomRuleStatusResponse) FromJsonString ¶
func (r *ModifyCustomRuleStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCustomRuleStatusResponse) ToJsonString ¶
func (r *ModifyCustomRuleStatusResponse) ToJsonString() string
type ModifyCustomRuleStatusResponseParams ¶
type ModifyCustomRuleStatusResponseParams struct {
// Operation status code: if all resource operations succeed, the success status code is returned; if any resource operation fails, the content of Message needs to be parsed to see which resource failed.
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyCustomWhiteRuleRequest ¶
type ModifyCustomWhiteRuleRequest struct {
*tchttp.BaseRequest
// Edited domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Edited rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Edited rule name
RuleName *string `json:"RuleName,omitnil,omitempty" name:"RuleName"`
// Whether to continue executing other check logics when bypassing, continue executing regional ban protection - geoip; continue executing CC policy protection - cc; continue executing WEB application protection: owasp; continue executing AI engine protection - ai; continue executing information leakage protection - antileakage. If multiple items are selected, concatenate with commas (,).
Bypass *string `json:"Bypass,omitnil,omitempty" name:"Bypass"`
// Priority, an integer from 1 to 100. The smaller the number, the higher the execution priority of this rule.
SortId *uint64 `json:"SortId,omitnil,omitempty" name:"SortId"`
// Rule expiration deadline: 0 - permanently effective; other values correspond to the timestamp of the specified time.
ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// Matching condition array
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// Scheduled task type
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Scheduled task configuration
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
}
func NewModifyCustomWhiteRuleRequest ¶
func NewModifyCustomWhiteRuleRequest() (request *ModifyCustomWhiteRuleRequest)
func (*ModifyCustomWhiteRuleRequest) FromJsonString ¶
func (r *ModifyCustomWhiteRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCustomWhiteRuleRequest) ToJsonString ¶
func (r *ModifyCustomWhiteRuleRequest) ToJsonString() string
type ModifyCustomWhiteRuleRequestParams ¶
type ModifyCustomWhiteRuleRequestParams struct {
// Edited domain
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Edited rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Edited rule name
RuleName *string `json:"RuleName,omitnil,omitempty" name:"RuleName"`
// Whether to continue executing other check logics when bypassing, continue executing regional ban protection - geoip; continue executing CC policy protection - cc; continue executing WEB application protection: owasp; continue executing AI engine protection - ai; continue executing information leakage protection - antileakage. If multiple items are selected, concatenate with commas (,).
Bypass *string `json:"Bypass,omitnil,omitempty" name:"Bypass"`
// Priority, an integer from 1 to 100. The smaller the number, the higher the execution priority of this rule.
SortId *uint64 `json:"SortId,omitnil,omitempty" name:"SortId"`
// Rule expiration deadline: 0 - permanently effective; other values correspond to the timestamp of the specified time.
ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// Matching condition array
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// Scheduled task type
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Scheduled task configuration
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
}
Predefined struct for user
type ModifyCustomWhiteRuleResponse ¶
type ModifyCustomWhiteRuleResponse struct {
*tchttp.BaseResponse
Response *ModifyCustomWhiteRuleResponseParams `json:"Response"`
}
func NewModifyCustomWhiteRuleResponse ¶
func NewModifyCustomWhiteRuleResponse() (response *ModifyCustomWhiteRuleResponse)
func (*ModifyCustomWhiteRuleResponse) FromJsonString ¶
func (r *ModifyCustomWhiteRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCustomWhiteRuleResponse) ToJsonString ¶
func (r *ModifyCustomWhiteRuleResponse) ToJsonString() string
type ModifyCustomWhiteRuleResponseParams ¶
type ModifyCustomWhiteRuleResponseParams struct {
// Operation status code: if all resource operations succeed, the success status code is returned; if any resource operation fails, the content of Message needs to be parsed to see which resource failed.
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyCustomWhiteRuleStatusRequest ¶
type ModifyCustomWhiteRuleStatusRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Status of the switch: 1 is On, 0 is Off
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}
func NewModifyCustomWhiteRuleStatusRequest ¶
func NewModifyCustomWhiteRuleStatusRequest() (request *ModifyCustomWhiteRuleStatusRequest)
func (*ModifyCustomWhiteRuleStatusRequest) FromJsonString ¶
func (r *ModifyCustomWhiteRuleStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCustomWhiteRuleStatusRequest) ToJsonString ¶
func (r *ModifyCustomWhiteRuleStatusRequest) ToJsonString() string
type ModifyCustomWhiteRuleStatusRequestParams ¶
type ModifyCustomWhiteRuleStatusRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Status of the switch: 1 is On, 0 is Off
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}
Predefined struct for user
type ModifyCustomWhiteRuleStatusResponse ¶
type ModifyCustomWhiteRuleStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyCustomWhiteRuleStatusResponseParams `json:"Response"`
}
func NewModifyCustomWhiteRuleStatusResponse ¶
func NewModifyCustomWhiteRuleStatusResponse() (response *ModifyCustomWhiteRuleStatusResponse)
func (*ModifyCustomWhiteRuleStatusResponse) FromJsonString ¶
func (r *ModifyCustomWhiteRuleStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCustomWhiteRuleStatusResponse) ToJsonString ¶
func (r *ModifyCustomWhiteRuleStatusResponse) ToJsonString() string
type ModifyCustomWhiteRuleStatusResponseParams ¶
type ModifyCustomWhiteRuleStatusResponseParams struct {
// Operation status code: if all resource operations succeed, the success status code is returned; if any resource operation fails, the content of Message needs to be parsed to see which resource failed.
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyDomainIpv6StatusRequest ¶
type ModifyDomainIpv6StatusRequest struct {
*tchttp.BaseRequest
// Instance ID of the domain to be modified
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Domain to modify
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID to be modified
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// IPv6 switch for modifying domain is Status (1: enable, 2: disable)
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
}
func NewModifyDomainIpv6StatusRequest ¶
func NewModifyDomainIpv6StatusRequest() (request *ModifyDomainIpv6StatusRequest)
func (*ModifyDomainIpv6StatusRequest) FromJsonString ¶
func (r *ModifyDomainIpv6StatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDomainIpv6StatusRequest) ToJsonString ¶
func (r *ModifyDomainIpv6StatusRequest) ToJsonString() string
type ModifyDomainIpv6StatusRequestParams ¶
type ModifyDomainIpv6StatusRequestParams struct {
// Instance ID of the domain to be modified
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Domain to modify
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID to be modified
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// IPv6 switch for modifying domain is Status (1: enable, 2: disable)
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
}
Predefined struct for user
type ModifyDomainIpv6StatusResponse ¶
type ModifyDomainIpv6StatusResponse struct {
*tchttp.BaseResponse
Response *ModifyDomainIpv6StatusResponseParams `json:"Response"`
}
func NewModifyDomainIpv6StatusResponse ¶
func NewModifyDomainIpv6StatusResponse() (response *ModifyDomainIpv6StatusResponse)
func (*ModifyDomainIpv6StatusResponse) FromJsonString ¶
func (r *ModifyDomainIpv6StatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDomainIpv6StatusResponse) ToJsonString ¶
func (r *ModifyDomainIpv6StatusResponse) ToJsonString() string
type ModifyDomainIpv6StatusResponseParams ¶
type ModifyDomainIpv6StatusResponseParams struct {
// Returned status (0: Operation Failed 1: Operation Succeeded 2: Not Supported for Enterprise Edition and Above 3: Not Supported for Below Enterprise Edition)
Ipv6Status *int64 `json:"Ipv6Status,omitnil,omitempty" name:"Ipv6Status"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyDomainPostActionRequest ¶
type ModifyDomainPostActionRequest struct {
*tchttp.BaseRequest
// www.tx.com
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 0- Disable shipping, 1- Enable shipping
PostCLSAction *int64 `json:"PostCLSAction,omitnil,omitempty" name:"PostCLSAction"`
// 0- Disable shipping, 1- Enable shipping
PostCKafkaAction *int64 `json:"PostCKafkaAction,omitnil,omitempty" name:"PostCKafkaAction"`
}
func NewModifyDomainPostActionRequest ¶
func NewModifyDomainPostActionRequest() (request *ModifyDomainPostActionRequest)
func (*ModifyDomainPostActionRequest) FromJsonString ¶
func (r *ModifyDomainPostActionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDomainPostActionRequest) ToJsonString ¶
func (r *ModifyDomainPostActionRequest) ToJsonString() string
type ModifyDomainPostActionRequestParams ¶
type ModifyDomainPostActionRequestParams struct {
// www.tx.com
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 0- Disable shipping, 1- Enable shipping
PostCLSAction *int64 `json:"PostCLSAction,omitnil,omitempty" name:"PostCLSAction"`
// 0- Disable shipping, 1- Enable shipping
PostCKafkaAction *int64 `json:"PostCKafkaAction,omitnil,omitempty" name:"PostCKafkaAction"`
}
Predefined struct for user
type ModifyDomainPostActionResponse ¶
type ModifyDomainPostActionResponse struct {
*tchttp.BaseResponse
Response *ModifyDomainPostActionResponseParams `json:"Response"`
}
func NewModifyDomainPostActionResponse ¶
func NewModifyDomainPostActionResponse() (response *ModifyDomainPostActionResponse)
func (*ModifyDomainPostActionResponse) FromJsonString ¶
func (r *ModifyDomainPostActionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDomainPostActionResponse) ToJsonString ¶
func (r *ModifyDomainPostActionResponse) ToJsonString() string
type ModifyDomainPostActionResponseParams ¶
type ModifyDomainPostActionResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyDomainsCLSStatusRequest ¶
type ModifyDomainsCLSStatusRequest struct {
*tchttp.BaseRequest
// Domain name list to be modified
Domains []*DomainURI `json:"Domains,omitnil,omitempty" name:"Domains"`
// Change the access log switch of the domain to Status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}
func NewModifyDomainsCLSStatusRequest ¶
func NewModifyDomainsCLSStatusRequest() (request *ModifyDomainsCLSStatusRequest)
func (*ModifyDomainsCLSStatusRequest) FromJsonString ¶
func (r *ModifyDomainsCLSStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDomainsCLSStatusRequest) ToJsonString ¶
func (r *ModifyDomainsCLSStatusRequest) ToJsonString() string
type ModifyDomainsCLSStatusRequestParams ¶
type ModifyDomainsCLSStatusRequestParams struct {
// Domain name list to be modified
Domains []*DomainURI `json:"Domains,omitnil,omitempty" name:"Domains"`
// Change the access log switch of the domain to Status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}
Predefined struct for user
type ModifyDomainsCLSStatusResponse ¶
type ModifyDomainsCLSStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyDomainsCLSStatusResponseParams `json:"Response"`
}
func NewModifyDomainsCLSStatusResponse ¶
func NewModifyDomainsCLSStatusResponse() (response *ModifyDomainsCLSStatusResponse)
func (*ModifyDomainsCLSStatusResponse) FromJsonString ¶
func (r *ModifyDomainsCLSStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDomainsCLSStatusResponse) ToJsonString ¶
func (r *ModifyDomainsCLSStatusResponse) ToJsonString() string
type ModifyDomainsCLSStatusResponseParams ¶
type ModifyDomainsCLSStatusResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyHostFlowModeRequest ¶
type ModifyHostFlowModeRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// WAF traffic mode
// 0: mirror mode (default)
// 1: cleaning mode
FlowMode *uint64 `json:"FlowMode,omitnil,omitempty" name:"FlowMode"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
func NewModifyHostFlowModeRequest ¶
func NewModifyHostFlowModeRequest() (request *ModifyHostFlowModeRequest)
func (*ModifyHostFlowModeRequest) FromJsonString ¶
func (r *ModifyHostFlowModeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyHostFlowModeRequest) ToJsonString ¶
func (r *ModifyHostFlowModeRequest) ToJsonString() string
type ModifyHostFlowModeRequestParams ¶
type ModifyHostFlowModeRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// WAF traffic mode
// 0: mirror mode (default)
// 1: cleaning mode
FlowMode *uint64 `json:"FlowMode,omitnil,omitempty" name:"FlowMode"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
Predefined struct for user
type ModifyHostFlowModeResponse ¶
type ModifyHostFlowModeResponse struct {
*tchttp.BaseResponse
Response *ModifyHostFlowModeResponseParams `json:"Response"`
}
func NewModifyHostFlowModeResponse ¶
func NewModifyHostFlowModeResponse() (response *ModifyHostFlowModeResponse)
func (*ModifyHostFlowModeResponse) FromJsonString ¶
func (r *ModifyHostFlowModeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyHostFlowModeResponse) ToJsonString ¶
func (r *ModifyHostFlowModeResponse) ToJsonString() string
type ModifyHostFlowModeResponseParams ¶
type ModifyHostFlowModeResponseParams struct {
// Successful status code
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyHostModeRequest ¶
type ModifyHostModeRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Protection status:
// 10: rule-based observation and AI disabling; 11: rule- and AI-based observation; 12: rule-based observation and AI-based interception
// 20: rule-based interception and AI disabling; 21: rule-based interception and AI-based observation; 22: rule- and AI-based interception
Mode *uint64 `json:"Mode,omitnil,omitempty" name:"Mode"`
// 0: Change protection mode, 1: Modify AI
Type *uint64 `json:"Type,omitnil,omitempty" name:"Type"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Instance type
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
}
func NewModifyHostModeRequest ¶
func NewModifyHostModeRequest() (request *ModifyHostModeRequest)
func (*ModifyHostModeRequest) FromJsonString ¶
func (r *ModifyHostModeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyHostModeRequest) ToJsonString ¶
func (r *ModifyHostModeRequest) ToJsonString() string
type ModifyHostModeRequestParams ¶
type ModifyHostModeRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Protection status:
// 10: rule-based observation and AI disabling; 11: rule- and AI-based observation; 12: rule-based observation and AI-based interception
// 20: rule-based interception and AI disabling; 21: rule-based interception and AI-based observation; 22: rule- and AI-based interception
Mode *uint64 `json:"Mode,omitnil,omitempty" name:"Mode"`
// 0: Change protection mode, 1: Modify AI
Type *uint64 `json:"Type,omitnil,omitempty" name:"Type"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Instance type
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
}
Predefined struct for user
type ModifyHostModeResponse ¶
type ModifyHostModeResponse struct {
*tchttp.BaseResponse
Response *ModifyHostModeResponseParams `json:"Response"`
}
func NewModifyHostModeResponse ¶
func NewModifyHostModeResponse() (response *ModifyHostModeResponse)
func (*ModifyHostModeResponse) FromJsonString ¶
func (r *ModifyHostModeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyHostModeResponse) ToJsonString ¶
func (r *ModifyHostModeResponse) ToJsonString() string
type ModifyHostModeResponseParams ¶
type ModifyHostModeResponseParams struct {
// Operation status code: if all resource operations succeed, the success status code is returned; if any resource operation fails, the content of Message needs to be parsed to see which resource failed.
//
// Note: This field may return null, indicating that no valid values can be obtained.
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyHostRequest ¶
type ModifyHostRequest struct {
*tchttp.BaseRequest
// Edited domain configuration information
Host *HostRecord `json:"Host,omitnil,omitempty" name:"Host"`
// Unique Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
func NewModifyHostRequest ¶
func NewModifyHostRequest() (request *ModifyHostRequest)
func (*ModifyHostRequest) FromJsonString ¶
func (r *ModifyHostRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyHostRequest) ToJsonString ¶
func (r *ModifyHostRequest) ToJsonString() string
type ModifyHostRequestParams ¶
type ModifyHostRequestParams struct {
// Edited domain configuration information
Host *HostRecord `json:"Host,omitnil,omitempty" name:"Host"`
// Unique Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
Predefined struct for user
type ModifyHostResponse ¶
type ModifyHostResponse struct {
*tchttp.BaseResponse
Response *ModifyHostResponseParams `json:"Response"`
}
func NewModifyHostResponse ¶
func NewModifyHostResponse() (response *ModifyHostResponse)
func (*ModifyHostResponse) FromJsonString ¶
func (r *ModifyHostResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyHostResponse) ToJsonString ¶
func (r *ModifyHostResponse) ToJsonString() string
type ModifyHostResponseParams ¶
type ModifyHostResponseParams struct {
// Edited domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyHostStatusRequest ¶
type ModifyHostStatusRequest struct {
*tchttp.BaseRequest
// Domain status list
HostsStatus []*HostStatus `json:"HostsStatus,omitnil,omitempty" name:"HostsStatus"`
}
func NewModifyHostStatusRequest ¶
func NewModifyHostStatusRequest() (request *ModifyHostStatusRequest)
func (*ModifyHostStatusRequest) FromJsonString ¶
func (r *ModifyHostStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyHostStatusRequest) ToJsonString ¶
func (r *ModifyHostStatusRequest) ToJsonString() string
type ModifyHostStatusRequestParams ¶
type ModifyHostStatusRequestParams struct {
// Domain status list
HostsStatus []*HostStatus `json:"HostsStatus,omitnil,omitempty" name:"HostsStatus"`
}
Predefined struct for user
type ModifyHostStatusResponse ¶
type ModifyHostStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyHostStatusResponseParams `json:"Response"`
}
func NewModifyHostStatusResponse ¶
func NewModifyHostStatusResponse() (response *ModifyHostStatusResponse)
func (*ModifyHostStatusResponse) FromJsonString ¶
func (r *ModifyHostStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyHostStatusResponse) ToJsonString ¶
func (r *ModifyHostStatusResponse) ToJsonString() string
type ModifyHostStatusResponseParams ¶
type ModifyHostStatusResponseParams struct {
// Successful status code, needs JSON decoding before use, the returned format is {Domain:Status}, successful status code is Success, others are failed status codes (YunAPI Defined Error Codes)
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyInstanceElasticModeRequest ¶
type ModifyInstanceElasticModeRequest struct {
*tchttp.BaseRequest
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Elastic billing switch.
Mode *int64 `json:"Mode,omitnil,omitempty" name:"Mode"`
}
func NewModifyInstanceElasticModeRequest ¶
func NewModifyInstanceElasticModeRequest() (request *ModifyInstanceElasticModeRequest)
func (*ModifyInstanceElasticModeRequest) FromJsonString ¶
func (r *ModifyInstanceElasticModeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstanceElasticModeRequest) ToJsonString ¶
func (r *ModifyInstanceElasticModeRequest) ToJsonString() string
type ModifyInstanceElasticModeRequestParams ¶
type ModifyInstanceElasticModeRequestParams struct {
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Elastic billing switch.
Mode *int64 `json:"Mode,omitnil,omitempty" name:"Mode"`
}
Predefined struct for user
type ModifyInstanceElasticModeResponse ¶
type ModifyInstanceElasticModeResponse struct {
*tchttp.BaseResponse
Response *ModifyInstanceElasticModeResponseParams `json:"Response"`
}
func NewModifyInstanceElasticModeResponse ¶
func NewModifyInstanceElasticModeResponse() (response *ModifyInstanceElasticModeResponse)
func (*ModifyInstanceElasticModeResponse) FromJsonString ¶
func (r *ModifyInstanceElasticModeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstanceElasticModeResponse) ToJsonString ¶
func (r *ModifyInstanceElasticModeResponse) ToJsonString() string
type ModifyInstanceElasticModeResponseParams ¶
type ModifyInstanceElasticModeResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyInstanceNameRequest ¶
type ModifyInstanceNameRequest struct {
*tchttp.BaseRequest
// New name.
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Version
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
}
func NewModifyInstanceNameRequest ¶
func NewModifyInstanceNameRequest() (request *ModifyInstanceNameRequest)
func (*ModifyInstanceNameRequest) FromJsonString ¶
func (r *ModifyInstanceNameRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstanceNameRequest) ToJsonString ¶
func (r *ModifyInstanceNameRequest) ToJsonString() string
type ModifyInstanceNameRequestParams ¶
type ModifyInstanceNameRequestParams struct {
// New name.
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Version
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
}
Predefined struct for user
type ModifyInstanceNameResponse ¶
type ModifyInstanceNameResponse struct {
*tchttp.BaseResponse
Response *ModifyInstanceNameResponseParams `json:"Response"`
}
func NewModifyInstanceNameResponse ¶
func NewModifyInstanceNameResponse() (response *ModifyInstanceNameResponse)
func (*ModifyInstanceNameResponse) FromJsonString ¶
func (r *ModifyInstanceNameResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstanceNameResponse) ToJsonString ¶
func (r *ModifyInstanceNameResponse) ToJsonString() string
type ModifyInstanceNameResponseParams ¶
type ModifyInstanceNameResponseParams struct {
// Modification status: 0 indicates success
ModifyCode *int64 `json:"ModifyCode,omitnil,omitempty" name:"ModifyCode"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyInstanceQpsLimitRequest ¶
type ModifyInstanceQpsLimitRequest struct {
*tchttp.BaseRequest
// Package instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// QPS cap
QpsLimit *int64 `json:"QpsLimit,omitnil,omitempty" name:"QpsLimit"`
}
func NewModifyInstanceQpsLimitRequest ¶
func NewModifyInstanceQpsLimitRequest() (request *ModifyInstanceQpsLimitRequest)
func (*ModifyInstanceQpsLimitRequest) FromJsonString ¶
func (r *ModifyInstanceQpsLimitRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstanceQpsLimitRequest) ToJsonString ¶
func (r *ModifyInstanceQpsLimitRequest) ToJsonString() string
type ModifyInstanceQpsLimitRequestParams ¶
type ModifyInstanceQpsLimitRequestParams struct {
// Package instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// QPS cap
QpsLimit *int64 `json:"QpsLimit,omitnil,omitempty" name:"QpsLimit"`
}
Predefined struct for user
type ModifyInstanceQpsLimitResponse ¶
type ModifyInstanceQpsLimitResponse struct {
*tchttp.BaseResponse
Response *ModifyInstanceQpsLimitResponseParams `json:"Response"`
}
func NewModifyInstanceQpsLimitResponse ¶
func NewModifyInstanceQpsLimitResponse() (response *ModifyInstanceQpsLimitResponse)
func (*ModifyInstanceQpsLimitResponse) FromJsonString ¶
func (r *ModifyInstanceQpsLimitResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstanceQpsLimitResponse) ToJsonString ¶
func (r *ModifyInstanceQpsLimitResponse) ToJsonString() string
type ModifyInstanceQpsLimitResponseParams ¶
type ModifyInstanceQpsLimitResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyInstanceRenewFlagRequest ¶
type ModifyInstanceRenewFlagRequest struct {
*tchttp.BaseRequest
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Renewal switch
RenewFlag *int64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
}
func NewModifyInstanceRenewFlagRequest ¶
func NewModifyInstanceRenewFlagRequest() (request *ModifyInstanceRenewFlagRequest)
func (*ModifyInstanceRenewFlagRequest) FromJsonString ¶
func (r *ModifyInstanceRenewFlagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstanceRenewFlagRequest) ToJsonString ¶
func (r *ModifyInstanceRenewFlagRequest) ToJsonString() string
type ModifyInstanceRenewFlagRequestParams ¶
type ModifyInstanceRenewFlagRequestParams struct {
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Renewal switch
RenewFlag *int64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
}
Predefined struct for user
type ModifyInstanceRenewFlagResponse ¶
type ModifyInstanceRenewFlagResponse struct {
*tchttp.BaseResponse
Response *ModifyInstanceRenewFlagResponseParams `json:"Response"`
}
func NewModifyInstanceRenewFlagResponse ¶
func NewModifyInstanceRenewFlagResponse() (response *ModifyInstanceRenewFlagResponse)
func (*ModifyInstanceRenewFlagResponse) FromJsonString ¶
func (r *ModifyInstanceRenewFlagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstanceRenewFlagResponse) ToJsonString ¶
func (r *ModifyInstanceRenewFlagResponse) ToJsonString() string
type ModifyInstanceRenewFlagResponseParams ¶
type ModifyInstanceRenewFlagResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyIpAccessControlRequest ¶
type ModifyIpAccessControlRequest struct {
*tchttp.BaseRequest
// Specific domain name, for example, test.qcloudwaf.com.
// Global domain name, that is, global.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// IP parameter list.
IpList []*string `json:"IpList,omitnil,omitempty" name:"IpList"`
// 42: blocklist; 40: allowlist.
ActionType *int64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// valid_ts indicates a valid date. Its value is a second-level timestamp, such as 1680570420, which indicates 2023-04-04 09:07:00.
ValidTS *int64 `json:"ValidTS,omitnil,omitempty" name:"ValidTS"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// WAF instance type: sparta-waf for SaaS WAF, clb-waf for CLB WAF.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Batch protection IP blocklists/allowlists or not. If yes, the value is batch; otherwise, it is empty.
SourceType *string `json:"SourceType,omitnil,omitempty" name:"SourceType"`
// Remarks
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// Scheduled configuration type.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Details of scheduled configuration.
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
}
func NewModifyIpAccessControlRequest ¶
func NewModifyIpAccessControlRequest() (request *ModifyIpAccessControlRequest)
func (*ModifyIpAccessControlRequest) FromJsonString ¶
func (r *ModifyIpAccessControlRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyIpAccessControlRequest) ToJsonString ¶
func (r *ModifyIpAccessControlRequest) ToJsonString() string
type ModifyIpAccessControlRequestParams ¶
type ModifyIpAccessControlRequestParams struct {
// Specific domain name, for example, test.qcloudwaf.com.
// Global domain name, that is, global.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// IP parameter list.
IpList []*string `json:"IpList,omitnil,omitempty" name:"IpList"`
// 42: blocklist; 40: allowlist.
ActionType *int64 `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// valid_ts indicates a valid date. Its value is a second-level timestamp, such as 1680570420, which indicates 2023-04-04 09:07:00.
//
// Deprecated: ValidTS is deprecated.
ValidTS *int64 `json:"ValidTS,omitnil,omitempty" name:"ValidTS"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// WAF instance type: sparta-waf for SaaS WAF, clb-waf for CLB WAF.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Batch protection IP blocklists/allowlists or not. If yes, the value is batch; otherwise, it is empty.
SourceType *string `json:"SourceType,omitnil,omitempty" name:"SourceType"`
// Remarks
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// Scheduled configuration type.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Details of scheduled configuration.
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
}
Predefined struct for user
type ModifyIpAccessControlResponse ¶
type ModifyIpAccessControlResponse struct {
*tchttp.BaseResponse
Response *ModifyIpAccessControlResponseParams `json:"Response"`
}
func NewModifyIpAccessControlResponse ¶
func NewModifyIpAccessControlResponse() (response *ModifyIpAccessControlResponse)
func (*ModifyIpAccessControlResponse) FromJsonString ¶
func (r *ModifyIpAccessControlResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyIpAccessControlResponse) ToJsonString ¶
func (r *ModifyIpAccessControlResponse) ToJsonString() string
type ModifyIpAccessControlResponseParams ¶
type ModifyIpAccessControlResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyModuleStatusRequest ¶
type ModifyModuleStatusRequest struct {
*tchttp.BaseRequest
// Domain to be set
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Enabling status of the web security module. The value is 0 or 1.
WebSecurity *uint64 `json:"WebSecurity,omitnil,omitempty" name:"WebSecurity"`
// Access control module switch: 0 or 1
AccessControl *uint64 `json:"AccessControl,omitnil,omitempty" name:"AccessControl"`
// CC module switch, 0 or 1
CcProtection *uint64 `json:"CcProtection,omitnil,omitempty" name:"CcProtection"`
// API security module switch, 0 or 1
ApiProtection *uint64 `json:"ApiProtection,omitnil,omitempty" name:"ApiProtection"`
// Tamper-proof module switch: 0 or 1
AntiTamper *uint64 `json:"AntiTamper,omitnil,omitempty" name:"AntiTamper"`
// Leakage prevention module switch: 0 or 1
AntiLeakage *uint64 `json:"AntiLeakage,omitnil,omitempty" name:"AntiLeakage"`
// Traffic limiting module switch: 0 or 1
RateLimit *uint64 `json:"RateLimit,omitnil,omitempty" name:"RateLimit"`
}
func NewModifyModuleStatusRequest ¶
func NewModifyModuleStatusRequest() (request *ModifyModuleStatusRequest)
func (*ModifyModuleStatusRequest) FromJsonString ¶
func (r *ModifyModuleStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyModuleStatusRequest) ToJsonString ¶
func (r *ModifyModuleStatusRequest) ToJsonString() string
type ModifyModuleStatusRequestParams ¶
type ModifyModuleStatusRequestParams struct {
// Domain to be set
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Enabling status of the web security module. The value is 0 or 1.
WebSecurity *uint64 `json:"WebSecurity,omitnil,omitempty" name:"WebSecurity"`
// Access control module switch: 0 or 1
AccessControl *uint64 `json:"AccessControl,omitnil,omitempty" name:"AccessControl"`
// CC module switch, 0 or 1
CcProtection *uint64 `json:"CcProtection,omitnil,omitempty" name:"CcProtection"`
// API security module switch, 0 or 1
ApiProtection *uint64 `json:"ApiProtection,omitnil,omitempty" name:"ApiProtection"`
// Tamper-proof module switch: 0 or 1
AntiTamper *uint64 `json:"AntiTamper,omitnil,omitempty" name:"AntiTamper"`
// Leakage prevention module switch: 0 or 1
AntiLeakage *uint64 `json:"AntiLeakage,omitnil,omitempty" name:"AntiLeakage"`
// Traffic limiting module switch: 0 or 1
RateLimit *uint64 `json:"RateLimit,omitnil,omitempty" name:"RateLimit"`
}
Predefined struct for user
type ModifyModuleStatusResponse ¶
type ModifyModuleStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyModuleStatusResponseParams `json:"Response"`
}
func NewModifyModuleStatusResponse ¶
func NewModifyModuleStatusResponse() (response *ModifyModuleStatusResponse)
func (*ModifyModuleStatusResponse) FromJsonString ¶
func (r *ModifyModuleStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyModuleStatusResponse) ToJsonString ¶
func (r *ModifyModuleStatusResponse) ToJsonString() string
type ModifyModuleStatusResponseParams ¶
type ModifyModuleStatusResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyObjectRequest ¶
type ModifyObjectRequest struct {
*tchttp.BaseRequest
// Modifies the object identifier
ObjectId *string `json:"ObjectId,omitnil,omitempty" name:"ObjectId"`
// Action type. Status: change enabling status; InstanceId: bind to an instance; Proxy: set the proxy status.
OpType *string `json:"OpType,omitnil,omitempty" name:"OpType"`
// New WAF switch status, considered successful if identical to existing status
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// New instance ID: considered a successful modification if identical to an already bound instance
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Whether to enable proxy. 0: do not enable; 1: use the first IP address in XFF as the client IP address; 2: use remote_addr as the client IP address; 3: obtain the client IP address from the specified header field that is given in IpHeaders. (This value is effective when OpType is set to Status or Proxy.)
Proxy *uint64 `json:"Proxy,omitnil,omitempty" name:"Proxy"`
// This parameter indicates a custom header and is required when IsCdn is set to 3. (The value is effective when OpType is set to Status or Proxy.)
IpHeaders []*string `json:"IpHeaders,omitnil,omitempty" name:"IpHeaders"`
}
func NewModifyObjectRequest ¶
func NewModifyObjectRequest() (request *ModifyObjectRequest)
func (*ModifyObjectRequest) FromJsonString ¶
func (r *ModifyObjectRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyObjectRequest) ToJsonString ¶
func (r *ModifyObjectRequest) ToJsonString() string
type ModifyObjectRequestParams ¶
type ModifyObjectRequestParams struct {
// Modifies the object identifier
ObjectId *string `json:"ObjectId,omitnil,omitempty" name:"ObjectId"`
// Action type. Status: change enabling status; InstanceId: bind to an instance; Proxy: set the proxy status.
OpType *string `json:"OpType,omitnil,omitempty" name:"OpType"`
// New WAF switch status, considered successful if identical to existing status
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// New instance ID: considered a successful modification if identical to an already bound instance
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Whether to enable proxy. 0: do not enable; 1: use the first IP address in XFF as the client IP address; 2: use remote_addr as the client IP address; 3: obtain the client IP address from the specified header field that is given in IpHeaders. (This value is effective when OpType is set to Status or Proxy.)
Proxy *uint64 `json:"Proxy,omitnil,omitempty" name:"Proxy"`
// This parameter indicates a custom header and is required when IsCdn is set to 3. (The value is effective when OpType is set to Status or Proxy.)
IpHeaders []*string `json:"IpHeaders,omitnil,omitempty" name:"IpHeaders"`
}
Predefined struct for user
type ModifyObjectResponse ¶
type ModifyObjectResponse struct {
*tchttp.BaseResponse
Response *ModifyObjectResponseParams `json:"Response"`
}
func NewModifyObjectResponse ¶
func NewModifyObjectResponse() (response *ModifyObjectResponse)
func (*ModifyObjectResponse) FromJsonString ¶
func (r *ModifyObjectResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyObjectResponse) ToJsonString ¶
func (r *ModifyObjectResponse) ToJsonString() string
type ModifyObjectResponseParams ¶
type ModifyObjectResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyOwaspRuleStatusRequest ¶
type ModifyOwaspRuleStatusRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
RuleStatus *int64 `json:"RuleStatus,omitnil,omitempty" name:"RuleStatus"`
// Specifies whether to select all.
SelectAll *bool `json:"SelectAll,omitnil,omitempty" name:"SelectAll"`
// Rule ID list
RuleIDs []*string `json:"RuleIDs,omitnil,omitempty" name:"RuleIDs"`
// If reverse requires the input of data type.
TypeId *uint64 `json:"TypeId,omitnil,omitempty" name:"TypeId"`
// Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
Reason *int64 `json:"Reason,omitnil,omitempty" name:"Reason"`
}
func NewModifyOwaspRuleStatusRequest ¶
func NewModifyOwaspRuleStatusRequest() (request *ModifyOwaspRuleStatusRequest)
func (*ModifyOwaspRuleStatusRequest) FromJsonString ¶
func (r *ModifyOwaspRuleStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyOwaspRuleStatusRequest) ToJsonString ¶
func (r *ModifyOwaspRuleStatusRequest) ToJsonString() string
type ModifyOwaspRuleStatusRequestParams ¶
type ModifyOwaspRuleStatusRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
RuleStatus *int64 `json:"RuleStatus,omitnil,omitempty" name:"RuleStatus"`
// Specifies whether to select all.
SelectAll *bool `json:"SelectAll,omitnil,omitempty" name:"SelectAll"`
// Rule ID list
RuleIDs []*string `json:"RuleIDs,omitnil,omitempty" name:"RuleIDs"`
// If reverse requires the input of data type.
TypeId *uint64 `json:"TypeId,omitnil,omitempty" name:"TypeId"`
// Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
Reason *int64 `json:"Reason,omitnil,omitempty" name:"Reason"`
}
Predefined struct for user
type ModifyOwaspRuleStatusResponse ¶
type ModifyOwaspRuleStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyOwaspRuleStatusResponseParams `json:"Response"`
}
func NewModifyOwaspRuleStatusResponse ¶
func NewModifyOwaspRuleStatusResponse() (response *ModifyOwaspRuleStatusResponse)
func (*ModifyOwaspRuleStatusResponse) FromJsonString ¶
func (r *ModifyOwaspRuleStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyOwaspRuleStatusResponse) ToJsonString ¶
func (r *ModifyOwaspRuleStatusResponse) ToJsonString() string
type ModifyOwaspRuleStatusResponseParams ¶
type ModifyOwaspRuleStatusResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyOwaspRuleTypeActionRequest ¶
type ModifyOwaspRuleTypeActionRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule type ID list.
TypeIDs []*string `json:"TypeIDs,omitnil,omitempty" name:"TypeIDs"`
// Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
RuleTypeAction *int64 `json:"RuleTypeAction,omitnil,omitempty" name:"RuleTypeAction"`
}
func NewModifyOwaspRuleTypeActionRequest ¶
func NewModifyOwaspRuleTypeActionRequest() (request *ModifyOwaspRuleTypeActionRequest)
func (*ModifyOwaspRuleTypeActionRequest) FromJsonString ¶
func (r *ModifyOwaspRuleTypeActionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyOwaspRuleTypeActionRequest) ToJsonString ¶
func (r *ModifyOwaspRuleTypeActionRequest) ToJsonString() string
type ModifyOwaspRuleTypeActionRequestParams ¶
type ModifyOwaspRuleTypeActionRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule type ID list.
TypeIDs []*string `json:"TypeIDs,omitnil,omitempty" name:"TypeIDs"`
// Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
RuleTypeAction *int64 `json:"RuleTypeAction,omitnil,omitempty" name:"RuleTypeAction"`
}
Predefined struct for user
type ModifyOwaspRuleTypeActionResponse ¶
type ModifyOwaspRuleTypeActionResponse struct {
*tchttp.BaseResponse
Response *ModifyOwaspRuleTypeActionResponseParams `json:"Response"`
}
func NewModifyOwaspRuleTypeActionResponse ¶
func NewModifyOwaspRuleTypeActionResponse() (response *ModifyOwaspRuleTypeActionResponse)
func (*ModifyOwaspRuleTypeActionResponse) FromJsonString ¶
func (r *ModifyOwaspRuleTypeActionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyOwaspRuleTypeActionResponse) ToJsonString ¶
func (r *ModifyOwaspRuleTypeActionResponse) ToJsonString() string
type ModifyOwaspRuleTypeActionResponseParams ¶
type ModifyOwaspRuleTypeActionResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyOwaspRuleTypeLevelRequest ¶
type ModifyOwaspRuleTypeLevelRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule type ID list.
TypeIDs []*string `json:"TypeIDs,omitnil,omitempty" name:"TypeIDs"`
// Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
RuleTypeLevel *int64 `json:"RuleTypeLevel,omitnil,omitempty" name:"RuleTypeLevel"`
}
func NewModifyOwaspRuleTypeLevelRequest ¶
func NewModifyOwaspRuleTypeLevelRequest() (request *ModifyOwaspRuleTypeLevelRequest)
func (*ModifyOwaspRuleTypeLevelRequest) FromJsonString ¶
func (r *ModifyOwaspRuleTypeLevelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyOwaspRuleTypeLevelRequest) ToJsonString ¶
func (r *ModifyOwaspRuleTypeLevelRequest) ToJsonString() string
type ModifyOwaspRuleTypeLevelRequestParams ¶
type ModifyOwaspRuleTypeLevelRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule type ID list.
TypeIDs []*string `json:"TypeIDs,omitnil,omitempty" name:"TypeIDs"`
// Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
RuleTypeLevel *int64 `json:"RuleTypeLevel,omitnil,omitempty" name:"RuleTypeLevel"`
}
Predefined struct for user
type ModifyOwaspRuleTypeLevelResponse ¶
type ModifyOwaspRuleTypeLevelResponse struct {
*tchttp.BaseResponse
Response *ModifyOwaspRuleTypeLevelResponseParams `json:"Response"`
}
func NewModifyOwaspRuleTypeLevelResponse ¶
func NewModifyOwaspRuleTypeLevelResponse() (response *ModifyOwaspRuleTypeLevelResponse)
func (*ModifyOwaspRuleTypeLevelResponse) FromJsonString ¶
func (r *ModifyOwaspRuleTypeLevelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyOwaspRuleTypeLevelResponse) ToJsonString ¶
func (r *ModifyOwaspRuleTypeLevelResponse) ToJsonString() string
type ModifyOwaspRuleTypeLevelResponseParams ¶
type ModifyOwaspRuleTypeLevelResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyOwaspRuleTypeStatusRequest ¶
type ModifyOwaspRuleTypeStatusRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule type ID list.
TypeIDs []*string `json:"TypeIDs,omitnil,omitempty" name:"TypeIDs"`
// The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
RuleTypeStatus *int64 `json:"RuleTypeStatus,omitnil,omitempty" name:"RuleTypeStatus"`
}
func NewModifyOwaspRuleTypeStatusRequest ¶
func NewModifyOwaspRuleTypeStatusRequest() (request *ModifyOwaspRuleTypeStatusRequest)
func (*ModifyOwaspRuleTypeStatusRequest) FromJsonString ¶
func (r *ModifyOwaspRuleTypeStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyOwaspRuleTypeStatusRequest) ToJsonString ¶
func (r *ModifyOwaspRuleTypeStatusRequest) ToJsonString() string
type ModifyOwaspRuleTypeStatusRequestParams ¶
type ModifyOwaspRuleTypeStatusRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule type ID list.
TypeIDs []*string `json:"TypeIDs,omitnil,omitempty" name:"TypeIDs"`
// The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
RuleTypeStatus *int64 `json:"RuleTypeStatus,omitnil,omitempty" name:"RuleTypeStatus"`
}
Predefined struct for user
type ModifyOwaspRuleTypeStatusResponse ¶
type ModifyOwaspRuleTypeStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyOwaspRuleTypeStatusResponseParams `json:"Response"`
}
func NewModifyOwaspRuleTypeStatusResponse ¶
func NewModifyOwaspRuleTypeStatusResponse() (response *ModifyOwaspRuleTypeStatusResponse)
func (*ModifyOwaspRuleTypeStatusResponse) FromJsonString ¶
func (r *ModifyOwaspRuleTypeStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyOwaspRuleTypeStatusResponse) ToJsonString ¶
func (r *ModifyOwaspRuleTypeStatusResponse) ToJsonString() string
type ModifyOwaspRuleTypeStatusResponseParams ¶
type ModifyOwaspRuleTypeStatusResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyOwaspWhiteRuleRequest ¶
type ModifyOwaspWhiteRuleRequest struct {
*tchttp.BaseRequest
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule-Based matching policy list.
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// ID list of allowlisted rules.
Ids []*uint64 `json:"Ids,omitnil,omitempty" name:"Ids"`
// Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`
// Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Scheduled task configuration
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
// If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}
func NewModifyOwaspWhiteRuleRequest ¶
func NewModifyOwaspWhiteRuleRequest() (request *ModifyOwaspWhiteRuleRequest)
func (*ModifyOwaspWhiteRuleRequest) FromJsonString ¶
func (r *ModifyOwaspWhiteRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyOwaspWhiteRuleRequest) ToJsonString ¶
func (r *ModifyOwaspWhiteRuleRequest) ToJsonString() string
type ModifyOwaspWhiteRuleRequestParams ¶
type ModifyOwaspWhiteRuleRequestParams struct {
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Rule name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule-Based matching policy list.
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// ID list of allowlisted rules.
Ids []*uint64 `json:"Ids,omitnil,omitempty" name:"Ids"`
// Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`
// Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Scheduled task configuration
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
// If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}
Predefined struct for user
type ModifyOwaspWhiteRuleResponse ¶
type ModifyOwaspWhiteRuleResponse struct {
*tchttp.BaseResponse
Response *ModifyOwaspWhiteRuleResponseParams `json:"Response"`
}
func NewModifyOwaspWhiteRuleResponse ¶
func NewModifyOwaspWhiteRuleResponse() (response *ModifyOwaspWhiteRuleResponse)
func (*ModifyOwaspWhiteRuleResponse) FromJsonString ¶
func (r *ModifyOwaspWhiteRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyOwaspWhiteRuleResponse) ToJsonString ¶
func (r *ModifyOwaspWhiteRuleResponse) ToJsonString() string
type ModifyOwaspWhiteRuleResponseParams ¶
type ModifyOwaspWhiteRuleResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyProtectionStatusRequest ¶
type ModifyProtectionStatusRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Version of WAF. clb-waf indicates CLB WAF; sparta-waf indicates SaaS WAF. sparta-waf by default.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
}
func NewModifyProtectionStatusRequest ¶
func NewModifyProtectionStatusRequest() (request *ModifyProtectionStatusRequest)
func (*ModifyProtectionStatusRequest) FromJsonString ¶
func (r *ModifyProtectionStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyProtectionStatusRequest) ToJsonString ¶
func (r *ModifyProtectionStatusRequest) ToJsonString() string
type ModifyProtectionStatusRequestParams ¶
type ModifyProtectionStatusRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Status
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// Version of WAF. clb-waf indicates CLB WAF; sparta-waf indicates SaaS WAF. sparta-waf by default.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
}
Predefined struct for user
type ModifyProtectionStatusResponse ¶
type ModifyProtectionStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyProtectionStatusResponseParams `json:"Response"`
}
func NewModifyProtectionStatusResponse ¶
func NewModifyProtectionStatusResponse() (response *ModifyProtectionStatusResponse)
func (*ModifyProtectionStatusResponse) FromJsonString ¶
func (r *ModifyProtectionStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyProtectionStatusResponse) ToJsonString ¶
func (r *ModifyProtectionStatusResponse) ToJsonString() string
type ModifyProtectionStatusResponseParams ¶
type ModifyProtectionStatusResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifySpartaProtectionModeRequest ¶
type ModifySpartaProtectionModeRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Protection status:
// 10: rule-based observation and AI disabling; 11: rule- and AI-based observation; 12: rule-based observation and AI-based interception
// 20: rule-based interception and AI disabling; 21: rule-based interception and AI-based observation; 22: rule- and AI-based interception
Mode *uint64 `json:"Mode,omitnil,omitempty" name:"Mode"`
// Version of WAF. clb-waf indicates CLB WAF; sparta-waf indicates SaaS WAF. sparta-waf by default.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// 0 is for modifying the Rule Engine Status; 1 is for modifying the AI Status
Type *uint64 `json:"Type,omitnil,omitempty" name:"Type"`
}
func NewModifySpartaProtectionModeRequest ¶
func NewModifySpartaProtectionModeRequest() (request *ModifySpartaProtectionModeRequest)
func (*ModifySpartaProtectionModeRequest) FromJsonString ¶
func (r *ModifySpartaProtectionModeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySpartaProtectionModeRequest) ToJsonString ¶
func (r *ModifySpartaProtectionModeRequest) ToJsonString() string
type ModifySpartaProtectionModeRequestParams ¶
type ModifySpartaProtectionModeRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Protection status:
// 10: rule-based observation and AI disabling; 11: rule- and AI-based observation; 12: rule-based observation and AI-based interception
// 20: rule-based interception and AI disabling; 21: rule-based interception and AI-based observation; 22: rule- and AI-based interception
Mode *uint64 `json:"Mode,omitnil,omitempty" name:"Mode"`
// Version of WAF. clb-waf indicates CLB WAF; sparta-waf indicates SaaS WAF. sparta-waf by default.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// 0 is for modifying the Rule Engine Status; 1 is for modifying the AI Status
Type *uint64 `json:"Type,omitnil,omitempty" name:"Type"`
}
Predefined struct for user
type ModifySpartaProtectionModeResponse ¶
type ModifySpartaProtectionModeResponse struct {
*tchttp.BaseResponse
Response *ModifySpartaProtectionModeResponseParams `json:"Response"`
}
func NewModifySpartaProtectionModeResponse ¶
func NewModifySpartaProtectionModeResponse() (response *ModifySpartaProtectionModeResponse)
func (*ModifySpartaProtectionModeResponse) FromJsonString ¶
func (r *ModifySpartaProtectionModeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySpartaProtectionModeResponse) ToJsonString ¶
func (r *ModifySpartaProtectionModeResponse) ToJsonString() string
type ModifySpartaProtectionModeResponseParams ¶
type ModifySpartaProtectionModeResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifySpartaProtectionRequest ¶
type ModifySpartaProtectionRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Required. Unique domain name ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Required. Instance ID of the domain name
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Certificate type. 0: no certificate, with only the HTTP listening port configured; 1: self-owned certificate; 2: managed certificate.
CertType *int64 `json:"CertType,omitnil,omitempty" name:"CertType"`
// When CertType is 1, this parameter is required, indicating the self-owned certificate chain
Cert *string `json:"Cert,omitnil,omitempty" name:"Cert"`
// When CertType=1, this parameter is required, indicating the private key of the self-owned certificate.
PrivateKey *string `json:"PrivateKey,omitnil,omitempty" name:"PrivateKey"`
// When CertType is 2, this parameter must be filled, indicating the certificate ID hosted on Tencent Cloud's SSL platform
SSLId *string `json:"SSLId,omitnil,omitempty" name:"SSLId"`
// Whether a layer-7 proxy service is deployed before the WAF. 0: No proxy service is deployed; 1: The proxy service is deployed. The WAF will use XFF to obtain the client IP address; 2: The proxy service is deployed. The WAF will use remote_addr to obtain the client IP address; 3: The proxy service is deployed. The WAF will use a custom header in ip_headers to obtain the client IP address.
IsCdn *int64 `json:"IsCdn,omitnil,omitempty" name:"IsCdn"`
// Origin-pull protocol for HTTPS when the service is configured with an HTTPS port.
// http: Use the HTTP protocol for origin-pull. It is used with HttpsUpstreamPort.
// https: Use the HTTPS protocol for origin-pull.
UpstreamScheme *string `json:"UpstreamScheme,omitnil,omitempty" name:"UpstreamScheme"`
// HTTPS upstream port, required only when UpstreamScheme is http
HttpsUpstreamPort *string `json:"HttpsUpstreamPort,omitnil,omitempty" name:"HttpsUpstreamPort"`
// Whether to enable forced redirection from HTTP to HTTPS. 0: disable; 1: enable
HttpsRewrite *uint64 `json:"HttpsRewrite,omitnil,omitempty" name:"HttpsRewrite"`
// upstream type. 0: proxy to upstream by IP; 1: proxy to upstream by domain name
UpstreamType *int64 `json:"UpstreamType,omitnil,omitempty" name:"UpstreamType"`
// Upstream domain when proxy to upstream by domain. When UpstreamType=1, this field needs to be filled
UpstreamDomain *string `json:"UpstreamDomain,omitnil,omitempty" name:"UpstreamDomain"`
// Upstream IP list when proxy to upstream by IP. When UpstreamType=0, this field is required
SrcList []*string `json:"SrcList,omitnil,omitempty" name:"SrcList"`
// Whether to enable HTTP2. You should enable HTTPS as well. 0: disable; 1: enable
IsHttp2 *int64 `json:"IsHttp2,omitnil,omitempty" name:"IsHttp2"`
// Whether to enable WebSocket. 0: disable; 1: enable
IsWebsocket *int64 `json:"IsWebsocket,omitnil,omitempty" name:"IsWebsocket"`
// Load balancing policy for upstream. 0: round-robin scheduling; 1: IP hash; 2: weighted round-robin scheduling
LoadBalance *int64 `json:"LoadBalance,omitnil,omitempty" name:"LoadBalance"`
// To be deprecated, can be left blank. Whether to enable grayscale: 0 indicates not to enable grayscale.
IsGray *int64 `json:"IsGray,omitnil,omitempty" name:"IsGray"`
// Instance type of the domain name
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Port information, which can be obtained through the DescribeDomains API
Ports []*SpartaProtectionPort `json:"Ports,omitnil,omitempty" name:"Ports"`
// Whether to enable persistent connection. 0: non-persistent connection; 1: persistent connection
IsKeepAlive *string `json:"IsKeepAlive,omitnil,omitempty" name:"IsKeepAlive"`
// To be deprecated. Currently, set this parameter to 0. Anycast IP type switch. 0: common IP; 1: Anycast IP
Anycast *int64 `json:"Anycast,omitnil,omitempty" name:"Anycast"`
// Weight of each IP in the upstream IP List, corresponding to SrcList. Required only when UpstreamType is 0, and SrcList contains multiple IPs, and LoadBalance is 2; otherwise, fill in [ ].
Weights []*int64 `json:"Weights,omitnil,omitempty" name:"Weights"`
// Whether to enable proactive health detection. 0: disable; 1: enable
ActiveCheck *int64 `json:"ActiveCheck,omitnil,omitempty" name:"ActiveCheck"`
// TLS version information
TLSVersion *int64 `json:"TLSVersion,omitnil,omitempty" name:"TLSVersion"`
// Cipher suite information
Ciphers []*int64 `json:"Ciphers,omitnil,omitempty" name:"Ciphers"`
// Cipher suite template. 0: default template (no selection); 1: general template; 2: secure template; 3: custom template
CipherTemplate *int64 `json:"CipherTemplate,omitnil,omitempty" name:"CipherTemplate"`
// Read timeout between WAF and upstream server, 300s by default.
ProxyReadTimeout *int64 `json:"ProxyReadTimeout,omitnil,omitempty" name:"ProxyReadTimeout"`
// WAF and origin server write timeout, 300s by default.
ProxySendTimeout *int64 `json:"ProxySendTimeout,omitnil,omitempty" name:"ProxySendTimeout"`
// SNI type when proxy to upstream.
// 0: Disable SNI and do not configure server_name in client_hello.
// 1: Enable SNI. server_name in client_hello is the protected domain name.
// 2: Enable SNI. SNI is the origin server domain name when proxy to upstream by domain.
// 3: Enable SNI. SNI is the custom domain name.
SniType *int64 `json:"SniType,omitnil,omitempty" name:"SniType"`
// When SniType=3, this parameter is required, indicating a custom SNI;
SniHost *string `json:"SniHost,omitnil,omitempty" name:"SniHost"`
// IsCdn=3 required for this parameter, indicates custom header
IpHeaders []*string `json:"IpHeaders,omitnil,omitempty" name:"IpHeaders"`
// Whether to enable XFF reset. 0: disable; 1: enable
XFFReset *int64 `json:"XFFReset,omitnil,omitempty" name:"XFFReset"`
// Domain name remarks
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// Custom upstream host. The default value is a null string, indicating that the protected domain name is used as the upstream host.
UpstreamHost *string `json:"UpstreamHost,omitnil,omitempty" name:"UpstreamHost"`
// Whether to enable caching. 0: disable; 1: enable.
ProxyBuffer *int64 `json:"ProxyBuffer,omitnil,omitempty" name:"ProxyBuffer"`
// Whether to enable the test. 0: disable; 1: enable. The test is enabled by default.
ProbeStatus *int64 `json:"ProbeStatus,omitnil,omitempty" name:"ProbeStatus"`
// SM option. 0: do not enable SM; 1: add support for SM based on the existing TLS option; 2: enable SM and support only SM client access.
GmType *int64 `json:"GmType,omitnil,omitempty" name:"GmType"`
// SM certificate type. 0: no SM certificate is available; 1: the certificate is a self-owned SM certificate; 2: the certificate is a managed SM certificate.
GmCertType *int64 `json:"GmCertType,omitnil,omitempty" name:"GmCertType"`
// When GmCertType is 1, this parameter needs to be set, indicating the certificate chain of the self-owned SM certificate.
GmCert *string `json:"GmCert,omitnil,omitempty" name:"GmCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the self-owned SM certificate.
GmPrivateKey *string `json:"GmPrivateKey,omitnil,omitempty" name:"GmPrivateKey"`
// When GmCertType is 1, this parameter needs to be set, indicating the encryption certificate of the self-owned SM certificate.
GmEncCert *string `json:"GmEncCert,omitnil,omitempty" name:"GmEncCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the encryption certificate for the self-owned SM certificate.
GmEncPrivateKey *string `json:"GmEncPrivateKey,omitnil,omitempty" name:"GmEncPrivateKey"`
// When GmCertType is 2, this parameter needs to be set, indicating the ID of the certificate managed by the Tencent Cloud SSL platform.
GmSSLId *string `json:"GmSSLId,omitnil,omitempty" name:"GmSSLId"`
}
func NewModifySpartaProtectionRequest ¶
func NewModifySpartaProtectionRequest() (request *ModifySpartaProtectionRequest)
func (*ModifySpartaProtectionRequest) FromJsonString ¶
func (r *ModifySpartaProtectionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySpartaProtectionRequest) ToJsonString ¶
func (r *ModifySpartaProtectionRequest) ToJsonString() string
type ModifySpartaProtectionRequestParams ¶
type ModifySpartaProtectionRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Required. Unique domain name ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Required. Instance ID of the domain name
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
// Certificate type. 0: no certificate, with only the HTTP listening port configured; 1: self-owned certificate; 2: managed certificate.
CertType *int64 `json:"CertType,omitnil,omitempty" name:"CertType"`
// When CertType is 1, this parameter is required, indicating the self-owned certificate chain
Cert *string `json:"Cert,omitnil,omitempty" name:"Cert"`
// When CertType=1, this parameter is required, indicating the private key of the self-owned certificate.
PrivateKey *string `json:"PrivateKey,omitnil,omitempty" name:"PrivateKey"`
// When CertType is 2, this parameter must be filled, indicating the certificate ID hosted on Tencent Cloud's SSL platform
SSLId *string `json:"SSLId,omitnil,omitempty" name:"SSLId"`
// Whether a layer-7 proxy service is deployed before the WAF. 0: No proxy service is deployed; 1: The proxy service is deployed. The WAF will use XFF to obtain the client IP address; 2: The proxy service is deployed. The WAF will use remote_addr to obtain the client IP address; 3: The proxy service is deployed. The WAF will use a custom header in ip_headers to obtain the client IP address.
IsCdn *int64 `json:"IsCdn,omitnil,omitempty" name:"IsCdn"`
// Origin-pull protocol for HTTPS when the service is configured with an HTTPS port.
// http: Use the HTTP protocol for origin-pull. It is used with HttpsUpstreamPort.
// https: Use the HTTPS protocol for origin-pull.
UpstreamScheme *string `json:"UpstreamScheme,omitnil,omitempty" name:"UpstreamScheme"`
// HTTPS upstream port, required only when UpstreamScheme is http
HttpsUpstreamPort *string `json:"HttpsUpstreamPort,omitnil,omitempty" name:"HttpsUpstreamPort"`
// Whether to enable forced redirection from HTTP to HTTPS. 0: disable; 1: enable
HttpsRewrite *uint64 `json:"HttpsRewrite,omitnil,omitempty" name:"HttpsRewrite"`
// upstream type. 0: proxy to upstream by IP; 1: proxy to upstream by domain name
UpstreamType *int64 `json:"UpstreamType,omitnil,omitempty" name:"UpstreamType"`
// Upstream domain when proxy to upstream by domain. When UpstreamType=1, this field needs to be filled
UpstreamDomain *string `json:"UpstreamDomain,omitnil,omitempty" name:"UpstreamDomain"`
// Upstream IP list when proxy to upstream by IP. When UpstreamType=0, this field is required
SrcList []*string `json:"SrcList,omitnil,omitempty" name:"SrcList"`
// Whether to enable HTTP2. You should enable HTTPS as well. 0: disable; 1: enable
IsHttp2 *int64 `json:"IsHttp2,omitnil,omitempty" name:"IsHttp2"`
// Whether to enable WebSocket. 0: disable; 1: enable
IsWebsocket *int64 `json:"IsWebsocket,omitnil,omitempty" name:"IsWebsocket"`
// Load balancing policy for upstream. 0: round-robin scheduling; 1: IP hash; 2: weighted round-robin scheduling
LoadBalance *int64 `json:"LoadBalance,omitnil,omitempty" name:"LoadBalance"`
// To be deprecated, can be left blank. Whether to enable grayscale: 0 indicates not to enable grayscale.
IsGray *int64 `json:"IsGray,omitnil,omitempty" name:"IsGray"`
// Instance type of the domain name
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Port information, which can be obtained through the DescribeDomains API
Ports []*SpartaProtectionPort `json:"Ports,omitnil,omitempty" name:"Ports"`
// Whether to enable persistent connection. 0: non-persistent connection; 1: persistent connection
IsKeepAlive *string `json:"IsKeepAlive,omitnil,omitempty" name:"IsKeepAlive"`
// To be deprecated. Currently, set this parameter to 0. Anycast IP type switch. 0: common IP; 1: Anycast IP
Anycast *int64 `json:"Anycast,omitnil,omitempty" name:"Anycast"`
// Weight of each IP in the upstream IP List, corresponding to SrcList. Required only when UpstreamType is 0, and SrcList contains multiple IPs, and LoadBalance is 2; otherwise, fill in [ ].
Weights []*int64 `json:"Weights,omitnil,omitempty" name:"Weights"`
// Whether to enable proactive health detection. 0: disable; 1: enable
ActiveCheck *int64 `json:"ActiveCheck,omitnil,omitempty" name:"ActiveCheck"`
// TLS version information
TLSVersion *int64 `json:"TLSVersion,omitnil,omitempty" name:"TLSVersion"`
// Cipher suite information
Ciphers []*int64 `json:"Ciphers,omitnil,omitempty" name:"Ciphers"`
// Cipher suite template. 0: default template (no selection); 1: general template; 2: secure template; 3: custom template
CipherTemplate *int64 `json:"CipherTemplate,omitnil,omitempty" name:"CipherTemplate"`
// Read timeout between WAF and upstream server, 300s by default.
ProxyReadTimeout *int64 `json:"ProxyReadTimeout,omitnil,omitempty" name:"ProxyReadTimeout"`
// WAF and origin server write timeout, 300s by default.
ProxySendTimeout *int64 `json:"ProxySendTimeout,omitnil,omitempty" name:"ProxySendTimeout"`
// SNI type when proxy to upstream.
// 0: Disable SNI and do not configure server_name in client_hello.
// 1: Enable SNI. server_name in client_hello is the protected domain name.
// 2: Enable SNI. SNI is the origin server domain name when proxy to upstream by domain.
// 3: Enable SNI. SNI is the custom domain name.
SniType *int64 `json:"SniType,omitnil,omitempty" name:"SniType"`
// When SniType=3, this parameter is required, indicating a custom SNI;
SniHost *string `json:"SniHost,omitnil,omitempty" name:"SniHost"`
// IsCdn=3 required for this parameter, indicates custom header
IpHeaders []*string `json:"IpHeaders,omitnil,omitempty" name:"IpHeaders"`
// Whether to enable XFF reset. 0: disable; 1: enable
XFFReset *int64 `json:"XFFReset,omitnil,omitempty" name:"XFFReset"`
// Domain name remarks
Note *string `json:"Note,omitnil,omitempty" name:"Note"`
// Custom upstream host. The default value is a null string, indicating that the protected domain name is used as the upstream host.
UpstreamHost *string `json:"UpstreamHost,omitnil,omitempty" name:"UpstreamHost"`
// Whether to enable caching. 0: disable; 1: enable.
ProxyBuffer *int64 `json:"ProxyBuffer,omitnil,omitempty" name:"ProxyBuffer"`
// Whether to enable the test. 0: disable; 1: enable. The test is enabled by default.
ProbeStatus *int64 `json:"ProbeStatus,omitnil,omitempty" name:"ProbeStatus"`
// SM option. 0: do not enable SM; 1: add support for SM based on the existing TLS option; 2: enable SM and support only SM client access.
GmType *int64 `json:"GmType,omitnil,omitempty" name:"GmType"`
// SM certificate type. 0: no SM certificate is available; 1: the certificate is a self-owned SM certificate; 2: the certificate is a managed SM certificate.
GmCertType *int64 `json:"GmCertType,omitnil,omitempty" name:"GmCertType"`
// When GmCertType is 1, this parameter needs to be set, indicating the certificate chain of the self-owned SM certificate.
GmCert *string `json:"GmCert,omitnil,omitempty" name:"GmCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the self-owned SM certificate.
GmPrivateKey *string `json:"GmPrivateKey,omitnil,omitempty" name:"GmPrivateKey"`
// When GmCertType is 1, this parameter needs to be set, indicating the encryption certificate of the self-owned SM certificate.
GmEncCert *string `json:"GmEncCert,omitnil,omitempty" name:"GmEncCert"`
// When GmCertType is 1, this parameter needs to be set, indicating the private key of the encryption certificate for the self-owned SM certificate.
GmEncPrivateKey *string `json:"GmEncPrivateKey,omitnil,omitempty" name:"GmEncPrivateKey"`
// When GmCertType is 2, this parameter needs to be set, indicating the ID of the certificate managed by the Tencent Cloud SSL platform.
GmSSLId *string `json:"GmSSLId,omitnil,omitempty" name:"GmSSLId"`
}
Predefined struct for user
type ModifySpartaProtectionResponse ¶
type ModifySpartaProtectionResponse struct {
*tchttp.BaseResponse
Response *ModifySpartaProtectionResponseParams `json:"Response"`
}
func NewModifySpartaProtectionResponse ¶
func NewModifySpartaProtectionResponse() (response *ModifySpartaProtectionResponse)
func (*ModifySpartaProtectionResponse) FromJsonString ¶
func (r *ModifySpartaProtectionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySpartaProtectionResponse) ToJsonString ¶
func (r *ModifySpartaProtectionResponse) ToJsonString() string
type ModifySpartaProtectionResponseParams ¶
type ModifySpartaProtectionResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyUserLevelRequest ¶
type ModifyUserLevelRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Protection rule level: 300=standard, 400=extended
Level *uint64 `json:"Level,omitnil,omitempty" name:"Level"`
}
func NewModifyUserLevelRequest ¶
func NewModifyUserLevelRequest() (request *ModifyUserLevelRequest)
func (*ModifyUserLevelRequest) FromJsonString ¶
func (r *ModifyUserLevelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyUserLevelRequest) ToJsonString ¶
func (r *ModifyUserLevelRequest) ToJsonString() string
type ModifyUserLevelRequestParams ¶
type ModifyUserLevelRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Protection rule level: 300=standard, 400=extended
Level *uint64 `json:"Level,omitnil,omitempty" name:"Level"`
}
Predefined struct for user
type ModifyUserLevelResponse ¶
type ModifyUserLevelResponse struct {
*tchttp.BaseResponse
Response *ModifyUserLevelResponseParams `json:"Response"`
}
func NewModifyUserLevelResponse ¶
func NewModifyUserLevelResponse() (response *ModifyUserLevelResponse)
func (*ModifyUserLevelResponse) FromJsonString ¶
func (r *ModifyUserLevelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyUserLevelResponse) ToJsonString ¶
func (r *ModifyUserLevelResponse) ToJsonString() string
type ModifyUserLevelResponseParams ¶
type ModifyUserLevelResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyUserSignatureRuleRequest ¶
type ModifyUserSignatureRuleRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Main class ID
MainClassID *string `json:"MainClassID,omitnil,omitempty" name:"MainClassID"`
// Main class switch 0=off, 1=on, 2=alarm only
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// List of rules issued for modification
RuleID []*ReqUserRule `json:"RuleID,omitnil,omitempty" name:"RuleID"`
}
func NewModifyUserSignatureRuleRequest ¶
func NewModifyUserSignatureRuleRequest() (request *ModifyUserSignatureRuleRequest)
func (*ModifyUserSignatureRuleRequest) FromJsonString ¶
func (r *ModifyUserSignatureRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyUserSignatureRuleRequest) ToJsonString ¶
func (r *ModifyUserSignatureRuleRequest) ToJsonString() string
type ModifyUserSignatureRuleRequestParams ¶
type ModifyUserSignatureRuleRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Main class ID
MainClassID *string `json:"MainClassID,omitnil,omitempty" name:"MainClassID"`
// Main class switch 0=off, 1=on, 2=alarm only
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// List of rules issued for modification
RuleID []*ReqUserRule `json:"RuleID,omitnil,omitempty" name:"RuleID"`
}
Predefined struct for user
type ModifyUserSignatureRuleResponse ¶
type ModifyUserSignatureRuleResponse struct {
*tchttp.BaseResponse
Response *ModifyUserSignatureRuleResponseParams `json:"Response"`
}
func NewModifyUserSignatureRuleResponse ¶
func NewModifyUserSignatureRuleResponse() (response *ModifyUserSignatureRuleResponse)
func (*ModifyUserSignatureRuleResponse) FromJsonString ¶
func (r *ModifyUserSignatureRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyUserSignatureRuleResponse) ToJsonString ¶
func (r *ModifyUserSignatureRuleResponse) ToJsonString() string
type ModifyUserSignatureRuleResponseParams ¶
type ModifyUserSignatureRuleResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyWebshellStatusRequest ¶
type ModifyWebshellStatusRequest struct {
*tchttp.BaseRequest
// Domain Webshell Status
Webshell *WebshellStatus `json:"Webshell,omitnil,omitempty" name:"Webshell"`
}
func NewModifyWebshellStatusRequest ¶
func NewModifyWebshellStatusRequest() (request *ModifyWebshellStatusRequest)
func (*ModifyWebshellStatusRequest) FromJsonString ¶
func (r *ModifyWebshellStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyWebshellStatusRequest) ToJsonString ¶
func (r *ModifyWebshellStatusRequest) ToJsonString() string
type ModifyWebshellStatusRequestParams ¶
type ModifyWebshellStatusRequestParams struct {
// Domain Webshell Status
Webshell *WebshellStatus `json:"Webshell,omitnil,omitempty" name:"Webshell"`
}
Predefined struct for user
type ModifyWebshellStatusResponse ¶
type ModifyWebshellStatusResponse struct {
*tchttp.BaseResponse
Response *ModifyWebshellStatusResponseParams `json:"Response"`
}
func NewModifyWebshellStatusResponse ¶
func NewModifyWebshellStatusResponse() (response *ModifyWebshellStatusResponse)
func (*ModifyWebshellStatusResponse) FromJsonString ¶
func (r *ModifyWebshellStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyWebshellStatusResponse) ToJsonString ¶
func (r *ModifyWebshellStatusResponse) ToJsonString() string
type ModifyWebshellStatusResponseParams ¶
type ModifyWebshellStatusResponseParams struct {
// Successful status code, needs JSON decoding before use, the returned format is {Domain:Status}, successful status code is Success, others are failed status codes (YunAPI Defined Error Codes)
Success *ResponseCode `json:"Success,omitnil,omitempty" name:"Success"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type OwaspRule ¶
type OwaspRule struct {
// Rule ID
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Rule description
Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
Level *int64 `json:"Level,omitnil,omitempty" name:"Level"`
// Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
VulLevel *int64 `json:"VulLevel,omitnil,omitempty" name:"VulLevel"`
// CVE ID
CveID *string `json:"CveID,omitnil,omitempty" name:"CveID"`
// Specifies the rule type ID.
TypeId *uint64 `json:"TypeId,omitnil,omitempty" name:"TypeId"`
// Creation time
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// Update time.
ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"`
// Whether the user is locked.
Locked *int64 `json:"Locked,omitnil,omitempty" name:"Locked"`
// Reason for modification
//
// 0: none (compatibility records are empty).
// 1: avoid false positives due to business characteristics.
// 2: reporting of rule-based false positives.
// 3: gray release of core business rules.
// 4: others
Reason *int64 `json:"Reason,omitnil,omitempty" name:"Reason"`
}
type OwaspRuleType ¶
type OwaspRuleType struct {
// Type ID
TypeId *uint64 `json:"TypeId,omitnil,omitempty" name:"TypeId"`
// Type name
TypeName *string `json:"TypeName,omitnil,omitempty" name:"TypeName"`
// Type description.
//
Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// Data type category.
Classification *string `json:"Classification,omitnil,omitempty" name:"Classification"`
// Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
Action *int64 `json:"Action,omitnil,omitempty" name:"Action"`
// Protection level of the rule type. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
Level *int64 `json:"Level,omitnil,omitempty" name:"Level"`
// The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Specifies all rules under the rule type. always.
TotalRule *uint64 `json:"TotalRule,omitnil,omitempty" name:"TotalRule"`
// Indicates the total number of rules enabled under the rule type.
ActiveRule *uint64 `json:"ActiveRule,omitnil,omitempty" name:"ActiveRule"`
}
type OwaspWhiteRule ¶
type OwaspWhiteRule struct {
// Rule ID of the allowlist.
RuleId *uint64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Rule Name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// ID list of allowlisted rules.
Ids []*uint64 `json:"Ids,omitnil,omitempty" name:"Ids"`
// Allowlist rule state. valid values: 0 (disabled), 1 (enabled).
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`
// Rule-Based matching policy list.
Strategies []*Strategy `json:"Strategies,omitnil,omitempty" name:"Strategies"`
// Creation time
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// Modification time
UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
// Scheduled task type
JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"`
// Scheduled task configuration
JobDateTime *JobDateTime `json:"JobDateTime,omitnil,omitempty" name:"JobDateTime"`
// Periodic task granularity.
CronType *string `json:"CronType,omitnil,omitempty" name:"CronType"`
// Whether there is currently valid.
ValidStatus *bool `json:"ValidStatus,omitnil,omitempty" name:"ValidStatus"`
}
type PeakPointsItem ¶
type PeakPointsItem struct {
// Second-level Timestamp
Time *uint64 `json:"Time,omitnil,omitempty" name:"Time"`
// QPS
Access *uint64 `json:"Access,omitnil,omitempty" name:"Access"`
// Upstream bandwidth peak, unit: B
Up *uint64 `json:"Up,omitnil,omitempty" name:"Up"`
// Downstream bandwidth peak, unit: B
Down *uint64 `json:"Down,omitnil,omitempty" name:"Down"`
// Web attack count
Attack *uint64 `json:"Attack,omitnil,omitempty" name:"Attack"`
// CC attack count
Cc *uint64 `json:"Cc,omitnil,omitempty" name:"Cc"`
// Bot qps
BotAccess *uint64 `json:"BotAccess,omitnil,omitempty" name:"BotAccess"`
// Number of 5xx status codes returned by WAF to client
//
// Note: This field may return null, indicating that no valid values can be obtained.
StatusServerError *uint64 `json:"StatusServerError,omitnil,omitempty" name:"StatusServerError"`
// Number of times WAF returned 4xx status codes to client
//
// Note: This field may return null, indicating that no valid values can be obtained.
StatusClientError *uint64 `json:"StatusClientError,omitnil,omitempty" name:"StatusClientError"`
// WAF Returned to Client Status Code 302 Count
//
// Note: This field may return null, indicating that no valid values can be obtained.
StatusRedirect *uint64 `json:"StatusRedirect,omitnil,omitempty" name:"StatusRedirect"`
// Number of Times WAF Returns Status Code 202 to Client
//
// Note: This field may return null, indicating that no valid values can be obtained.
StatusOk *uint64 `json:"StatusOk,omitnil,omitempty" name:"StatusOk"`
// Number of Times the Origin Server Returned 5xx Status Codes to WAF
//
// Note: This field may return null, indicating that no valid values can be obtained.
UpstreamServerError *uint64 `json:"UpstreamServerError,omitnil,omitempty" name:"UpstreamServerError"`
// Number of times the origin server returned 4xx status codes to WAF
//
// Note: This field may return null, indicating that no valid values can be obtained.
UpstreamClientError *uint64 `json:"UpstreamClientError,omitnil,omitempty" name:"UpstreamClientError"`
// Number of times the original server returns status code 302 to WAF
//
// Note: This field may return null, indicating that no valid values can be obtained.
UpstreamRedirect *uint64 `json:"UpstreamRedirect,omitnil,omitempty" name:"UpstreamRedirect"`
// Blocklist Count
//
// Note: This field may return null, indicating that no valid values can be obtained.
BlackIP *uint64 `json:"BlackIP,omitnil,omitempty" name:"BlackIP"`
// Tamper-Proof Attempts
//
// Note: This field may return null, indicating that no valid values can be obtained.
Tamper *uint64 `json:"Tamper,omitnil,omitempty" name:"Tamper"`
// Information Leakage Prevention Count
//
// Note: This field may return null, indicating that no valid values can be obtained.
Leak *uint64 `json:"Leak,omitnil,omitempty" name:"Leak"`
// Access control
// Note: This field may return null, indicating that no valid values can be obtained.
ACL *uint64 `json:"ACL,omitnil,omitempty" name:"ACL"`
// Mini Program QPS
//
// Note: This field may return null, indicating that no valid values can be obtained.
WxAccess *uint64 `json:"WxAccess,omitnil,omitempty" name:"WxAccess"`
// Number of mini program requests
// Note: This field may return null, indicating that no valid values can be obtained.
WxCount *uint64 `json:"WxCount,omitnil,omitempty" name:"WxCount"`
// Peak upstream bandwidth of the mini program. Unit: B
// Note: This field may return null, indicating that no valid values can be obtained.
WxUp *uint64 `json:"WxUp,omitnil,omitempty" name:"WxUp"`
// Peak downstream bandwidth of the mini program. Unit: B
// Note: This field may return null, indicating that no valid values can be obtained.
WxDown *uint64 `json:"WxDown,omitnil,omitempty" name:"WxDown"`
}
type PiechartItem ¶
type PortInfo ¶
type PortInfo struct {
// Nginx Server ID
NginxServerId *uint64 `json:"NginxServerId,omitnil,omitempty" name:"NginxServerId"`
// Listening Port Configuration
Port *string `json:"Port,omitnil,omitempty" name:"Port"`
// Protocol Corresponding to the Port
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Origin-pull port
UpstreamPort *string `json:"UpstreamPort,omitnil,omitempty" name:"UpstreamPort"`
// Origin-pull protocol
UpstreamProtocol *string `json:"UpstreamProtocol,omitnil,omitempty" name:"UpstreamProtocol"`
}
type PortItem ¶
type PortItem struct {
// Listening Port Configuration
Port *string `json:"Port,omitnil,omitempty" name:"Port"`
// Corresponds one-to-one with ports, indicating the protocol associated with the port.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Corresponds one-to-one with port, indicates the origin port
UpstreamPort *string `json:"UpstreamPort,omitnil,omitempty" name:"UpstreamPort"`
// Corresponds one-to-one with Port, indicating the origin protocol
UpstreamProtocol *string `json:"UpstreamProtocol,omitnil,omitempty" name:"UpstreamProtocol"`
// Nginx Server ID
NginxServerId *string `json:"NginxServerId,omitnil,omitempty" name:"NginxServerId"`
}
type QPSPackageNew ¶
type QPSPackageNew struct {
// Resource ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
ResourceIds *string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// Expiration time
//
// Note: This field may return null, indicating that no valid values can be obtained.
ValidTime *string `json:"ValidTime,omitnil,omitempty" name:"ValidTime"`
// Auto-renewal, 1: Enabled, 0: Disabled
//
// Note: This field may return null, indicating that no valid values can be obtained.
RenewFlag *int64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// Number of Package Purchases
//
// Note: This field may return null, indicating that no valid values can be obtained.
Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
// Package Purchase Region, currently not used in CLB-WAF
//
// Note: This field may return null, indicating that no valid values can be obtained.
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// Billing item.
// Note: This field may return null, indicating that no valid values can be obtained.
BillingItem *string `json:"BillingItem,omitnil,omitempty" name:"BillingItem"`
}
type QpsData ¶
type QpsData struct {
// Elastic QPS Default Value
//
// Note: This field may return null, indicating that no valid values can be obtained.
ElasticBillingDefault *uint64 `json:"ElasticBillingDefault,omitnil,omitempty" name:"ElasticBillingDefault"`
// Elastic QPS Minimum Value
//
// Note: This field may return null, indicating that no valid values can be obtained.
ElasticBillingMin *uint64 `json:"ElasticBillingMin,omitnil,omitempty" name:"ElasticBillingMin"`
// Maximum Elastic QPS
//
// Note: This field may return null, indicating that no valid values can be obtained.
ElasticBillingMax *uint64 `json:"ElasticBillingMax,omitnil,omitempty" name:"ElasticBillingMax"`
// Maximum QPS for Business Expansion Package
//
// Note: This field may return null, indicating that no valid values can be obtained.
QPSExtendMax *uint64 `json:"QPSExtendMax,omitnil,omitempty" name:"QPSExtendMax"`
// Maximum QPS for Overseas Business Expansion Package
//
// Note: This field may return null, indicating that no valid values can be obtained.
QPSExtendIntlMax *uint64 `json:"QPSExtendIntlMax,omitnil,omitempty" name:"QPSExtendIntlMax"`
}
type RefreshAccessCheckResultRequest ¶
type RefreshAccessCheckResultRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
func NewRefreshAccessCheckResultRequest ¶
func NewRefreshAccessCheckResultRequest() (request *RefreshAccessCheckResultRequest)
func (*RefreshAccessCheckResultRequest) FromJsonString ¶
func (r *RefreshAccessCheckResultRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RefreshAccessCheckResultRequest) ToJsonString ¶
func (r *RefreshAccessCheckResultRequest) ToJsonString() string
type RefreshAccessCheckResultRequestParams ¶
type RefreshAccessCheckResultRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
Predefined struct for user
type RefreshAccessCheckResultResponse ¶
type RefreshAccessCheckResultResponse struct {
*tchttp.BaseResponse
Response *RefreshAccessCheckResultResponseParams `json:"Response"`
}
func NewRefreshAccessCheckResultResponse ¶
func NewRefreshAccessCheckResultResponse() (response *RefreshAccessCheckResultResponse)
func (*RefreshAccessCheckResultResponse) FromJsonString ¶
func (r *RefreshAccessCheckResultResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RefreshAccessCheckResultResponse) ToJsonString ¶
func (r *RefreshAccessCheckResultResponse) ToJsonString() string
type RefreshAccessCheckResultResponseParams ¶
type RefreshAccessCheckResultResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ReqUserRule ¶
type ReqUserRule struct {
// Feature serial number
Id *string `json:"Id,omitnil,omitempty" name:"Id"`
// Rule switch
// 0: disabled
// 1: enabled
// 2: alarm only
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Reason for modification
//
// 0: none (Compatibility records are empty.)
// 1: avoidance of false positives due to business characteristics
// 2: reporting of rule-based false positives
// 3: grayscale release of core business rules
// 4: others
Reason *int64 `json:"Reason,omitnil,omitempty" name:"Reason"`
}
type ResponseCode ¶
type ResponseCode struct {
// If successful, return a success; if failed, return Cloud API Defined Error Codes
Code *string `json:"Code,omitnil,omitempty" name:"Code"`
// If successful, return a success; if failed, return the secondary error code of WAF Definition
Message *string `json:"Message,omitnil,omitempty" name:"Message"`
}
type SearchAttackLogRequest ¶
type SearchAttackLogRequest struct {
*tchttp.BaseRequest
// Queried domain: use all for all domains
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Query start time
StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// Query end time
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// API upgrade. Input an empty string for this field. Use the Page field for page turning.
Context *string `json:"Context,omitnil,omitempty" name:"Context"`
// Lucene syntax.
QueryString *string `json:"QueryString,omitnil,omitempty" name:"QueryString"`
// Number of queries: 10 by default, up to 100
Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
// desc by default. Value can be set to desc or asc.
Sort *string `json:"Sort,omitnil,omitempty" name:"Sort"`
// Page number, starting from 0
Page *int64 `json:"Page,omitnil,omitempty" name:"Page"`
}
func NewSearchAttackLogRequest ¶
func NewSearchAttackLogRequest() (request *SearchAttackLogRequest)
func (*SearchAttackLogRequest) FromJsonString ¶
func (r *SearchAttackLogRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SearchAttackLogRequest) ToJsonString ¶
func (r *SearchAttackLogRequest) ToJsonString() string
type SearchAttackLogRequestParams ¶
type SearchAttackLogRequestParams struct {
// Queried domain: use all for all domains
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Query start time
StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// Query end time
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// API upgrade. Input an empty string for this field. Use the Page field for page turning.
Context *string `json:"Context,omitnil,omitempty" name:"Context"`
// Lucene syntax.
QueryString *string `json:"QueryString,omitnil,omitempty" name:"QueryString"`
// Number of queries: 10 by default, up to 100
Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
// desc by default. Value can be set to desc or asc.
Sort *string `json:"Sort,omitnil,omitempty" name:"Sort"`
// Page number, starting from 0
Page *int64 `json:"Page,omitnil,omitempty" name:"Page"`
}
Predefined struct for user
type SearchAttackLogResponse ¶
type SearchAttackLogResponse struct {
*tchttp.BaseResponse
Response *SearchAttackLogResponseParams `json:"Response"`
}
func NewSearchAttackLogResponse ¶
func NewSearchAttackLogResponse() (response *SearchAttackLogResponse)
func (*SearchAttackLogResponse) FromJsonString ¶
func (r *SearchAttackLogResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SearchAttackLogResponse) ToJsonString ¶
func (r *SearchAttackLogResponse) ToJsonString() string
type SearchAttackLogResponseParams ¶
type SearchAttackLogResponseParams struct {
// Number of attack logs returned
Count *uint64 `json:"Count,omitnil,omitempty" name:"Count"`
// API upgrade: this field is invalid, defaults to returning an empty string
Context *string `json:"Context,omitnil,omitempty" name:"Context"`
// Attack log array entry content
Data []*AttackLogInfo `json:"Data,omitnil,omitempty" name:"Data"`
// CLS API returned content
ListOver *bool `json:"ListOver,omitnil,omitempty" name:"ListOver"`
// CLS API returned content, indicating whether to enable the new version index
SqlFlag *bool `json:"SqlFlag,omitnil,omitempty" name:"SqlFlag"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type SearchItem ¶
type SessionData ¶
type SessionData struct {
// Session definition
Res []*SessionItem `json:"Res,omitnil,omitempty" name:"Res"`
}
type SessionItem ¶
type SessionItem struct {
// Type to match
Category *string `json:"Category,omitnil,omitempty" name:"Category"`
// Start Mode
KeyOrStartMat *string `json:"KeyOrStartMat,omitnil,omitempty" name:"KeyOrStartMat"`
// End Mode
EndMat *string `json:"EndMat,omitnil,omitempty" name:"EndMat"`
// Starting Offset
StartOffset *string `json:"StartOffset,omitnil,omitempty" name:"StartOffset"`
// End Offset
EndOffset *string `json:"EndOffset,omitnil,omitempty" name:"EndOffset"`
// Data source
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Update Timestamp
TsVersion *string `json:"TsVersion,omitnil,omitempty" name:"TsVersion"`
// SessionID
// Note: This field may return null, indicating that no valid values can be obtained.
SessionId *int64 `json:"SessionId,omitnil,omitempty" name:"SessionId"`
// Session Name
//
// Note: This field may return null, indicating that no valid values can be obtained.
SessionName *string `json:"SessionName,omitnil,omitempty" name:"SessionName"`
// Whether the session is being enabled
//
// Note: This field may return null, indicating that no valid values can be obtained.
SessionInUsed *bool `json:"SessionInUsed,omitnil,omitempty" name:"SessionInUsed"`
// Session-related CC Rule ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
RelatedRuleID []*int64 `json:"RelatedRuleID,omitnil,omitempty" name:"RelatedRuleID"`
}
type SpartaProtectionPort ¶
type SpartaProtectionPort struct {
// nginx Id
NginxServerId *uint64 `json:"NginxServerId,omitnil,omitempty" name:"NginxServerId"`
// Port
Port *string `json:"Port,omitnil,omitempty" name:"Port"`
// Protocol
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Backend port
UpstreamPort *string `json:"UpstreamPort,omitnil,omitempty" name:"UpstreamPort"`
// Backend protocol
UpstreamProtocol *string `json:"UpstreamProtocol,omitnil,omitempty" name:"UpstreamProtocol"`
}
type Strategy ¶
type Strategy struct {
// Specifies the matching field.
//
// Different matching fields result in different matching parameters, logical operators, and matching contents. the details are as follows:.
// <table><thead><tr><th>Matching Field</th> <th>Matching Parameter</th> <th>Logical Symbol</th> <th>Matching Content</th></tr></thead> <tbody><tr><td>IP (source IP)</td> <td>Parameters are not supported.</td> <td>ipmatch (match)<br/>ipnmatch (mismatch)</td> <td>Multiple IP addresses are separated by commas. A maximum of 20 IP addresses are allowed.</td></tr> <tr><td>IPv6 (source IPv6)</td> <td>Parameters are not supported.</td> <td>ipmatch (match)<br/>ipnmatch (mismatch)</td> <td>A single IPv6 address is supported.</td></tr> <tr><td>Referer (referer)</td> <td>Parameters are not supported.</td> <td>empty (Content is empty.)<br/>null (do not exist)<br/>eq (equal to)<br/>neq (not equal to)<br/>contains (contain)<br/>ncontains (do not contain)<br/>len_eq (length equals to)<br/>len_gt (length is greater than)<br/>len_lt (length is less than)<br/>strprefix (prefix matching)<br/>strsuffix (suffix matching)<br/>rematch (regular expression matching)</td> <td>Enter the content, with a maximum of 512 characters.</td></tr> <tr><td>URL (request path)</td> <td>Parameters are not supported.</td> <td>eq (equal to)<br/>neq (not equal to)<br/>contains (contain)<br/>ncontains (do not contain)<br/>len_eq (length equals to)<br/>len_gt (length is greater than)<br/>len_lt (length is
// less than)<br/>strprefix (prefix matching)<br/>strsuffix (suffix matching)<br/>rematch (regular expression matching)</td> <td>Enter the content starting with /, with a maximum of 512 characters.</td></tr> <tr><td>UserAgent (UserAgent)</td> <td>Parameters are not supported.</td><td>Same logical symbols as the matching field <font color="Red">Referer</font></td> <td>Enter the content with a maximum of 512 characters.</td></tr> <tr><td>HTTP_METHOD (HTTP request method)</td> <td>Parameters are not supported.</td> <td>eq (equal to)<br/>neq (not equal to)</td> <td>Enter the method name. The uppercase is recommended.</td></tr> <tr><td>QUERY_STRING (request string)</td> <td>Parameters are not supported.</td> <td>Same logical symbol as the matching field <font color="Red">Request Path</font></td><td>Enter the content with a maximum of 512 characters.</td></tr> <tr><td>GET (GET parameter value)</td> <td>Parameter entry is supported.</td> <td>contains (contain)<br/>ncontains (do not contain)<br/>len_eq (length equals to)<br/>len_gt (length is greater than)<br/>len_lt (length is less than)<br/>strprefix (prefix matching)<br/>strsuffix (suffix matching)</td> <td>Enter the content with a maximum of 512 characters.</td></tr> <tr><td>GET_PARAMS_NAMES (GET parameter name)</td> <td>Parameters are not supported.</td> <td>exist (Parameter exists.)<br/>nexist (Parameter does not exist.)<br/>len_eq (length equals to)<br/>len_gt (length is greater than)<br/>len_lt (length is less than)<br/>strprefix (prefix matching)<br/>strsuffix (suffix matching)</td><td>Enter the content with a maximum of 512 characters.</td></tr> <tr><td>POST (POST parameter value)</td> <td>Parameter entry is supported.</td> <td>Same logical symbol as the matching field <font color="Red">GET Parameter Value</font></td> <td>Enter the content with a maximum of 512 characters.</td></tr> <tr><td>GET_POST_NAMES (POST parameter name)</td> <td>Parameters are not supported.</td> <td>Same logical symbol as the matching field <font color="Red">GET Parameter Name</font></td> <td>Enter the content with a maximum of 512 characters.</td></tr> <tr><td>POST_BODY (complete body)</td> <td>Parameters are not supported.</td> <td>Same logical symbol as the matching field <font color="Red">Request Path</font></td><td>Enter the body content with a maximum of 512 characters.</td></tr> <tr><td>COOKIE (cookie)</td> <td>Parameters are not supported.</td> <td>empty (Content is empty.)<br/>null (do not exist)<br/>rematch (regular expression matching)</td> <td><font color="Red">Unsupported currently</font></td></tr> <tr><td>GET_COOKIES_NAMES (cookie parameter name)</td> <td>Parameters are not supported.</td> <td>Same logical symbol as the matching field <font color="Red">GET Parameter Name</font></td> <td>Enter the content with a maximum of 512 characters.</td></tr> <tr><td>ARGS_COOKIE (cookie parameter value)</td> <td>Parameter entry is supported.</td> <td>Same logical symbol as the matching field <font color="Red">GET Parameter Value</font></td> <td>Enter the content512 characters limit</td></tr><tr><td>GET_HEADERS_NAMES (Header parameter name)</td><td>parameter not supported</td><td>exsit (parameter exists)<br/>nexsit (parameter does not exist)<br/>len_eq (LENGTH equal)<br/>len_gt (LENGTH greater than)<br/>len_lt (LENGTH less than)<br/>strprefix (prefix match)<br/>strsuffix (suffix matching)<br/>rematch (regular expression matching)</td><td>enter CONTENT, lowercase is recommended, up to 512 characters</td></tr><tr><td>ARGS_Header (Header parameter value)</td><td>support parameter entry</td><td>contains (include)<br/>ncontains (does not include)<br/>len_eq (LENGTH equal)<br/>len_gt (LENGTH greater than)<br/>len_lt (LENGTH less than)<br/>strprefix (prefix match)<br/>strsuffix (suffix matching)<br/>rematch (regular expression matching)</td><td>enter CONTENT, up to 512 characters</td></tr><tr><td>CONTENT_LENGTH (CONTENT-LENGTH)</td><td>support parameter entry</td><td>numgt (value greater than)<br/>numlt (value smaller than)<br/>numeq (value equal to)<br/></td><td>enter an integer between 0-9999999999999</td></tr><tr><td>IP_GEO (source IP geolocation)</td><td>support parameter entry</td><td>GEO_in (belong)<br/>GEO_not_in (not_in)<br/></td><td>enter CONTENT, up to 10240 characters, format: serialized JSON, format: [{"Country":"china","Region":"guangdong","City":"shenzhen"}]</td></tr><tr><td>CAPTCHA_RISK (CAPTCHA RISK)</td><td>parameter not supported</td><td>eq (equal)<br/>neq (not equal to)<br/>belong (belong)<br/>not_belong (not belong to)<br/>null (nonexistent)<br/>exist (exist)</td><td>enter RISK level value, value range 0-255</td></tr><tr><td>CAPTCHA_DEVICE_RISK (CAPTCHA DEVICE RISK)</td><td>parameter not supported</td><td>eq (equal)<br/>neq (not equal to)<br/>belong (belong)<br/>not_belong (not belong to)<br/>null (nonexistent)<br/>exist (exist)</td><td>enter DEVICE RISK code, valid values: 101, 201, 301, 401, 501, 601, 701</td></tr><tr><td>CAPTCHAR_SCORE (CAPTCHA RISK assessment SCORE)</td><td>parameter not supported</td><td>numeq (value equal to)<br/>numgt (value greater than)<br/>numlt (value smaller than)<br/>numle (less than or equal to)<br/>numge (value is greater than or equal to)<br/>null (nonexistent)<br/>exist (exist)</td><td>enter assessment SCORE, value range 0-100</td></tr>.
// </tbody></table>
Field *string `json:"Field,omitnil,omitempty" name:"Field"`
// Specifies the logic symbol.
//
// Logical symbols are divided into the following types:.
// Empty (content is empty).
// null (not found).
// Eq (equal to).
// neq (not equal to).
// contains (contain).
// ncontains (do not contain).
// strprefix (prefix matching).
// strsuffix (suffix matching).
// Len_eq (length equals to).
// Len_gt (length greater than).
// Len_lt (length less than).
// ipmatch (belong).
// ipnmatch (not_in).
// numgt (value greater than).
// NumValue smaller than].
// Value equal to.
// numneq (value not equal to).
// numle (less than or equal to).
// numge (value is greater than or equal to).
// geo_in (IP geographic belong).
// geo_not_in (IP geographic not_in).
// Specifies different logical operators for matching fields. for details, see the matching field table above.
CompareFunc *string `json:"CompareFunc,omitnil,omitempty" name:"CompareFunc"`
// Specifies the match content.
//
// Currently, when the match field is COOKIE (COOKIE), match content is not required. all others are needed.
Content *string `json:"Content,omitnil,omitempty" name:"Content"`
// Specifies the matching parameter.
//
// Configuration parameters are divided into two data types: parameter not supported and support parameters.
// When the match field is one of the following four, the matching parameter can be entered, otherwise not supported.
// GET (get parameter value).
//
// POST (post parameter value).
//
// ARGS_COOKIE (COOKIE parameter value).
//
// ARGS_HEADER (HEADER parameter value).
Arg *string `json:"Arg,omitnil,omitempty" name:"Arg"`
// Case-Sensitive.
// Case-Insensitive.
CaseNotSensitive *uint64 `json:"CaseNotSensitive,omitnil,omitempty" name:"CaseNotSensitive"`
}
type StrategyForAntiInfoLeak ¶
type StrategyForAntiInfoLeak struct {
// Matching Criteria, returncode (Response Code), keywords (Keywords), information (Sensitive Information)
Field *string `json:"Field,omitnil,omitempty" name:"Field"`
// Logical operator, fixed value: contains
CompareFunc *string `json:"CompareFunc,omitnil,omitempty" name:"CompareFunc"`
// Matching content
// The following options are available when Field is set to information:
// idcard (ID card), phone (phone number), and bankcard (bank card).
// The following options are available when Field is set to returncode:
// 400 (status code 400), 403 (status code 403), 404 (status code 404), 4xx (other 4xx status codes), 500 (status code 500), 501 (status code 501), 502 (status code 502), 504 (status code 504), and 5xx (other 5xx status codes).
// When Field is set to keywords, users need to input the matching content themselves.
Content *string `json:"Content,omitnil,omitempty" name:"Content"`
}
type SwitchElasticModeRequest ¶
type SwitchElasticModeRequest struct {
*tchttp.BaseRequest
// Version, can only be sparta-waf, clb-waf, or cdn-waf
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// 0 indicates Off; 1 indicates On
Mode *int64 `json:"Mode,omitnil,omitempty" name:"Mode"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
func NewSwitchElasticModeRequest ¶
func NewSwitchElasticModeRequest() (request *SwitchElasticModeRequest)
func (*SwitchElasticModeRequest) FromJsonString ¶
func (r *SwitchElasticModeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SwitchElasticModeRequest) ToJsonString ¶
func (r *SwitchElasticModeRequest) ToJsonString() string
type SwitchElasticModeRequestParams ¶
type SwitchElasticModeRequestParams struct {
// Version, can only be sparta-waf, clb-waf, or cdn-waf
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// 0 indicates Off; 1 indicates On
Mode *int64 `json:"Mode,omitnil,omitempty" name:"Mode"`
// Instance ID
InstanceID *string `json:"InstanceID,omitnil,omitempty" name:"InstanceID"`
}
Predefined struct for user
type SwitchElasticModeResponse ¶
type SwitchElasticModeResponse struct {
*tchttp.BaseResponse
Response *SwitchElasticModeResponseParams `json:"Response"`
}
func NewSwitchElasticModeResponse ¶
func NewSwitchElasticModeResponse() (response *SwitchElasticModeResponse)
func (*SwitchElasticModeResponse) FromJsonString ¶
func (r *SwitchElasticModeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SwitchElasticModeResponse) ToJsonString ¶
func (r *SwitchElasticModeResponse) ToJsonString() string
type SwitchElasticModeResponseParams ¶
type SwitchElasticModeResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type TLSCiphers ¶
type TLSCiphers struct {
// TLS version ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
VersionId *int64 `json:"VersionId,omitnil,omitempty" name:"VersionId"`
// Encryption Suite ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
CipherId *int64 `json:"CipherId,omitnil,omitempty" name:"CipherId"`
// Cipher suite
// Note: This field may return null, indicating that no valid values can be obtained.
CipherName *string `json:"CipherName,omitnil,omitempty" name:"CipherName"`
}
type TLSVersion ¶
type TLSVersion struct {
// ID of TLSVERSION
//
// Note: This field may return null, indicating that no valid values can be obtained.
VersionId *int64 `json:"VersionId,omitnil,omitempty" name:"VersionId"`
// TLSVERSION's Name
//
// Note: This field may return null, indicating that no valid values can be obtained.
VersionName *string `json:"VersionName,omitnil,omitempty" name:"VersionName"`
}
type TargetEntity ¶
type UpsertCCRuleRequest ¶
type UpsertCCRuleRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Status
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Advanced mode (whether to use session detection). 0: disabled; 1: enabled
Advance *string `json:"Advance,omitnil,omitempty" name:"Advance"`
// CC detection threshold
Limit *string `json:"Limit,omitnil,omitempty" name:"Limit"`
// CC detection cycle
Interval *string `json:"Interval,omitnil,omitempty" name:"Interval"`
// Detection URL
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// Matching method. 0: equal to; 1: prefix matching; 2: included
MatchFunc *int64 `json:"MatchFunc,omitnil,omitempty" name:"MatchFunc"`
// Action. 20: observation; 21: CAPTCHA; 22: interception; 23: precise interception
ActionType *string `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Priority
Priority *int64 `json:"Priority,omitnil,omitempty" name:"Priority"`
// Valid time for action
ValidTime *int64 `json:"ValidTime,omitnil,omitempty" name:"ValidTime"`
// Additional Parameters
OptionsArr *string `json:"OptionsArr,omitnil,omitempty" name:"OptionsArr"`
// WAF version. The value can be sparta-waf or clb-waf.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Operation type
Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`
// Source event ID for adding rules
EventId *string `json:"EventId,omitnil,omitempty" name:"EventId"`
// Session ID that needs to be enabled for the rule
SessionApplied []*int64 `json:"SessionApplied,omitnil,omitempty" name:"SessionApplied"`
// Rule ID: fill in 0 when adding
RuleId *int64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Rule creation time
CreateTime *uint64 `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// URL length
Length *uint64 `json:"Length,omitnil,omitempty" name:"Length"`
}
func NewUpsertCCRuleRequest ¶
func NewUpsertCCRuleRequest() (request *UpsertCCRuleRequest)
func (*UpsertCCRuleRequest) FromJsonString ¶
func (r *UpsertCCRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpsertCCRuleRequest) ToJsonString ¶
func (r *UpsertCCRuleRequest) ToJsonString() string
type UpsertCCRuleRequestParams ¶
type UpsertCCRuleRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Name
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Status
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Advanced mode (whether to use session detection). 0: disabled; 1: enabled
Advance *string `json:"Advance,omitnil,omitempty" name:"Advance"`
// CC detection threshold
Limit *string `json:"Limit,omitnil,omitempty" name:"Limit"`
// CC detection cycle
Interval *string `json:"Interval,omitnil,omitempty" name:"Interval"`
// Detection URL
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// Matching method. 0: equal to; 1: prefix matching; 2: included
MatchFunc *int64 `json:"MatchFunc,omitnil,omitempty" name:"MatchFunc"`
// Action. 20: observation; 21: CAPTCHA; 22: interception; 23: precise interception
ActionType *string `json:"ActionType,omitnil,omitempty" name:"ActionType"`
// Priority
Priority *int64 `json:"Priority,omitnil,omitempty" name:"Priority"`
// Valid time for action
ValidTime *int64 `json:"ValidTime,omitnil,omitempty" name:"ValidTime"`
// Additional Parameters
OptionsArr *string `json:"OptionsArr,omitnil,omitempty" name:"OptionsArr"`
// WAF version. The value can be sparta-waf or clb-waf.
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Operation type
Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`
// Source event ID for adding rules
EventId *string `json:"EventId,omitnil,omitempty" name:"EventId"`
// Session ID that needs to be enabled for the rule
SessionApplied []*int64 `json:"SessionApplied,omitnil,omitempty" name:"SessionApplied"`
// Rule ID: fill in 0 when adding
RuleId *int64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Rule creation time
CreateTime *uint64 `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// URL length
Length *uint64 `json:"Length,omitnil,omitempty" name:"Length"`
}
Predefined struct for user
type UpsertCCRuleResponse ¶
type UpsertCCRuleResponse struct {
*tchttp.BaseResponse
Response *UpsertCCRuleResponseParams `json:"Response"`
}
func NewUpsertCCRuleResponse ¶
func NewUpsertCCRuleResponse() (response *UpsertCCRuleResponse)
func (*UpsertCCRuleResponse) FromJsonString ¶
func (r *UpsertCCRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpsertCCRuleResponse) ToJsonString ¶
func (r *UpsertCCRuleResponse) ToJsonString() string
type UpsertCCRuleResponseParams ¶
type UpsertCCRuleResponseParams struct {
// Normally null
//
// Note: This field may return null, indicating that no valid values can be obtained.
Data *string `json:"Data,omitnil,omitempty" name:"Data"`
// Operated RuleId
RuleId *int64 `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type UpsertSessionRequest ¶
type UpsertSessionRequest struct {
*tchttp.BaseRequest
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Session source location
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Extraction category
Category *string `json:"Category,omitnil,omitempty" name:"Category"`
// Extract key or initial match mode
KeyOrStartMat *string `json:"KeyOrStartMat,omitnil,omitempty" name:"KeyOrStartMat"`
// End match mode
EndMat *string `json:"EndMat,omitnil,omitempty" name:"EndMat"`
// Start offset position
StartOffset *string `json:"StartOffset,omitnil,omitempty" name:"StartOffset"`
// End offset position
EndOffset *string `json:"EndOffset,omitnil,omitempty" name:"EndOffset"`
// Version
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Session Name
SessionName *string `json:"SessionName,omitnil,omitempty" name:"SessionName"`
// ID corresponding to session
SessionID *int64 `json:"SessionID,omitnil,omitempty" name:"SessionID"`
}
func NewUpsertSessionRequest ¶
func NewUpsertSessionRequest() (request *UpsertSessionRequest)
func (*UpsertSessionRequest) FromJsonString ¶
func (r *UpsertSessionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpsertSessionRequest) ToJsonString ¶
func (r *UpsertSessionRequest) ToJsonString() string
type UpsertSessionRequestParams ¶
type UpsertSessionRequestParams struct {
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Session source location
Source *string `json:"Source,omitnil,omitempty" name:"Source"`
// Extraction category
Category *string `json:"Category,omitnil,omitempty" name:"Category"`
// Extract key or initial match mode
KeyOrStartMat *string `json:"KeyOrStartMat,omitnil,omitempty" name:"KeyOrStartMat"`
// End match mode
EndMat *string `json:"EndMat,omitnil,omitempty" name:"EndMat"`
// Start offset position
StartOffset *string `json:"StartOffset,omitnil,omitempty" name:"StartOffset"`
// End offset position
EndOffset *string `json:"EndOffset,omitnil,omitempty" name:"EndOffset"`
// Version
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Session Name
SessionName *string `json:"SessionName,omitnil,omitempty" name:"SessionName"`
// ID corresponding to session
SessionID *int64 `json:"SessionID,omitnil,omitempty" name:"SessionID"`
}
Predefined struct for user
type UpsertSessionResponse ¶
type UpsertSessionResponse struct {
*tchttp.BaseResponse
Response *UpsertSessionResponseParams `json:"Response"`
}
func NewUpsertSessionResponse ¶
func NewUpsertSessionResponse() (response *UpsertSessionResponse)
func (*UpsertSessionResponse) FromJsonString ¶
func (r *UpsertSessionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpsertSessionResponse) ToJsonString ¶
func (r *UpsertSessionResponse) ToJsonString() string
type UpsertSessionResponseParams ¶
type UpsertSessionResponseParams struct {
// Result
// Note: This field may return null, indicating that no valid values can be obtained.
Data *string `json:"Data,omitnil,omitempty" name:"Data"`
// SessionID
// Note: This field may return null, indicating that no valid values can be obtained.
SessionID *int64 `json:"SessionID,omitnil,omitempty" name:"SessionID"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type UserDomainInfo ¶
type UserDomainInfo struct {
// User ID
Appid *uint64 `json:"Appid,omitnil,omitempty" name:"Appid"`
// Domain name
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Domain ID
DomainId *string `json:"DomainId,omitnil,omitempty" name:"DomainId"`
// Instance ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Instance name
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// WAF type
Edition *string `json:"Edition,omitnil,omitempty" name:"Edition"`
// Version
//
// Note: This field may return null, indicating that no valid values can be obtained.
Level *string `json:"Level,omitnil,omitempty" name:"Level"`
// Switch for Specified Domain Access Log Fields
//
// Note: This field may return null, indicating that no valid values can be obtained.
WriteConfig *string `json:"WriteConfig,omitnil,omitempty" name:"WriteConfig"`
// Whether to Write the CLS Switch for the Specified Domain 1: Yes, 0: No
//
// Note: This field may return null, indicating that no valid values can be obtained.
Cls *uint64 `json:"Cls,omitnil,omitempty" name:"Cls"`
// Marks if it is hybrid cloud access. Hybrid indicates a hybrid cloud access domain
//
// Note: This field may return null, indicating that no valid values can be obtained.
CloudType *string `json:"CloudType,omitnil,omitempty" name:"CloudType"`
// CLB WAF type
// Note: This field may return null, indicating that no valid values can be obtained.
AlbType *string `json:"AlbType,omitnil,omitempty" name:"AlbType"`
// Bot detection enabling status
// Note: This field may return null, indicating that no valid values can be obtained.
BotStatus *int64 `json:"BotStatus,omitnil,omitempty" name:"BotStatus"`
// API enabling status
// Note: This field may return null, indicating that no valid values can be obtained.
ApiStatus *int64 `json:"ApiStatus,omitnil,omitempty" name:"ApiStatus"`
}
type VipInfo ¶
type VipInfo struct {
// Virtual IP
// Note: This field may return null, indicating that no valid values can be obtained.
Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// WAF Instance ID
//
// Note: This field may return null, indicating that no valid values can be obtained.
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
type WafRuleLimit ¶
type WafRuleLimit struct {
// Specifications of Custom CC
CC *uint64 `json:"CC,omitnil,omitempty" name:"CC"`
// Specifications for Custom Policy
CustomRule *uint64 `json:"CustomRule,omitnil,omitempty" name:"CustomRule"`
// Specifications for Blocklist/Allowlist
IPControl *uint64 `json:"IPControl,omitnil,omitempty" name:"IPControl"`
// Specifications for Information Leakage Prevention
AntiLeak *uint64 `json:"AntiLeak,omitnil,omitempty" name:"AntiLeak"`
// Tamper-proof Specifications
AntiTamper *uint64 `json:"AntiTamper,omitnil,omitempty" name:"AntiTamper"`
// Specifications for Urgent CC
AutoCC *uint64 `json:"AutoCC,omitnil,omitempty" name:"AutoCC"`
// Specifications for Region Banning
AreaBan *uint64 `json:"AreaBan,omitnil,omitempty" name:"AreaBan"`
// Configure Session in Custom CC
CCSession *uint64 `json:"CCSession,omitnil,omitempty" name:"CCSession"`
// AI Specifications
AI *uint64 `json:"AI,omitnil,omitempty" name:"AI"`
// Specifications of Precision Allowlist
CustomWhite *uint64 `json:"CustomWhite,omitnil,omitempty" name:"CustomWhite"`
// API Security Specification
ApiSecurity *uint64 `json:"ApiSecurity,omitnil,omitempty" name:"ApiSecurity"`
// Specifications for client traffic flag
ClientMsg *uint64 `json:"ClientMsg,omitnil,omitempty" name:"ClientMsg"`
// Specifications for Traffic Tagging
TrafficMarking *uint64 `json:"TrafficMarking,omitnil,omitempty" name:"TrafficMarking"`
}