tencentcloud-sdk-nodejs 4.0.678 → 4.0.679
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +70 -0
- package/SERVICE_CHANGELOG.md +113 -384
- package/package.json +1 -1
- package/products.md +2 -2
- package/src/common/sdk_version.ts +1 -1
- package/src/services/vpc/v20170312/vpc_client.ts +88 -62
- package/src/services/vpc/v20170312/vpc_models.ts +82 -34
- package/src/services/waf/v20180125/waf_client.ts +744 -489
- package/src/services/waf/v20180125/waf_models.ts +1329 -282
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +41 -31
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +51 -37
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +78 -34
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +244 -162
- package/tencentcloud/services/waf/v20180125/waf_client.js +361 -239
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +1287 -293
- package/test/vpc.v20170312.test.js +30 -10
- package/test/waf.v20180125.test.js +356 -156
|
@@ -28,166 +28,170 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
28
28
|
super("waf.tencentcloudapi.com", "2018-01-25", clientConfig);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* clb
|
|
31
|
+
* 获取一个clb域名详情
|
|
32
32
|
*/
|
|
33
|
-
async
|
|
34
|
-
return this.request("
|
|
33
|
+
async DescribeDomainDetailsClb(req, cb) {
|
|
34
|
+
return this.request("DescribeDomainDetailsClb", req, cb);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* 查询用户所有域名的详细信息
|
|
38
38
|
*/
|
|
39
|
-
async
|
|
40
|
-
return this.request("
|
|
39
|
+
async DescribeDomains(req, cb) {
|
|
40
|
+
return this.request("DescribeDomains", req, cb);
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* 本接口用于获取访问日志索引配置信息
|
|
44
44
|
*/
|
|
45
|
-
async
|
|
46
|
-
return this.request("
|
|
45
|
+
async DescribeAccessIndex(req, cb) {
|
|
46
|
+
return this.request("DescribeAccessIndex", req, cb);
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* 按照条件查询展示攻击总次数
|
|
50
50
|
*/
|
|
51
|
-
async
|
|
52
|
-
return this.request("
|
|
51
|
+
async GetAttackTotalCount(req, cb) {
|
|
52
|
+
return this.request("GetAttackTotalCount", req, cb);
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* 增加精准白名单规则
|
|
56
56
|
*/
|
|
57
|
-
async
|
|
58
|
-
return this.request("
|
|
57
|
+
async AddCustomWhiteRule(req, cb) {
|
|
58
|
+
return this.request("AddCustomWhiteRule", req, cb);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Waf IP黑白名单Delete接口
|
|
62
62
|
*/
|
|
63
|
-
async
|
|
64
|
-
return this.request("
|
|
63
|
+
async DeleteIpAccessControl(req, cb) {
|
|
64
|
+
return this.request("DeleteIpAccessControl", req, cb);
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* 老接口已经不再使用。
|
|
68
|
+
|
|
69
|
+
获取信息防泄漏规则列表
|
|
68
70
|
*/
|
|
69
|
-
async
|
|
70
|
-
return this.request("
|
|
71
|
+
async DescribeAntiInfoLeakRules(req, cb) {
|
|
72
|
+
return this.request("DescribeAntiInfoLeakRules", req, cb);
|
|
71
73
|
}
|
|
72
74
|
/**
|
|
73
|
-
*
|
|
75
|
+
* 批量添加域名
|
|
74
76
|
*/
|
|
75
|
-
async
|
|
76
|
-
return this.request("
|
|
77
|
+
async AddSpartaProtectionsAuto(req, cb) {
|
|
78
|
+
return this.request("AddSpartaProtectionsAuto", req, cb);
|
|
77
79
|
}
|
|
78
80
|
/**
|
|
79
|
-
*
|
|
81
|
+
* 接口已废弃
|
|
82
|
+
|
|
83
|
+
描述WAF自动封禁IP详情,对齐自动封堵状态
|
|
80
84
|
*/
|
|
81
|
-
async
|
|
82
|
-
return this.request("
|
|
85
|
+
async DescribeAutoDenyIP(req, cb) {
|
|
86
|
+
return this.request("DescribeAutoDenyIP", req, cb);
|
|
83
87
|
}
|
|
84
88
|
/**
|
|
85
|
-
*
|
|
89
|
+
* 删除精准白名单规则
|
|
86
90
|
*/
|
|
87
|
-
async
|
|
88
|
-
return this.request("
|
|
91
|
+
async DeleteCustomWhiteRule(req, cb) {
|
|
92
|
+
return this.request("DeleteCustomWhiteRule", req, cb);
|
|
89
93
|
}
|
|
90
94
|
/**
|
|
91
|
-
*
|
|
95
|
+
* 查询下载攻击日志任务记录列表
|
|
92
96
|
*/
|
|
93
|
-
async
|
|
94
|
-
return this.request("
|
|
97
|
+
async GetAttackDownloadRecords(req, cb) {
|
|
98
|
+
return this.request("GetAttackDownloadRecords", req, cb);
|
|
95
99
|
}
|
|
96
100
|
/**
|
|
97
|
-
*
|
|
101
|
+
* 增加访问控制(自定义策略)
|
|
98
102
|
*/
|
|
99
|
-
async
|
|
100
|
-
return this.request("
|
|
103
|
+
async AddCustomRule(req, cb) {
|
|
104
|
+
return this.request("AddCustomRule", req, cb);
|
|
101
105
|
}
|
|
102
106
|
/**
|
|
103
|
-
*
|
|
107
|
+
* 删除自定义规则
|
|
104
108
|
*/
|
|
105
|
-
async
|
|
106
|
-
return this.request("
|
|
109
|
+
async DeleteCustomRule(req, cb) {
|
|
110
|
+
return this.request("DeleteCustomRule", req, cb);
|
|
107
111
|
}
|
|
108
112
|
/**
|
|
109
|
-
*
|
|
113
|
+
* 编辑防篡改url
|
|
110
114
|
*/
|
|
111
|
-
async
|
|
112
|
-
return this.request("
|
|
115
|
+
async ModifyAntiFakeUrl(req, cb) {
|
|
116
|
+
return this.request("ModifyAntiFakeUrl", req, cb);
|
|
113
117
|
}
|
|
114
118
|
/**
|
|
115
|
-
*
|
|
119
|
+
* 修改域名配置
|
|
116
120
|
*/
|
|
117
|
-
async
|
|
118
|
-
return this.request("
|
|
121
|
+
async ModifySpartaProtection(req, cb) {
|
|
122
|
+
return this.request("ModifySpartaProtection", req, cb);
|
|
119
123
|
}
|
|
120
124
|
/**
|
|
121
|
-
*
|
|
125
|
+
* api分析页面开关
|
|
122
126
|
*/
|
|
123
|
-
async
|
|
124
|
-
return this.request("
|
|
127
|
+
async ModifyApiAnalyzeStatus(req, cb) {
|
|
128
|
+
return this.request("ModifyApiAnalyzeStatus", req, cb);
|
|
125
129
|
}
|
|
126
130
|
/**
|
|
127
|
-
*
|
|
131
|
+
* 修改ip惩罚规则
|
|
128
132
|
*/
|
|
129
|
-
async
|
|
130
|
-
return this.request("
|
|
133
|
+
async ModifyWafAutoDenyRules(req, cb) {
|
|
134
|
+
return this.request("ModifyWafAutoDenyRules", req, cb);
|
|
131
135
|
}
|
|
132
136
|
/**
|
|
133
|
-
*
|
|
137
|
+
* 查询saas和clb的域名信息
|
|
134
138
|
*/
|
|
135
|
-
async
|
|
136
|
-
return this.request("
|
|
139
|
+
async DescribeUserDomainInfo(req, cb) {
|
|
140
|
+
return this.request("DescribeUserDomainInfo", req, cb);
|
|
137
141
|
}
|
|
138
142
|
/**
|
|
139
|
-
*
|
|
143
|
+
* Waf CC V2 Delete接口
|
|
140
144
|
*/
|
|
141
|
-
async
|
|
142
|
-
return this.request("
|
|
145
|
+
async DeleteCCRule(req, cb) {
|
|
146
|
+
return this.request("DeleteCCRule", req, cb);
|
|
143
147
|
}
|
|
144
148
|
/**
|
|
145
|
-
*
|
|
149
|
+
* 取得信息防泄漏规则列表
|
|
146
150
|
*/
|
|
147
|
-
async
|
|
148
|
-
return this.request("
|
|
151
|
+
async DescribeAntiInfoLeakageRules(req, cb) {
|
|
152
|
+
return this.request("DescribeAntiInfoLeakageRules", req, cb);
|
|
149
153
|
}
|
|
150
154
|
/**
|
|
151
|
-
*
|
|
155
|
+
* 一键接入
|
|
152
156
|
*/
|
|
153
|
-
async
|
|
154
|
-
return this.request("
|
|
157
|
+
async AddSpartaProtectionAuto(req, cb) {
|
|
158
|
+
return this.request("AddSpartaProtectionAuto", req, cb);
|
|
155
159
|
}
|
|
156
160
|
/**
|
|
157
|
-
*
|
|
161
|
+
* 描述WAF威胁情报封禁模块配置详情
|
|
158
162
|
*/
|
|
159
|
-
async
|
|
160
|
-
return this.request("
|
|
163
|
+
async DescribeWafThreatenIntelligence(req, cb) {
|
|
164
|
+
return this.request("DescribeWafThreatenIntelligence", req, cb);
|
|
161
165
|
}
|
|
162
166
|
/**
|
|
163
|
-
* Waf
|
|
167
|
+
* Waf IP封堵状态查询
|
|
164
168
|
*/
|
|
165
|
-
async
|
|
166
|
-
return this.request("
|
|
169
|
+
async DescribeIpHitItems(req, cb) {
|
|
170
|
+
return this.request("DescribeIpHitItems", req, cb);
|
|
167
171
|
}
|
|
168
172
|
/**
|
|
169
|
-
*
|
|
173
|
+
* 本接口用于搜索WAF访问日志
|
|
170
174
|
*/
|
|
171
|
-
async
|
|
172
|
-
return this.request("
|
|
175
|
+
async SearchAccessLog(req, cb) {
|
|
176
|
+
return this.request("SearchAccessLog", req, cb);
|
|
173
177
|
}
|
|
174
178
|
/**
|
|
175
|
-
*
|
|
179
|
+
* 信息防泄漏删除规则
|
|
176
180
|
*/
|
|
177
|
-
async
|
|
178
|
-
return this.request("
|
|
181
|
+
async DeleteAntiInfoLeakRule(req, cb) {
|
|
182
|
+
return this.request("DeleteAntiInfoLeakRule", req, cb);
|
|
179
183
|
}
|
|
180
184
|
/**
|
|
181
|
-
*
|
|
185
|
+
* 获取各个模块具体的规格限制
|
|
182
186
|
*/
|
|
183
|
-
async
|
|
184
|
-
return this.request("
|
|
187
|
+
async DescribeRuleLimit(req, cb) {
|
|
188
|
+
return this.request("DescribeRuleLimit", req, cb);
|
|
185
189
|
}
|
|
186
190
|
/**
|
|
187
|
-
*
|
|
191
|
+
* 添加信息防泄漏规则
|
|
188
192
|
*/
|
|
189
|
-
async
|
|
190
|
-
return this.request("
|
|
193
|
+
async AddAntiInfoLeakRules(req, cb) {
|
|
194
|
+
return this.request("AddAntiInfoLeakRules", req, cb);
|
|
191
195
|
}
|
|
192
196
|
/**
|
|
193
197
|
* clb-waf 设置防护域名WAF开关
|
|
@@ -197,46 +201,52 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
197
201
|
return this.request("ModifyHostStatus", req, cb);
|
|
198
202
|
}
|
|
199
203
|
/**
|
|
200
|
-
*
|
|
204
|
+
* 设置waf防护状态
|
|
201
205
|
*/
|
|
202
|
-
async
|
|
203
|
-
return this.request("
|
|
206
|
+
async ModifySpartaProtectionMode(req, cb) {
|
|
207
|
+
return this.request("ModifySpartaProtectionMode", req, cb);
|
|
204
208
|
}
|
|
205
209
|
/**
|
|
206
|
-
*
|
|
210
|
+
* Waf IP黑白名单Upsert接口
|
|
207
211
|
*/
|
|
208
|
-
async
|
|
209
|
-
return this.request("
|
|
212
|
+
async UpsertIpAccessControl(req, cb) {
|
|
213
|
+
return this.request("UpsertIpAccessControl", req, cb);
|
|
210
214
|
}
|
|
211
215
|
/**
|
|
212
|
-
*
|
|
216
|
+
* 生成攻击日志的产生时间柱状图
|
|
213
217
|
*/
|
|
214
|
-
async
|
|
215
|
-
return this.request("
|
|
218
|
+
async GetAttackHistogram(req, cb) {
|
|
219
|
+
return this.request("GetAttackHistogram", req, cb);
|
|
216
220
|
}
|
|
217
221
|
/**
|
|
218
|
-
*
|
|
222
|
+
* 配置WAF自动封禁模块状态
|
|
219
223
|
*/
|
|
220
|
-
async
|
|
221
|
-
return this.request("
|
|
224
|
+
async ModifyWafAutoDenyStatus(req, cb) {
|
|
225
|
+
return this.request("ModifyWafAutoDenyStatus", req, cb);
|
|
222
226
|
}
|
|
223
227
|
/**
|
|
224
|
-
*
|
|
228
|
+
* 信息防泄漏切换规则开关
|
|
225
229
|
*/
|
|
226
|
-
async
|
|
227
|
-
return this.request("
|
|
230
|
+
async ModifyAntiInfoLeakRuleStatus(req, cb) {
|
|
231
|
+
return this.request("ModifyAntiInfoLeakRuleStatus", req, cb);
|
|
228
232
|
}
|
|
229
233
|
/**
|
|
230
|
-
*
|
|
234
|
+
* 本接口用于修改访问日志保存期限及大字段是否存储
|
|
231
235
|
*/
|
|
232
|
-
async
|
|
233
|
-
return this.request("
|
|
236
|
+
async ModifyAccessPeriod(req, cb) {
|
|
237
|
+
return this.request("ModifyAccessPeriod", req, cb);
|
|
234
238
|
}
|
|
235
239
|
/**
|
|
236
|
-
*
|
|
240
|
+
* 切换防篡改开关
|
|
237
241
|
*/
|
|
238
|
-
async
|
|
239
|
-
return this.request("
|
|
242
|
+
async ModifyAntiFakeUrlStatus(req, cb) {
|
|
243
|
+
return this.request("ModifyAntiFakeUrlStatus", req, cb);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* 根据过滤条件查询VIP信息
|
|
247
|
+
*/
|
|
248
|
+
async DescribeVipInfo(req, cb) {
|
|
249
|
+
return this.request("DescribeVipInfo", req, cb);
|
|
240
250
|
}
|
|
241
251
|
/**
|
|
242
252
|
* 删除CLB-WAF防护域名
|
|
@@ -245,12 +255,6 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
245
255
|
async DeleteHost(req, cb) {
|
|
246
256
|
return this.request("DeleteHost", req, cb);
|
|
247
257
|
}
|
|
248
|
-
/**
|
|
249
|
-
* 更改某一条规则
|
|
250
|
-
*/
|
|
251
|
-
async ModifyDomainWhiteRule(req, cb) {
|
|
252
|
-
return this.request("ModifyDomainWhiteRule", req, cb);
|
|
253
|
-
}
|
|
254
258
|
/**
|
|
255
259
|
* 本接口用于访问日志的快速分析
|
|
256
260
|
*/
|
|
@@ -258,24 +262,10 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
258
262
|
return this.request("DescribeAccessFastAnalysis", req, cb);
|
|
259
263
|
}
|
|
260
264
|
/**
|
|
261
|
-
*
|
|
262
|
-
|
|
263
|
-
描述WAF自动封禁IP详情,对齐自动封堵状态
|
|
264
|
-
*/
|
|
265
|
-
async DescribeAutoDenyIP(req, cb) {
|
|
266
|
-
return this.request("DescribeAutoDenyIP", req, cb);
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* 描述WAF自动封禁模块详情
|
|
270
|
-
*/
|
|
271
|
-
async DescribeWafAutoDenyStatus(req, cb) {
|
|
272
|
-
return this.request("DescribeWafAutoDenyStatus", req, cb);
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* 删除精准白名单规则
|
|
265
|
+
* 查询业务和攻击概要趋势
|
|
276
266
|
*/
|
|
277
|
-
async
|
|
278
|
-
return this.request("
|
|
267
|
+
async DescribePeakPoints(req, cb) {
|
|
268
|
+
return this.request("DescribePeakPoints", req, cb);
|
|
279
269
|
}
|
|
280
270
|
/**
|
|
281
271
|
* 编辑精准白名单
|
|
@@ -284,130 +274,127 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
284
274
|
return this.request("ModifyCustomWhiteRule", req, cb);
|
|
285
275
|
}
|
|
286
276
|
/**
|
|
287
|
-
*
|
|
277
|
+
* 查询单个saas域名详情
|
|
288
278
|
*/
|
|
289
|
-
async
|
|
290
|
-
return this.request("
|
|
279
|
+
async DescribeDomainDetailsSaas(req, cb) {
|
|
280
|
+
return this.request("DescribeDomainDetailsSaas", req, cb);
|
|
291
281
|
}
|
|
292
282
|
/**
|
|
293
|
-
*
|
|
283
|
+
* Waf CC V2 Query接口
|
|
294
284
|
*/
|
|
295
|
-
async
|
|
296
|
-
return this.request("
|
|
285
|
+
async DescribeCCRule(req, cb) {
|
|
286
|
+
return this.request("DescribeCCRule", req, cb);
|
|
297
287
|
}
|
|
298
288
|
/**
|
|
299
|
-
*
|
|
289
|
+
* 获取业务和攻击概览峰值
|
|
300
290
|
*/
|
|
301
|
-
async
|
|
302
|
-
return this.request("
|
|
291
|
+
async DescribePeakValue(req, cb) {
|
|
292
|
+
return this.request("DescribePeakValue", req, cb);
|
|
303
293
|
}
|
|
304
294
|
/**
|
|
305
|
-
*
|
|
295
|
+
* 配置WAF威胁情报封禁模块详情
|
|
306
296
|
*/
|
|
307
|
-
async
|
|
308
|
-
return this.request("
|
|
297
|
+
async ModifyWafThreatenIntelligence(req, cb) {
|
|
298
|
+
return this.request("ModifyWafThreatenIntelligence", req, cb);
|
|
309
299
|
}
|
|
310
300
|
/**
|
|
311
|
-
*
|
|
301
|
+
* 删除攻击日志下载任务记录
|
|
312
302
|
*/
|
|
313
|
-
async
|
|
314
|
-
return this.request("
|
|
303
|
+
async DeleteAttackDownloadRecord(req, cb) {
|
|
304
|
+
return this.request("DeleteAttackDownloadRecord", req, cb);
|
|
315
305
|
}
|
|
316
306
|
/**
|
|
317
|
-
*
|
|
307
|
+
* 获取防护配置中的访问控制策略列表
|
|
318
308
|
*/
|
|
319
|
-
async
|
|
320
|
-
return this.request("
|
|
309
|
+
async DescribeCustomRuleList(req, cb) {
|
|
310
|
+
return this.request("DescribeCustomRuleList", req, cb);
|
|
321
311
|
}
|
|
322
312
|
/**
|
|
323
|
-
*
|
|
313
|
+
* 攻击总览
|
|
324
314
|
*/
|
|
325
|
-
async
|
|
326
|
-
return this.request("
|
|
315
|
+
async DescribeAttackOverview(req, cb) {
|
|
316
|
+
return this.request("DescribeAttackOverview", req, cb);
|
|
327
317
|
}
|
|
328
318
|
/**
|
|
329
|
-
*
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* waf斯巴达-删除防护域名
|
|
319
|
+
* 获取负载均衡绑定的WAF信息,可以根据租户负载均衡实例ID、负载均衡监听器ID、负载均衡的域名信息来查询对应绑定的 Waf的状态信息。
|
|
320
|
+
查询的范围:负载均衡实例ID、负载均衡实例ID+监听器ID、负载均衡实例ID+监听器ID+域名。
|
|
321
|
+
可能的错误码:ResourceNotFound(没有找到对应的资源)、UnsupportedRegion(目前clb-waf只支持北京、广州、上海、成都、重庆、香港地域)。
|
|
322
|
+
|
|
336
323
|
*/
|
|
337
|
-
async
|
|
338
|
-
return this.request("
|
|
324
|
+
async DescribeWafInfo(req, cb) {
|
|
325
|
+
return this.request("DescribeWafInfo", req, cb);
|
|
339
326
|
}
|
|
340
327
|
/**
|
|
341
|
-
*
|
|
328
|
+
* clb-waf中获取防护域名列表
|
|
342
329
|
*/
|
|
343
|
-
async
|
|
344
|
-
return this.request("
|
|
330
|
+
async DescribeHosts(req, cb) {
|
|
331
|
+
return this.request("DescribeHosts", req, cb);
|
|
345
332
|
}
|
|
346
333
|
/**
|
|
347
|
-
*
|
|
334
|
+
* 添加Spart防护域名
|
|
348
335
|
*/
|
|
349
|
-
async
|
|
350
|
-
return this.request("
|
|
336
|
+
async AddSpartaProtection(req, cb) {
|
|
337
|
+
return this.request("AddSpartaProtection", req, cb);
|
|
351
338
|
}
|
|
352
339
|
/**
|
|
353
|
-
*
|
|
340
|
+
* 获取防护状态以及生效的实例id
|
|
354
341
|
*/
|
|
355
|
-
async
|
|
356
|
-
return this.request("
|
|
342
|
+
async DescribePolicyStatus(req, cb) {
|
|
343
|
+
return this.request("DescribePolicyStatus", req, cb);
|
|
357
344
|
}
|
|
358
345
|
/**
|
|
359
|
-
*
|
|
346
|
+
* Waf 会话定义查询接口
|
|
360
347
|
*/
|
|
361
|
-
async
|
|
362
|
-
return this.request("
|
|
348
|
+
async DescribeSession(req, cb) {
|
|
349
|
+
return this.request("DescribeSession", req, cb);
|
|
363
350
|
}
|
|
364
351
|
/**
|
|
365
|
-
*
|
|
352
|
+
* clb-waf编辑防护域名配置
|
|
366
353
|
*/
|
|
367
|
-
async
|
|
368
|
-
return this.request("
|
|
354
|
+
async ModifyHost(req, cb) {
|
|
355
|
+
return this.request("ModifyHost", req, cb);
|
|
369
356
|
}
|
|
370
357
|
/**
|
|
371
|
-
*
|
|
358
|
+
* 查询用户TLS版本
|
|
372
359
|
*/
|
|
373
|
-
async
|
|
374
|
-
return this.request("
|
|
360
|
+
async DescribeTlsVersion(req, cb) {
|
|
361
|
+
return this.request("DescribeTlsVersion", req, cb);
|
|
375
362
|
}
|
|
376
363
|
/**
|
|
377
|
-
*
|
|
364
|
+
* waf斯巴达-waf开关
|
|
378
365
|
*/
|
|
379
|
-
async
|
|
380
|
-
return this.request("
|
|
366
|
+
async ModifyProtectionStatus(req, cb) {
|
|
367
|
+
return this.request("ModifyProtectionStatus", req, cb);
|
|
381
368
|
}
|
|
382
369
|
/**
|
|
383
|
-
*
|
|
370
|
+
* 查询加密套件信息
|
|
384
371
|
*/
|
|
385
|
-
async
|
|
386
|
-
return this.request("
|
|
372
|
+
async DescribeCiphersDetail(req, cb) {
|
|
373
|
+
return this.request("DescribeCiphersDetail", req, cb);
|
|
387
374
|
}
|
|
388
375
|
/**
|
|
389
|
-
*
|
|
376
|
+
* 修改防护域名的地域封禁状态
|
|
390
377
|
*/
|
|
391
|
-
async
|
|
392
|
-
return this.request("
|
|
378
|
+
async ModifyAreaBanStatus(req, cb) {
|
|
379
|
+
return this.request("ModifyAreaBanStatus", req, cb);
|
|
393
380
|
}
|
|
394
381
|
/**
|
|
395
|
-
*
|
|
382
|
+
* 获取防篡改url
|
|
396
383
|
*/
|
|
397
|
-
async
|
|
398
|
-
return this.request("
|
|
384
|
+
async DescribeAntiFakeRules(req, cb) {
|
|
385
|
+
return this.request("DescribeAntiFakeRules", req, cb);
|
|
399
386
|
}
|
|
400
387
|
/**
|
|
401
|
-
*
|
|
388
|
+
* 获取发现域名列表接口
|
|
402
389
|
*/
|
|
403
|
-
async
|
|
404
|
-
return this.request("
|
|
390
|
+
async DescribeFindDomainList(req, cb) {
|
|
391
|
+
return this.request("DescribeFindDomainList", req, cb);
|
|
405
392
|
}
|
|
406
393
|
/**
|
|
407
|
-
*
|
|
394
|
+
* 本接口用于访问日志柱状趋势图
|
|
408
395
|
*/
|
|
409
|
-
async
|
|
410
|
-
return this.request("
|
|
396
|
+
async DescribeAccessHistogram(req, cb) {
|
|
397
|
+
return this.request("DescribeAccessHistogram", req, cb);
|
|
411
398
|
}
|
|
412
399
|
/**
|
|
413
400
|
* 删除访问日志下载记录
|
|
@@ -416,91 +403,94 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
416
403
|
return this.request("DeleteDownloadRecord", req, cb);
|
|
417
404
|
}
|
|
418
405
|
/**
|
|
419
|
-
*
|
|
406
|
+
* 编辑自定义规则
|
|
420
407
|
*/
|
|
421
|
-
async
|
|
422
|
-
return this.request("
|
|
408
|
+
async ModifyCustomRule(req, cb) {
|
|
409
|
+
return this.request("ModifyCustomRule", req, cb);
|
|
423
410
|
}
|
|
424
411
|
/**
|
|
425
|
-
*
|
|
412
|
+
* Bot_V2 bot总开关更新
|
|
426
413
|
*/
|
|
427
|
-
async
|
|
428
|
-
return this.request("
|
|
414
|
+
async ModifyBotStatus(req, cb) {
|
|
415
|
+
return this.request("ModifyBotStatus", req, cb);
|
|
429
416
|
}
|
|
430
417
|
/**
|
|
431
|
-
*
|
|
418
|
+
* 编辑信息防泄漏规则
|
|
432
419
|
*/
|
|
433
|
-
async
|
|
434
|
-
return this.request("
|
|
420
|
+
async ModifyAntiInfoLeakRules(req, cb) {
|
|
421
|
+
return this.request("ModifyAntiInfoLeakRules", req, cb);
|
|
435
422
|
}
|
|
436
423
|
/**
|
|
437
|
-
*
|
|
424
|
+
* 添加防篡改url
|
|
438
425
|
*/
|
|
439
|
-
async
|
|
440
|
-
return this.request("
|
|
426
|
+
async AddAntiFakeUrl(req, cb) {
|
|
427
|
+
return this.request("AddAntiFakeUrl", req, cb);
|
|
441
428
|
}
|
|
442
429
|
/**
|
|
443
|
-
*
|
|
430
|
+
* 获取waf流量访问趋势
|
|
444
431
|
*/
|
|
445
|
-
async
|
|
446
|
-
return this.request("
|
|
432
|
+
async DescribeFlowTrend(req, cb) {
|
|
433
|
+
return this.request("DescribeFlowTrend", req, cb);
|
|
447
434
|
}
|
|
448
435
|
/**
|
|
449
|
-
*
|
|
436
|
+
* 获取防篡改url
|
|
450
437
|
*/
|
|
451
|
-
async
|
|
452
|
-
return this.request("
|
|
438
|
+
async DescribeAntiFakeUrl(req, cb) {
|
|
439
|
+
return this.request("DescribeAntiFakeUrl", req, cb);
|
|
453
440
|
}
|
|
454
441
|
/**
|
|
455
|
-
*
|
|
442
|
+
* 更改某一条规则
|
|
456
443
|
*/
|
|
457
|
-
async
|
|
458
|
-
return this.request("
|
|
444
|
+
async ModifyDomainWhiteRule(req, cb) {
|
|
445
|
+
return this.request("ModifyDomainWhiteRule", req, cb);
|
|
459
446
|
}
|
|
460
447
|
/**
|
|
461
|
-
*
|
|
462
|
-
查询的范围:负载均衡实例ID、负载均衡实例ID+监听器ID、负载均衡实例ID+监听器ID+域名。
|
|
463
|
-
可能的错误码:ResourceNotFound(没有找到对应的资源)、UnsupportedRegion(目前clb-waf只支持北京、广州、上海、成都、重庆、香港地域)。
|
|
464
|
-
|
|
448
|
+
* 开启或禁用访问控制(自定义策略)
|
|
465
449
|
*/
|
|
466
|
-
async
|
|
467
|
-
return this.request("
|
|
450
|
+
async ModifyCustomRuleStatus(req, cb) {
|
|
451
|
+
return this.request("ModifyCustomRuleStatus", req, cb);
|
|
468
452
|
}
|
|
469
453
|
/**
|
|
470
|
-
*
|
|
454
|
+
* Waf ip黑白名单查询
|
|
471
455
|
*/
|
|
472
|
-
async
|
|
473
|
-
return this.request("
|
|
456
|
+
async DescribeIpAccessControl(req, cb) {
|
|
457
|
+
return this.request("DescribeIpAccessControl", req, cb);
|
|
474
458
|
}
|
|
475
459
|
/**
|
|
476
|
-
*
|
|
460
|
+
* 获取域名概况
|
|
477
461
|
*/
|
|
478
|
-
async
|
|
479
|
-
return this.request("
|
|
462
|
+
async DescribeDomainCountInfo(req, cb) {
|
|
463
|
+
return this.request("DescribeDomainCountInfo", req, cb);
|
|
480
464
|
}
|
|
481
465
|
/**
|
|
482
|
-
*
|
|
466
|
+
* waf斯巴达-删除防护域名
|
|
483
467
|
*/
|
|
484
|
-
async
|
|
485
|
-
return this.request("
|
|
468
|
+
async DeleteSpartaProtection(req, cb) {
|
|
469
|
+
return this.request("DeleteSpartaProtection", req, cb);
|
|
486
470
|
}
|
|
487
471
|
/**
|
|
488
|
-
*
|
|
472
|
+
* 切换域名的规则开关
|
|
489
473
|
*/
|
|
490
|
-
async
|
|
491
|
-
return this.request("
|
|
474
|
+
async SwitchDomainRules(req, cb) {
|
|
475
|
+
return this.request("SwitchDomainRules", req, cb);
|
|
492
476
|
}
|
|
493
477
|
/**
|
|
494
|
-
*
|
|
478
|
+
* Waf 多域名ip黑白名单查询
|
|
495
479
|
*/
|
|
496
|
-
async
|
|
497
|
-
return this.request("
|
|
480
|
+
async DescribeBatchIpAccessControl(req, cb) {
|
|
481
|
+
return this.request("DescribeBatchIpAccessControl", req, cb);
|
|
498
482
|
}
|
|
499
483
|
/**
|
|
500
|
-
*
|
|
484
|
+
* 返回ip惩罚规则详细信息
|
|
501
485
|
*/
|
|
502
|
-
async
|
|
503
|
-
return this.request("
|
|
486
|
+
async DescribeWafAutoDenyRules(req, cb) {
|
|
487
|
+
return this.request("DescribeWafAutoDenyRules", req, cb);
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* 删除CC攻击的session设置
|
|
491
|
+
*/
|
|
492
|
+
async DeleteSession(req, cb) {
|
|
493
|
+
return this.request("DeleteSession", req, cb);
|
|
504
494
|
}
|
|
505
495
|
/**
|
|
506
496
|
* 获取域名的规则白名单
|
|
@@ -508,6 +498,24 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
508
498
|
async DescribeDomainWhiteRules(req, cb) {
|
|
509
499
|
return this.request("DescribeDomainWhiteRules", req, cb);
|
|
510
500
|
}
|
|
501
|
+
/**
|
|
502
|
+
* 修改域名列表的访问日志开关
|
|
503
|
+
*/
|
|
504
|
+
async ModifyDomainsCLSStatus(req, cb) {
|
|
505
|
+
return this.request("ModifyDomainsCLSStatus", req, cb);
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* 刷新接入检查的结果,后台会生成接入检查任务
|
|
509
|
+
*/
|
|
510
|
+
async RefreshAccessCheckResult(req, cb) {
|
|
511
|
+
return this.request("RefreshAccessCheckResult", req, cb);
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* 创建搜索下载攻击日志任务,使用CLS新版本的搜索下载getlog接口
|
|
515
|
+
*/
|
|
516
|
+
async PostAttackDownloadTask(req, cb) {
|
|
517
|
+
return this.request("PostAttackDownloadTask", req, cb);
|
|
518
|
+
}
|
|
511
519
|
/**
|
|
512
520
|
* 获取防护配置中的精准白名单策略列表
|
|
513
521
|
*/
|
|
@@ -521,10 +529,124 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
521
529
|
return this.request("DescribeHost", req, cb);
|
|
522
530
|
}
|
|
523
531
|
/**
|
|
524
|
-
*
|
|
532
|
+
* 本接口用于获取访问日志导出列表
|
|
525
533
|
*/
|
|
526
|
-
async
|
|
527
|
-
return this.request("
|
|
534
|
+
async DescribeAccessExports(req, cb) {
|
|
535
|
+
return this.request("DescribeAccessExports", req, cb);
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* 添加域名的首先验证是否购买了套餐,是否没有达到购买套餐的限制,域名是否已经添加
|
|
539
|
+
*/
|
|
540
|
+
async DescribeHostLimit(req, cb) {
|
|
541
|
+
return this.request("DescribeHostLimit", req, cb);
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* 本接口用于删除访问日志导出
|
|
545
|
+
*/
|
|
546
|
+
async DeleteAccessExport(req, cb) {
|
|
547
|
+
return this.request("DeleteAccessExport", req, cb);
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* 删除域名规则白名单
|
|
551
|
+
*/
|
|
552
|
+
async DeleteDomainWhiteRules(req, cb) {
|
|
553
|
+
return this.request("DeleteDomainWhiteRules", req, cb);
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* 本接口用于创建访问日志导出
|
|
557
|
+
*/
|
|
558
|
+
async CreateAccessExport(req, cb) {
|
|
559
|
+
return this.request("CreateAccessExport", req, cb);
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* 新版本CLS接口存在参数变化,query改成了query_string支持lucence语法接口搜索查询。
|
|
563
|
+
*/
|
|
564
|
+
async SearchAttackLog(req, cb) {
|
|
565
|
+
return this.request("SearchAttackLog", req, cb);
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* 查询用户所有实例的详细信息
|
|
569
|
+
*/
|
|
570
|
+
async DescribeInstances(req, cb) {
|
|
571
|
+
return this.request("DescribeInstances", req, cb);
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* clb-waf 设置防护域名的流量模式
|
|
575
|
+
*/
|
|
576
|
+
async ModifyHostFlowMode(req, cb) {
|
|
577
|
+
return this.request("ModifyHostFlowMode", req, cb);
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* 在CDC场景下,负载均衡型WAF的添加、编辑域名配置的时候,需要展示CDC负载均衡型WAF(cdc-clb-waf)支持的地域列表,通过DescribeUserCdcClbWafRegions既可以获得当前对客户已经开放的地域列表
|
|
581
|
+
*/
|
|
582
|
+
async DescribeUserCdcClbWafRegions(req, cb) {
|
|
583
|
+
return this.request("DescribeUserCdcClbWafRegions", req, cb);
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* 描述WAF自动封禁模块详情
|
|
587
|
+
*/
|
|
588
|
+
async DescribeWafAutoDenyStatus(req, cb) {
|
|
589
|
+
return this.request("DescribeWafAutoDenyStatus", req, cb);
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* 开启或禁用精准白名单
|
|
593
|
+
*/
|
|
594
|
+
async ModifyCustomWhiteRuleStatus(req, cb) {
|
|
595
|
+
return this.request("ModifyCustomWhiteRuleStatus", req, cb);
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* clb-waf设置防护域名防护状态
|
|
599
|
+
*/
|
|
600
|
+
async ModifyHostMode(req, cb) {
|
|
601
|
+
return this.request("ModifyHostMode", req, cb);
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* 在负载均衡型WAF的添加、编辑域名配置的时候,需要展示负载均衡型WAF(clb-waf)支持的地域列表,通过DescribeUserClbWafRegions既可以获得当前对客户已经开放的地域列表
|
|
605
|
+
*/
|
|
606
|
+
async DescribeUserClbWafRegions(req, cb) {
|
|
607
|
+
return this.request("DescribeUserClbWafRegions", req, cb);
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* Waf CC V2 Upsert接口
|
|
611
|
+
*/
|
|
612
|
+
async UpsertCCRule(req, cb) {
|
|
613
|
+
return this.request("UpsertCCRule", req, cb);
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* 删除防篡改url
|
|
617
|
+
*/
|
|
618
|
+
async DeleteAntiFakeUrl(req, cb) {
|
|
619
|
+
return this.request("DeleteAntiFakeUrl", req, cb);
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* 根据多条件查询CC规则
|
|
623
|
+
*/
|
|
624
|
+
async DescribeCCRuleList(req, cb) {
|
|
625
|
+
return this.request("DescribeCCRuleList", req, cb);
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* clb-waf中添加防护的域名
|
|
629
|
+
*/
|
|
630
|
+
async CreateHost(req, cb) {
|
|
631
|
+
return this.request("CreateHost", req, cb);
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Waf 会话定义 Upsert接口
|
|
635
|
+
*/
|
|
636
|
+
async UpsertSession(req, cb) {
|
|
637
|
+
return this.request("UpsertSession", req, cb);
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* 增加域名规则白名单
|
|
641
|
+
*/
|
|
642
|
+
async AddDomainWhiteRule(req, cb) {
|
|
643
|
+
return this.request("AddDomainWhiteRule", req, cb);
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* 修改ipv6开关
|
|
647
|
+
*/
|
|
648
|
+
async ModifyDomainIpv6Status(req, cb) {
|
|
649
|
+
return this.request("ModifyDomainIpv6Status", req, cb);
|
|
528
650
|
}
|
|
529
651
|
}
|
|
530
652
|
exports.Client = Client;
|