2 Star 4 Fork 3

tencentcloud/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
antiddos_client.ts 38.00 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 1个月前 . release 4.1.2
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228
/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import { AbstractClient } from "../../../common/abstract_client"
import { ClientConfig } from "../../../common/interface"
import {
CreateDefaultAlarmThresholdRequest,
DescribeDDoSConnectLimitListRequest,
DescribeListBGPIPInstancesResponse,
ModifyNewDomainRulesRequest,
PacketFilterConfig,
DescribeOverviewCCTrendRequest,
DeleteCCLevelPolicyRequest,
ProxyTypeInfo,
CreateBoundIPRequest,
CCReqLimitPolicyRecord,
DescribeListSchedulingDomainRequest,
CreateWaterPrintConfigRequest,
DDoSGeoIPBlockConfig,
CreateBlackWhiteIpListResponse,
IPAlarmThresholdRelation,
DeleteCCRequestLimitPolicyRequest,
DescribeL7RulesBySSLCertIdResponse,
DescribeDDoSBlackWhiteIpListResponse,
InstanceRelation,
RegionInfo,
DescribeListProtocolBlockConfigResponse,
DescribeListBGPInstancesRequest,
KeyValue,
DescribeBGPIPL7RulesRequest,
ModifyCcBlackWhiteIpListRequest,
DeleteDDoSSpeedLimitConfigRequest,
CreatePacketFilterConfigResponse,
CreateCCReqLimitPolicyResponse,
DescribeListWaterPrintConfigRequest,
CreateL7RuleCertsRequest,
CreateCCPrecisionPolicyResponse,
DeleteCcGeoIPBlockConfigResponse,
DeleteDDoSGeoIPBlockConfigRequest,
ModifyDDoSGeoIPBlockConfigResponse,
DescribeCcBlackWhiteIpListResponse,
ModifyCCLevelPolicyResponse,
CreateIPAlarmThresholdConfigRequest,
CreateCcBlackWhiteIpListResponse,
DescribeDefaultAlarmThresholdResponse,
CreateNewL7RulesResponse,
CreateDDoSAIRequest,
DescribeListWaterPrintConfigResponse,
ModifyNewDomainRulesResponse,
CcBlackWhiteIpPolicy,
DescribeDDoSConnectLimitListResponse,
L7RuleHealth,
ModifyPacketFilterConfigResponse,
DescribeCCLevelPolicyRequest,
CreateWaterPrintConfigResponse,
DescribeOverviewAttackTrendRequest,
DescribeListBGPIPInstancesRequest,
DescribeNewL7RulesResponse,
OverviewDDoSEvent,
StaticPackRelation,
CreatePortAclConfigRequest,
DescribeCCThresholdListResponse,
DescribeL7RulesBySSLCertIdRequest,
TagFilter,
IpBlockData,
DescribeListPacketFilterConfigResponse,
CreateSchedulingDomainRequest,
ModifyPortAclConfigRequest,
BoundIpInfo,
CreateDDoSBlackWhiteIpListRequest,
ModifyCCReqLimitPolicyRequest,
DescribeOverviewDDoSTrendRequest,
DisassociateDDoSEipAddressResponse,
DescribeBgpBizTrendRequest,
DeleteCCThresholdPolicyResponse,
DescribeBizHttpStatusRequest,
SourceServer,
CCLevelPolicy,
DescribeOverviewIndexResponse,
CreatePortAclConfigListRequest,
AclConfig,
DisassociateDDoSEipAddressRequest,
SwitchWaterPrintConfigResponse,
BlackWhiteIpRelation,
DeleteWaterPrintKeyResponse,
EipAddressPackRelation,
CreateDDoSBlackWhiteIpListResponse,
ModifyCcBlackWhiteIpListResponse,
DescribeNewL7RulesRequest,
ProtocolBlockRelation,
DescribeListPacketFilterConfigRequest,
DescribeOverviewIndexRequest,
BGPIPInstanceUsages,
ModifyDDoSBlackWhiteIpListRequest,
DescribeListDDoSGeoIPBlockConfigRequest,
DescribeOverviewDDoSEventListResponse,
CreateCcGeoIPBlockConfigResponse,
DescribeOverviewAttackTrendResponse,
HttpStatusMap,
Layer7Rule,
ModifyPortAclConfigResponse,
DescribeBasicDeviceStatusRequest,
DeleteCcGeoIPBlockConfigRequest,
DescribeCCLevelListResponse,
CreateDDoSSpeedLimitConfigRequest,
CreateDDoSGeoIPBlockConfigRequest,
CreateProtocolBlockConfigRequest,
DeleteWaterPrintKeyRequest,
SuccessCode,
AssociateDDoSEipAddressResponse,
DDoSSpeedLimitConfigRelation,
DeleteCCLevelPolicyResponse,
ModifyPacketFilterConfigRequest,
CreateCcGeoIPBlockConfigRequest,
DeletePortAclConfigResponse,
CreateDDoSSpeedLimitConfigResponse,
DescribeNewL7RulesErrHealthResponse,
DeletePacketFilterConfigRequest,
DescribeListDDoSGeoIPBlockConfigResponse,
DescribeBasicDeviceStatusResponse,
DescribeBgpBizTrendResponse,
L4RuleSource,
DescribePendingRiskInfoResponse,
ProtocolBlockConfig,
DeleteCCPrecisionPolicyRequest,
BGPIPInstance,
DeleteWaterPrintConfigResponse,
Layer4Rule,
DeletePacketFilterConfigResponse,
CreateProtocolBlockConfigResponse,
BGPIPInstanceSpecification,
CreateIPAlarmThresholdConfigResponse,
CreatePortAclConfigListResponse,
DeleteWaterPrintConfigRequest,
DescribeDDoSBlackWhiteIpListRequest,
ConnectLimitRelation,
DescribeListBlackWhiteIpListResponse,
DDoSAIRelation,
CreateBlackWhiteIpListRequest,
DescribeCCReqLimitPolicyListRequest,
AclConfigRelation,
DescribeListDDoSSpeedLimitConfigResponse,
ModifyDDoSThresholdResponse,
CreateDDoSGeoIPBlockConfigResponse,
CCPrecisionPolicy,
DescribeOverviewDDoSEventListRequest,
EipAddressRelation,
DeleteDDoSBlackWhiteIpListRequest,
PackInfo,
DescribeBGPIPL7RulesResponse,
CreateDDoSConnectLimitResponse,
WaterPrintRelation,
IPLineInfo,
DescribeCcBlackWhiteIpListRequest,
DescribeListListenerResponse,
DeletePortAclConfigRequest,
DescribeIpBlockListRequest,
DescribePendingRiskInfoRequest,
CreatePortAclConfigResponse,
ModifyDDoSLevelResponse,
CreateL7RuleCertsResponse,
CreateCCPrecisionPolicyRequest,
ConnectLimitConfig,
DDoSSpeedLimitConfig,
AnycastOutPackRelation,
CertIdInsL7Rules,
IpSegment,
CreateDefaultAlarmThresholdResponse,
ModifyDDoSThresholdRequest,
ModifyDDoSLevelRequest,
DescribeListSchedulingDomainResponse,
DescribeListIPAlarmConfigResponse,
CcGeoIpPolicyNew,
ModifyDDoSBlackWhiteIpListResponse,
CCReqLimitPolicy,
DescribeCCPrecisionPlyListRequest,
ProtocolPort,
DescribeCCLevelListRequest,
ModifyCCThresholdPolicyRequest,
DeleteDDoSGeoIPBlockConfigResponse,
DescribeListDDoSAIRequest,
DescribeListIPAlarmConfigRequest,
PortSegment,
CreateNewL7RulesRequest,
DescribeOverviewCCTrendResponse,
ModifyCCReqLimitPolicyResponse,
DefaultAlarmThreshold,
ForwardListener,
BGPInstanceSpecification,
ModifyDomainUsrNameRequest,
CreateDDoSConnectLimitRequest,
CreateWaterPrintKeyRequest,
DescribeBizHttpStatusResponse,
InsL7Rules,
DescribeCCReqLimitPolicyListResponse,
DescribeListDDoSAIResponse,
DescribeNewL7RulesErrHealthRequest,
ModifyCCPrecisionPolicyResponse,
CcGeoIPBlockConfig,
ModifyDDoSSpeedLimitConfigRequest,
AssociateDDoSEipAddressRequest,
AssociateDDoSEipLoadBalancerResponse,
DescribeCCThresholdListRequest,
BGPIPL7RuleEntry,
ModifyDDoSGeoIPBlockConfigRequest,
DescribeBizTrendResponse,
NewL7RuleEntry,
DeleteCcBlackWhiteIpListResponse,
CreateBoundIPResponse,
DescribeListDDoSSpeedLimitConfigRequest,
SpeedValue,
SwitchWaterPrintConfigRequest,
AssociateDDoSEipLoadBalancerRequest,
ModifyCCPrecisionPolicyRequest,
DeleteDDoSBlackWhiteIpListResponse,
CCThresholdPolicy,
WaterPrintConfig,
ModifyDomainUsrNameResponse,
DescribeCCTrendResponse,
CreateSchedulingDomainResponse,
EipProductInfo,
DeleteCcBlackWhiteIpListRequest,
DescribeCcGeoIPBlockConfigListResponse,
CreateDDoSAIResponse,
DDoSGeoIPBlockConfigRelation,
DescribeListProtocolBlockConfigRequest,
DescribeListBGPInstancesResponse,
TagInfo,
DescribeDDoSTrendRequest,
DeleteCCRequestLimitPolicyResponse,
CreateCcBlackWhiteIpListRequest,
BGPInstance,
DescribeBizMonitorTrendResponse,
DescribeListPortAclListResponse,
CCPrecisionPlyRecord,
DescribeCCPrecisionPlyListResponse,
DescribeBizTrendRequest,
DescribeListPortAclListRequest,
DescribeIpBlockListResponse,
DescribeCCLevelPolicyResponse,
DescribeBizMonitorTrendRequest,
DescribeOverviewDDoSTrendResponse,
BGPInstanceUsages,
DeleteDDoSSpeedLimitConfigResponse,
DeleteCCThresholdPolicyRequest,
DescribeListListenerRequest,
L7RuleEntry,
ModifyCCThresholdPolicyResponse,
CreateWaterPrintKeyResponse,
DeleteCCPrecisionPolicyResponse,
DescribeDDoSTrendResponse,
DescribeListBlackWhiteIpListRequest,
CreateCCReqLimitPolicyRequest,
ModifyDDoSSpeedLimitConfigResponse,
SchedulingDomainInfo,
DescribeDefaultAlarmThresholdRequest,
WaterPrintKey,
ModifyCCLevelPolicyRequest,
DescribeCcGeoIPBlockConfigListRequest,
PacketFilterRelation,
RuleInstanceRelation,
CreatePacketFilterConfigRequest,
DescribeCCTrendRequest,
} from "./antiddos_models"
/**
* antiddos client
* @class
*/
export class Client extends AbstractClient {
constructor(clientConfig: ClientConfig) {
super("antiddos.tencentcloudapi.com", "2020-03-09", clientConfig)
}
/**
* 修改CC频率限制策略
*/
async ModifyCCReqLimitPolicy(
req: ModifyCCReqLimitPolicyRequest,
cb?: (error: string, rep: ModifyCCReqLimitPolicyResponse) => void
): Promise<ModifyCCReqLimitPolicyResponse> {
return this.request("ModifyCCReqLimitPolicy", req, cb)
}
/**
* 修改DDoS黑白名单列表
*/
async ModifyDDoSBlackWhiteIpList(
req: ModifyDDoSBlackWhiteIpListRequest,
cb?: (error: string, rep: ModifyDDoSBlackWhiteIpListResponse) => void
): Promise<ModifyDDoSBlackWhiteIpListResponse> {
return this.request("ModifyDDoSBlackWhiteIpList", req, cb)
}
/**
* 查询账号维度待处理风险信息,包括是否为付费用户,查询攻击中、封堵中、过期资源数量等
*/
async DescribePendingRiskInfo(
req?: DescribePendingRiskInfoRequest,
cb?: (error: string, rep: DescribePendingRiskInfoResponse) => void
): Promise<DescribePendingRiskInfoResponse> {
return this.request("DescribePendingRiskInfo", req, cb)
}
/**
* 查询与证书ID对于域名匹配的七层规则
*/
async DescribeL7RulesBySSLCertId(
req: DescribeL7RulesBySSLCertIdRequest,
cb?: (error: string, rep: DescribeL7RulesBySSLCertIdResponse) => void
): Promise<DescribeL7RulesBySSLCertIdResponse> {
return this.request("DescribeL7RulesBySSLCertId", req, cb)
}
/**
* 高防IP获取7层规则
*/
async DescribeBGPIPL7Rules(
req: DescribeBGPIPL7RulesRequest,
cb?: (error: string, rep: DescribeBGPIPL7RulesResponse) => void
): Promise<DescribeBGPIPL7RulesResponse> {
return this.request("DescribeBGPIPL7Rules", req, cb)
}
/**
* 获取单IP告警阈值配置列表
*/
async DescribeListIPAlarmConfig(
req: DescribeListIPAlarmConfigRequest,
cb?: (error: string, rep: DescribeListIPAlarmConfigResponse) => void
): Promise<DescribeListIPAlarmConfigResponse> {
return this.request("DescribeListIPAlarmConfig", req, cb)
}
/**
* 获取单IP默认告警阈值配置
*/
async DescribeDefaultAlarmThreshold(
req: DescribeDefaultAlarmThresholdRequest,
cb?: (error: string, rep: DescribeDefaultAlarmThresholdResponse) => void
): Promise<DescribeDefaultAlarmThresholdResponse> {
return this.request("DescribeDefaultAlarmThreshold", req, cb)
}
/**
* 获取DDoS连接抑制配置列表
*/
async DescribeDDoSConnectLimitList(
req: DescribeDDoSConnectLimitListRequest,
cb?: (error: string, rep: DescribeDDoSConnectLimitListResponse) => void
): Promise<DescribeDDoSConnectLimitListResponse> {
return this.request("DescribeDDoSConnectLimitList", req, cb)
}
/**
* 获取L7转发规则健康检查异常结果列表
*/
async DescribeNewL7RulesErrHealth(
req: DescribeNewL7RulesErrHealthRequest,
cb?: (error: string, rep: DescribeNewL7RulesErrHealthResponse) => void
): Promise<DescribeNewL7RulesErrHealthResponse> {
return this.request("DescribeNewL7RulesErrHealth", req, cb)
}
/**
* 获取CC四层黑白名单列表
*/
async DescribeCcBlackWhiteIpList(
req: DescribeCcBlackWhiteIpListRequest,
cb?: (error: string, rep: DescribeCcBlackWhiteIpListResponse) => void
): Promise<DescribeCcBlackWhiteIpListResponse> {
return this.request("DescribeCcBlackWhiteIpList", req, cb)
}
/**
* 获取边界防护CC防护等级列表
*/
async DescribeCCLevelList(
req: DescribeCCLevelListRequest,
cb?: (error: string, rep: DescribeCCLevelListResponse) => void
): Promise<DescribeCCLevelListResponse> {
return this.request("DescribeCCLevelList", req, cb)
}
/**
* 新增CC精准防护策略
*/
async CreateCCPrecisionPolicy(
req: CreateCCPrecisionPolicyRequest,
cb?: (error: string, rep: CreateCCPrecisionPolicyResponse) => void
): Promise<CreateCCPrecisionPolicyResponse> {
return this.request("CreateCCPrecisionPolicy", req, cb)
}
/**
* 获取CC清洗阈值列表
*/
async DescribeCCThresholdList(
req: DescribeCCThresholdListRequest,
cb?: (error: string, rep: DescribeCCThresholdListResponse) => void
): Promise<DescribeCCThresholdListResponse> {
return this.request("DescribeCCThresholdList", req, cb)
}
/**
* 设置单IP告警阈值配置
*/
async CreateIPAlarmThresholdConfig(
req: CreateIPAlarmThresholdConfigRequest,
cb?: (error: string, rep: CreateIPAlarmThresholdConfigResponse) => void
): Promise<CreateIPAlarmThresholdConfigResponse> {
return this.request("CreateIPAlarmThresholdConfig", req, cb)
}
/**
* 获取DDoS防护的特征过滤规则列表
*/
async DescribeListPacketFilterConfig(
req: DescribeListPacketFilterConfigRequest,
cb?: (error: string, rep: DescribeListPacketFilterConfigResponse) => void
): Promise<DescribeListPacketFilterConfigResponse> {
return this.request("DescribeListPacketFilterConfig", req, cb)
}
/**
* 添加DDoS防护的端口acl策略
*/
async CreatePortAclConfig(
req: CreatePortAclConfigRequest,
cb?: (error: string, rep: CreatePortAclConfigResponse) => void
): Promise<CreatePortAclConfigResponse> {
return this.request("CreatePortAclConfig", req, cb)
}
/**
* 获取基础防护攻击状态
*/
async DescribeBasicDeviceStatus(
req: DescribeBasicDeviceStatusRequest,
cb?: (error: string, rep: DescribeBasicDeviceStatusResponse) => void
): Promise<DescribeBasicDeviceStatusResponse> {
return this.request("DescribeBasicDeviceStatus", req, cb)
}
/**
* 本接口 (AssociateDDoSEipLoadBalancer) 用于将高防弹性公网IP绑定到负载均衡指定内网 IP 上。
*/
async AssociateDDoSEipLoadBalancer(
req: AssociateDDoSEipLoadBalancerRequest,
cb?: (error: string, rep: AssociateDDoSEipLoadBalancerResponse) => void
): Promise<AssociateDDoSEipLoadBalancerResponse> {
return this.request("AssociateDDoSEipLoadBalancer", req, cb)
}
/**
* 添加7层转发规则
*/
async CreateNewL7Rules(
req: CreateNewL7RulesRequest,
cb?: (error: string, rep: CreateNewL7RulesResponse) => void
): Promise<CreateNewL7RulesResponse> {
return this.request("CreateNewL7Rules", req, cb)
}
/**
* 删除DDoS防护的水印防护配置
*/
async DeleteWaterPrintConfig(
req: DeleteWaterPrintConfigRequest,
cb?: (error: string, rep: DeleteWaterPrintConfigResponse) => void
): Promise<DeleteWaterPrintConfigResponse> {
return this.request("DeleteWaterPrintConfig", req, cb)
}
/**
* 新增CC频率限制策略
*/
async CreateCCReqLimitPolicy(
req: CreateCCReqLimitPolicyRequest,
cb?: (error: string, rep: CreateCCReqLimitPolicyResponse) => void
): Promise<CreateCCReqLimitPolicyResponse> {
return this.request("CreateCCReqLimitPolicy", req, cb)
}
/**
* 开启或关闭DDoS防护的水印防护配置,此功能为付费增值服务,有需求请联系售后
*/
async SwitchWaterPrintConfig(
req: SwitchWaterPrintConfigRequest,
cb?: (error: string, rep: SwitchWaterPrintConfigResponse) => void
): Promise<SwitchWaterPrintConfigResponse> {
return this.request("SwitchWaterPrintConfig", req, cb)
}
/**
* 获取DDoS防护的协议封禁配置列表
*/
async DescribeListProtocolBlockConfig(
req: DescribeListProtocolBlockConfigRequest,
cb?: (error: string, rep: DescribeListProtocolBlockConfigResponse) => void
): Promise<DescribeListProtocolBlockConfigResponse> {
return this.request("DescribeListProtocolBlockConfig", req, cb)
}
/**
* 创建一个域名,可用于在封堵时调度切换IP
*/
async CreateSchedulingDomain(
req: CreateSchedulingDomainRequest,
cb?: (error: string, rep: CreateSchedulingDomainResponse) => void
): Promise<CreateSchedulingDomainResponse> {
return this.request("CreateSchedulingDomain", req, cb)
}
/**
* 本接口 (DisassociateDDoSEipAddress) 用于解绑高防弹性公网IP。
*/
async DisassociateDDoSEipAddress(
req: DisassociateDDoSEipAddressRequest,
cb?: (error: string, rep: DisassociateDDoSEipAddressResponse) => void
): Promise<DisassociateDDoSEipAddressResponse> {
return this.request("DisassociateDDoSEipAddress", req, cb)
}
/**
* 设置DDoS防护的协议封禁配置
*/
async CreateProtocolBlockConfig(
req: CreateProtocolBlockConfigRequest,
cb?: (error: string, rep: CreateProtocolBlockConfigResponse) => void
): Promise<CreateProtocolBlockConfigResponse> {
return this.request("CreateProtocolBlockConfig", req, cb)
}
/**
* 删除DDoS防护的IP网段黑白名单
*/
async DeleteDDoSBlackWhiteIpList(
req: DeleteDDoSBlackWhiteIpListRequest,
cb?: (error: string, rep: DeleteDDoSBlackWhiteIpListResponse) => void
): Promise<DeleteDDoSBlackWhiteIpListResponse> {
return this.request("DeleteDDoSBlackWhiteIpList", req, cb)
}
/**
* 批量配置L7转发规则的证书供SSL测调用
*/
async CreateL7RuleCerts(
req: CreateL7RuleCertsRequest,
cb?: (error: string, rep: CreateL7RuleCertsResponse) => void
): Promise<CreateL7RuleCertsResponse> {
return this.request("CreateL7RuleCerts", req, cb)
}
/**
* 本接口 (AssociateDDoSEipAddress) 用于将高防弹性公网IP绑定到实例或弹性网卡的指定内网 IP 上。
*/
async AssociateDDoSEipAddress(
req: AssociateDDoSEipAddressRequest,
cb?: (error: string, rep: AssociateDDoSEipAddressResponse) => void
): Promise<AssociateDDoSEipAddressResponse> {
return this.request("AssociateDDoSEipAddress", req, cb)
}
/**
* 修改智能解析域名名称
*/
async ModifyDomainUsrName(
req: ModifyDomainUsrNameRequest,
cb?: (error: string, rep: ModifyDomainUsrNameResponse) => void
): Promise<ModifyDomainUsrNameResponse> {
return this.request("ModifyDomainUsrName", req, cb)
}
/**
* 获取防护概览DDoS攻击流量带宽和攻击包速率数据
*/
async DescribeOverviewDDoSTrend(
req: DescribeOverviewDDoSTrendRequest,
cb?: (error: string, rep: DescribeOverviewDDoSTrendResponse) => void
): Promise<DescribeOverviewDDoSTrendResponse> {
return this.request("DescribeOverviewDDoSTrend", req, cb)
}
/**
* 删除DDoS防护的访问限速配置
*/
async DeleteDDoSSpeedLimitConfig(
req: DeleteDDoSSpeedLimitConfigRequest,
cb?: (error: string, rep: DeleteDDoSSpeedLimitConfigResponse) => void
): Promise<DeleteDDoSSpeedLimitConfigResponse> {
return this.request("DeleteDDoSSpeedLimitConfig", req, cb)
}
/**
* 高防IP获取7层规则
*/
async DescribeNewL7Rules(
req: DescribeNewL7RulesRequest,
cb?: (error: string, rep: DescribeNewL7RulesResponse) => void
): Promise<DescribeNewL7RulesResponse> {
return this.request("DescribeNewL7Rules", req, cb)
}
/**
* 获取IP封堵列表
*/
async DescribeIpBlockList(
req?: DescribeIpBlockListRequest,
cb?: (error: string, rep: DescribeIpBlockListResponse) => void
): Promise<DescribeIpBlockListResponse> {
return this.request("DescribeIpBlockList", req, cb)
}
/**
* 修改CC防护等级
*/
async ModifyCCLevelPolicy(
req: ModifyCCLevelPolicyRequest,
cb?: (error: string, rep: ModifyCCLevelPolicyResponse) => void
): Promise<ModifyCCLevelPolicyResponse> {
return this.request("ModifyCCLevelPolicy", req, cb)
}
/**
* 获取高防IP资产实例列表
*/
async DescribeListBGPIPInstances(
req: DescribeListBGPIPInstancesRequest,
cb?: (error: string, rep: DescribeListBGPIPInstancesResponse) => void
): Promise<DescribeListBGPIPInstancesResponse> {
return this.request("DescribeListBGPIPInstances", req, cb)
}
/**
* 修改7层转发规则
*/
async ModifyNewDomainRules(
req: ModifyNewDomainRulesRequest,
cb?: (error: string, rep: ModifyNewDomainRulesResponse) => void
): Promise<ModifyNewDomainRulesResponse> {
return this.request("ModifyNewDomainRules", req, cb)
}
/**
* 获取防护概览总请求峰值(QPS)和攻击请求(QPS)以及总请求次数和攻击请求次数
*/
async DescribeOverviewCCTrend(
req: DescribeOverviewCCTrendRequest,
cb?: (error: string, rep: DescribeOverviewCCTrendResponse) => void
): Promise<DescribeOverviewCCTrendResponse> {
return this.request("DescribeOverviewCCTrend", req, cb)
}
/**
* 获取CC分级策略
*/
async DescribeCCLevelPolicy(
req: DescribeCCLevelPolicyRequest,
cb?: (error: string, rep: DescribeCCLevelPolicyResponse) => void
): Promise<DescribeCCLevelPolicyResponse> {
return this.request("DescribeCCLevelPolicy", req, cb)
}
/**
* 获取智能调度域名列表
*/
async DescribeListSchedulingDomain(
req: DescribeListSchedulingDomainRequest,
cb?: (error: string, rep: DescribeListSchedulingDomainResponse) => void
): Promise<DescribeListSchedulingDomainResponse> {
return this.request("DescribeListSchedulingDomain", req, cb)
}
/**
* 添加DDoS防护的区域封禁配置
*/
async CreateDDoSGeoIPBlockConfig(
req: CreateDDoSGeoIPBlockConfigRequest,
cb?: (error: string, rep: CreateDDoSGeoIPBlockConfigResponse) => void
): Promise<CreateDDoSGeoIPBlockConfigResponse> {
return this.request("CreateDDoSGeoIPBlockConfig", req, cb)
}
/**
* 获取高防包流量折线图
*/
async DescribeBgpBizTrend(
req: DescribeBgpBizTrendRequest,
cb?: (error: string, rep: DescribeBgpBizTrendResponse) => void
): Promise<DescribeBgpBizTrendResponse> {
return this.request("DescribeBgpBizTrend", req, cb)
}
/**
* 获取CC频率限制策略列表
*/
async DescribeCCReqLimitPolicyList(
req: DescribeCCReqLimitPolicyListRequest,
cb?: (error: string, rep: DescribeCCReqLimitPolicyListResponse) => void
): Promise<DescribeCCReqLimitPolicyListResponse> {
return this.request("DescribeCCReqLimitPolicyList", req, cb)
}
/**
* 删除CC分级策略
*/
async DeleteCCLevelPolicy(
req: DeleteCCLevelPolicyRequest,
cb?: (error: string, rep: DeleteCCLevelPolicyResponse) => void
): Promise<DeleteCCLevelPolicyResponse> {
return this.request("DeleteCCLevelPolicy", req, cb)
}
/**
* 拉取防护概览指标
*/
async DescribeOverviewIndex(
req: DescribeOverviewIndexRequest,
cb?: (error: string, rep: DescribeOverviewIndexResponse) => void
): Promise<DescribeOverviewIndexResponse> {
return this.request("DescribeOverviewIndex", req, cb)
}
/**
* 添加DDoS防护的访问限速配置
*/
async CreateDDoSSpeedLimitConfig(
req: CreateDDoSSpeedLimitConfigRequest,
cb?: (error: string, rep: CreateDDoSSpeedLimitConfigResponse) => void
): Promise<CreateDDoSSpeedLimitConfigResponse> {
return this.request("CreateDDoSSpeedLimitConfig", req, cb)
}
/**
* 获取业务流量状态码统计列表
*/
async DescribeBizHttpStatus(
req: DescribeBizHttpStatusRequest,
cb?: (error: string, rep: DescribeBizHttpStatusResponse) => void
): Promise<DescribeBizHttpStatusResponse> {
return this.request("DescribeBizHttpStatus", req, cb)
}
/**
* 获取高防包资产实例列表
*/
async DescribeListBGPInstances(
req: DescribeListBGPInstancesRequest,
cb?: (error: string, rep: DescribeListBGPInstancesResponse) => void
): Promise<DescribeListBGPInstancesResponse> {
return this.request("DescribeListBGPInstances", req, cb)
}
/**
* 删除DDoS防护的端口acl策略
*/
async DeletePortAclConfig(
req: DeletePortAclConfigRequest,
cb?: (error: string, rep: DeletePortAclConfigResponse) => void
): Promise<DeletePortAclConfigResponse> {
return this.request("DeletePortAclConfig", req, cb)
}
/**
* 获取DDoS防护的水印防护配置列表
*/
async DescribeListWaterPrintConfig(
req: DescribeListWaterPrintConfigRequest,
cb?: (error: string, rep: DescribeListWaterPrintConfigResponse) => void
): Promise<DescribeListWaterPrintConfigResponse> {
return this.request("DescribeListWaterPrintConfig", req, cb)
}
/**
* 获取DDoS防护的区域封禁配置列表
*/
async DescribeListDDoSGeoIPBlockConfig(
req: DescribeListDDoSGeoIPBlockConfigRequest,
cb?: (error: string, rep: DescribeListDDoSGeoIPBlockConfigResponse) => void
): Promise<DescribeListDDoSGeoIPBlockConfigResponse> {
return this.request("DescribeListDDoSGeoIPBlockConfig", req, cb)
}
/**
* 删除CC防护的区域封禁配置
*/
async DeleteCcGeoIPBlockConfig(
req: DeleteCcGeoIPBlockConfigRequest,
cb?: (error: string, rep: DeleteCcGeoIPBlockConfigResponse) => void
): Promise<DeleteCcGeoIPBlockConfigResponse> {
return this.request("DeleteCcGeoIPBlockConfig", req, cb)
}
/**
* 获取DDoS防护的端口acl策略列表
*/
async DescribeListPortAclList(
req: DescribeListPortAclListRequest,
cb?: (error: string, rep: DescribeListPortAclListResponse) => void
): Promise<DescribeListPortAclListResponse> {
return this.request("DescribeListPortAclList", req, cb)
}
/**
* 获取转发监听器列表
*/
async DescribeListListener(
req?: DescribeListListenerRequest,
cb?: (error: string, rep: DescribeListListenerResponse) => void
): Promise<DescribeListListenerResponse> {
return this.request("DescribeListListener", req, cb)
}
/**
* 修改DDoS清洗阈值
*/
async ModifyDDoSThreshold(
req: ModifyDDoSThresholdRequest,
cb?: (error: string, rep: ModifyDDoSThresholdResponse) => void
): Promise<ModifyDDoSThresholdResponse> {
return this.request("ModifyDDoSThreshold", req, cb)
}
/**
* 修改DDoS防护的特征过滤规则
*/
async ModifyPacketFilterConfig(
req: ModifyPacketFilterConfigRequest,
cb?: (error: string, rep: ModifyPacketFilterConfigResponse) => void
): Promise<ModifyPacketFilterConfigResponse> {
return this.request("ModifyPacketFilterConfig", req, cb)
}
/**
* 添加DDoS防护的特征过滤规则
*/
async CreatePacketFilterConfig(
req: CreatePacketFilterConfigRequest,
cb?: (error: string, rep: CreatePacketFilterConfigResponse) => void
): Promise<CreatePacketFilterConfigResponse> {
return this.request("CreatePacketFilterConfig", req, cb)
}
/**
* 获取DDoS防护的IP黑白名单列表
*/
async DescribeListBlackWhiteIpList(
req: DescribeListBlackWhiteIpListRequest,
cb?: (error: string, rep: DescribeListBlackWhiteIpListResponse) => void
): Promise<DescribeListBlackWhiteIpListResponse> {
return this.request("DescribeListBlackWhiteIpList", req, cb)
}
/**
* 修改CC四层黑白名单
*/
async ModifyCcBlackWhiteIpList(
req: ModifyCcBlackWhiteIpListRequest,
cb?: (error: string, rep: ModifyCcBlackWhiteIpListResponse) => void
): Promise<ModifyCcBlackWhiteIpListResponse> {
return this.request("ModifyCcBlackWhiteIpList", req, cb)
}
/**
* 获取高防IP业务监控流量曲线
*/
async DescribeBizMonitorTrend(
req: DescribeBizMonitorTrendRequest,
cb?: (error: string, rep: DescribeBizMonitorTrendResponse) => void
): Promise<DescribeBizMonitorTrendResponse> {
return this.request("DescribeBizMonitorTrend", req, cb)
}
/**
* 绑定IP到高防包实例,支持独享包、共享包(新版);需要注意的是此接口绑定或解绑IP是异步接口,当处于绑定或解绑中时,则不允许再进行绑定或解绑,需要等待当前绑定或解绑完成。
*/
async CreateBoundIP(
req: CreateBoundIPRequest,
cb?: (error: string, rep: CreateBoundIPResponse) => void
): Promise<CreateBoundIPResponse> {
return this.request("CreateBoundIP", req, cb)
}
/**
* 获取防护概览的ddos攻击事件
*/
async DescribeOverviewDDoSEventList(
req: DescribeOverviewDDoSEventListRequest,
cb?: (error: string, rep: DescribeOverviewDDoSEventListResponse) => void
): Promise<DescribeOverviewDDoSEventListResponse> {
return this.request("DescribeOverviewDDoSEventList", req, cb)
}
/**
* 设置单IP默认告警阈值配置
*/
async CreateDefaultAlarmThreshold(
req: CreateDefaultAlarmThresholdRequest,
cb?: (error: string, rep: CreateDefaultAlarmThresholdResponse) => void
): Promise<CreateDefaultAlarmThresholdResponse> {
return this.request("CreateDefaultAlarmThreshold", req, cb)
}
/**
* 添加DDoS防护的水印防护配置
*/
async CreateWaterPrintConfig(
req: CreateWaterPrintConfigRequest,
cb?: (error: string, rep: CreateWaterPrintConfigResponse) => void
): Promise<CreateWaterPrintConfigResponse> {
return this.request("CreateWaterPrintConfig", req, cb)
}
/**
* 获取DDoS防护的AI防护开关列表
*/
async DescribeListDDoSAI(
req: DescribeListDDoSAIRequest,
cb?: (error: string, rep: DescribeListDDoSAIResponse) => void
): Promise<DescribeListDDoSAIResponse> {
return this.request("DescribeListDDoSAI", req, cb)
}
/**
* 获取DDoS防护的访问限速配置列表
*/
async DescribeListDDoSSpeedLimitConfig(
req: DescribeListDDoSSpeedLimitConfigRequest,
cb?: (error: string, rep: DescribeListDDoSSpeedLimitConfigResponse) => void
): Promise<DescribeListDDoSSpeedLimitConfigResponse> {
return this.request("DescribeListDDoSSpeedLimitConfig", req, cb)
}
/**
* 拉取防护概览攻击趋势
*/
async DescribeOverviewAttackTrend(
req: DescribeOverviewAttackTrendRequest,
cb?: (error: string, rep: DescribeOverviewAttackTrendResponse) => void
): Promise<DescribeOverviewAttackTrendResponse> {
return this.request("DescribeOverviewAttackTrend", req, cb)
}
/**
* 添加DDoS防护的IP黑白名单
*/
async CreateBlackWhiteIpList(
req: CreateBlackWhiteIpListRequest,
cb?: (error: string, rep: CreateBlackWhiteIpListResponse) => void
): Promise<CreateBlackWhiteIpListResponse> {
return this.request("CreateBlackWhiteIpList", req, cb)
}
/**
* 获取DDoS攻击流量带宽和攻击包速率数据
*/
async DescribeDDoSTrend(
req: DescribeDDoSTrendRequest,
cb?: (error: string, rep: DescribeDDoSTrendResponse) => void
): Promise<DescribeDDoSTrendResponse> {
return this.request("DescribeDDoSTrend", req, cb)
}
/**
* 设置DDoS防护的AI防护开关
*/
async CreateDDoSAI(
req: CreateDDoSAIRequest,
cb?: (error: string, rep: CreateDDoSAIResponse) => void
): Promise<CreateDDoSAIResponse> {
return this.request("CreateDDoSAI", req, cb)
}
/**
* 删除DDoS防护的特征过滤规则
*/
async DeletePacketFilterConfig(
req: DeletePacketFilterConfigRequest,
cb?: (error: string, rep: DeletePacketFilterConfigResponse) => void
): Promise<DeletePacketFilterConfigResponse> {
return this.request("DeletePacketFilterConfig", req, cb)
}
/**
* 读取或修改DDoS的防护等级
*/
async ModifyDDoSLevel(
req: ModifyDDoSLevelRequest,
cb?: (error: string, rep: ModifyDDoSLevelResponse) => void
): Promise<ModifyDDoSLevelResponse> {
return this.request("ModifyDDoSLevel", req, cb)
}
/**
* 批量添加DDoS防护的端口acl策略
*/
async CreatePortAclConfigList(
req: CreatePortAclConfigListRequest,
cb?: (error: string, rep: CreatePortAclConfigListResponse) => void
): Promise<CreatePortAclConfigListResponse> {
return this.request("CreatePortAclConfigList", req, cb)
}
/**
* 新建CC防护的地域封禁配置
*/
async CreateCcGeoIPBlockConfig(
req: CreateCcGeoIPBlockConfigRequest,
cb?: (error: string, rep: CreateCcGeoIPBlockConfigResponse) => void
): Promise<CreateCcGeoIPBlockConfigResponse> {
return this.request("CreateCcGeoIPBlockConfig", req, cb)
}
/**
* 新建CC四层黑白名单
*/
async CreateCcBlackWhiteIpList(
req: CreateCcBlackWhiteIpListRequest,
cb?: (error: string, rep: CreateCcBlackWhiteIpListResponse) => void
): Promise<CreateCcBlackWhiteIpListResponse> {
return this.request("CreateCcBlackWhiteIpList", req, cb)
}
/**
* 修改DDoS防护的访问限速配置
*/
async ModifyDDoSSpeedLimitConfig(
req: ModifyDDoSSpeedLimitConfigRequest,
cb?: (error: string, rep: ModifyDDoSSpeedLimitConfigResponse) => void
): Promise<ModifyDDoSSpeedLimitConfigResponse> {
return this.request("ModifyDDoSSpeedLimitConfig", req, cb)
}
/**
* 获取业务流量曲线
*/
async DescribeBizTrend(
req: DescribeBizTrendRequest,
cb?: (error: string, rep: DescribeBizTrendResponse) => void
): Promise<DescribeBizTrendResponse> {
return this.request("DescribeBizTrend", req, cb)
}
/**
* 删除DDoS防护的区域封禁配置
*/
async DeleteDDoSGeoIPBlockConfig(
req: DeleteDDoSGeoIPBlockConfigRequest,
cb?: (error: string, rep: DeleteDDoSGeoIPBlockConfigResponse) => void
): Promise<DeleteDDoSGeoIPBlockConfigResponse> {
return this.request("DeleteDDoSGeoIPBlockConfig", req, cb)
}
/**
* 获取CC精准防护列表
*/
async DescribeCCPrecisionPlyList(
req: DescribeCCPrecisionPlyListRequest,
cb?: (error: string, rep: DescribeCCPrecisionPlyListResponse) => void
): Promise<DescribeCCPrecisionPlyListResponse> {
return this.request("DescribeCCPrecisionPlyList", req, cb)
}
/**
* 修改DDoS防护的端口acl策略
*/
async ModifyPortAclConfig(
req: ModifyPortAclConfigRequest,
cb?: (error: string, rep: ModifyPortAclConfigResponse) => void
): Promise<ModifyPortAclConfigResponse> {
return this.request("ModifyPortAclConfig", req, cb)
}
/**
* 修改CC清洗阈值
*/
async ModifyCCThresholdPolicy(
req: ModifyCCThresholdPolicyRequest,
cb?: (error: string, rep: ModifyCCThresholdPolicyResponse) => void
): Promise<ModifyCCThresholdPolicyResponse> {
return this.request("ModifyCCThresholdPolicy", req, cb)
}
/**
* 删除CC清洗阈值策略
*/
async DeleteCCThresholdPolicy(
req: DeleteCCThresholdPolicyRequest,
cb?: (error: string, rep: DeleteCCThresholdPolicyResponse) => void
): Promise<DeleteCCThresholdPolicyResponse> {
return this.request("DeleteCCThresholdPolicy", req, cb)
}
/**
* 删除DDoS防护的水印防护密钥
*/
async DeleteWaterPrintKey(
req: DeleteWaterPrintKeyRequest,
cb?: (error: string, rep: DeleteWaterPrintKeyResponse) => void
): Promise<DeleteWaterPrintKeyResponse> {
return this.request("DeleteWaterPrintKey", req, cb)
}
/**
* 添加DDoS防护的IP网段黑白名单
*/
async CreateDDoSBlackWhiteIpList(
req: CreateDDoSBlackWhiteIpListRequest,
cb?: (error: string, rep: CreateDDoSBlackWhiteIpListResponse) => void
): Promise<CreateDDoSBlackWhiteIpListResponse> {
return this.request("CreateDDoSBlackWhiteIpList", req, cb)
}
/**
* 获取CC攻击指标数据,包括总请求峰值(QPS)和攻击请求(QPS)以及总请求次数和攻击请求次数
*/
async DescribeCCTrend(
req: DescribeCCTrendRequest,
cb?: (error: string, rep: DescribeCCTrendResponse) => void
): Promise<DescribeCCTrendResponse> {
return this.request("DescribeCCTrend", req, cb)
}
/**
* 删除CC四层黑白名单
*/
async DeleteCcBlackWhiteIpList(
req: DeleteCcBlackWhiteIpListRequest,
cb?: (error: string, rep: DeleteCcBlackWhiteIpListResponse) => void
): Promise<DeleteCcBlackWhiteIpListResponse> {
return this.request("DeleteCcBlackWhiteIpList", req, cb)
}
/**
* 删除CC精准防护策略
*/
async DeleteCCPrecisionPolicy(
req: DeleteCCPrecisionPolicyRequest,
cb?: (error: string, rep: DeleteCCPrecisionPolicyResponse) => void
): Promise<DeleteCCPrecisionPolicyResponse> {
return this.request("DeleteCCPrecisionPolicy", req, cb)
}
/**
* 获取DDoS防护的IP网段黑白名单
*/
async DescribeDDoSBlackWhiteIpList(
req: DescribeDDoSBlackWhiteIpListRequest,
cb?: (error: string, rep: DescribeDDoSBlackWhiteIpListResponse) => void
): Promise<DescribeDDoSBlackWhiteIpListResponse> {
return this.request("DescribeDDoSBlackWhiteIpList", req, cb)
}
/**
* 配置DDoS连接抑制选项
*/
async CreateDDoSConnectLimit(
req: CreateDDoSConnectLimitRequest,
cb?: (error: string, rep: CreateDDoSConnectLimitResponse) => void
): Promise<CreateDDoSConnectLimitResponse> {
return this.request("CreateDDoSConnectLimit", req, cb)
}
/**
* 修改CC精准防护策略
*/
async ModifyCCPrecisionPolicy(
req: ModifyCCPrecisionPolicyRequest,
cb?: (error: string, rep: ModifyCCPrecisionPolicyResponse) => void
): Promise<ModifyCCPrecisionPolicyResponse> {
return this.request("ModifyCCPrecisionPolicy", req, cb)
}
/**
* 获取CC防护的区域封禁配置列表
*/
async DescribeCcGeoIPBlockConfigList(
req: DescribeCcGeoIPBlockConfigListRequest,
cb?: (error: string, rep: DescribeCcGeoIPBlockConfigListResponse) => void
): Promise<DescribeCcGeoIPBlockConfigListResponse> {
return this.request("DescribeCcGeoIPBlockConfigList", req, cb)
}
/**
* 添加DDoS防护的水印防护密钥
*/
async CreateWaterPrintKey(
req: CreateWaterPrintKeyRequest,
cb?: (error: string, rep: CreateWaterPrintKeyResponse) => void
): Promise<CreateWaterPrintKeyResponse> {
return this.request("CreateWaterPrintKey", req, cb)
}
/**
* 删除CC频率限制策略
*/
async DeleteCCRequestLimitPolicy(
req: DeleteCCRequestLimitPolicyRequest,
cb?: (error: string, rep: DeleteCCRequestLimitPolicyResponse) => void
): Promise<DeleteCCRequestLimitPolicyResponse> {
return this.request("DeleteCCRequestLimitPolicy", req, cb)
}
/**
* 修改DDoS防护的区域封禁配置
*/
async ModifyDDoSGeoIPBlockConfig(
req: ModifyDDoSGeoIPBlockConfigRequest,
cb?: (error: string, rep: ModifyDDoSGeoIPBlockConfigResponse) => void
): Promise<ModifyDDoSGeoIPBlockConfigResponse> {
return this.request("ModifyDDoSGeoIPBlockConfig", req, cb)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs.git
git@gitee.com:tencentcloud/tencentcloud-sdk-nodejs.git
tencentcloud
tencentcloud-sdk-nodejs
tencentcloud-sdk-nodejs
master

搜索帮助