tencentcloud-sdk-teo 3.0.550 → 3.0.551
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220106/client.rb +21 -2213
- data/lib/v20220106/models.rb +342 -12042
- metadata +2 -2
data/lib/v20220106/client.rb
CHANGED
@@ -29,222 +29,6 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
-
# 校验证书
|
33
|
-
|
34
|
-
# @param request: Request instance for CheckCertificate.
|
35
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::CheckCertificateRequest`
|
36
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::CheckCertificateResponse`
|
37
|
-
def CheckCertificate(request)
|
38
|
-
body = send_request('CheckCertificate', request.serialize)
|
39
|
-
response = JSON.parse(body)
|
40
|
-
if response['Response'].key?('Error') == false
|
41
|
-
model = CheckCertificateResponse.new
|
42
|
-
model.deserialize(response['Response'])
|
43
|
-
model
|
44
|
-
else
|
45
|
-
code = response['Response']['Error']['Code']
|
46
|
-
message = response['Response']['Error']['Message']
|
47
|
-
reqid = response['Response']['RequestId']
|
48
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
-
end
|
50
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
-
raise e
|
52
|
-
rescue StandardError => e
|
53
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
-
end
|
55
|
-
|
56
|
-
# 创建应用代理
|
57
|
-
|
58
|
-
# @param request: Request instance for CreateApplicationProxy.
|
59
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::CreateApplicationProxyRequest`
|
60
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::CreateApplicationProxyResponse`
|
61
|
-
def CreateApplicationProxy(request)
|
62
|
-
body = send_request('CreateApplicationProxy', request.serialize)
|
63
|
-
response = JSON.parse(body)
|
64
|
-
if response['Response'].key?('Error') == false
|
65
|
-
model = CreateApplicationProxyResponse.new
|
66
|
-
model.deserialize(response['Response'])
|
67
|
-
model
|
68
|
-
else
|
69
|
-
code = response['Response']['Error']['Code']
|
70
|
-
message = response['Response']['Error']['Message']
|
71
|
-
reqid = response['Response']['RequestId']
|
72
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
-
end
|
74
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
-
raise e
|
76
|
-
rescue StandardError => e
|
77
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
-
end
|
79
|
-
|
80
|
-
# 创建应用代理规则
|
81
|
-
|
82
|
-
# @param request: Request instance for CreateApplicationProxyRule.
|
83
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::CreateApplicationProxyRuleRequest`
|
84
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::CreateApplicationProxyRuleResponse`
|
85
|
-
def CreateApplicationProxyRule(request)
|
86
|
-
body = send_request('CreateApplicationProxyRule', request.serialize)
|
87
|
-
response = JSON.parse(body)
|
88
|
-
if response['Response'].key?('Error') == false
|
89
|
-
model = CreateApplicationProxyRuleResponse.new
|
90
|
-
model.deserialize(response['Response'])
|
91
|
-
model
|
92
|
-
else
|
93
|
-
code = response['Response']['Error']['Code']
|
94
|
-
message = response['Response']['Error']['Message']
|
95
|
-
reqid = response['Response']['RequestId']
|
96
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
-
end
|
98
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
-
raise e
|
100
|
-
rescue StandardError => e
|
101
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
-
end
|
103
|
-
|
104
|
-
# 批量创建应用代理规则
|
105
|
-
|
106
|
-
# @param request: Request instance for CreateApplicationProxyRules.
|
107
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::CreateApplicationProxyRulesRequest`
|
108
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::CreateApplicationProxyRulesResponse`
|
109
|
-
def CreateApplicationProxyRules(request)
|
110
|
-
body = send_request('CreateApplicationProxyRules', request.serialize)
|
111
|
-
response = JSON.parse(body)
|
112
|
-
if response['Response'].key?('Error') == false
|
113
|
-
model = CreateApplicationProxyRulesResponse.new
|
114
|
-
model.deserialize(response['Response'])
|
115
|
-
model
|
116
|
-
else
|
117
|
-
code = response['Response']['Error']['Code']
|
118
|
-
message = response['Response']['Error']['Message']
|
119
|
-
reqid = response['Response']['RequestId']
|
120
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
-
end
|
122
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
-
raise e
|
124
|
-
rescue StandardError => e
|
125
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
-
end
|
127
|
-
|
128
|
-
# 创建自定义规则的自定义页
|
129
|
-
|
130
|
-
# @param request: Request instance for CreateCustomErrorPage.
|
131
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::CreateCustomErrorPageRequest`
|
132
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::CreateCustomErrorPageResponse`
|
133
|
-
def CreateCustomErrorPage(request)
|
134
|
-
body = send_request('CreateCustomErrorPage', request.serialize)
|
135
|
-
response = JSON.parse(body)
|
136
|
-
if response['Response'].key?('Error') == false
|
137
|
-
model = CreateCustomErrorPageResponse.new
|
138
|
-
model.deserialize(response['Response'])
|
139
|
-
model
|
140
|
-
else
|
141
|
-
code = response['Response']['Error']['Code']
|
142
|
-
message = response['Response']['Error']['Message']
|
143
|
-
reqid = response['Response']['RequestId']
|
144
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
-
end
|
146
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
-
raise e
|
148
|
-
rescue StandardError => e
|
149
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
-
end
|
151
|
-
|
152
|
-
# 创建 DNS 记录
|
153
|
-
|
154
|
-
# @param request: Request instance for CreateDnsRecord.
|
155
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::CreateDnsRecordRequest`
|
156
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::CreateDnsRecordResponse`
|
157
|
-
def CreateDnsRecord(request)
|
158
|
-
body = send_request('CreateDnsRecord', request.serialize)
|
159
|
-
response = JSON.parse(body)
|
160
|
-
if response['Response'].key?('Error') == false
|
161
|
-
model = CreateDnsRecordResponse.new
|
162
|
-
model.deserialize(response['Response'])
|
163
|
-
model
|
164
|
-
else
|
165
|
-
code = response['Response']['Error']['Code']
|
166
|
-
message = response['Response']['Error']['Message']
|
167
|
-
reqid = response['Response']['RequestId']
|
168
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
-
end
|
170
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
-
raise e
|
172
|
-
rescue StandardError => e
|
173
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
-
end
|
175
|
-
|
176
|
-
# 创建负载均衡
|
177
|
-
|
178
|
-
# @param request: Request instance for CreateLoadBalancing.
|
179
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::CreateLoadBalancingRequest`
|
180
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::CreateLoadBalancingResponse`
|
181
|
-
def CreateLoadBalancing(request)
|
182
|
-
body = send_request('CreateLoadBalancing', request.serialize)
|
183
|
-
response = JSON.parse(body)
|
184
|
-
if response['Response'].key?('Error') == false
|
185
|
-
model = CreateLoadBalancingResponse.new
|
186
|
-
model.deserialize(response['Response'])
|
187
|
-
model
|
188
|
-
else
|
189
|
-
code = response['Response']['Error']['Code']
|
190
|
-
message = response['Response']['Error']['Message']
|
191
|
-
reqid = response['Response']['RequestId']
|
192
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
-
end
|
194
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
-
raise e
|
196
|
-
rescue StandardError => e
|
197
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
-
end
|
199
|
-
|
200
|
-
# 源站组创建
|
201
|
-
|
202
|
-
# @param request: Request instance for CreateOriginGroup.
|
203
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::CreateOriginGroupRequest`
|
204
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::CreateOriginGroupResponse`
|
205
|
-
def CreateOriginGroup(request)
|
206
|
-
body = send_request('CreateOriginGroup', request.serialize)
|
207
|
-
response = JSON.parse(body)
|
208
|
-
if response['Response'].key?('Error') == false
|
209
|
-
model = CreateOriginGroupResponse.new
|
210
|
-
model.deserialize(response['Response'])
|
211
|
-
model
|
212
|
-
else
|
213
|
-
code = response['Response']['Error']['Code']
|
214
|
-
message = response['Response']['Error']['Message']
|
215
|
-
reqid = response['Response']['RequestId']
|
216
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
-
end
|
218
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
-
raise e
|
220
|
-
rescue StandardError => e
|
221
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
-
end
|
223
|
-
|
224
|
-
# 为未购买套餐的站点购买套餐
|
225
|
-
|
226
|
-
# @param request: Request instance for CreatePlanForZone.
|
227
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::CreatePlanForZoneRequest`
|
228
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::CreatePlanForZoneResponse`
|
229
|
-
def CreatePlanForZone(request)
|
230
|
-
body = send_request('CreatePlanForZone', request.serialize)
|
231
|
-
response = JSON.parse(body)
|
232
|
-
if response['Response'].key?('Error') == false
|
233
|
-
model = CreatePlanForZoneResponse.new
|
234
|
-
model.deserialize(response['Response'])
|
235
|
-
model
|
236
|
-
else
|
237
|
-
code = response['Response']['Error']['Code']
|
238
|
-
message = response['Response']['Error']['Message']
|
239
|
-
reqid = response['Response']['RequestId']
|
240
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
-
end
|
242
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
-
raise e
|
244
|
-
rescue StandardError => e
|
245
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
-
end
|
247
|
-
|
248
32
|
# 创建预热任务
|
249
33
|
|
250
34
|
# @param request: Request instance for CreatePrefetchTask.
|
@@ -293,112 +77,16 @@ module TencentCloud
|
|
293
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
78
|
end
|
295
79
|
|
296
|
-
#
|
297
|
-
|
298
|
-
# @param request: Request instance for CreateRule.
|
299
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::CreateRuleRequest`
|
300
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::CreateRuleResponse`
|
301
|
-
def CreateRule(request)
|
302
|
-
body = send_request('CreateRule', request.serialize)
|
303
|
-
response = JSON.parse(body)
|
304
|
-
if response['Response'].key?('Error') == false
|
305
|
-
model = CreateRuleResponse.new
|
306
|
-
model.deserialize(response['Response'])
|
307
|
-
model
|
308
|
-
else
|
309
|
-
code = response['Response']['Error']['Code']
|
310
|
-
message = response['Response']['Error']['Message']
|
311
|
-
reqid = response['Response']['RequestId']
|
312
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
-
end
|
314
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
-
raise e
|
316
|
-
rescue StandardError => e
|
317
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
-
end
|
319
|
-
|
320
|
-
# 用于用户接入新的站点
|
321
|
-
|
322
|
-
# @param request: Request instance for CreateZone.
|
323
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::CreateZoneRequest`
|
324
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::CreateZoneResponse`
|
325
|
-
def CreateZone(request)
|
326
|
-
body = send_request('CreateZone', request.serialize)
|
327
|
-
response = JSON.parse(body)
|
328
|
-
if response['Response'].key?('Error') == false
|
329
|
-
model = CreateZoneResponse.new
|
330
|
-
model.deserialize(response['Response'])
|
331
|
-
model
|
332
|
-
else
|
333
|
-
code = response['Response']['Error']['Code']
|
334
|
-
message = response['Response']['Error']['Message']
|
335
|
-
reqid = response['Response']['RequestId']
|
336
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
-
end
|
338
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
-
raise e
|
340
|
-
rescue StandardError => e
|
341
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
-
end
|
343
|
-
|
344
|
-
# 删除应用代理
|
345
|
-
|
346
|
-
# @param request: Request instance for DeleteApplicationProxy.
|
347
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DeleteApplicationProxyRequest`
|
348
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DeleteApplicationProxyResponse`
|
349
|
-
def DeleteApplicationProxy(request)
|
350
|
-
body = send_request('DeleteApplicationProxy', request.serialize)
|
351
|
-
response = JSON.parse(body)
|
352
|
-
if response['Response'].key?('Error') == false
|
353
|
-
model = DeleteApplicationProxyResponse.new
|
354
|
-
model.deserialize(response['Response'])
|
355
|
-
model
|
356
|
-
else
|
357
|
-
code = response['Response']['Error']['Code']
|
358
|
-
message = response['Response']['Error']['Message']
|
359
|
-
reqid = response['Response']['RequestId']
|
360
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
-
end
|
362
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
-
raise e
|
364
|
-
rescue StandardError => e
|
365
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
-
end
|
367
|
-
|
368
|
-
# 删除应用代理规则
|
369
|
-
|
370
|
-
# @param request: Request instance for DeleteApplicationProxyRule.
|
371
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DeleteApplicationProxyRuleRequest`
|
372
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DeleteApplicationProxyRuleResponse`
|
373
|
-
def DeleteApplicationProxyRule(request)
|
374
|
-
body = send_request('DeleteApplicationProxyRule', request.serialize)
|
375
|
-
response = JSON.parse(body)
|
376
|
-
if response['Response'].key?('Error') == false
|
377
|
-
model = DeleteApplicationProxyRuleResponse.new
|
378
|
-
model.deserialize(response['Response'])
|
379
|
-
model
|
380
|
-
else
|
381
|
-
code = response['Response']['Error']['Code']
|
382
|
-
message = response['Response']['Error']['Message']
|
383
|
-
reqid = response['Response']['RequestId']
|
384
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
-
end
|
386
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
-
raise e
|
388
|
-
rescue StandardError => e
|
389
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
-
end
|
391
|
-
|
392
|
-
# 批量删除 DNS 记录
|
80
|
+
# 查询预热任务状态
|
393
81
|
|
394
|
-
# @param request: Request instance for
|
395
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::
|
396
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::
|
397
|
-
def
|
398
|
-
body = send_request('
|
82
|
+
# @param request: Request instance for DescribePrefetchTasks.
|
83
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribePrefetchTasksRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribePrefetchTasksResponse`
|
85
|
+
def DescribePrefetchTasks(request)
|
86
|
+
body = send_request('DescribePrefetchTasks', request.serialize)
|
399
87
|
response = JSON.parse(body)
|
400
88
|
if response['Response'].key?('Error') == false
|
401
|
-
model =
|
89
|
+
model = DescribePrefetchTasksResponse.new
|
402
90
|
model.deserialize(response['Response'])
|
403
91
|
model
|
404
92
|
else
|
@@ -413,16 +101,16 @@ module TencentCloud
|
|
413
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
102
|
end
|
415
103
|
|
416
|
-
#
|
104
|
+
# 查询清除缓存历史记录
|
417
105
|
|
418
|
-
# @param request: Request instance for
|
419
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::
|
420
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::
|
421
|
-
def
|
422
|
-
body = send_request('
|
106
|
+
# @param request: Request instance for DescribePurgeTasks.
|
107
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribePurgeTasksRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribePurgeTasksResponse`
|
109
|
+
def DescribePurgeTasks(request)
|
110
|
+
body = send_request('DescribePurgeTasks', request.serialize)
|
423
111
|
response = JSON.parse(body)
|
424
112
|
if response['Response'].key?('Error') == false
|
425
|
-
model =
|
113
|
+
model = DescribePurgeTasksResponse.new
|
426
114
|
model.deserialize(response['Response'])
|
427
115
|
model
|
428
116
|
else
|
@@ -437,1896 +125,16 @@ module TencentCloud
|
|
437
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
126
|
end
|
439
127
|
|
440
|
-
#
|
128
|
+
# 用户查询用户站点信息列表,支持分页
|
441
129
|
|
442
|
-
# @param request: Request instance for
|
443
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::
|
444
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::
|
445
|
-
def
|
446
|
-
body = send_request('
|
130
|
+
# @param request: Request instance for DescribeZones.
|
131
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeZonesRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeZonesResponse`
|
133
|
+
def DescribeZones(request)
|
134
|
+
body = send_request('DescribeZones', request.serialize)
|
447
135
|
response = JSON.parse(body)
|
448
136
|
if response['Response'].key?('Error') == false
|
449
|
-
model =
|
450
|
-
model.deserialize(response['Response'])
|
451
|
-
model
|
452
|
-
else
|
453
|
-
code = response['Response']['Error']['Code']
|
454
|
-
message = response['Response']['Error']['Message']
|
455
|
-
reqid = response['Response']['RequestId']
|
456
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
-
end
|
458
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
-
raise e
|
460
|
-
rescue StandardError => e
|
461
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
-
end
|
463
|
-
|
464
|
-
# 批量删除规则引擎规则。
|
465
|
-
|
466
|
-
# @param request: Request instance for DeleteRules.
|
467
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DeleteRulesRequest`
|
468
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DeleteRulesResponse`
|
469
|
-
def DeleteRules(request)
|
470
|
-
body = send_request('DeleteRules', request.serialize)
|
471
|
-
response = JSON.parse(body)
|
472
|
-
if response['Response'].key?('Error') == false
|
473
|
-
model = DeleteRulesResponse.new
|
474
|
-
model.deserialize(response['Response'])
|
475
|
-
model
|
476
|
-
else
|
477
|
-
code = response['Response']['Error']['Code']
|
478
|
-
message = response['Response']['Error']['Message']
|
479
|
-
reqid = response['Response']['RequestId']
|
480
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
481
|
-
end
|
482
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
483
|
-
raise e
|
484
|
-
rescue StandardError => e
|
485
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
|
-
end
|
487
|
-
|
488
|
-
# 删除站点
|
489
|
-
|
490
|
-
# @param request: Request instance for DeleteZone.
|
491
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DeleteZoneRequest`
|
492
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DeleteZoneResponse`
|
493
|
-
def DeleteZone(request)
|
494
|
-
body = send_request('DeleteZone', request.serialize)
|
495
|
-
response = JSON.parse(body)
|
496
|
-
if response['Response'].key?('Error') == false
|
497
|
-
model = DeleteZoneResponse.new
|
498
|
-
model.deserialize(response['Response'])
|
499
|
-
model
|
500
|
-
else
|
501
|
-
code = response['Response']['Error']['Code']
|
502
|
-
message = response['Response']['Error']['Message']
|
503
|
-
reqid = response['Response']['RequestId']
|
504
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
505
|
-
end
|
506
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
507
|
-
raise e
|
508
|
-
rescue StandardError => e
|
509
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
|
-
end
|
511
|
-
|
512
|
-
# 获取应用代理列表
|
513
|
-
|
514
|
-
# @param request: Request instance for DescribeApplicationProxy.
|
515
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeApplicationProxyRequest`
|
516
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeApplicationProxyResponse`
|
517
|
-
def DescribeApplicationProxy(request)
|
518
|
-
body = send_request('DescribeApplicationProxy', request.serialize)
|
519
|
-
response = JSON.parse(body)
|
520
|
-
if response['Response'].key?('Error') == false
|
521
|
-
model = DescribeApplicationProxyResponse.new
|
522
|
-
model.deserialize(response['Response'])
|
523
|
-
model
|
524
|
-
else
|
525
|
-
code = response['Response']['Error']['Code']
|
526
|
-
message = response['Response']['Error']['Message']
|
527
|
-
reqid = response['Response']['RequestId']
|
528
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
529
|
-
end
|
530
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
531
|
-
raise e
|
532
|
-
rescue StandardError => e
|
533
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
|
-
end
|
535
|
-
|
536
|
-
# 获取应用代理详细信息
|
537
|
-
|
538
|
-
# @param request: Request instance for DescribeApplicationProxyDetail.
|
539
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeApplicationProxyDetailRequest`
|
540
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeApplicationProxyDetailResponse`
|
541
|
-
def DescribeApplicationProxyDetail(request)
|
542
|
-
body = send_request('DescribeApplicationProxyDetail', request.serialize)
|
543
|
-
response = JSON.parse(body)
|
544
|
-
if response['Response'].key?('Error') == false
|
545
|
-
model = DescribeApplicationProxyDetailResponse.new
|
546
|
-
model.deserialize(response['Response'])
|
547
|
-
model
|
548
|
-
else
|
549
|
-
code = response['Response']['Error']['Code']
|
550
|
-
message = response['Response']['Error']['Message']
|
551
|
-
reqid = response['Response']['RequestId']
|
552
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
553
|
-
end
|
554
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
555
|
-
raise e
|
556
|
-
rescue StandardError => e
|
557
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
|
-
end
|
559
|
-
|
560
|
-
# 查询当前账户可用套餐信息列表
|
561
|
-
|
562
|
-
# @param request: Request instance for DescribeAvailablePlans.
|
563
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeAvailablePlansRequest`
|
564
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeAvailablePlansResponse`
|
565
|
-
def DescribeAvailablePlans(request)
|
566
|
-
body = send_request('DescribeAvailablePlans', request.serialize)
|
567
|
-
response = JSON.parse(body)
|
568
|
-
if response['Response'].key?('Error') == false
|
569
|
-
model = DescribeAvailablePlansResponse.new
|
570
|
-
model.deserialize(response['Response'])
|
571
|
-
model
|
572
|
-
else
|
573
|
-
code = response['Response']['Error']['Code']
|
574
|
-
message = response['Response']['Error']['Message']
|
575
|
-
reqid = response['Response']['RequestId']
|
576
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
577
|
-
end
|
578
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
579
|
-
raise e
|
580
|
-
rescue StandardError => e
|
581
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
|
-
end
|
583
|
-
|
584
|
-
# 查询Bot攻击日志
|
585
|
-
|
586
|
-
# @param request: Request instance for DescribeBotLog.
|
587
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeBotLogRequest`
|
588
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeBotLogResponse`
|
589
|
-
def DescribeBotLog(request)
|
590
|
-
body = send_request('DescribeBotLog', request.serialize)
|
591
|
-
response = JSON.parse(body)
|
592
|
-
if response['Response'].key?('Error') == false
|
593
|
-
model = DescribeBotLogResponse.new
|
594
|
-
model.deserialize(response['Response'])
|
595
|
-
model
|
596
|
-
else
|
597
|
-
code = response['Response']['Error']['Code']
|
598
|
-
message = response['Response']['Error']['Message']
|
599
|
-
reqid = response['Response']['RequestId']
|
600
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
601
|
-
end
|
602
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
603
|
-
raise e
|
604
|
-
rescue StandardError => e
|
605
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
|
-
end
|
607
|
-
|
608
|
-
# 分页查询Bot托管规则
|
609
|
-
|
610
|
-
# @param request: Request instance for DescribeBotManagedRules.
|
611
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeBotManagedRulesRequest`
|
612
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeBotManagedRulesResponse`
|
613
|
-
def DescribeBotManagedRules(request)
|
614
|
-
body = send_request('DescribeBotManagedRules', request.serialize)
|
615
|
-
response = JSON.parse(body)
|
616
|
-
if response['Response'].key?('Error') == false
|
617
|
-
model = DescribeBotManagedRulesResponse.new
|
618
|
-
model.deserialize(response['Response'])
|
619
|
-
model
|
620
|
-
else
|
621
|
-
code = response['Response']['Error']['Code']
|
622
|
-
message = response['Response']['Error']['Message']
|
623
|
-
reqid = response['Response']['RequestId']
|
624
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
625
|
-
end
|
626
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
627
|
-
raise e
|
628
|
-
rescue StandardError => e
|
629
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
630
|
-
end
|
631
|
-
|
632
|
-
# 查询域名 CNAME 状态
|
633
|
-
|
634
|
-
# @param request: Request instance for DescribeCnameStatus.
|
635
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeCnameStatusRequest`
|
636
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeCnameStatusResponse`
|
637
|
-
def DescribeCnameStatus(request)
|
638
|
-
body = send_request('DescribeCnameStatus', request.serialize)
|
639
|
-
response = JSON.parse(body)
|
640
|
-
if response['Response'].key?('Error') == false
|
641
|
-
model = DescribeCnameStatusResponse.new
|
642
|
-
model.deserialize(response['Response'])
|
643
|
-
model
|
644
|
-
else
|
645
|
-
code = response['Response']['Error']['Code']
|
646
|
-
message = response['Response']['Error']['Message']
|
647
|
-
reqid = response['Response']['RequestId']
|
648
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
649
|
-
end
|
650
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
651
|
-
raise e
|
652
|
-
rescue StandardError => e
|
653
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
|
-
end
|
655
|
-
|
656
|
-
# 查询DDoS防护配置详情
|
657
|
-
|
658
|
-
# @param request: Request instance for DescribeDDoSPolicy.
|
659
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDoSPolicyRequest`
|
660
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDoSPolicyResponse`
|
661
|
-
def DescribeDDoSPolicy(request)
|
662
|
-
body = send_request('DescribeDDoSPolicy', request.serialize)
|
663
|
-
response = JSON.parse(body)
|
664
|
-
if response['Response'].key?('Error') == false
|
665
|
-
model = DescribeDDoSPolicyResponse.new
|
666
|
-
model.deserialize(response['Response'])
|
667
|
-
model
|
668
|
-
else
|
669
|
-
code = response['Response']['Error']['Code']
|
670
|
-
message = response['Response']['Error']['Message']
|
671
|
-
reqid = response['Response']['RequestId']
|
672
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
673
|
-
end
|
674
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
675
|
-
raise e
|
676
|
-
rescue StandardError => e
|
677
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
|
-
end
|
679
|
-
|
680
|
-
# 查询DDos攻击时序数据
|
681
|
-
|
682
|
-
# @param request: Request instance for DescribeDDosAttackData.
|
683
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackDataRequest`
|
684
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackDataResponse`
|
685
|
-
def DescribeDDosAttackData(request)
|
686
|
-
body = send_request('DescribeDDosAttackData', request.serialize)
|
687
|
-
response = JSON.parse(body)
|
688
|
-
if response['Response'].key?('Error') == false
|
689
|
-
model = DescribeDDosAttackDataResponse.new
|
690
|
-
model.deserialize(response['Response'])
|
691
|
-
model
|
692
|
-
else
|
693
|
-
code = response['Response']['Error']['Code']
|
694
|
-
message = response['Response']['Error']['Message']
|
695
|
-
reqid = response['Response']['RequestId']
|
696
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
-
end
|
698
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
-
raise e
|
700
|
-
rescue StandardError => e
|
701
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
-
end
|
703
|
-
|
704
|
-
# 查询DDos攻击事件
|
705
|
-
|
706
|
-
# @param request: Request instance for DescribeDDosAttackEvent.
|
707
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackEventRequest`
|
708
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackEventResponse`
|
709
|
-
def DescribeDDosAttackEvent(request)
|
710
|
-
body = send_request('DescribeDDosAttackEvent', request.serialize)
|
711
|
-
response = JSON.parse(body)
|
712
|
-
if response['Response'].key?('Error') == false
|
713
|
-
model = DescribeDDosAttackEventResponse.new
|
714
|
-
model.deserialize(response['Response'])
|
715
|
-
model
|
716
|
-
else
|
717
|
-
code = response['Response']['Error']['Code']
|
718
|
-
message = response['Response']['Error']['Message']
|
719
|
-
reqid = response['Response']['RequestId']
|
720
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
721
|
-
end
|
722
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
723
|
-
raise e
|
724
|
-
rescue StandardError => e
|
725
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
|
-
end
|
727
|
-
|
728
|
-
# 查询DDos攻击事件详情
|
729
|
-
|
730
|
-
# @param request: Request instance for DescribeDDosAttackEventDetail.
|
731
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackEventDetailRequest`
|
732
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackEventDetailResponse`
|
733
|
-
def DescribeDDosAttackEventDetail(request)
|
734
|
-
body = send_request('DescribeDDosAttackEventDetail', request.serialize)
|
735
|
-
response = JSON.parse(body)
|
736
|
-
if response['Response'].key?('Error') == false
|
737
|
-
model = DescribeDDosAttackEventDetailResponse.new
|
738
|
-
model.deserialize(response['Response'])
|
739
|
-
model
|
740
|
-
else
|
741
|
-
code = response['Response']['Error']['Code']
|
742
|
-
message = response['Response']['Error']['Message']
|
743
|
-
reqid = response['Response']['RequestId']
|
744
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
745
|
-
end
|
746
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
747
|
-
raise e
|
748
|
-
rescue StandardError => e
|
749
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
|
-
end
|
751
|
-
|
752
|
-
# 查询DDos攻击源信息
|
753
|
-
|
754
|
-
# @param request: Request instance for DescribeDDosAttackSourceEvent.
|
755
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackSourceEventRequest`
|
756
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackSourceEventResponse`
|
757
|
-
def DescribeDDosAttackSourceEvent(request)
|
758
|
-
body = send_request('DescribeDDosAttackSourceEvent', request.serialize)
|
759
|
-
response = JSON.parse(body)
|
760
|
-
if response['Response'].key?('Error') == false
|
761
|
-
model = DescribeDDosAttackSourceEventResponse.new
|
762
|
-
model.deserialize(response['Response'])
|
763
|
-
model
|
764
|
-
else
|
765
|
-
code = response['Response']['Error']['Code']
|
766
|
-
message = response['Response']['Error']['Message']
|
767
|
-
reqid = response['Response']['RequestId']
|
768
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
769
|
-
end
|
770
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
771
|
-
raise e
|
772
|
-
rescue StandardError => e
|
773
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
|
-
end
|
775
|
-
|
776
|
-
# 查询DDos攻击Top数据
|
777
|
-
|
778
|
-
# @param request: Request instance for DescribeDDosAttackTopData.
|
779
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackTopDataRequest`
|
780
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackTopDataResponse`
|
781
|
-
def DescribeDDosAttackTopData(request)
|
782
|
-
body = send_request('DescribeDDosAttackTopData', request.serialize)
|
783
|
-
response = JSON.parse(body)
|
784
|
-
if response['Response'].key?('Error') == false
|
785
|
-
model = DescribeDDosAttackTopDataResponse.new
|
786
|
-
model.deserialize(response['Response'])
|
787
|
-
model
|
788
|
-
else
|
789
|
-
code = response['Response']['Error']['Code']
|
790
|
-
message = response['Response']['Error']['Message']
|
791
|
-
reqid = response['Response']['RequestId']
|
792
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
793
|
-
end
|
794
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
795
|
-
raise e
|
796
|
-
rescue StandardError => e
|
797
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
|
-
end
|
799
|
-
|
800
|
-
# 此接口已经做不兼容变更,所以此版本的接口已经无法调用,故作下线处理
|
801
|
-
|
802
|
-
# 查询DDos主攻击事件
|
803
|
-
|
804
|
-
# @param request: Request instance for DescribeDDosMajorAttackEvent.
|
805
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDosMajorAttackEventRequest`
|
806
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDosMajorAttackEventResponse`
|
807
|
-
def DescribeDDosMajorAttackEvent(request)
|
808
|
-
body = send_request('DescribeDDosMajorAttackEvent', request.serialize)
|
809
|
-
response = JSON.parse(body)
|
810
|
-
if response['Response'].key?('Error') == false
|
811
|
-
model = DescribeDDosMajorAttackEventResponse.new
|
812
|
-
model.deserialize(response['Response'])
|
813
|
-
model
|
814
|
-
else
|
815
|
-
code = response['Response']['Error']['Code']
|
816
|
-
message = response['Response']['Error']['Message']
|
817
|
-
reqid = response['Response']['RequestId']
|
818
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
819
|
-
end
|
820
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
821
|
-
raise e
|
822
|
-
rescue StandardError => e
|
823
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
824
|
-
end
|
825
|
-
|
826
|
-
# 查询默认证书列表
|
827
|
-
|
828
|
-
# @param request: Request instance for DescribeDefaultCertificates.
|
829
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDefaultCertificatesRequest`
|
830
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDefaultCertificatesResponse`
|
831
|
-
def DescribeDefaultCertificates(request)
|
832
|
-
body = send_request('DescribeDefaultCertificates', request.serialize)
|
833
|
-
response = JSON.parse(body)
|
834
|
-
if response['Response'].key?('Error') == false
|
835
|
-
model = DescribeDefaultCertificatesResponse.new
|
836
|
-
model.deserialize(response['Response'])
|
837
|
-
model
|
838
|
-
else
|
839
|
-
code = response['Response']['Error']['Code']
|
840
|
-
message = response['Response']['Error']['Message']
|
841
|
-
reqid = response['Response']['RequestId']
|
842
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
843
|
-
end
|
844
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
845
|
-
raise e
|
846
|
-
rescue StandardError => e
|
847
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
848
|
-
end
|
849
|
-
|
850
|
-
# 获取DNS请求数统计曲线
|
851
|
-
|
852
|
-
# @param request: Request instance for DescribeDnsData.
|
853
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDnsDataRequest`
|
854
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDnsDataResponse`
|
855
|
-
def DescribeDnsData(request)
|
856
|
-
body = send_request('DescribeDnsData', request.serialize)
|
857
|
-
response = JSON.parse(body)
|
858
|
-
if response['Response'].key?('Error') == false
|
859
|
-
model = DescribeDnsDataResponse.new
|
860
|
-
model.deserialize(response['Response'])
|
861
|
-
model
|
862
|
-
else
|
863
|
-
code = response['Response']['Error']['Code']
|
864
|
-
message = response['Response']['Error']['Message']
|
865
|
-
reqid = response['Response']['RequestId']
|
866
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
867
|
-
end
|
868
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
869
|
-
raise e
|
870
|
-
rescue StandardError => e
|
871
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
872
|
-
end
|
873
|
-
|
874
|
-
# 查询 DNS 记录列表,支持搜索、分页、排序、过滤。
|
875
|
-
|
876
|
-
# @param request: Request instance for DescribeDnsRecords.
|
877
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDnsRecordsRequest`
|
878
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDnsRecordsResponse`
|
879
|
-
def DescribeDnsRecords(request)
|
880
|
-
body = send_request('DescribeDnsRecords', request.serialize)
|
881
|
-
response = JSON.parse(body)
|
882
|
-
if response['Response'].key?('Error') == false
|
883
|
-
model = DescribeDnsRecordsResponse.new
|
884
|
-
model.deserialize(response['Response'])
|
885
|
-
model
|
886
|
-
else
|
887
|
-
code = response['Response']['Error']['Code']
|
888
|
-
message = response['Response']['Error']['Message']
|
889
|
-
reqid = response['Response']['RequestId']
|
890
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
891
|
-
end
|
892
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
893
|
-
raise e
|
894
|
-
rescue StandardError => e
|
895
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
896
|
-
end
|
897
|
-
|
898
|
-
# 用于查询 DNSSEC 相关信息
|
899
|
-
|
900
|
-
# @param request: Request instance for DescribeDnssec.
|
901
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDnssecRequest`
|
902
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDnssecResponse`
|
903
|
-
def DescribeDnssec(request)
|
904
|
-
body = send_request('DescribeDnssec', request.serialize)
|
905
|
-
response = JSON.parse(body)
|
906
|
-
if response['Response'].key?('Error') == false
|
907
|
-
model = DescribeDnssecResponse.new
|
908
|
-
model.deserialize(response['Response'])
|
909
|
-
model
|
910
|
-
else
|
911
|
-
code = response['Response']['Error']['Code']
|
912
|
-
message = response['Response']['Error']['Message']
|
913
|
-
reqid = response['Response']['RequestId']
|
914
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
915
|
-
end
|
916
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
917
|
-
raise e
|
918
|
-
rescue StandardError => e
|
919
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
920
|
-
end
|
921
|
-
|
922
|
-
# 查询域名证书列表,支持搜索、分页、排序、过滤。
|
923
|
-
|
924
|
-
# @param request: Request instance for DescribeHostsCertificate.
|
925
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeHostsCertificateRequest`
|
926
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeHostsCertificateResponse`
|
927
|
-
def DescribeHostsCertificate(request)
|
928
|
-
body = send_request('DescribeHostsCertificate', request.serialize)
|
929
|
-
response = JSON.parse(body)
|
930
|
-
if response['Response'].key?('Error') == false
|
931
|
-
model = DescribeHostsCertificateResponse.new
|
932
|
-
model.deserialize(response['Response'])
|
933
|
-
model
|
934
|
-
else
|
935
|
-
code = response['Response']['Error']['Code']
|
936
|
-
message = response['Response']['Error']['Message']
|
937
|
-
reqid = response['Response']['RequestId']
|
938
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
939
|
-
end
|
940
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
941
|
-
raise e
|
942
|
-
rescue StandardError => e
|
943
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
944
|
-
end
|
945
|
-
|
946
|
-
# 用于查询域名配置信息
|
947
|
-
|
948
|
-
# @param request: Request instance for DescribeHostsSetting.
|
949
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeHostsSettingRequest`
|
950
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeHostsSettingResponse`
|
951
|
-
def DescribeHostsSetting(request)
|
952
|
-
body = send_request('DescribeHostsSetting', request.serialize)
|
953
|
-
response = JSON.parse(body)
|
954
|
-
if response['Response'].key?('Error') == false
|
955
|
-
model = DescribeHostsSettingResponse.new
|
956
|
-
model.deserialize(response['Response'])
|
957
|
-
model
|
958
|
-
else
|
959
|
-
code = response['Response']['Error']['Code']
|
960
|
-
message = response['Response']['Error']['Message']
|
961
|
-
reqid = response['Response']['RequestId']
|
962
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
963
|
-
end
|
964
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
965
|
-
raise e
|
966
|
-
rescue StandardError => e
|
967
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
968
|
-
end
|
969
|
-
|
970
|
-
# 查询验证结果
|
971
|
-
|
972
|
-
# @param request: Request instance for DescribeIdentification.
|
973
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeIdentificationRequest`
|
974
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeIdentificationResponse`
|
975
|
-
def DescribeIdentification(request)
|
976
|
-
body = send_request('DescribeIdentification', request.serialize)
|
977
|
-
response = JSON.parse(body)
|
978
|
-
if response['Response'].key?('Error') == false
|
979
|
-
model = DescribeIdentificationResponse.new
|
980
|
-
model.deserialize(response['Response'])
|
981
|
-
model
|
982
|
-
else
|
983
|
-
code = response['Response']['Error']['Code']
|
984
|
-
message = response['Response']['Error']['Message']
|
985
|
-
reqid = response['Response']['RequestId']
|
986
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
987
|
-
end
|
988
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
989
|
-
raise e
|
990
|
-
rescue StandardError => e
|
991
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
992
|
-
end
|
993
|
-
|
994
|
-
# 获取负载均衡列表
|
995
|
-
|
996
|
-
# @param request: Request instance for DescribeLoadBalancing.
|
997
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeLoadBalancingRequest`
|
998
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeLoadBalancingResponse`
|
999
|
-
def DescribeLoadBalancing(request)
|
1000
|
-
body = send_request('DescribeLoadBalancing', request.serialize)
|
1001
|
-
response = JSON.parse(body)
|
1002
|
-
if response['Response'].key?('Error') == false
|
1003
|
-
model = DescribeLoadBalancingResponse.new
|
1004
|
-
model.deserialize(response['Response'])
|
1005
|
-
model
|
1006
|
-
else
|
1007
|
-
code = response['Response']['Error']['Code']
|
1008
|
-
message = response['Response']['Error']['Message']
|
1009
|
-
reqid = response['Response']['RequestId']
|
1010
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1011
|
-
end
|
1012
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1013
|
-
raise e
|
1014
|
-
rescue StandardError => e
|
1015
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1016
|
-
end
|
1017
|
-
|
1018
|
-
# 获取负载均衡详细信息
|
1019
|
-
|
1020
|
-
# @param request: Request instance for DescribeLoadBalancingDetail.
|
1021
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeLoadBalancingDetailRequest`
|
1022
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeLoadBalancingDetailResponse`
|
1023
|
-
def DescribeLoadBalancingDetail(request)
|
1024
|
-
body = send_request('DescribeLoadBalancingDetail', request.serialize)
|
1025
|
-
response = JSON.parse(body)
|
1026
|
-
if response['Response'].key?('Error') == false
|
1027
|
-
model = DescribeLoadBalancingDetailResponse.new
|
1028
|
-
model.deserialize(response['Response'])
|
1029
|
-
model
|
1030
|
-
else
|
1031
|
-
code = response['Response']['Error']['Code']
|
1032
|
-
message = response['Response']['Error']['Message']
|
1033
|
-
reqid = response['Response']['RequestId']
|
1034
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1035
|
-
end
|
1036
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1037
|
-
raise e
|
1038
|
-
rescue StandardError => e
|
1039
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1040
|
-
end
|
1041
|
-
|
1042
|
-
# 获取源站组信息列表
|
1043
|
-
|
1044
|
-
# @param request: Request instance for DescribeOriginGroup.
|
1045
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeOriginGroupRequest`
|
1046
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeOriginGroupResponse`
|
1047
|
-
def DescribeOriginGroup(request)
|
1048
|
-
body = send_request('DescribeOriginGroup', request.serialize)
|
1049
|
-
response = JSON.parse(body)
|
1050
|
-
if response['Response'].key?('Error') == false
|
1051
|
-
model = DescribeOriginGroupResponse.new
|
1052
|
-
model.deserialize(response['Response'])
|
1053
|
-
model
|
1054
|
-
else
|
1055
|
-
code = response['Response']['Error']['Code']
|
1056
|
-
message = response['Response']['Error']['Message']
|
1057
|
-
reqid = response['Response']['RequestId']
|
1058
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1059
|
-
end
|
1060
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1061
|
-
raise e
|
1062
|
-
rescue StandardError => e
|
1063
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1064
|
-
end
|
1065
|
-
|
1066
|
-
# 获取源站组详细信息
|
1067
|
-
|
1068
|
-
# @param request: Request instance for DescribeOriginGroupDetail.
|
1069
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeOriginGroupDetailRequest`
|
1070
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeOriginGroupDetailResponse`
|
1071
|
-
def DescribeOriginGroupDetail(request)
|
1072
|
-
body = send_request('DescribeOriginGroupDetail', request.serialize)
|
1073
|
-
response = JSON.parse(body)
|
1074
|
-
if response['Response'].key?('Error') == false
|
1075
|
-
model = DescribeOriginGroupDetailResponse.new
|
1076
|
-
model.deserialize(response['Response'])
|
1077
|
-
model
|
1078
|
-
else
|
1079
|
-
code = response['Response']['Error']['Code']
|
1080
|
-
message = response['Response']['Error']['Message']
|
1081
|
-
reqid = response['Response']['RequestId']
|
1082
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1083
|
-
end
|
1084
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1085
|
-
raise e
|
1086
|
-
rescue StandardError => e
|
1087
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1088
|
-
end
|
1089
|
-
|
1090
|
-
# 接口已经不兼容升级,故作下线处理
|
1091
|
-
|
1092
|
-
# 本接口(DescribeOverviewL7Data)用于查询七层监控类时序流量数据。
|
1093
|
-
|
1094
|
-
# @param request: Request instance for DescribeOverviewL7Data.
|
1095
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeOverviewL7DataRequest`
|
1096
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeOverviewL7DataResponse`
|
1097
|
-
def DescribeOverviewL7Data(request)
|
1098
|
-
body = send_request('DescribeOverviewL7Data', request.serialize)
|
1099
|
-
response = JSON.parse(body)
|
1100
|
-
if response['Response'].key?('Error') == false
|
1101
|
-
model = DescribeOverviewL7DataResponse.new
|
1102
|
-
model.deserialize(response['Response'])
|
1103
|
-
model
|
1104
|
-
else
|
1105
|
-
code = response['Response']['Error']['Code']
|
1106
|
-
message = response['Response']['Error']['Message']
|
1107
|
-
reqid = response['Response']['RequestId']
|
1108
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1109
|
-
end
|
1110
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1111
|
-
raise e
|
1112
|
-
rescue StandardError => e
|
1113
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1114
|
-
end
|
1115
|
-
|
1116
|
-
# 查询预热任务状态
|
1117
|
-
|
1118
|
-
# @param request: Request instance for DescribePrefetchTasks.
|
1119
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribePrefetchTasksRequest`
|
1120
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribePrefetchTasksResponse`
|
1121
|
-
def DescribePrefetchTasks(request)
|
1122
|
-
body = send_request('DescribePrefetchTasks', request.serialize)
|
1123
|
-
response = JSON.parse(body)
|
1124
|
-
if response['Response'].key?('Error') == false
|
1125
|
-
model = DescribePrefetchTasksResponse.new
|
1126
|
-
model.deserialize(response['Response'])
|
1127
|
-
model
|
1128
|
-
else
|
1129
|
-
code = response['Response']['Error']['Code']
|
1130
|
-
message = response['Response']['Error']['Message']
|
1131
|
-
reqid = response['Response']['RequestId']
|
1132
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1133
|
-
end
|
1134
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1135
|
-
raise e
|
1136
|
-
rescue StandardError => e
|
1137
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1138
|
-
end
|
1139
|
-
|
1140
|
-
# 查询清除缓存历史记录
|
1141
|
-
|
1142
|
-
# @param request: Request instance for DescribePurgeTasks.
|
1143
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribePurgeTasksRequest`
|
1144
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribePurgeTasksResponse`
|
1145
|
-
def DescribePurgeTasks(request)
|
1146
|
-
body = send_request('DescribePurgeTasks', request.serialize)
|
1147
|
-
response = JSON.parse(body)
|
1148
|
-
if response['Response'].key?('Error') == false
|
1149
|
-
model = DescribePurgeTasksResponse.new
|
1150
|
-
model.deserialize(response['Response'])
|
1151
|
-
model
|
1152
|
-
else
|
1153
|
-
code = response['Response']['Error']['Code']
|
1154
|
-
message = response['Response']['Error']['Message']
|
1155
|
-
reqid = response['Response']['RequestId']
|
1156
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1157
|
-
end
|
1158
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1159
|
-
raise e
|
1160
|
-
rescue StandardError => e
|
1161
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1162
|
-
end
|
1163
|
-
|
1164
|
-
# 查询规则引擎规则。
|
1165
|
-
|
1166
|
-
# @param request: Request instance for DescribeRules.
|
1167
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeRulesRequest`
|
1168
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeRulesResponse`
|
1169
|
-
def DescribeRules(request)
|
1170
|
-
body = send_request('DescribeRules', request.serialize)
|
1171
|
-
response = JSON.parse(body)
|
1172
|
-
if response['Response'].key?('Error') == false
|
1173
|
-
model = DescribeRulesResponse.new
|
1174
|
-
model.deserialize(response['Response'])
|
1175
|
-
model
|
1176
|
-
else
|
1177
|
-
code = response['Response']['Error']['Code']
|
1178
|
-
message = response['Response']['Error']['Message']
|
1179
|
-
reqid = response['Response']['RequestId']
|
1180
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1181
|
-
end
|
1182
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1183
|
-
raise e
|
1184
|
-
rescue StandardError => e
|
1185
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1186
|
-
end
|
1187
|
-
|
1188
|
-
# 返回规则引擎可应用匹配请求的设置列表及其详细建议配置信息
|
1189
|
-
|
1190
|
-
# @param request: Request instance for DescribeRulesSetting.
|
1191
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeRulesSettingRequest`
|
1192
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeRulesSettingResponse`
|
1193
|
-
def DescribeRulesSetting(request)
|
1194
|
-
body = send_request('DescribeRulesSetting', request.serialize)
|
1195
|
-
response = JSON.parse(body)
|
1196
|
-
if response['Response'].key?('Error') == false
|
1197
|
-
model = DescribeRulesSettingResponse.new
|
1198
|
-
model.deserialize(response['Response'])
|
1199
|
-
model
|
1200
|
-
else
|
1201
|
-
code = response['Response']['Error']['Code']
|
1202
|
-
message = response['Response']['Error']['Message']
|
1203
|
-
reqid = response['Response']['RequestId']
|
1204
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1205
|
-
end
|
1206
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1207
|
-
raise e
|
1208
|
-
rescue StandardError => e
|
1209
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1210
|
-
end
|
1211
|
-
|
1212
|
-
# 查询安全防护配置详情
|
1213
|
-
|
1214
|
-
# @param request: Request instance for DescribeSecurityPolicy.
|
1215
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyRequest`
|
1216
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyResponse`
|
1217
|
-
def DescribeSecurityPolicy(request)
|
1218
|
-
body = send_request('DescribeSecurityPolicy', request.serialize)
|
1219
|
-
response = JSON.parse(body)
|
1220
|
-
if response['Response'].key?('Error') == false
|
1221
|
-
model = DescribeSecurityPolicyResponse.new
|
1222
|
-
model.deserialize(response['Response'])
|
1223
|
-
model
|
1224
|
-
else
|
1225
|
-
code = response['Response']['Error']['Code']
|
1226
|
-
message = response['Response']['Error']['Message']
|
1227
|
-
reqid = response['Response']['RequestId']
|
1228
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1229
|
-
end
|
1230
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1231
|
-
raise e
|
1232
|
-
rescue StandardError => e
|
1233
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1234
|
-
end
|
1235
|
-
|
1236
|
-
# 查询全部安全实例
|
1237
|
-
|
1238
|
-
# @param request: Request instance for DescribeSecurityPolicyList.
|
1239
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyListRequest`
|
1240
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyListResponse`
|
1241
|
-
def DescribeSecurityPolicyList(request)
|
1242
|
-
body = send_request('DescribeSecurityPolicyList', request.serialize)
|
1243
|
-
response = JSON.parse(body)
|
1244
|
-
if response['Response'].key?('Error') == false
|
1245
|
-
model = DescribeSecurityPolicyListResponse.new
|
1246
|
-
model.deserialize(response['Response'])
|
1247
|
-
model
|
1248
|
-
else
|
1249
|
-
code = response['Response']['Error']['Code']
|
1250
|
-
message = response['Response']['Error']['Message']
|
1251
|
-
reqid = response['Response']['RequestId']
|
1252
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1253
|
-
end
|
1254
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1255
|
-
raise e
|
1256
|
-
rescue StandardError => e
|
1257
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1258
|
-
end
|
1259
|
-
|
1260
|
-
# 分页查询门神规则
|
1261
|
-
|
1262
|
-
# @param request: Request instance for DescribeSecurityPolicyManagedRules.
|
1263
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyManagedRulesRequest`
|
1264
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyManagedRulesResponse`
|
1265
|
-
def DescribeSecurityPolicyManagedRules(request)
|
1266
|
-
body = send_request('DescribeSecurityPolicyManagedRules', request.serialize)
|
1267
|
-
response = JSON.parse(body)
|
1268
|
-
if response['Response'].key?('Error') == false
|
1269
|
-
model = DescribeSecurityPolicyManagedRulesResponse.new
|
1270
|
-
model.deserialize(response['Response'])
|
1271
|
-
model
|
1272
|
-
else
|
1273
|
-
code = response['Response']['Error']['Code']
|
1274
|
-
message = response['Response']['Error']['Message']
|
1275
|
-
reqid = response['Response']['RequestId']
|
1276
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1277
|
-
end
|
1278
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1279
|
-
raise e
|
1280
|
-
rescue StandardError => e
|
1281
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1282
|
-
end
|
1283
|
-
|
1284
|
-
# 规则id查询门神规则详情
|
1285
|
-
|
1286
|
-
# @param request: Request instance for DescribeSecurityPolicyManagedRulesId.
|
1287
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyManagedRulesIdRequest`
|
1288
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyManagedRulesIdResponse`
|
1289
|
-
def DescribeSecurityPolicyManagedRulesId(request)
|
1290
|
-
body = send_request('DescribeSecurityPolicyManagedRulesId', request.serialize)
|
1291
|
-
response = JSON.parse(body)
|
1292
|
-
if response['Response'].key?('Error') == false
|
1293
|
-
model = DescribeSecurityPolicyManagedRulesIdResponse.new
|
1294
|
-
model.deserialize(response['Response'])
|
1295
|
-
model
|
1296
|
-
else
|
1297
|
-
code = response['Response']['Error']['Code']
|
1298
|
-
message = response['Response']['Error']['Message']
|
1299
|
-
reqid = response['Response']['RequestId']
|
1300
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1301
|
-
end
|
1302
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1303
|
-
raise e
|
1304
|
-
rescue StandardError => e
|
1305
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1306
|
-
end
|
1307
|
-
|
1308
|
-
# 查询所有地域信息
|
1309
|
-
|
1310
|
-
# @param request: Request instance for DescribeSecurityPolicyRegions.
|
1311
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyRegionsRequest`
|
1312
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyRegionsResponse`
|
1313
|
-
def DescribeSecurityPolicyRegions(request)
|
1314
|
-
body = send_request('DescribeSecurityPolicyRegions', request.serialize)
|
1315
|
-
response = JSON.parse(body)
|
1316
|
-
if response['Response'].key?('Error') == false
|
1317
|
-
model = DescribeSecurityPolicyRegionsResponse.new
|
1318
|
-
model.deserialize(response['Response'])
|
1319
|
-
model
|
1320
|
-
else
|
1321
|
-
code = response['Response']['Error']['Code']
|
1322
|
-
message = response['Response']['Error']['Message']
|
1323
|
-
reqid = response['Response']['RequestId']
|
1324
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1325
|
-
end
|
1326
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1327
|
-
raise e
|
1328
|
-
rescue StandardError => e
|
1329
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1330
|
-
end
|
1331
|
-
|
1332
|
-
# 查询Bot用户画像规则
|
1333
|
-
|
1334
|
-
# @param request: Request instance for DescribeSecurityPortraitRules.
|
1335
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPortraitRulesRequest`
|
1336
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPortraitRulesResponse`
|
1337
|
-
def DescribeSecurityPortraitRules(request)
|
1338
|
-
body = send_request('DescribeSecurityPortraitRules', request.serialize)
|
1339
|
-
response = JSON.parse(body)
|
1340
|
-
if response['Response'].key?('Error') == false
|
1341
|
-
model = DescribeSecurityPortraitRulesResponse.new
|
1342
|
-
model.deserialize(response['Response'])
|
1343
|
-
model
|
1344
|
-
else
|
1345
|
-
code = response['Response']['Error']['Code']
|
1346
|
-
message = response['Response']['Error']['Message']
|
1347
|
-
reqid = response['Response']['RequestId']
|
1348
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1349
|
-
end
|
1350
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1351
|
-
raise e
|
1352
|
-
rescue StandardError => e
|
1353
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1354
|
-
end
|
1355
|
-
|
1356
|
-
# 旧版本的接口已经不兼容,故作下线处理
|
1357
|
-
|
1358
|
-
# 四层时序流量数据查询
|
1359
|
-
|
1360
|
-
# @param request: Request instance for DescribeTimingL4Data.
|
1361
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeTimingL4DataRequest`
|
1362
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeTimingL4DataResponse`
|
1363
|
-
def DescribeTimingL4Data(request)
|
1364
|
-
body = send_request('DescribeTimingL4Data', request.serialize)
|
1365
|
-
response = JSON.parse(body)
|
1366
|
-
if response['Response'].key?('Error') == false
|
1367
|
-
model = DescribeTimingL4DataResponse.new
|
1368
|
-
model.deserialize(response['Response'])
|
1369
|
-
model
|
1370
|
-
else
|
1371
|
-
code = response['Response']['Error']['Code']
|
1372
|
-
message = response['Response']['Error']['Message']
|
1373
|
-
reqid = response['Response']['RequestId']
|
1374
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1375
|
-
end
|
1376
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1377
|
-
raise e
|
1378
|
-
rescue StandardError => e
|
1379
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1380
|
-
end
|
1381
|
-
|
1382
|
-
# 查询七层数据分析类时序流量数据
|
1383
|
-
|
1384
|
-
# @param request: Request instance for DescribeTimingL7AnalysisData.
|
1385
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeTimingL7AnalysisDataRequest`
|
1386
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeTimingL7AnalysisDataResponse`
|
1387
|
-
def DescribeTimingL7AnalysisData(request)
|
1388
|
-
body = send_request('DescribeTimingL7AnalysisData', request.serialize)
|
1389
|
-
response = JSON.parse(body)
|
1390
|
-
if response['Response'].key?('Error') == false
|
1391
|
-
model = DescribeTimingL7AnalysisDataResponse.new
|
1392
|
-
model.deserialize(response['Response'])
|
1393
|
-
model
|
1394
|
-
else
|
1395
|
-
code = response['Response']['Error']['Code']
|
1396
|
-
message = response['Response']['Error']['Message']
|
1397
|
-
reqid = response['Response']['RequestId']
|
1398
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1399
|
-
end
|
1400
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1401
|
-
raise e
|
1402
|
-
rescue StandardError => e
|
1403
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1404
|
-
end
|
1405
|
-
|
1406
|
-
# 七层查询缓存分析时序类流量数据
|
1407
|
-
|
1408
|
-
# @param request: Request instance for DescribeTimingL7CacheData.
|
1409
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeTimingL7CacheDataRequest`
|
1410
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeTimingL7CacheDataResponse`
|
1411
|
-
def DescribeTimingL7CacheData(request)
|
1412
|
-
body = send_request('DescribeTimingL7CacheData', request.serialize)
|
1413
|
-
response = JSON.parse(body)
|
1414
|
-
if response['Response'].key?('Error') == false
|
1415
|
-
model = DescribeTimingL7CacheDataResponse.new
|
1416
|
-
model.deserialize(response['Response'])
|
1417
|
-
model
|
1418
|
-
else
|
1419
|
-
code = response['Response']['Error']['Code']
|
1420
|
-
message = response['Response']['Error']['Message']
|
1421
|
-
reqid = response['Response']['RequestId']
|
1422
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1423
|
-
end
|
1424
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1425
|
-
raise e
|
1426
|
-
rescue StandardError => e
|
1427
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1428
|
-
end
|
1429
|
-
|
1430
|
-
# 查询top类流量数据
|
1431
|
-
|
1432
|
-
# @param request: Request instance for DescribeTopL7AnalysisData.
|
1433
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeTopL7AnalysisDataRequest`
|
1434
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeTopL7AnalysisDataResponse`
|
1435
|
-
def DescribeTopL7AnalysisData(request)
|
1436
|
-
body = send_request('DescribeTopL7AnalysisData', request.serialize)
|
1437
|
-
response = JSON.parse(body)
|
1438
|
-
if response['Response'].key?('Error') == false
|
1439
|
-
model = DescribeTopL7AnalysisDataResponse.new
|
1440
|
-
model.deserialize(response['Response'])
|
1441
|
-
model
|
1442
|
-
else
|
1443
|
-
code = response['Response']['Error']['Code']
|
1444
|
-
message = response['Response']['Error']['Message']
|
1445
|
-
reqid = response['Response']['RequestId']
|
1446
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1447
|
-
end
|
1448
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1449
|
-
raise e
|
1450
|
-
rescue StandardError => e
|
1451
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1452
|
-
end
|
1453
|
-
|
1454
|
-
# 七层查询缓存分析top类流量数据
|
1455
|
-
|
1456
|
-
# @param request: Request instance for DescribeTopL7CacheData.
|
1457
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeTopL7CacheDataRequest`
|
1458
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeTopL7CacheDataResponse`
|
1459
|
-
def DescribeTopL7CacheData(request)
|
1460
|
-
body = send_request('DescribeTopL7CacheData', request.serialize)
|
1461
|
-
response = JSON.parse(body)
|
1462
|
-
if response['Response'].key?('Error') == false
|
1463
|
-
model = DescribeTopL7CacheDataResponse.new
|
1464
|
-
model.deserialize(response['Response'])
|
1465
|
-
model
|
1466
|
-
else
|
1467
|
-
code = response['Response']['Error']['Code']
|
1468
|
-
message = response['Response']['Error']['Message']
|
1469
|
-
reqid = response['Response']['RequestId']
|
1470
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1471
|
-
end
|
1472
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1473
|
-
raise e
|
1474
|
-
rescue StandardError => e
|
1475
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1476
|
-
end
|
1477
|
-
|
1478
|
-
# 查询Web托管攻击事件
|
1479
|
-
|
1480
|
-
# @param request: Request instance for DescribeWebManagedRulesAttackEvents.
|
1481
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesAttackEventsRequest`
|
1482
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesAttackEventsResponse`
|
1483
|
-
def DescribeWebManagedRulesAttackEvents(request)
|
1484
|
-
body = send_request('DescribeWebManagedRulesAttackEvents', request.serialize)
|
1485
|
-
response = JSON.parse(body)
|
1486
|
-
if response['Response'].key?('Error') == false
|
1487
|
-
model = DescribeWebManagedRulesAttackEventsResponse.new
|
1488
|
-
model.deserialize(response['Response'])
|
1489
|
-
model
|
1490
|
-
else
|
1491
|
-
code = response['Response']['Error']['Code']
|
1492
|
-
message = response['Response']['Error']['Message']
|
1493
|
-
reqid = response['Response']['RequestId']
|
1494
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1495
|
-
end
|
1496
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1497
|
-
raise e
|
1498
|
-
rescue StandardError => e
|
1499
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1500
|
-
end
|
1501
|
-
|
1502
|
-
# 查询waf攻击时序数据
|
1503
|
-
|
1504
|
-
# @param request: Request instance for DescribeWebManagedRulesData.
|
1505
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesDataRequest`
|
1506
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesDataResponse`
|
1507
|
-
def DescribeWebManagedRulesData(request)
|
1508
|
-
body = send_request('DescribeWebManagedRulesData', request.serialize)
|
1509
|
-
response = JSON.parse(body)
|
1510
|
-
if response['Response'].key?('Error') == false
|
1511
|
-
model = DescribeWebManagedRulesDataResponse.new
|
1512
|
-
model.deserialize(response['Response'])
|
1513
|
-
model
|
1514
|
-
else
|
1515
|
-
code = response['Response']['Error']['Code']
|
1516
|
-
message = response['Response']['Error']['Message']
|
1517
|
-
reqid = response['Response']['RequestId']
|
1518
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1519
|
-
end
|
1520
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1521
|
-
raise e
|
1522
|
-
rescue StandardError => e
|
1523
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1524
|
-
end
|
1525
|
-
|
1526
|
-
# 查询waf攻击日志
|
1527
|
-
|
1528
|
-
# @param request: Request instance for DescribeWebManagedRulesLog.
|
1529
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesLogRequest`
|
1530
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesLogResponse`
|
1531
|
-
def DescribeWebManagedRulesLog(request)
|
1532
|
-
body = send_request('DescribeWebManagedRulesLog', request.serialize)
|
1533
|
-
response = JSON.parse(body)
|
1534
|
-
if response['Response'].key?('Error') == false
|
1535
|
-
model = DescribeWebManagedRulesLogResponse.new
|
1536
|
-
model.deserialize(response['Response'])
|
1537
|
-
model
|
1538
|
-
else
|
1539
|
-
code = response['Response']['Error']['Code']
|
1540
|
-
message = response['Response']['Error']['Message']
|
1541
|
-
reqid = response['Response']['RequestId']
|
1542
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1543
|
-
end
|
1544
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1545
|
-
raise e
|
1546
|
-
rescue StandardError => e
|
1547
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1548
|
-
end
|
1549
|
-
|
1550
|
-
# 此版本的接口已经废弃
|
1551
|
-
|
1552
|
-
# 查询waf攻击top数据
|
1553
|
-
|
1554
|
-
# @param request: Request instance for DescribeWebManagedRulesTopData.
|
1555
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesTopDataRequest`
|
1556
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesTopDataResponse`
|
1557
|
-
def DescribeWebManagedRulesTopData(request)
|
1558
|
-
body = send_request('DescribeWebManagedRulesTopData', request.serialize)
|
1559
|
-
response = JSON.parse(body)
|
1560
|
-
if response['Response'].key?('Error') == false
|
1561
|
-
model = DescribeWebManagedRulesTopDataResponse.new
|
1562
|
-
model.deserialize(response['Response'])
|
1563
|
-
model
|
1564
|
-
else
|
1565
|
-
code = response['Response']['Error']['Code']
|
1566
|
-
message = response['Response']['Error']['Message']
|
1567
|
-
reqid = response['Response']['RequestId']
|
1568
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1569
|
-
end
|
1570
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1571
|
-
raise e
|
1572
|
-
rescue StandardError => e
|
1573
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1574
|
-
end
|
1575
|
-
|
1576
|
-
# 查询web防护攻击事件
|
1577
|
-
|
1578
|
-
# @param request: Request instance for DescribeWebProtectionAttackEvents.
|
1579
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebProtectionAttackEventsRequest`
|
1580
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebProtectionAttackEventsResponse`
|
1581
|
-
def DescribeWebProtectionAttackEvents(request)
|
1582
|
-
body = send_request('DescribeWebProtectionAttackEvents', request.serialize)
|
1583
|
-
response = JSON.parse(body)
|
1584
|
-
if response['Response'].key?('Error') == false
|
1585
|
-
model = DescribeWebProtectionAttackEventsResponse.new
|
1586
|
-
model.deserialize(response['Response'])
|
1587
|
-
model
|
1588
|
-
else
|
1589
|
-
code = response['Response']['Error']['Code']
|
1590
|
-
message = response['Response']['Error']['Message']
|
1591
|
-
reqid = response['Response']['RequestId']
|
1592
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1593
|
-
end
|
1594
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1595
|
-
raise e
|
1596
|
-
rescue StandardError => e
|
1597
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1598
|
-
end
|
1599
|
-
|
1600
|
-
# 查询CC防护时序数据
|
1601
|
-
|
1602
|
-
# @param request: Request instance for DescribeWebProtectionData.
|
1603
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebProtectionDataRequest`
|
1604
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebProtectionDataResponse`
|
1605
|
-
def DescribeWebProtectionData(request)
|
1606
|
-
body = send_request('DescribeWebProtectionData', request.serialize)
|
1607
|
-
response = JSON.parse(body)
|
1608
|
-
if response['Response'].key?('Error') == false
|
1609
|
-
model = DescribeWebProtectionDataResponse.new
|
1610
|
-
model.deserialize(response['Response'])
|
1611
|
-
model
|
1612
|
-
else
|
1613
|
-
code = response['Response']['Error']['Code']
|
1614
|
-
message = response['Response']['Error']['Message']
|
1615
|
-
reqid = response['Response']['RequestId']
|
1616
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1617
|
-
end
|
1618
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1619
|
-
raise e
|
1620
|
-
rescue StandardError => e
|
1621
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1622
|
-
end
|
1623
|
-
|
1624
|
-
# 查询CC防护日志
|
1625
|
-
|
1626
|
-
# @param request: Request instance for DescribeWebProtectionLog.
|
1627
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebProtectionLogRequest`
|
1628
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebProtectionLogResponse`
|
1629
|
-
def DescribeWebProtectionLog(request)
|
1630
|
-
body = send_request('DescribeWebProtectionLog', request.serialize)
|
1631
|
-
response = JSON.parse(body)
|
1632
|
-
if response['Response'].key?('Error') == false
|
1633
|
-
model = DescribeWebProtectionLogResponse.new
|
1634
|
-
model.deserialize(response['Response'])
|
1635
|
-
model
|
1636
|
-
else
|
1637
|
-
code = response['Response']['Error']['Code']
|
1638
|
-
message = response['Response']['Error']['Message']
|
1639
|
-
reqid = response['Response']['RequestId']
|
1640
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1641
|
-
end
|
1642
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1643
|
-
raise e
|
1644
|
-
rescue StandardError => e
|
1645
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1646
|
-
end
|
1647
|
-
|
1648
|
-
# 查询所有DDoS防护分区
|
1649
|
-
|
1650
|
-
# @param request: Request instance for DescribeZoneDDoSPolicy.
|
1651
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeZoneDDoSPolicyRequest`
|
1652
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeZoneDDoSPolicyResponse`
|
1653
|
-
def DescribeZoneDDoSPolicy(request)
|
1654
|
-
body = send_request('DescribeZoneDDoSPolicy', request.serialize)
|
1655
|
-
response = JSON.parse(body)
|
1656
|
-
if response['Response'].key?('Error') == false
|
1657
|
-
model = DescribeZoneDDoSPolicyResponse.new
|
1658
|
-
model.deserialize(response['Response'])
|
1659
|
-
model
|
1660
|
-
else
|
1661
|
-
code = response['Response']['Error']['Code']
|
1662
|
-
message = response['Response']['Error']['Message']
|
1663
|
-
reqid = response['Response']['RequestId']
|
1664
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1665
|
-
end
|
1666
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1667
|
-
raise e
|
1668
|
-
rescue StandardError => e
|
1669
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1670
|
-
end
|
1671
|
-
|
1672
|
-
# 根据站点 ID 查询站点的详细信息
|
1673
|
-
|
1674
|
-
# @param request: Request instance for DescribeZoneDetails.
|
1675
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeZoneDetailsRequest`
|
1676
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeZoneDetailsResponse`
|
1677
|
-
def DescribeZoneDetails(request)
|
1678
|
-
body = send_request('DescribeZoneDetails', request.serialize)
|
1679
|
-
response = JSON.parse(body)
|
1680
|
-
if response['Response'].key?('Error') == false
|
1681
|
-
model = DescribeZoneDetailsResponse.new
|
1682
|
-
model.deserialize(response['Response'])
|
1683
|
-
model
|
1684
|
-
else
|
1685
|
-
code = response['Response']['Error']['Code']
|
1686
|
-
message = response['Response']['Error']['Message']
|
1687
|
-
reqid = response['Response']['RequestId']
|
1688
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1689
|
-
end
|
1690
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1691
|
-
raise e
|
1692
|
-
rescue StandardError => e
|
1693
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1694
|
-
end
|
1695
|
-
|
1696
|
-
# 用于查询站点的所有配置信息。
|
1697
|
-
|
1698
|
-
# @param request: Request instance for DescribeZoneSetting.
|
1699
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeZoneSettingRequest`
|
1700
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeZoneSettingResponse`
|
1701
|
-
def DescribeZoneSetting(request)
|
1702
|
-
body = send_request('DescribeZoneSetting', request.serialize)
|
1703
|
-
response = JSON.parse(body)
|
1704
|
-
if response['Response'].key?('Error') == false
|
1705
|
-
model = DescribeZoneSettingResponse.new
|
1706
|
-
model.deserialize(response['Response'])
|
1707
|
-
model
|
1708
|
-
else
|
1709
|
-
code = response['Response']['Error']['Code']
|
1710
|
-
message = response['Response']['Error']['Message']
|
1711
|
-
reqid = response['Response']['RequestId']
|
1712
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1713
|
-
end
|
1714
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1715
|
-
raise e
|
1716
|
-
rescue StandardError => e
|
1717
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1718
|
-
end
|
1719
|
-
|
1720
|
-
# 用户查询用户站点信息列表,支持分页
|
1721
|
-
|
1722
|
-
# @param request: Request instance for DescribeZones.
|
1723
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeZonesRequest`
|
1724
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeZonesResponse`
|
1725
|
-
def DescribeZones(request)
|
1726
|
-
body = send_request('DescribeZones', request.serialize)
|
1727
|
-
response = JSON.parse(body)
|
1728
|
-
if response['Response'].key?('Error') == false
|
1729
|
-
model = DescribeZonesResponse.new
|
1730
|
-
model.deserialize(response['Response'])
|
1731
|
-
model
|
1732
|
-
else
|
1733
|
-
code = response['Response']['Error']['Code']
|
1734
|
-
message = response['Response']['Error']['Message']
|
1735
|
-
reqid = response['Response']['RequestId']
|
1736
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1737
|
-
end
|
1738
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1739
|
-
raise e
|
1740
|
-
rescue StandardError => e
|
1741
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1742
|
-
end
|
1743
|
-
|
1744
|
-
# 查询七层离线日志
|
1745
|
-
|
1746
|
-
# @param request: Request instance for DownloadL7Logs.
|
1747
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::DownloadL7LogsRequest`
|
1748
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::DownloadL7LogsResponse`
|
1749
|
-
def DownloadL7Logs(request)
|
1750
|
-
body = send_request('DownloadL7Logs', request.serialize)
|
1751
|
-
response = JSON.parse(body)
|
1752
|
-
if response['Response'].key?('Error') == false
|
1753
|
-
model = DownloadL7LogsResponse.new
|
1754
|
-
model.deserialize(response['Response'])
|
1755
|
-
model
|
1756
|
-
else
|
1757
|
-
code = response['Response']['Error']['Code']
|
1758
|
-
message = response['Response']['Error']['Message']
|
1759
|
-
reqid = response['Response']['RequestId']
|
1760
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1761
|
-
end
|
1762
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1763
|
-
raise e
|
1764
|
-
rescue StandardError => e
|
1765
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1766
|
-
end
|
1767
|
-
|
1768
|
-
# 用于验证站点所有权
|
1769
|
-
|
1770
|
-
# @param request: Request instance for IdentifyZone.
|
1771
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::IdentifyZoneRequest`
|
1772
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::IdentifyZoneResponse`
|
1773
|
-
def IdentifyZone(request)
|
1774
|
-
body = send_request('IdentifyZone', request.serialize)
|
1775
|
-
response = JSON.parse(body)
|
1776
|
-
if response['Response'].key?('Error') == false
|
1777
|
-
model = IdentifyZoneResponse.new
|
1778
|
-
model.deserialize(response['Response'])
|
1779
|
-
model
|
1780
|
-
else
|
1781
|
-
code = response['Response']['Error']['Code']
|
1782
|
-
message = response['Response']['Error']['Message']
|
1783
|
-
reqid = response['Response']['RequestId']
|
1784
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1785
|
-
end
|
1786
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1787
|
-
raise e
|
1788
|
-
rescue StandardError => e
|
1789
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1790
|
-
end
|
1791
|
-
|
1792
|
-
# 导入 DNS 记录
|
1793
|
-
|
1794
|
-
# @param request: Request instance for ImportDnsRecords.
|
1795
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ImportDnsRecordsRequest`
|
1796
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ImportDnsRecordsResponse`
|
1797
|
-
def ImportDnsRecords(request)
|
1798
|
-
body = send_request('ImportDnsRecords', request.serialize)
|
1799
|
-
response = JSON.parse(body)
|
1800
|
-
if response['Response'].key?('Error') == false
|
1801
|
-
model = ImportDnsRecordsResponse.new
|
1802
|
-
model.deserialize(response['Response'])
|
1803
|
-
model
|
1804
|
-
else
|
1805
|
-
code = response['Response']['Error']['Code']
|
1806
|
-
message = response['Response']['Error']['Message']
|
1807
|
-
reqid = response['Response']['RequestId']
|
1808
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1809
|
-
end
|
1810
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1811
|
-
raise e
|
1812
|
-
rescue StandardError => e
|
1813
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1814
|
-
end
|
1815
|
-
|
1816
|
-
# 修改应用代理
|
1817
|
-
|
1818
|
-
# @param request: Request instance for ModifyApplicationProxy.
|
1819
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyApplicationProxyRequest`
|
1820
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyApplicationProxyResponse`
|
1821
|
-
def ModifyApplicationProxy(request)
|
1822
|
-
body = send_request('ModifyApplicationProxy', request.serialize)
|
1823
|
-
response = JSON.parse(body)
|
1824
|
-
if response['Response'].key?('Error') == false
|
1825
|
-
model = ModifyApplicationProxyResponse.new
|
1826
|
-
model.deserialize(response['Response'])
|
1827
|
-
model
|
1828
|
-
else
|
1829
|
-
code = response['Response']['Error']['Code']
|
1830
|
-
message = response['Response']['Error']['Message']
|
1831
|
-
reqid = response['Response']['RequestId']
|
1832
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1833
|
-
end
|
1834
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1835
|
-
raise e
|
1836
|
-
rescue StandardError => e
|
1837
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1838
|
-
end
|
1839
|
-
|
1840
|
-
# 修改应用代理规则
|
1841
|
-
|
1842
|
-
# @param request: Request instance for ModifyApplicationProxyRule.
|
1843
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyApplicationProxyRuleRequest`
|
1844
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyApplicationProxyRuleResponse`
|
1845
|
-
def ModifyApplicationProxyRule(request)
|
1846
|
-
body = send_request('ModifyApplicationProxyRule', request.serialize)
|
1847
|
-
response = JSON.parse(body)
|
1848
|
-
if response['Response'].key?('Error') == false
|
1849
|
-
model = ModifyApplicationProxyRuleResponse.new
|
1850
|
-
model.deserialize(response['Response'])
|
1851
|
-
model
|
1852
|
-
else
|
1853
|
-
code = response['Response']['Error']['Code']
|
1854
|
-
message = response['Response']['Error']['Message']
|
1855
|
-
reqid = response['Response']['RequestId']
|
1856
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1857
|
-
end
|
1858
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1859
|
-
raise e
|
1860
|
-
rescue StandardError => e
|
1861
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1862
|
-
end
|
1863
|
-
|
1864
|
-
# 修改应用代理规则的状态
|
1865
|
-
|
1866
|
-
# @param request: Request instance for ModifyApplicationProxyRuleStatus.
|
1867
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyApplicationProxyRuleStatusRequest`
|
1868
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyApplicationProxyRuleStatusResponse`
|
1869
|
-
def ModifyApplicationProxyRuleStatus(request)
|
1870
|
-
body = send_request('ModifyApplicationProxyRuleStatus', request.serialize)
|
1871
|
-
response = JSON.parse(body)
|
1872
|
-
if response['Response'].key?('Error') == false
|
1873
|
-
model = ModifyApplicationProxyRuleStatusResponse.new
|
1874
|
-
model.deserialize(response['Response'])
|
1875
|
-
model
|
1876
|
-
else
|
1877
|
-
code = response['Response']['Error']['Code']
|
1878
|
-
message = response['Response']['Error']['Message']
|
1879
|
-
reqid = response['Response']['RequestId']
|
1880
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1881
|
-
end
|
1882
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1883
|
-
raise e
|
1884
|
-
rescue StandardError => e
|
1885
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1886
|
-
end
|
1887
|
-
|
1888
|
-
# 修改应用代理的状态
|
1889
|
-
|
1890
|
-
# @param request: Request instance for ModifyApplicationProxyStatus.
|
1891
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyApplicationProxyStatusRequest`
|
1892
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyApplicationProxyStatusResponse`
|
1893
|
-
def ModifyApplicationProxyStatus(request)
|
1894
|
-
body = send_request('ModifyApplicationProxyStatus', request.serialize)
|
1895
|
-
response = JSON.parse(body)
|
1896
|
-
if response['Response'].key?('Error') == false
|
1897
|
-
model = ModifyApplicationProxyStatusResponse.new
|
1898
|
-
model.deserialize(response['Response'])
|
1899
|
-
model
|
1900
|
-
else
|
1901
|
-
code = response['Response']['Error']['Code']
|
1902
|
-
message = response['Response']['Error']['Message']
|
1903
|
-
reqid = response['Response']['RequestId']
|
1904
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1905
|
-
end
|
1906
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1907
|
-
raise e
|
1908
|
-
rescue StandardError => e
|
1909
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1910
|
-
end
|
1911
|
-
|
1912
|
-
# 修改DDoS防护分区配置
|
1913
|
-
|
1914
|
-
# @param request: Request instance for ModifyDDoSPolicy.
|
1915
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyDDoSPolicyRequest`
|
1916
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyDDoSPolicyResponse`
|
1917
|
-
def ModifyDDoSPolicy(request)
|
1918
|
-
body = send_request('ModifyDDoSPolicy', request.serialize)
|
1919
|
-
response = JSON.parse(body)
|
1920
|
-
if response['Response'].key?('Error') == false
|
1921
|
-
model = ModifyDDoSPolicyResponse.new
|
1922
|
-
model.deserialize(response['Response'])
|
1923
|
-
model
|
1924
|
-
else
|
1925
|
-
code = response['Response']['Error']['Code']
|
1926
|
-
message = response['Response']['Error']['Message']
|
1927
|
-
reqid = response['Response']['RequestId']
|
1928
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1929
|
-
end
|
1930
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1931
|
-
raise e
|
1932
|
-
rescue StandardError => e
|
1933
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1934
|
-
end
|
1935
|
-
|
1936
|
-
# 域名DDoS高可用开关
|
1937
|
-
|
1938
|
-
# @param request: Request instance for ModifyDDoSPolicyHost.
|
1939
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyDDoSPolicyHostRequest`
|
1940
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyDDoSPolicyHostResponse`
|
1941
|
-
def ModifyDDoSPolicyHost(request)
|
1942
|
-
body = send_request('ModifyDDoSPolicyHost', request.serialize)
|
1943
|
-
response = JSON.parse(body)
|
1944
|
-
if response['Response'].key?('Error') == false
|
1945
|
-
model = ModifyDDoSPolicyHostResponse.new
|
1946
|
-
model.deserialize(response['Response'])
|
1947
|
-
model
|
1948
|
-
else
|
1949
|
-
code = response['Response']['Error']['Code']
|
1950
|
-
message = response['Response']['Error']['Message']
|
1951
|
-
reqid = response['Response']['RequestId']
|
1952
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1953
|
-
end
|
1954
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1955
|
-
raise e
|
1956
|
-
rescue StandardError => e
|
1957
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1958
|
-
end
|
1959
|
-
|
1960
|
-
# 修改默认证书状态
|
1961
|
-
|
1962
|
-
# @param request: Request instance for ModifyDefaultCertificate.
|
1963
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyDefaultCertificateRequest`
|
1964
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyDefaultCertificateResponse`
|
1965
|
-
def ModifyDefaultCertificate(request)
|
1966
|
-
body = send_request('ModifyDefaultCertificate', request.serialize)
|
1967
|
-
response = JSON.parse(body)
|
1968
|
-
if response['Response'].key?('Error') == false
|
1969
|
-
model = ModifyDefaultCertificateResponse.new
|
1970
|
-
model.deserialize(response['Response'])
|
1971
|
-
model
|
1972
|
-
else
|
1973
|
-
code = response['Response']['Error']['Code']
|
1974
|
-
message = response['Response']['Error']['Message']
|
1975
|
-
reqid = response['Response']['RequestId']
|
1976
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1977
|
-
end
|
1978
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1979
|
-
raise e
|
1980
|
-
rescue StandardError => e
|
1981
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1982
|
-
end
|
1983
|
-
|
1984
|
-
# 修改 DNS 记录
|
1985
|
-
|
1986
|
-
# @param request: Request instance for ModifyDnsRecord.
|
1987
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyDnsRecordRequest`
|
1988
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyDnsRecordResponse`
|
1989
|
-
def ModifyDnsRecord(request)
|
1990
|
-
body = send_request('ModifyDnsRecord', request.serialize)
|
1991
|
-
response = JSON.parse(body)
|
1992
|
-
if response['Response'].key?('Error') == false
|
1993
|
-
model = ModifyDnsRecordResponse.new
|
1994
|
-
model.deserialize(response['Response'])
|
1995
|
-
model
|
1996
|
-
else
|
1997
|
-
code = response['Response']['Error']['Code']
|
1998
|
-
message = response['Response']['Error']['Message']
|
1999
|
-
reqid = response['Response']['RequestId']
|
2000
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2001
|
-
end
|
2002
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2003
|
-
raise e
|
2004
|
-
rescue StandardError => e
|
2005
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2006
|
-
end
|
2007
|
-
|
2008
|
-
# 修改 DNSSEC 状态
|
2009
|
-
|
2010
|
-
# @param request: Request instance for ModifyDnssec.
|
2011
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyDnssecRequest`
|
2012
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyDnssecResponse`
|
2013
|
-
def ModifyDnssec(request)
|
2014
|
-
body = send_request('ModifyDnssec', request.serialize)
|
2015
|
-
response = JSON.parse(body)
|
2016
|
-
if response['Response'].key?('Error') == false
|
2017
|
-
model = ModifyDnssecResponse.new
|
2018
|
-
model.deserialize(response['Response'])
|
2019
|
-
model
|
2020
|
-
else
|
2021
|
-
code = response['Response']['Error']['Code']
|
2022
|
-
message = response['Response']['Error']['Message']
|
2023
|
-
reqid = response['Response']['RequestId']
|
2024
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2025
|
-
end
|
2026
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2027
|
-
raise e
|
2028
|
-
rescue StandardError => e
|
2029
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2030
|
-
end
|
2031
|
-
|
2032
|
-
# 用于修改域名证书
|
2033
|
-
|
2034
|
-
# @param request: Request instance for ModifyHostsCertificate.
|
2035
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyHostsCertificateRequest`
|
2036
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyHostsCertificateResponse`
|
2037
|
-
def ModifyHostsCertificate(request)
|
2038
|
-
body = send_request('ModifyHostsCertificate', request.serialize)
|
2039
|
-
response = JSON.parse(body)
|
2040
|
-
if response['Response'].key?('Error') == false
|
2041
|
-
model = ModifyHostsCertificateResponse.new
|
2042
|
-
model.deserialize(response['Response'])
|
2043
|
-
model
|
2044
|
-
else
|
2045
|
-
code = response['Response']['Error']['Code']
|
2046
|
-
message = response['Response']['Error']['Message']
|
2047
|
-
reqid = response['Response']['RequestId']
|
2048
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2049
|
-
end
|
2050
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2051
|
-
raise e
|
2052
|
-
rescue StandardError => e
|
2053
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2054
|
-
end
|
2055
|
-
|
2056
|
-
# 修改负载均衡
|
2057
|
-
|
2058
|
-
# @param request: Request instance for ModifyLoadBalancing.
|
2059
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyLoadBalancingRequest`
|
2060
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyLoadBalancingResponse`
|
2061
|
-
def ModifyLoadBalancing(request)
|
2062
|
-
body = send_request('ModifyLoadBalancing', request.serialize)
|
2063
|
-
response = JSON.parse(body)
|
2064
|
-
if response['Response'].key?('Error') == false
|
2065
|
-
model = ModifyLoadBalancingResponse.new
|
2066
|
-
model.deserialize(response['Response'])
|
2067
|
-
model
|
2068
|
-
else
|
2069
|
-
code = response['Response']['Error']['Code']
|
2070
|
-
message = response['Response']['Error']['Message']
|
2071
|
-
reqid = response['Response']['RequestId']
|
2072
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2073
|
-
end
|
2074
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2075
|
-
raise e
|
2076
|
-
rescue StandardError => e
|
2077
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2078
|
-
end
|
2079
|
-
|
2080
|
-
# 修改负载均衡状态
|
2081
|
-
|
2082
|
-
# @param request: Request instance for ModifyLoadBalancingStatus.
|
2083
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyLoadBalancingStatusRequest`
|
2084
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyLoadBalancingStatusResponse`
|
2085
|
-
def ModifyLoadBalancingStatus(request)
|
2086
|
-
body = send_request('ModifyLoadBalancingStatus', request.serialize)
|
2087
|
-
response = JSON.parse(body)
|
2088
|
-
if response['Response'].key?('Error') == false
|
2089
|
-
model = ModifyLoadBalancingStatusResponse.new
|
2090
|
-
model.deserialize(response['Response'])
|
2091
|
-
model
|
2092
|
-
else
|
2093
|
-
code = response['Response']['Error']['Code']
|
2094
|
-
message = response['Response']['Error']['Message']
|
2095
|
-
reqid = response['Response']['RequestId']
|
2096
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2097
|
-
end
|
2098
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2099
|
-
raise e
|
2100
|
-
rescue StandardError => e
|
2101
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2102
|
-
end
|
2103
|
-
|
2104
|
-
# 源站组修改
|
2105
|
-
|
2106
|
-
# @param request: Request instance for ModifyOriginGroup.
|
2107
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyOriginGroupRequest`
|
2108
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyOriginGroupResponse`
|
2109
|
-
def ModifyOriginGroup(request)
|
2110
|
-
body = send_request('ModifyOriginGroup', request.serialize)
|
2111
|
-
response = JSON.parse(body)
|
2112
|
-
if response['Response'].key?('Error') == false
|
2113
|
-
model = ModifyOriginGroupResponse.new
|
2114
|
-
model.deserialize(response['Response'])
|
2115
|
-
model
|
2116
|
-
else
|
2117
|
-
code = response['Response']['Error']['Code']
|
2118
|
-
message = response['Response']['Error']['Message']
|
2119
|
-
reqid = response['Response']['RequestId']
|
2120
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2121
|
-
end
|
2122
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2123
|
-
raise e
|
2124
|
-
rescue StandardError => e
|
2125
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2126
|
-
end
|
2127
|
-
|
2128
|
-
# 修改规则引擎规则。
|
2129
|
-
|
2130
|
-
# @param request: Request instance for ModifyRule.
|
2131
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyRuleRequest`
|
2132
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyRuleResponse`
|
2133
|
-
def ModifyRule(request)
|
2134
|
-
body = send_request('ModifyRule', request.serialize)
|
2135
|
-
response = JSON.parse(body)
|
2136
|
-
if response['Response'].key?('Error') == false
|
2137
|
-
model = ModifyRuleResponse.new
|
2138
|
-
model.deserialize(response['Response'])
|
2139
|
-
model
|
2140
|
-
else
|
2141
|
-
code = response['Response']['Error']['Code']
|
2142
|
-
message = response['Response']['Error']['Message']
|
2143
|
-
reqid = response['Response']['RequestId']
|
2144
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2145
|
-
end
|
2146
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2147
|
-
raise e
|
2148
|
-
rescue StandardError => e
|
2149
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2150
|
-
end
|
2151
|
-
|
2152
|
-
# 修改规则引擎规则优先级
|
2153
|
-
|
2154
|
-
# @param request: Request instance for ModifyRulePriority.
|
2155
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyRulePriorityRequest`
|
2156
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyRulePriorityResponse`
|
2157
|
-
def ModifyRulePriority(request)
|
2158
|
-
body = send_request('ModifyRulePriority', request.serialize)
|
2159
|
-
response = JSON.parse(body)
|
2160
|
-
if response['Response'].key?('Error') == false
|
2161
|
-
model = ModifyRulePriorityResponse.new
|
2162
|
-
model.deserialize(response['Response'])
|
2163
|
-
model
|
2164
|
-
else
|
2165
|
-
code = response['Response']['Error']['Code']
|
2166
|
-
message = response['Response']['Error']['Message']
|
2167
|
-
reqid = response['Response']['RequestId']
|
2168
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2169
|
-
end
|
2170
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2171
|
-
raise e
|
2172
|
-
rescue StandardError => e
|
2173
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2174
|
-
end
|
2175
|
-
|
2176
|
-
# 修改Web&Bot安全配置
|
2177
|
-
|
2178
|
-
# @param request: Request instance for ModifySecurityPolicy.
|
2179
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifySecurityPolicyRequest`
|
2180
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifySecurityPolicyResponse`
|
2181
|
-
def ModifySecurityPolicy(request)
|
2182
|
-
body = send_request('ModifySecurityPolicy', request.serialize)
|
2183
|
-
response = JSON.parse(body)
|
2184
|
-
if response['Response'].key?('Error') == false
|
2185
|
-
model = ModifySecurityPolicyResponse.new
|
2186
|
-
model.deserialize(response['Response'])
|
2187
|
-
model
|
2188
|
-
else
|
2189
|
-
code = response['Response']['Error']['Code']
|
2190
|
-
message = response['Response']['Error']['Message']
|
2191
|
-
reqid = response['Response']['RequestId']
|
2192
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2193
|
-
end
|
2194
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2195
|
-
raise e
|
2196
|
-
rescue StandardError => e
|
2197
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2198
|
-
end
|
2199
|
-
|
2200
|
-
# 用该站点信息
|
2201
|
-
|
2202
|
-
# @param request: Request instance for ModifyZone.
|
2203
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyZoneRequest`
|
2204
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyZoneResponse`
|
2205
|
-
def ModifyZone(request)
|
2206
|
-
body = send_request('ModifyZone', request.serialize)
|
2207
|
-
response = JSON.parse(body)
|
2208
|
-
if response['Response'].key?('Error') == false
|
2209
|
-
model = ModifyZoneResponse.new
|
2210
|
-
model.deserialize(response['Response'])
|
2211
|
-
model
|
2212
|
-
else
|
2213
|
-
code = response['Response']['Error']['Code']
|
2214
|
-
message = response['Response']['Error']['Message']
|
2215
|
-
reqid = response['Response']['RequestId']
|
2216
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2217
|
-
end
|
2218
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2219
|
-
raise e
|
2220
|
-
rescue StandardError => e
|
2221
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2222
|
-
end
|
2223
|
-
|
2224
|
-
# 开启,关闭 CNAME 加速
|
2225
|
-
|
2226
|
-
# @param request: Request instance for ModifyZoneCnameSpeedUp.
|
2227
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyZoneCnameSpeedUpRequest`
|
2228
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyZoneCnameSpeedUpResponse`
|
2229
|
-
def ModifyZoneCnameSpeedUp(request)
|
2230
|
-
body = send_request('ModifyZoneCnameSpeedUp', request.serialize)
|
2231
|
-
response = JSON.parse(body)
|
2232
|
-
if response['Response'].key?('Error') == false
|
2233
|
-
model = ModifyZoneCnameSpeedUpResponse.new
|
2234
|
-
model.deserialize(response['Response'])
|
2235
|
-
model
|
2236
|
-
else
|
2237
|
-
code = response['Response']['Error']['Code']
|
2238
|
-
message = response['Response']['Error']['Message']
|
2239
|
-
reqid = response['Response']['RequestId']
|
2240
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2241
|
-
end
|
2242
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2243
|
-
raise e
|
2244
|
-
rescue StandardError => e
|
2245
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2246
|
-
end
|
2247
|
-
|
2248
|
-
# 用于修改站点配置
|
2249
|
-
|
2250
|
-
# @param request: Request instance for ModifyZoneSetting.
|
2251
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyZoneSettingRequest`
|
2252
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyZoneSettingResponse`
|
2253
|
-
def ModifyZoneSetting(request)
|
2254
|
-
body = send_request('ModifyZoneSetting', request.serialize)
|
2255
|
-
response = JSON.parse(body)
|
2256
|
-
if response['Response'].key?('Error') == false
|
2257
|
-
model = ModifyZoneSettingResponse.new
|
2258
|
-
model.deserialize(response['Response'])
|
2259
|
-
model
|
2260
|
-
else
|
2261
|
-
code = response['Response']['Error']['Code']
|
2262
|
-
message = response['Response']['Error']['Message']
|
2263
|
-
reqid = response['Response']['RequestId']
|
2264
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2265
|
-
end
|
2266
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2267
|
-
raise e
|
2268
|
-
rescue StandardError => e
|
2269
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2270
|
-
end
|
2271
|
-
|
2272
|
-
# 用于开启,关闭站点
|
2273
|
-
|
2274
|
-
# @param request: Request instance for ModifyZoneStatus.
|
2275
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyZoneStatusRequest`
|
2276
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyZoneStatusResponse`
|
2277
|
-
def ModifyZoneStatus(request)
|
2278
|
-
body = send_request('ModifyZoneStatus', request.serialize)
|
2279
|
-
response = JSON.parse(body)
|
2280
|
-
if response['Response'].key?('Error') == false
|
2281
|
-
model = ModifyZoneStatusResponse.new
|
2282
|
-
model.deserialize(response['Response'])
|
2283
|
-
model
|
2284
|
-
else
|
2285
|
-
code = response['Response']['Error']['Code']
|
2286
|
-
message = response['Response']['Error']['Message']
|
2287
|
-
reqid = response['Response']['RequestId']
|
2288
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2289
|
-
end
|
2290
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2291
|
-
raise e
|
2292
|
-
rescue StandardError => e
|
2293
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2294
|
-
end
|
2295
|
-
|
2296
|
-
# 站点被其他用户接入后,验证了站点所有权之后,可以找回该站点
|
2297
|
-
|
2298
|
-
# @param request: Request instance for ReclaimZone.
|
2299
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ReclaimZoneRequest`
|
2300
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ReclaimZoneResponse`
|
2301
|
-
def ReclaimZone(request)
|
2302
|
-
body = send_request('ReclaimZone', request.serialize)
|
2303
|
-
response = JSON.parse(body)
|
2304
|
-
if response['Response'].key?('Error') == false
|
2305
|
-
model = ReclaimZoneResponse.new
|
2306
|
-
model.deserialize(response['Response'])
|
2307
|
-
model
|
2308
|
-
else
|
2309
|
-
code = response['Response']['Error']['Code']
|
2310
|
-
message = response['Response']['Error']['Message']
|
2311
|
-
reqid = response['Response']['RequestId']
|
2312
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2313
|
-
end
|
2314
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2315
|
-
raise e
|
2316
|
-
rescue StandardError => e
|
2317
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2318
|
-
end
|
2319
|
-
|
2320
|
-
# 扫描站点历史解析记录
|
2321
|
-
|
2322
|
-
# @param request: Request instance for ScanDnsRecords.
|
2323
|
-
# @type request: :class:`Tencentcloud::teo::V20220106::ScanDnsRecordsRequest`
|
2324
|
-
# @rtype: :class:`Tencentcloud::teo::V20220106::ScanDnsRecordsResponse`
|
2325
|
-
def ScanDnsRecords(request)
|
2326
|
-
body = send_request('ScanDnsRecords', request.serialize)
|
2327
|
-
response = JSON.parse(body)
|
2328
|
-
if response['Response'].key?('Error') == false
|
2329
|
-
model = ScanDnsRecordsResponse.new
|
137
|
+
model = DescribeZonesResponse.new
|
2330
138
|
model.deserialize(response['Response'])
|
2331
139
|
model
|
2332
140
|
else
|