tencentcloud-sdk-cdn 3.0.1109 → 3.0.1115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180606/client.rb +0 -598
- data/lib/v20180606/models.rb +2002 -5460
- metadata +2 -2
data/lib/v20180606/client.rb
CHANGED
@@ -152,84 +152,6 @@ module TencentCloud
|
|
152
152
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
153
153
|
end
|
154
154
|
|
155
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
156
|
-
|
157
|
-
# CreateScdnDomain 用于创建 SCDN 加速域名
|
158
|
-
|
159
|
-
# @param request: Request instance for CreateScdnDomain.
|
160
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::CreateScdnDomainRequest`
|
161
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::CreateScdnDomainResponse`
|
162
|
-
def CreateScdnDomain(request)
|
163
|
-
body = send_request('CreateScdnDomain', request.serialize)
|
164
|
-
response = JSON.parse(body)
|
165
|
-
if response['Response'].key?('Error') == false
|
166
|
-
model = CreateScdnDomainResponse.new
|
167
|
-
model.deserialize(response['Response'])
|
168
|
-
model
|
169
|
-
else
|
170
|
-
code = response['Response']['Error']['Code']
|
171
|
-
message = response['Response']['Error']['Message']
|
172
|
-
reqid = response['Response']['RequestId']
|
173
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
174
|
-
end
|
175
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
176
|
-
raise e
|
177
|
-
rescue StandardError => e
|
178
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
179
|
-
end
|
180
|
-
|
181
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
182
|
-
|
183
|
-
# CreateScdnFailedLogTask 用于重试创建失败的事件日志任务
|
184
|
-
|
185
|
-
# @param request: Request instance for CreateScdnFailedLogTask.
|
186
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::CreateScdnFailedLogTaskRequest`
|
187
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::CreateScdnFailedLogTaskResponse`
|
188
|
-
def CreateScdnFailedLogTask(request)
|
189
|
-
body = send_request('CreateScdnFailedLogTask', request.serialize)
|
190
|
-
response = JSON.parse(body)
|
191
|
-
if response['Response'].key?('Error') == false
|
192
|
-
model = CreateScdnFailedLogTaskResponse.new
|
193
|
-
model.deserialize(response['Response'])
|
194
|
-
model
|
195
|
-
else
|
196
|
-
code = response['Response']['Error']['Code']
|
197
|
-
message = response['Response']['Error']['Message']
|
198
|
-
reqid = response['Response']['RequestId']
|
199
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
200
|
-
end
|
201
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
202
|
-
raise e
|
203
|
-
rescue StandardError => e
|
204
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
205
|
-
end
|
206
|
-
|
207
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
208
|
-
|
209
|
-
# CreateScdnLogTask 用于创建事件日志任务
|
210
|
-
|
211
|
-
# @param request: Request instance for CreateScdnLogTask.
|
212
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::CreateScdnLogTaskRequest`
|
213
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::CreateScdnLogTaskResponse`
|
214
|
-
def CreateScdnLogTask(request)
|
215
|
-
body = send_request('CreateScdnLogTask', request.serialize)
|
216
|
-
response = JSON.parse(body)
|
217
|
-
if response['Response'].key?('Error') == false
|
218
|
-
model = CreateScdnLogTaskResponse.new
|
219
|
-
model.deserialize(response['Response'])
|
220
|
-
model
|
221
|
-
else
|
222
|
-
code = response['Response']['Error']['Code']
|
223
|
-
message = response['Response']['Error']['Message']
|
224
|
-
reqid = response['Response']['RequestId']
|
225
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
226
|
-
end
|
227
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
228
|
-
raise e
|
229
|
-
rescue StandardError => e
|
230
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
231
|
-
end
|
232
|
-
|
233
155
|
# CreateVerifyRecord 用于生成一条子域名解析,提示客户添加到域名解析上,用于泛域名及域名取回校验归属权。
|
234
156
|
# 生成的解析记录可通过 [VerifyDomainRecord](https://cloud.tencent.com/document/product/228/48117) 完成归属权校验。
|
235
157
|
# 注意:生成的解析记录有效期为24小时,超过24小时后,需重新生成。
|
@@ -305,32 +227,6 @@ module TencentCloud
|
|
305
227
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
306
228
|
end
|
307
229
|
|
308
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
309
|
-
|
310
|
-
# 删除SCDN域名
|
311
|
-
|
312
|
-
# @param request: Request instance for DeleteScdnDomain.
|
313
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::DeleteScdnDomainRequest`
|
314
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::DeleteScdnDomainResponse`
|
315
|
-
def DeleteScdnDomain(request)
|
316
|
-
body = send_request('DeleteScdnDomain', request.serialize)
|
317
|
-
response = JSON.parse(body)
|
318
|
-
if response['Response'].key?('Error') == false
|
319
|
-
model = DeleteScdnDomainResponse.new
|
320
|
-
model.deserialize(response['Response'])
|
321
|
-
model
|
322
|
-
else
|
323
|
-
code = response['Response']['Error']['Code']
|
324
|
-
message = response['Response']['Error']['Message']
|
325
|
-
reqid = response['Response']['RequestId']
|
326
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
327
|
-
end
|
328
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
329
|
-
raise e
|
330
|
-
rescue StandardError => e
|
331
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
332
|
-
end
|
333
|
-
|
334
230
|
# DescribeBillingData 用于查询实际计费数据明细。
|
335
231
|
|
336
232
|
# @param request: Request instance for DescribeBillingData.
|
@@ -355,32 +251,6 @@ module TencentCloud
|
|
355
251
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
356
252
|
end
|
357
253
|
|
358
|
-
# SCDN平台下线,接口开始预下线处理
|
359
|
-
|
360
|
-
# CC统计数据查询
|
361
|
-
|
362
|
-
# @param request: Request instance for DescribeCcData.
|
363
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeCcDataRequest`
|
364
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeCcDataResponse`
|
365
|
-
def DescribeCcData(request)
|
366
|
-
body = send_request('DescribeCcData', request.serialize)
|
367
|
-
response = JSON.parse(body)
|
368
|
-
if response['Response'].key?('Error') == false
|
369
|
-
model = DescribeCcDataResponse.new
|
370
|
-
model.deserialize(response['Response'])
|
371
|
-
model
|
372
|
-
else
|
373
|
-
code = response['Response']['Error']['Code']
|
374
|
-
message = response['Response']['Error']['Message']
|
375
|
-
reqid = response['Response']['RequestId']
|
376
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
377
|
-
end
|
378
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
379
|
-
raise e
|
380
|
-
rescue StandardError => e
|
381
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
382
|
-
end
|
383
|
-
|
384
254
|
# DescribeCdnData 用于查询 CDN 实时访问监控数据,支持以下指标查询:
|
385
255
|
|
386
256
|
# + 流量(单位为 byte)
|
@@ -515,32 +385,6 @@ module TencentCloud
|
|
515
385
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
516
386
|
end
|
517
387
|
|
518
|
-
# SCDN平台下线,接口开始预下线处理
|
519
|
-
|
520
|
-
# DDoS统计数据查询
|
521
|
-
|
522
|
-
# @param request: Request instance for DescribeDDoSData.
|
523
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeDDoSDataRequest`
|
524
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeDDoSDataResponse`
|
525
|
-
def DescribeDDoSData(request)
|
526
|
-
body = send_request('DescribeDDoSData', request.serialize)
|
527
|
-
response = JSON.parse(body)
|
528
|
-
if response['Response'].key?('Error') == false
|
529
|
-
model = DescribeDDoSDataResponse.new
|
530
|
-
model.deserialize(response['Response'])
|
531
|
-
model
|
532
|
-
else
|
533
|
-
code = response['Response']['Error']['Code']
|
534
|
-
message = response['Response']['Error']['Message']
|
535
|
-
reqid = response['Response']['RequestId']
|
536
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
537
|
-
end
|
538
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
539
|
-
raise e
|
540
|
-
rescue StandardError => e
|
541
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
542
|
-
end
|
543
|
-
|
544
388
|
# 以上诊断报告, 域名版本管理相关接口功能均废弃, 已确认现网0调用, 申请预下线,(预下线不会影响调用, 只会在接口中添加提示信息, 正式下线仍需人工确认)
|
545
389
|
|
546
390
|
# ### <font color=red>**该接口已废弃** </font><br>
|
@@ -665,32 +509,6 @@ module TencentCloud
|
|
665
509
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
666
510
|
end
|
667
511
|
|
668
|
-
# SCDN平台下线,接口开始预下线处理
|
669
|
-
|
670
|
-
# DescribeEventLogData 用于查询事件日志统计曲线
|
671
|
-
|
672
|
-
# @param request: Request instance for DescribeEventLogData.
|
673
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeEventLogDataRequest`
|
674
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeEventLogDataResponse`
|
675
|
-
def DescribeEventLogData(request)
|
676
|
-
body = send_request('DescribeEventLogData', request.serialize)
|
677
|
-
response = JSON.parse(body)
|
678
|
-
if response['Response'].key?('Error') == false
|
679
|
-
model = DescribeEventLogDataResponse.new
|
680
|
-
model.deserialize(response['Response'])
|
681
|
-
model
|
682
|
-
else
|
683
|
-
code = response['Response']['Error']['Code']
|
684
|
-
message = response['Response']['Error']['Message']
|
685
|
-
reqid = response['Response']['RequestId']
|
686
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
687
|
-
end
|
688
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
689
|
-
raise e
|
690
|
-
rescue StandardError => e
|
691
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
692
|
-
end
|
693
|
-
|
694
512
|
# DescribeHttpsPackages 用于查询 CDN HTTPS请求包详情。
|
695
513
|
|
696
514
|
# @param request: Request instance for DescribeHttpsPackages.
|
@@ -994,136 +812,6 @@ module TencentCloud
|
|
994
812
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
995
813
|
end
|
996
814
|
|
997
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
998
|
-
|
999
|
-
# 获取BOT统计数据列表
|
1000
|
-
|
1001
|
-
# @param request: Request instance for DescribeScdnBotData.
|
1002
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeScdnBotDataRequest`
|
1003
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeScdnBotDataResponse`
|
1004
|
-
def DescribeScdnBotData(request)
|
1005
|
-
body = send_request('DescribeScdnBotData', request.serialize)
|
1006
|
-
response = JSON.parse(body)
|
1007
|
-
if response['Response'].key?('Error') == false
|
1008
|
-
model = DescribeScdnBotDataResponse.new
|
1009
|
-
model.deserialize(response['Response'])
|
1010
|
-
model
|
1011
|
-
else
|
1012
|
-
code = response['Response']['Error']['Code']
|
1013
|
-
message = response['Response']['Error']['Message']
|
1014
|
-
reqid = response['Response']['RequestId']
|
1015
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1016
|
-
end
|
1017
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1018
|
-
raise e
|
1019
|
-
rescue StandardError => e
|
1020
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1021
|
-
end
|
1022
|
-
|
1023
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
1024
|
-
|
1025
|
-
# 查询BOT会话记录列表
|
1026
|
-
|
1027
|
-
# @param request: Request instance for DescribeScdnBotRecords.
|
1028
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeScdnBotRecordsRequest`
|
1029
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeScdnBotRecordsResponse`
|
1030
|
-
def DescribeScdnBotRecords(request)
|
1031
|
-
body = send_request('DescribeScdnBotRecords', request.serialize)
|
1032
|
-
response = JSON.parse(body)
|
1033
|
-
if response['Response'].key?('Error') == false
|
1034
|
-
model = DescribeScdnBotRecordsResponse.new
|
1035
|
-
model.deserialize(response['Response'])
|
1036
|
-
model
|
1037
|
-
else
|
1038
|
-
code = response['Response']['Error']['Code']
|
1039
|
-
message = response['Response']['Error']['Message']
|
1040
|
-
reqid = response['Response']['RequestId']
|
1041
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1042
|
-
end
|
1043
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1044
|
-
raise e
|
1045
|
-
rescue StandardError => e
|
1046
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1047
|
-
end
|
1048
|
-
|
1049
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
1050
|
-
|
1051
|
-
# DescribeScdnConfig 用于查询指定 SCDN 加速域名的安全相关配置
|
1052
|
-
|
1053
|
-
# @param request: Request instance for DescribeScdnConfig.
|
1054
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeScdnConfigRequest`
|
1055
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeScdnConfigResponse`
|
1056
|
-
def DescribeScdnConfig(request)
|
1057
|
-
body = send_request('DescribeScdnConfig', request.serialize)
|
1058
|
-
response = JSON.parse(body)
|
1059
|
-
if response['Response'].key?('Error') == false
|
1060
|
-
model = DescribeScdnConfigResponse.new
|
1061
|
-
model.deserialize(response['Response'])
|
1062
|
-
model
|
1063
|
-
else
|
1064
|
-
code = response['Response']['Error']['Code']
|
1065
|
-
message = response['Response']['Error']['Message']
|
1066
|
-
reqid = response['Response']['RequestId']
|
1067
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1068
|
-
end
|
1069
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1070
|
-
raise e
|
1071
|
-
rescue StandardError => e
|
1072
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1073
|
-
end
|
1074
|
-
|
1075
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
1076
|
-
|
1077
|
-
# 查询在SCDN IP安全策略
|
1078
|
-
|
1079
|
-
# @param request: Request instance for DescribeScdnIpStrategy.
|
1080
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeScdnIpStrategyRequest`
|
1081
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeScdnIpStrategyResponse`
|
1082
|
-
def DescribeScdnIpStrategy(request)
|
1083
|
-
body = send_request('DescribeScdnIpStrategy', request.serialize)
|
1084
|
-
response = JSON.parse(body)
|
1085
|
-
if response['Response'].key?('Error') == false
|
1086
|
-
model = DescribeScdnIpStrategyResponse.new
|
1087
|
-
model.deserialize(response['Response'])
|
1088
|
-
model
|
1089
|
-
else
|
1090
|
-
code = response['Response']['Error']['Code']
|
1091
|
-
message = response['Response']['Error']['Message']
|
1092
|
-
reqid = response['Response']['RequestId']
|
1093
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1094
|
-
end
|
1095
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1096
|
-
raise e
|
1097
|
-
rescue StandardError => e
|
1098
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1099
|
-
end
|
1100
|
-
|
1101
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
1102
|
-
|
1103
|
-
# 获取SCDN的Top数据
|
1104
|
-
|
1105
|
-
# @param request: Request instance for DescribeScdnTopData.
|
1106
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeScdnTopDataRequest`
|
1107
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeScdnTopDataResponse`
|
1108
|
-
def DescribeScdnTopData(request)
|
1109
|
-
body = send_request('DescribeScdnTopData', request.serialize)
|
1110
|
-
response = JSON.parse(body)
|
1111
|
-
if response['Response'].key?('Error') == false
|
1112
|
-
model = DescribeScdnTopDataResponse.new
|
1113
|
-
model.deserialize(response['Response'])
|
1114
|
-
model
|
1115
|
-
else
|
1116
|
-
code = response['Response']['Error']['Code']
|
1117
|
-
message = response['Response']['Error']['Message']
|
1118
|
-
reqid = response['Response']['RequestId']
|
1119
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1120
|
-
end
|
1121
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1122
|
-
raise e
|
1123
|
-
rescue StandardError => e
|
1124
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1125
|
-
end
|
1126
|
-
|
1127
815
|
# DescribeTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:
|
1128
816
|
|
1129
817
|
# + 依据总流量、总请求数对访问 IP 排序,从大至小返回 TOP 100 IP
|
@@ -1206,32 +894,6 @@ module TencentCloud
|
|
1206
894
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1207
895
|
end
|
1208
896
|
|
1209
|
-
# SCDN平台下线,接口开始预下线处理
|
1210
|
-
|
1211
|
-
# Waf统计数据查询
|
1212
|
-
|
1213
|
-
# @param request: Request instance for DescribeWafData.
|
1214
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeWafDataRequest`
|
1215
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeWafDataResponse`
|
1216
|
-
def DescribeWafData(request)
|
1217
|
-
body = send_request('DescribeWafData', request.serialize)
|
1218
|
-
response = JSON.parse(body)
|
1219
|
-
if response['Response'].key?('Error') == false
|
1220
|
-
model = DescribeWafDataResponse.new
|
1221
|
-
model.deserialize(response['Response'])
|
1222
|
-
model
|
1223
|
-
else
|
1224
|
-
code = response['Response']['Error']['Code']
|
1225
|
-
message = response['Response']['Error']['Message']
|
1226
|
-
reqid = response['Response']['RequestId']
|
1227
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1228
|
-
end
|
1229
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1230
|
-
raise e
|
1231
|
-
rescue StandardError => e
|
1232
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1233
|
-
end
|
1234
|
-
|
1235
897
|
# ### <font color=red>**该接口已废弃** </font><br>
|
1236
898
|
# DisableCaches 用于禁用 CDN 上指定 URL 的访问,禁用完成后,中国境内访问会直接返回 403。
|
1237
899
|
|
@@ -1456,136 +1118,6 @@ module TencentCloud
|
|
1456
1118
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1457
1119
|
end
|
1458
1120
|
|
1459
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
1460
|
-
|
1461
|
-
# ListScdnDomains 用于查询 SCDN 安全加速域名列表,及域名基本配置信息
|
1462
|
-
|
1463
|
-
# @param request: Request instance for ListScdnDomains.
|
1464
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::ListScdnDomainsRequest`
|
1465
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListScdnDomainsResponse`
|
1466
|
-
def ListScdnDomains(request)
|
1467
|
-
body = send_request('ListScdnDomains', request.serialize)
|
1468
|
-
response = JSON.parse(body)
|
1469
|
-
if response['Response'].key?('Error') == false
|
1470
|
-
model = ListScdnDomainsResponse.new
|
1471
|
-
model.deserialize(response['Response'])
|
1472
|
-
model
|
1473
|
-
else
|
1474
|
-
code = response['Response']['Error']['Code']
|
1475
|
-
message = response['Response']['Error']['Message']
|
1476
|
-
reqid = response['Response']['RequestId']
|
1477
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1478
|
-
end
|
1479
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1480
|
-
raise e
|
1481
|
-
rescue StandardError => e
|
1482
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1483
|
-
end
|
1484
|
-
|
1485
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
1486
|
-
|
1487
|
-
# ListScdnLogTasks 用于查询SCDN日志下载任务列表,以及展示下载任务基本信息
|
1488
|
-
|
1489
|
-
# @param request: Request instance for ListScdnLogTasks.
|
1490
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::ListScdnLogTasksRequest`
|
1491
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListScdnLogTasksResponse`
|
1492
|
-
def ListScdnLogTasks(request)
|
1493
|
-
body = send_request('ListScdnLogTasks', request.serialize)
|
1494
|
-
response = JSON.parse(body)
|
1495
|
-
if response['Response'].key?('Error') == false
|
1496
|
-
model = ListScdnLogTasksResponse.new
|
1497
|
-
model.deserialize(response['Response'])
|
1498
|
-
model
|
1499
|
-
else
|
1500
|
-
code = response['Response']['Error']['Code']
|
1501
|
-
message = response['Response']['Error']['Message']
|
1502
|
-
reqid = response['Response']['RequestId']
|
1503
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1504
|
-
end
|
1505
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1506
|
-
raise e
|
1507
|
-
rescue StandardError => e
|
1508
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1509
|
-
end
|
1510
|
-
|
1511
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
1512
|
-
|
1513
|
-
# 获取Bot攻击的Top数据列表
|
1514
|
-
|
1515
|
-
# @param request: Request instance for ListScdnTopBotData.
|
1516
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::ListScdnTopBotDataRequest`
|
1517
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListScdnTopBotDataResponse`
|
1518
|
-
def ListScdnTopBotData(request)
|
1519
|
-
body = send_request('ListScdnTopBotData', request.serialize)
|
1520
|
-
response = JSON.parse(body)
|
1521
|
-
if response['Response'].key?('Error') == false
|
1522
|
-
model = ListScdnTopBotDataResponse.new
|
1523
|
-
model.deserialize(response['Response'])
|
1524
|
-
model
|
1525
|
-
else
|
1526
|
-
code = response['Response']['Error']['Code']
|
1527
|
-
message = response['Response']['Error']['Message']
|
1528
|
-
reqid = response['Response']['RequestId']
|
1529
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1530
|
-
end
|
1531
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1532
|
-
raise e
|
1533
|
-
rescue StandardError => e
|
1534
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1535
|
-
end
|
1536
|
-
|
1537
|
-
# SCDN平台下线,接口开始预下线处理
|
1538
|
-
|
1539
|
-
# 获取Bot攻击的Top信息
|
1540
|
-
|
1541
|
-
# @param request: Request instance for ListTopBotData.
|
1542
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::ListTopBotDataRequest`
|
1543
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListTopBotDataResponse`
|
1544
|
-
def ListTopBotData(request)
|
1545
|
-
body = send_request('ListTopBotData', request.serialize)
|
1546
|
-
response = JSON.parse(body)
|
1547
|
-
if response['Response'].key?('Error') == false
|
1548
|
-
model = ListTopBotDataResponse.new
|
1549
|
-
model.deserialize(response['Response'])
|
1550
|
-
model
|
1551
|
-
else
|
1552
|
-
code = response['Response']['Error']['Code']
|
1553
|
-
message = response['Response']['Error']['Message']
|
1554
|
-
reqid = response['Response']['RequestId']
|
1555
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1556
|
-
end
|
1557
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1558
|
-
raise e
|
1559
|
-
rescue StandardError => e
|
1560
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1561
|
-
end
|
1562
|
-
|
1563
|
-
# SCDN平台下线,接口开始预下线处理
|
1564
|
-
|
1565
|
-
# 获取CC攻击Top数据
|
1566
|
-
|
1567
|
-
# @param request: Request instance for ListTopCcData.
|
1568
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::ListTopCcDataRequest`
|
1569
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListTopCcDataResponse`
|
1570
|
-
def ListTopCcData(request)
|
1571
|
-
body = send_request('ListTopCcData', request.serialize)
|
1572
|
-
response = JSON.parse(body)
|
1573
|
-
if response['Response'].key?('Error') == false
|
1574
|
-
model = ListTopCcDataResponse.new
|
1575
|
-
model.deserialize(response['Response'])
|
1576
|
-
model
|
1577
|
-
else
|
1578
|
-
code = response['Response']['Error']['Code']
|
1579
|
-
message = response['Response']['Error']['Message']
|
1580
|
-
reqid = response['Response']['RequestId']
|
1581
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1582
|
-
end
|
1583
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1584
|
-
raise e
|
1585
|
-
rescue StandardError => e
|
1586
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1587
|
-
end
|
1588
|
-
|
1589
1121
|
# 通过CLS日志计算Top信息。支持近7天的日志数据。
|
1590
1122
|
|
1591
1123
|
# @param request: Request instance for ListTopClsLogData.
|
@@ -1610,32 +1142,6 @@ module TencentCloud
|
|
1610
1142
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1611
1143
|
end
|
1612
1144
|
|
1613
|
-
# SCDN平台下线,接口开始预下线处理
|
1614
|
-
|
1615
|
-
# 获取DDoS攻击Top数据
|
1616
|
-
|
1617
|
-
# @param request: Request instance for ListTopDDoSData.
|
1618
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::ListTopDDoSDataRequest`
|
1619
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListTopDDoSDataResponse`
|
1620
|
-
def ListTopDDoSData(request)
|
1621
|
-
body = send_request('ListTopDDoSData', request.serialize)
|
1622
|
-
response = JSON.parse(body)
|
1623
|
-
if response['Response'].key?('Error') == false
|
1624
|
-
model = ListTopDDoSDataResponse.new
|
1625
|
-
model.deserialize(response['Response'])
|
1626
|
-
model
|
1627
|
-
else
|
1628
|
-
code = response['Response']['Error']['Code']
|
1629
|
-
message = response['Response']['Error']['Message']
|
1630
|
-
reqid = response['Response']['RequestId']
|
1631
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1632
|
-
end
|
1633
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1634
|
-
raise e
|
1635
|
-
rescue StandardError => e
|
1636
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1637
|
-
end
|
1638
|
-
|
1639
1145
|
# ListTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:
|
1640
1146
|
|
1641
1147
|
# + 依据总流量、总请求数对访问 URL 排序,从大至小返回 TOP 1000 URL
|
@@ -1668,32 +1174,6 @@ module TencentCloud
|
|
1668
1174
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1669
1175
|
end
|
1670
1176
|
|
1671
|
-
# SCDN平台下线,接口开始预下线处理
|
1672
|
-
|
1673
|
-
# 获取Waf攻击Top数据
|
1674
|
-
|
1675
|
-
# @param request: Request instance for ListTopWafData.
|
1676
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::ListTopWafDataRequest`
|
1677
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListTopWafDataResponse`
|
1678
|
-
def ListTopWafData(request)
|
1679
|
-
body = send_request('ListTopWafData', request.serialize)
|
1680
|
-
response = JSON.parse(body)
|
1681
|
-
if response['Response'].key?('Error') == false
|
1682
|
-
model = ListTopWafDataResponse.new
|
1683
|
-
model.deserialize(response['Response'])
|
1684
|
-
model
|
1685
|
-
else
|
1686
|
-
code = response['Response']['Error']['Code']
|
1687
|
-
message = response['Response']['Error']['Message']
|
1688
|
-
reqid = response['Response']['RequestId']
|
1689
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1690
|
-
end
|
1691
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1692
|
-
raise e
|
1693
|
-
rescue StandardError => e
|
1694
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1695
|
-
end
|
1696
|
-
|
1697
1177
|
# ManageClsTopicDomains 用于管理某日志主题下绑定的域名列表。
|
1698
1178
|
|
1699
1179
|
# @param request: Request instance for ManageClsTopicDomains.
|
@@ -1893,32 +1373,6 @@ module TencentCloud
|
|
1893
1373
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1894
1374
|
end
|
1895
1375
|
|
1896
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
1897
|
-
|
1898
|
-
# StartScdnDomain 用于开启域名的安全防护配置
|
1899
|
-
|
1900
|
-
# @param request: Request instance for StartScdnDomain.
|
1901
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::StartScdnDomainRequest`
|
1902
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::StartScdnDomainResponse`
|
1903
|
-
def StartScdnDomain(request)
|
1904
|
-
body = send_request('StartScdnDomain', request.serialize)
|
1905
|
-
response = JSON.parse(body)
|
1906
|
-
if response['Response'].key?('Error') == false
|
1907
|
-
model = StartScdnDomainResponse.new
|
1908
|
-
model.deserialize(response['Response'])
|
1909
|
-
model
|
1910
|
-
else
|
1911
|
-
code = response['Response']['Error']['Code']
|
1912
|
-
message = response['Response']['Error']['Message']
|
1913
|
-
reqid = response['Response']['RequestId']
|
1914
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1915
|
-
end
|
1916
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1917
|
-
raise e
|
1918
|
-
rescue StandardError => e
|
1919
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1920
|
-
end
|
1921
|
-
|
1922
1376
|
# StopCdnDomain 用于停止域名的加速服务。
|
1923
1377
|
# 注意:停止加速服务后,访问至加速节点的请求将会直接返回 404。为避免对您的业务造成影响,请在停止加速服务前将解析切走。
|
1924
1378
|
|
@@ -1944,32 +1398,6 @@ module TencentCloud
|
|
1944
1398
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1945
1399
|
end
|
1946
1400
|
|
1947
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
1948
|
-
|
1949
|
-
# StopScdnDomain 用于关闭域名的安全防护配置
|
1950
|
-
|
1951
|
-
# @param request: Request instance for StopScdnDomain.
|
1952
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::StopScdnDomainRequest`
|
1953
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::StopScdnDomainResponse`
|
1954
|
-
def StopScdnDomain(request)
|
1955
|
-
body = send_request('StopScdnDomain', request.serialize)
|
1956
|
-
response = JSON.parse(body)
|
1957
|
-
if response['Response'].key?('Error') == false
|
1958
|
-
model = StopScdnDomainResponse.new
|
1959
|
-
model.deserialize(response['Response'])
|
1960
|
-
model
|
1961
|
-
else
|
1962
|
-
code = response['Response']['Error']['Code']
|
1963
|
-
message = response['Response']['Error']['Message']
|
1964
|
-
reqid = response['Response']['RequestId']
|
1965
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1966
|
-
end
|
1967
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1968
|
-
raise e
|
1969
|
-
rescue StandardError => e
|
1970
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1971
|
-
end
|
1972
|
-
|
1973
1401
|
# UpdateDomainConfig 用于修改内容分发网络加速域名配置信息。
|
1974
1402
|
# 注意:如果需要更新复杂类型的配置项,必须传递整个对象的所有属性,未传递的属性将使用默认值,建议通过查询接口获取配置属性后,直接修改后传递给本接口;如果仅修改单独配置项只传对应配置参数即可。
|
1975
1403
|
# 操作审计相关:接口的入参可能包含密钥等敏感信息,所以此接口的入参不会上报到操作审计。
|
@@ -2044,32 +1472,6 @@ module TencentCloud
|
|
2044
1472
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2045
1473
|
end
|
2046
1474
|
|
2047
|
-
# SCDN平台已经正式下线,接口开始预下线处理
|
2048
|
-
|
2049
|
-
# UpdateScdnDomain 用于修改 SCDN 加速域名安全相关配置
|
2050
|
-
|
2051
|
-
# @param request: Request instance for UpdateScdnDomain.
|
2052
|
-
# @type request: :class:`Tencentcloud::cdn::V20180606::UpdateScdnDomainRequest`
|
2053
|
-
# @rtype: :class:`Tencentcloud::cdn::V20180606::UpdateScdnDomainResponse`
|
2054
|
-
def UpdateScdnDomain(request)
|
2055
|
-
body = send_request('UpdateScdnDomain', request.serialize)
|
2056
|
-
response = JSON.parse(body)
|
2057
|
-
if response['Response'].key?('Error') == false
|
2058
|
-
model = UpdateScdnDomainResponse.new
|
2059
|
-
model.deserialize(response['Response'])
|
2060
|
-
model
|
2061
|
-
else
|
2062
|
-
code = response['Response']['Error']['Code']
|
2063
|
-
message = response['Response']['Error']['Message']
|
2064
|
-
reqid = response['Response']['RequestId']
|
2065
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2066
|
-
end
|
2067
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2068
|
-
raise e
|
2069
|
-
rescue StandardError => e
|
2070
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2071
|
-
end
|
2072
|
-
|
2073
1475
|
# VerifyDomainRecord 用于验证域名解析值。
|
2074
1476
|
# 验证域名解析记录值前,您需要通过 [CreateVerifyRecord](https://cloud.tencent.com/document/product/228/48118) 生成校验解析值,验证通过后,24小时有效。
|
2075
1477
|
# 具体流程可参考:[使用API接口进行域名归属校验](https://cloud.tencent.com/document/product/228/61702#.E6.96.B9.E6.B3.95.E4.B8.89.EF.BC.9Aapi-.E6.8E.A5.E5.8F.A3.E6.93.8D.E4.BD.9C)
|