tencentcloud-sdk-cdn 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-cdn.rb +11 -0
- data/lib/v20180606/client.rb +1936 -0
- data/lib/v20180606/models.rb +12816 -0
- metadata +66 -0
@@ -0,0 +1,1936 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
require 'json'
|
18
|
+
|
19
|
+
module TencentCloud
|
20
|
+
module Cdn
|
21
|
+
module V20180606
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2018-06-06'
|
26
|
+
api_endpoint = 'cdn.tencentcloudapi.com'
|
27
|
+
sdk_version = 'CDN_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# AddCdnDomain 用于新增内容分发网络加速域名。
|
33
|
+
|
34
|
+
# @param request: Request instance for AddCdnDomain.
|
35
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::AddCdnDomainRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::AddCdnDomainResponse`
|
37
|
+
def AddCdnDomain(request)
|
38
|
+
body = send_request('AddCdnDomain', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AddCdnDomainResponse.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
|
+
# CreateClsLogTopic 用于创建日志主题。注意:一个日志集下至多可创建10个日志主题。
|
57
|
+
|
58
|
+
# @param request: Request instance for CreateClsLogTopic.
|
59
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::CreateClsLogTopicRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::CreateClsLogTopicResponse`
|
61
|
+
def CreateClsLogTopic(request)
|
62
|
+
body = send_request('CreateClsLogTopic', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CreateClsLogTopicResponse.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
|
+
# CreateDiagnoseUrl 用于添加域名诊断任务URL
|
81
|
+
|
82
|
+
# @param request: Request instance for CreateDiagnoseUrl.
|
83
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::CreateDiagnoseUrlRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::CreateDiagnoseUrlResponse`
|
85
|
+
def CreateDiagnoseUrl(request)
|
86
|
+
body = send_request('CreateDiagnoseUrl', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreateDiagnoseUrlResponse.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 CreateEdgePackTask.
|
107
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::CreateEdgePackTaskRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::CreateEdgePackTaskResponse`
|
109
|
+
def CreateEdgePackTask(request)
|
110
|
+
body = send_request('CreateEdgePackTask', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = CreateEdgePackTaskResponse.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
|
+
# CreateScdnDomain 用于创建 SCDN 加速域名
|
129
|
+
|
130
|
+
# @param request: Request instance for CreateScdnDomain.
|
131
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::CreateScdnDomainRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::CreateScdnDomainResponse`
|
133
|
+
def CreateScdnDomain(request)
|
134
|
+
body = send_request('CreateScdnDomain', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = CreateScdnDomainResponse.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
|
+
# CreateScdnFailedLogTask 用于重试创建失败的事件日志任务
|
153
|
+
|
154
|
+
# @param request: Request instance for CreateScdnFailedLogTask.
|
155
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::CreateScdnFailedLogTaskRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::CreateScdnFailedLogTaskResponse`
|
157
|
+
def CreateScdnFailedLogTask(request)
|
158
|
+
body = send_request('CreateScdnFailedLogTask', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CreateScdnFailedLogTaskResponse.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
|
+
# CreateScdnLogTask 用于创建事件日志任务
|
177
|
+
|
178
|
+
# @param request: Request instance for CreateScdnLogTask.
|
179
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::CreateScdnLogTaskRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::CreateScdnLogTaskResponse`
|
181
|
+
def CreateScdnLogTask(request)
|
182
|
+
body = send_request('CreateScdnLogTask', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = CreateScdnLogTaskResponse.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 CreateVerifyRecord.
|
203
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::CreateVerifyRecordRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::CreateVerifyRecordResponse`
|
205
|
+
def CreateVerifyRecord(request)
|
206
|
+
body = send_request('CreateVerifyRecord', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = CreateVerifyRecordResponse.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
|
+
# DeleteCdnDomain 用于删除指定加速域名
|
225
|
+
|
226
|
+
# @param request: Request instance for DeleteCdnDomain.
|
227
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DeleteCdnDomainRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DeleteCdnDomainResponse`
|
229
|
+
def DeleteCdnDomain(request)
|
230
|
+
body = send_request('DeleteCdnDomain', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = DeleteCdnDomainResponse.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
|
+
# DeleteClsLogTopic 用于删除日志主题。注意:删除后,所有该日志主题下绑定域名的日志将不再继续投递至该主题,已经投递的日志将会被全部清空。生效时间约为 5~15 分钟。
|
249
|
+
|
250
|
+
# @param request: Request instance for DeleteClsLogTopic.
|
251
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DeleteClsLogTopicRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DeleteClsLogTopicResponse`
|
253
|
+
def DeleteClsLogTopic(request)
|
254
|
+
body = send_request('DeleteClsLogTopic', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = DeleteClsLogTopicResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
272
|
+
# 删除SCDN域名
|
273
|
+
|
274
|
+
# @param request: Request instance for DeleteScdnDomain.
|
275
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DeleteScdnDomainRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DeleteScdnDomainResponse`
|
277
|
+
def DeleteScdnDomain(request)
|
278
|
+
body = send_request('DeleteScdnDomain', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = DeleteScdnDomainResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
296
|
+
# DescribeBillingData 用于查询实际计费数据明细。
|
297
|
+
|
298
|
+
# @param request: Request instance for DescribeBillingData.
|
299
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeBillingDataRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeBillingDataResponse`
|
301
|
+
def DescribeBillingData(request)
|
302
|
+
body = send_request('DescribeBillingData', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = DescribeBillingDataResponse.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
|
+
# CC统计数据查询
|
321
|
+
|
322
|
+
# @param request: Request instance for DescribeCcData.
|
323
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeCcDataRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeCcDataResponse`
|
325
|
+
def DescribeCcData(request)
|
326
|
+
body = send_request('DescribeCcData', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = DescribeCcDataResponse.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
|
+
# DescribeCdnData 用于查询 CDN 实时访问监控数据,支持以下指标查询:
|
345
|
+
|
346
|
+
# + 流量(单位为 byte)
|
347
|
+
# + 带宽(单位为 bps)
|
348
|
+
# + 请求数(单位为 次)
|
349
|
+
# + 命中请求数(单位为 次)
|
350
|
+
# + 请求命中率(单位为 %)
|
351
|
+
# + 命中流量(单位为 byte)
|
352
|
+
# + 流量命中率(单位为 %)
|
353
|
+
# + 状态码 2xx 汇总及各 2 开头状态码明细(单位为 个)
|
354
|
+
# + 状态码 3xx 汇总及各 3 开头状态码明细(单位为 个)
|
355
|
+
# + 状态码 4xx 汇总及各 4 开头状态码明细(单位为 个)
|
356
|
+
# + 状态码 5xx 汇总及各 5 开头状态码明细(单位为 个)
|
357
|
+
|
358
|
+
# @param request: Request instance for DescribeCdnData.
|
359
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeCdnDataRequest`
|
360
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeCdnDataResponse`
|
361
|
+
def DescribeCdnData(request)
|
362
|
+
body = send_request('DescribeCdnData', request.serialize)
|
363
|
+
response = JSON.parse(body)
|
364
|
+
if response['Response'].key?('Error') == false
|
365
|
+
model = DescribeCdnDataResponse.new
|
366
|
+
model.deserialize(response['Response'])
|
367
|
+
model
|
368
|
+
else
|
369
|
+
code = response['Response']['Error']['Code']
|
370
|
+
message = response['Response']['Error']['Message']
|
371
|
+
reqid = response['Response']['RequestId']
|
372
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
373
|
+
end
|
374
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
375
|
+
raise e
|
376
|
+
rescue StandardError => e
|
377
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
378
|
+
end
|
379
|
+
|
380
|
+
# DescribeCdnDomainLogs 用于查询访问日志下载地址,仅支持 30 天以内的境内、境外访问日志下载链接查询。
|
381
|
+
|
382
|
+
# @param request: Request instance for DescribeCdnDomainLogs.
|
383
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeCdnDomainLogsRequest`
|
384
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeCdnDomainLogsResponse`
|
385
|
+
def DescribeCdnDomainLogs(request)
|
386
|
+
body = send_request('DescribeCdnDomainLogs', request.serialize)
|
387
|
+
response = JSON.parse(body)
|
388
|
+
if response['Response'].key?('Error') == false
|
389
|
+
model = DescribeCdnDomainLogsResponse.new
|
390
|
+
model.deserialize(response['Response'])
|
391
|
+
model
|
392
|
+
else
|
393
|
+
code = response['Response']['Error']['Code']
|
394
|
+
message = response['Response']['Error']['Message']
|
395
|
+
reqid = response['Response']['RequestId']
|
396
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
397
|
+
end
|
398
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
399
|
+
raise e
|
400
|
+
rescue StandardError => e
|
401
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
402
|
+
end
|
403
|
+
|
404
|
+
# DescribeCdnIp 用于查询 CDN IP 归属。
|
405
|
+
# (注意:此接口请求频率限制以 CDN 侧限制为准:200次/10分钟)
|
406
|
+
|
407
|
+
# @param request: Request instance for DescribeCdnIp.
|
408
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeCdnIpRequest`
|
409
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeCdnIpResponse`
|
410
|
+
def DescribeCdnIp(request)
|
411
|
+
body = send_request('DescribeCdnIp', request.serialize)
|
412
|
+
response = JSON.parse(body)
|
413
|
+
if response['Response'].key?('Error') == false
|
414
|
+
model = DescribeCdnIpResponse.new
|
415
|
+
model.deserialize(response['Response'])
|
416
|
+
model
|
417
|
+
else
|
418
|
+
code = response['Response']['Error']['Code']
|
419
|
+
message = response['Response']['Error']['Message']
|
420
|
+
reqid = response['Response']['RequestId']
|
421
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
422
|
+
end
|
423
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
424
|
+
raise e
|
425
|
+
rescue StandardError => e
|
426
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
427
|
+
end
|
428
|
+
|
429
|
+
# 本接口(DescribeCdnOriginIp)用于查询 CDN 回源节点的IP信息。(注:此接口即将下线,不再进行维护,请通过DescribeIpStatus 接口进行查询)
|
430
|
+
|
431
|
+
# @param request: Request instance for DescribeCdnOriginIp.
|
432
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeCdnOriginIpRequest`
|
433
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeCdnOriginIpResponse`
|
434
|
+
def DescribeCdnOriginIp(request)
|
435
|
+
body = send_request('DescribeCdnOriginIp', request.serialize)
|
436
|
+
response = JSON.parse(body)
|
437
|
+
if response['Response'].key?('Error') == false
|
438
|
+
model = DescribeCdnOriginIpResponse.new
|
439
|
+
model.deserialize(response['Response'])
|
440
|
+
model
|
441
|
+
else
|
442
|
+
code = response['Response']['Error']['Code']
|
443
|
+
message = response['Response']['Error']['Message']
|
444
|
+
reqid = response['Response']['RequestId']
|
445
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
446
|
+
end
|
447
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
448
|
+
raise e
|
449
|
+
rescue StandardError => e
|
450
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
451
|
+
end
|
452
|
+
|
453
|
+
# DescribeCertDomains 用于校验SSL证书并提取证书中包含的域名。
|
454
|
+
|
455
|
+
# @param request: Request instance for DescribeCertDomains.
|
456
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeCertDomainsRequest`
|
457
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeCertDomainsResponse`
|
458
|
+
def DescribeCertDomains(request)
|
459
|
+
body = send_request('DescribeCertDomains', request.serialize)
|
460
|
+
response = JSON.parse(body)
|
461
|
+
if response['Response'].key?('Error') == false
|
462
|
+
model = DescribeCertDomainsResponse.new
|
463
|
+
model.deserialize(response['Response'])
|
464
|
+
model
|
465
|
+
else
|
466
|
+
code = response['Response']['Error']['Code']
|
467
|
+
message = response['Response']['Error']['Message']
|
468
|
+
reqid = response['Response']['RequestId']
|
469
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
470
|
+
end
|
471
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
472
|
+
raise e
|
473
|
+
rescue StandardError => e
|
474
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
475
|
+
end
|
476
|
+
|
477
|
+
# DDoS统计数据查询
|
478
|
+
|
479
|
+
# @param request: Request instance for DescribeDDoSData.
|
480
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeDDoSDataRequest`
|
481
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeDDoSDataResponse`
|
482
|
+
def DescribeDDoSData(request)
|
483
|
+
body = send_request('DescribeDDoSData', request.serialize)
|
484
|
+
response = JSON.parse(body)
|
485
|
+
if response['Response'].key?('Error') == false
|
486
|
+
model = DescribeDDoSDataResponse.new
|
487
|
+
model.deserialize(response['Response'])
|
488
|
+
model
|
489
|
+
else
|
490
|
+
code = response['Response']['Error']['Code']
|
491
|
+
message = response['Response']['Error']['Message']
|
492
|
+
reqid = response['Response']['RequestId']
|
493
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
494
|
+
end
|
495
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
496
|
+
raise e
|
497
|
+
rescue StandardError => e
|
498
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
499
|
+
end
|
500
|
+
|
501
|
+
# DescribeDiagnoseReport 用于获取指定报告id的内容
|
502
|
+
|
503
|
+
# @param request: Request instance for DescribeDiagnoseReport.
|
504
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeDiagnoseReportRequest`
|
505
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeDiagnoseReportResponse`
|
506
|
+
def DescribeDiagnoseReport(request)
|
507
|
+
body = send_request('DescribeDiagnoseReport', request.serialize)
|
508
|
+
response = JSON.parse(body)
|
509
|
+
if response['Response'].key?('Error') == false
|
510
|
+
model = DescribeDiagnoseReportResponse.new
|
511
|
+
model.deserialize(response['Response'])
|
512
|
+
model
|
513
|
+
else
|
514
|
+
code = response['Response']['Error']['Code']
|
515
|
+
message = response['Response']['Error']['Message']
|
516
|
+
reqid = response['Response']['RequestId']
|
517
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
518
|
+
end
|
519
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
520
|
+
raise e
|
521
|
+
rescue StandardError => e
|
522
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
523
|
+
end
|
524
|
+
|
525
|
+
# 查询指定域名的区域、运营商明细数据
|
526
|
+
# 注意事项:接口尚未全量开放,未在内测名单中的账号不支持调用
|
527
|
+
|
528
|
+
# @param request: Request instance for DescribeDistrictIspData.
|
529
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeDistrictIspDataRequest`
|
530
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeDistrictIspDataResponse`
|
531
|
+
def DescribeDistrictIspData(request)
|
532
|
+
body = send_request('DescribeDistrictIspData', request.serialize)
|
533
|
+
response = JSON.parse(body)
|
534
|
+
if response['Response'].key?('Error') == false
|
535
|
+
model = DescribeDistrictIspDataResponse.new
|
536
|
+
model.deserialize(response['Response'])
|
537
|
+
model
|
538
|
+
else
|
539
|
+
code = response['Response']['Error']['Code']
|
540
|
+
message = response['Response']['Error']['Message']
|
541
|
+
reqid = response['Response']['RequestId']
|
542
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
543
|
+
end
|
544
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
545
|
+
raise e
|
546
|
+
rescue StandardError => e
|
547
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
548
|
+
end
|
549
|
+
|
550
|
+
# DescribeDomains 用于查询内容分发网络加速域名(含境内、境外)基本配置信息,包括项目ID、服务状态,业务类型、创建时间、更新时间等信息。
|
551
|
+
|
552
|
+
# @param request: Request instance for DescribeDomains.
|
553
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeDomainsRequest`
|
554
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeDomainsResponse`
|
555
|
+
def DescribeDomains(request)
|
556
|
+
body = send_request('DescribeDomains', request.serialize)
|
557
|
+
response = JSON.parse(body)
|
558
|
+
if response['Response'].key?('Error') == false
|
559
|
+
model = DescribeDomainsResponse.new
|
560
|
+
model.deserialize(response['Response'])
|
561
|
+
model
|
562
|
+
else
|
563
|
+
code = response['Response']['Error']['Code']
|
564
|
+
message = response['Response']['Error']['Message']
|
565
|
+
reqid = response['Response']['RequestId']
|
566
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
567
|
+
end
|
568
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
569
|
+
raise e
|
570
|
+
rescue StandardError => e
|
571
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
572
|
+
end
|
573
|
+
|
574
|
+
# DescribeDomainsConfig 用于查询内容分发网络加速域名(含境内、境外)的所有配置信息。
|
575
|
+
|
576
|
+
# @param request: Request instance for DescribeDomainsConfig.
|
577
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeDomainsConfigRequest`
|
578
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeDomainsConfigResponse`
|
579
|
+
def DescribeDomainsConfig(request)
|
580
|
+
body = send_request('DescribeDomainsConfig', request.serialize)
|
581
|
+
response = JSON.parse(body)
|
582
|
+
if response['Response'].key?('Error') == false
|
583
|
+
model = DescribeDomainsConfigResponse.new
|
584
|
+
model.deserialize(response['Response'])
|
585
|
+
model
|
586
|
+
else
|
587
|
+
code = response['Response']['Error']['Code']
|
588
|
+
message = response['Response']['Error']['Message']
|
589
|
+
reqid = response['Response']['RequestId']
|
590
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
591
|
+
end
|
592
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
593
|
+
raise e
|
594
|
+
rescue StandardError => e
|
595
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
596
|
+
end
|
597
|
+
|
598
|
+
# DescribeEventLogData 用于查询事件日志统计曲线
|
599
|
+
|
600
|
+
# @param request: Request instance for DescribeEventLogData.
|
601
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeEventLogDataRequest`
|
602
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeEventLogDataResponse`
|
603
|
+
def DescribeEventLogData(request)
|
604
|
+
body = send_request('DescribeEventLogData', request.serialize)
|
605
|
+
response = JSON.parse(body)
|
606
|
+
if response['Response'].key?('Error') == false
|
607
|
+
model = DescribeEventLogDataResponse.new
|
608
|
+
model.deserialize(response['Response'])
|
609
|
+
model
|
610
|
+
else
|
611
|
+
code = response['Response']['Error']['Code']
|
612
|
+
message = response['Response']['Error']['Message']
|
613
|
+
reqid = response['Response']['RequestId']
|
614
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
615
|
+
end
|
616
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
617
|
+
raise e
|
618
|
+
rescue StandardError => e
|
619
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
620
|
+
end
|
621
|
+
|
622
|
+
# DescribeImageConfig 用于获取域名图片优化的当前配置,支持Webp、TPG 和 Guetzli。
|
623
|
+
|
624
|
+
# @param request: Request instance for DescribeImageConfig.
|
625
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeImageConfigRequest`
|
626
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeImageConfigResponse`
|
627
|
+
def DescribeImageConfig(request)
|
628
|
+
body = send_request('DescribeImageConfig', request.serialize)
|
629
|
+
response = JSON.parse(body)
|
630
|
+
if response['Response'].key?('Error') == false
|
631
|
+
model = DescribeImageConfigResponse.new
|
632
|
+
model.deserialize(response['Response'])
|
633
|
+
model
|
634
|
+
else
|
635
|
+
code = response['Response']['Error']['Code']
|
636
|
+
message = response['Response']['Error']['Message']
|
637
|
+
reqid = response['Response']['RequestId']
|
638
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
639
|
+
end
|
640
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
641
|
+
raise e
|
642
|
+
rescue StandardError => e
|
643
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
644
|
+
end
|
645
|
+
|
646
|
+
# DescribeIpStatus 用于查询域名所在加速平台的边缘节点、回源节点明细。注意事项:边缘节点(edge)尚未全量开放,未在内测名单中的账号不支持调用
|
647
|
+
|
648
|
+
# @param request: Request instance for DescribeIpStatus.
|
649
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeIpStatusRequest`
|
650
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeIpStatusResponse`
|
651
|
+
def DescribeIpStatus(request)
|
652
|
+
body = send_request('DescribeIpStatus', request.serialize)
|
653
|
+
response = JSON.parse(body)
|
654
|
+
if response['Response'].key?('Error') == false
|
655
|
+
model = DescribeIpStatusResponse.new
|
656
|
+
model.deserialize(response['Response'])
|
657
|
+
model
|
658
|
+
else
|
659
|
+
code = response['Response']['Error']['Code']
|
660
|
+
message = response['Response']['Error']['Message']
|
661
|
+
reqid = response['Response']['RequestId']
|
662
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
663
|
+
end
|
664
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
665
|
+
raise e
|
666
|
+
rescue StandardError => e
|
667
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
668
|
+
end
|
669
|
+
|
670
|
+
# DescribeIpVisit 用于查询 5 分钟活跃用户数,及日活跃用户数明细
|
671
|
+
|
672
|
+
# + 5 分钟活跃用户数:根据日志中客户端 IP,5 分钟粒度去重统计
|
673
|
+
# + 日活跃用户数:根据日志中客户端 IP,按天粒度去重统计
|
674
|
+
|
675
|
+
# @param request: Request instance for DescribeIpVisit.
|
676
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeIpVisitRequest`
|
677
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeIpVisitResponse`
|
678
|
+
def DescribeIpVisit(request)
|
679
|
+
body = send_request('DescribeIpVisit', request.serialize)
|
680
|
+
response = JSON.parse(body)
|
681
|
+
if response['Response'].key?('Error') == false
|
682
|
+
model = DescribeIpVisitResponse.new
|
683
|
+
model.deserialize(response['Response'])
|
684
|
+
model
|
685
|
+
else
|
686
|
+
code = response['Response']['Error']['Code']
|
687
|
+
message = response['Response']['Error']['Message']
|
688
|
+
reqid = response['Response']['RequestId']
|
689
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
690
|
+
end
|
691
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
692
|
+
raise e
|
693
|
+
rescue StandardError => e
|
694
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
695
|
+
end
|
696
|
+
|
697
|
+
# DescribeMapInfo 用于查询省份对应的 ID,运营商对应的 ID 信息。
|
698
|
+
|
699
|
+
# @param request: Request instance for DescribeMapInfo.
|
700
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeMapInfoRequest`
|
701
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeMapInfoResponse`
|
702
|
+
def DescribeMapInfo(request)
|
703
|
+
body = send_request('DescribeMapInfo', request.serialize)
|
704
|
+
response = JSON.parse(body)
|
705
|
+
if response['Response'].key?('Error') == false
|
706
|
+
model = DescribeMapInfoResponse.new
|
707
|
+
model.deserialize(response['Response'])
|
708
|
+
model
|
709
|
+
else
|
710
|
+
code = response['Response']['Error']['Code']
|
711
|
+
message = response['Response']['Error']['Message']
|
712
|
+
reqid = response['Response']['RequestId']
|
713
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
714
|
+
end
|
715
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
716
|
+
raise e
|
717
|
+
rescue StandardError => e
|
718
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
719
|
+
end
|
720
|
+
|
721
|
+
# DescribeOriginData 用于查询 CDN 实时回源监控数据,支持以下指标查询:
|
722
|
+
|
723
|
+
# + 回源流量(单位为 byte)
|
724
|
+
# + 回源带宽(单位为 bps)
|
725
|
+
# + 回源请求数(单位为 次)
|
726
|
+
# + 回源失败请求数(单位为 次)
|
727
|
+
# + 回源失败率(单位为 %,小数点后保留两位)
|
728
|
+
# + 回源状态码 2xx 汇总及各 2 开头回源状态码明细(单位为 个)
|
729
|
+
# + 回源状态码 3xx 汇总及各 3 开头回源状态码明细(单位为 个)
|
730
|
+
# + 回源状态码 4xx 汇总及各 4 开头回源状态码明细(单位为 个)
|
731
|
+
# + 回源状态码 5xx 汇总及各 5 开头回源状态码明细(单位为 个)
|
732
|
+
|
733
|
+
# @param request: Request instance for DescribeOriginData.
|
734
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeOriginDataRequest`
|
735
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeOriginDataResponse`
|
736
|
+
def DescribeOriginData(request)
|
737
|
+
body = send_request('DescribeOriginData', request.serialize)
|
738
|
+
response = JSON.parse(body)
|
739
|
+
if response['Response'].key?('Error') == false
|
740
|
+
model = DescribeOriginDataResponse.new
|
741
|
+
model.deserialize(response['Response'])
|
742
|
+
model
|
743
|
+
else
|
744
|
+
code = response['Response']['Error']['Code']
|
745
|
+
message = response['Response']['Error']['Message']
|
746
|
+
reqid = response['Response']['RequestId']
|
747
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
748
|
+
end
|
749
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
750
|
+
raise e
|
751
|
+
rescue StandardError => e
|
752
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
753
|
+
end
|
754
|
+
|
755
|
+
# DescribePayType 用于查询用户的计费类型,计费周期等信息。
|
756
|
+
|
757
|
+
# @param request: Request instance for DescribePayType.
|
758
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribePayTypeRequest`
|
759
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribePayTypeResponse`
|
760
|
+
def DescribePayType(request)
|
761
|
+
body = send_request('DescribePayType', request.serialize)
|
762
|
+
response = JSON.parse(body)
|
763
|
+
if response['Response'].key?('Error') == false
|
764
|
+
model = DescribePayTypeResponse.new
|
765
|
+
model.deserialize(response['Response'])
|
766
|
+
model
|
767
|
+
else
|
768
|
+
code = response['Response']['Error']['Code']
|
769
|
+
message = response['Response']['Error']['Message']
|
770
|
+
reqid = response['Response']['RequestId']
|
771
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
772
|
+
end
|
773
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
774
|
+
raise e
|
775
|
+
rescue StandardError => e
|
776
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
777
|
+
end
|
778
|
+
|
779
|
+
# DescribePurgeQuota 用于查询账户刷新配额和每日可用量。
|
780
|
+
|
781
|
+
# @param request: Request instance for DescribePurgeQuota.
|
782
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribePurgeQuotaRequest`
|
783
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribePurgeQuotaResponse`
|
784
|
+
def DescribePurgeQuota(request)
|
785
|
+
body = send_request('DescribePurgeQuota', request.serialize)
|
786
|
+
response = JSON.parse(body)
|
787
|
+
if response['Response'].key?('Error') == false
|
788
|
+
model = DescribePurgeQuotaResponse.new
|
789
|
+
model.deserialize(response['Response'])
|
790
|
+
model
|
791
|
+
else
|
792
|
+
code = response['Response']['Error']['Code']
|
793
|
+
message = response['Response']['Error']['Message']
|
794
|
+
reqid = response['Response']['RequestId']
|
795
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
796
|
+
end
|
797
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
798
|
+
raise e
|
799
|
+
rescue StandardError => e
|
800
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
801
|
+
end
|
802
|
+
|
803
|
+
# DescribePurgeTasks 用于查询提交的 URL 刷新、目录刷新记录及执行进度,通过 PurgePathCache 与 PurgeUrlsCache 接口提交的任务均可通过此接口进行查询。
|
804
|
+
|
805
|
+
# @param request: Request instance for DescribePurgeTasks.
|
806
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribePurgeTasksRequest`
|
807
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribePurgeTasksResponse`
|
808
|
+
def DescribePurgeTasks(request)
|
809
|
+
body = send_request('DescribePurgeTasks', request.serialize)
|
810
|
+
response = JSON.parse(body)
|
811
|
+
if response['Response'].key?('Error') == false
|
812
|
+
model = DescribePurgeTasksResponse.new
|
813
|
+
model.deserialize(response['Response'])
|
814
|
+
model
|
815
|
+
else
|
816
|
+
code = response['Response']['Error']['Code']
|
817
|
+
message = response['Response']['Error']['Message']
|
818
|
+
reqid = response['Response']['RequestId']
|
819
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
820
|
+
end
|
821
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
822
|
+
raise e
|
823
|
+
rescue StandardError => e
|
824
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
825
|
+
end
|
826
|
+
|
827
|
+
# DescribePushQuota 用于查询预热配额和每日可用量。
|
828
|
+
|
829
|
+
# @param request: Request instance for DescribePushQuota.
|
830
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribePushQuotaRequest`
|
831
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribePushQuotaResponse`
|
832
|
+
def DescribePushQuota(request)
|
833
|
+
body = send_request('DescribePushQuota', request.serialize)
|
834
|
+
response = JSON.parse(body)
|
835
|
+
if response['Response'].key?('Error') == false
|
836
|
+
model = DescribePushQuotaResponse.new
|
837
|
+
model.deserialize(response['Response'])
|
838
|
+
model
|
839
|
+
else
|
840
|
+
code = response['Response']['Error']['Code']
|
841
|
+
message = response['Response']['Error']['Message']
|
842
|
+
reqid = response['Response']['RequestId']
|
843
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
844
|
+
end
|
845
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
846
|
+
raise e
|
847
|
+
rescue StandardError => e
|
848
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
849
|
+
end
|
850
|
+
|
851
|
+
# DescribePushTasks 用于查询预热任务提交历史记录及执行进度。
|
852
|
+
# 接口灰度中,暂未全量开放,敬请期待。
|
853
|
+
|
854
|
+
# @param request: Request instance for DescribePushTasks.
|
855
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribePushTasksRequest`
|
856
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribePushTasksResponse`
|
857
|
+
def DescribePushTasks(request)
|
858
|
+
body = send_request('DescribePushTasks', request.serialize)
|
859
|
+
response = JSON.parse(body)
|
860
|
+
if response['Response'].key?('Error') == false
|
861
|
+
model = DescribePushTasksResponse.new
|
862
|
+
model.deserialize(response['Response'])
|
863
|
+
model
|
864
|
+
else
|
865
|
+
code = response['Response']['Error']['Code']
|
866
|
+
message = response['Response']['Error']['Message']
|
867
|
+
reqid = response['Response']['RequestId']
|
868
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
869
|
+
end
|
870
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
871
|
+
raise e
|
872
|
+
rescue StandardError => e
|
873
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
874
|
+
end
|
875
|
+
|
876
|
+
# DescribeReportData 用于查询域名/项目维度的日/周/月报表数据。
|
877
|
+
|
878
|
+
# @param request: Request instance for DescribeReportData.
|
879
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeReportDataRequest`
|
880
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeReportDataResponse`
|
881
|
+
def DescribeReportData(request)
|
882
|
+
body = send_request('DescribeReportData', request.serialize)
|
883
|
+
response = JSON.parse(body)
|
884
|
+
if response['Response'].key?('Error') == false
|
885
|
+
model = DescribeReportDataResponse.new
|
886
|
+
model.deserialize(response['Response'])
|
887
|
+
model
|
888
|
+
else
|
889
|
+
code = response['Response']['Error']['Code']
|
890
|
+
message = response['Response']['Error']['Message']
|
891
|
+
reqid = response['Response']['RequestId']
|
892
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
893
|
+
end
|
894
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
895
|
+
raise e
|
896
|
+
rescue StandardError => e
|
897
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
898
|
+
end
|
899
|
+
|
900
|
+
# 获取BOT统计数据列表
|
901
|
+
|
902
|
+
# @param request: Request instance for DescribeScdnBotData.
|
903
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeScdnBotDataRequest`
|
904
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeScdnBotDataResponse`
|
905
|
+
def DescribeScdnBotData(request)
|
906
|
+
body = send_request('DescribeScdnBotData', request.serialize)
|
907
|
+
response = JSON.parse(body)
|
908
|
+
if response['Response'].key?('Error') == false
|
909
|
+
model = DescribeScdnBotDataResponse.new
|
910
|
+
model.deserialize(response['Response'])
|
911
|
+
model
|
912
|
+
else
|
913
|
+
code = response['Response']['Error']['Code']
|
914
|
+
message = response['Response']['Error']['Message']
|
915
|
+
reqid = response['Response']['RequestId']
|
916
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
917
|
+
end
|
918
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
919
|
+
raise e
|
920
|
+
rescue StandardError => e
|
921
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
922
|
+
end
|
923
|
+
|
924
|
+
# 查询BOT会话记录列表
|
925
|
+
|
926
|
+
# @param request: Request instance for DescribeScdnBotRecords.
|
927
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeScdnBotRecordsRequest`
|
928
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeScdnBotRecordsResponse`
|
929
|
+
def DescribeScdnBotRecords(request)
|
930
|
+
body = send_request('DescribeScdnBotRecords', request.serialize)
|
931
|
+
response = JSON.parse(body)
|
932
|
+
if response['Response'].key?('Error') == false
|
933
|
+
model = DescribeScdnBotRecordsResponse.new
|
934
|
+
model.deserialize(response['Response'])
|
935
|
+
model
|
936
|
+
else
|
937
|
+
code = response['Response']['Error']['Code']
|
938
|
+
message = response['Response']['Error']['Message']
|
939
|
+
reqid = response['Response']['RequestId']
|
940
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
941
|
+
end
|
942
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
943
|
+
raise e
|
944
|
+
rescue StandardError => e
|
945
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
946
|
+
end
|
947
|
+
|
948
|
+
# DescribeScdnConfig 用于查询指定 SCDN 加速域名的安全相关配置
|
949
|
+
|
950
|
+
# @param request: Request instance for DescribeScdnConfig.
|
951
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeScdnConfigRequest`
|
952
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeScdnConfigResponse`
|
953
|
+
def DescribeScdnConfig(request)
|
954
|
+
body = send_request('DescribeScdnConfig', request.serialize)
|
955
|
+
response = JSON.parse(body)
|
956
|
+
if response['Response'].key?('Error') == false
|
957
|
+
model = DescribeScdnConfigResponse.new
|
958
|
+
model.deserialize(response['Response'])
|
959
|
+
model
|
960
|
+
else
|
961
|
+
code = response['Response']['Error']['Code']
|
962
|
+
message = response['Response']['Error']['Message']
|
963
|
+
reqid = response['Response']['RequestId']
|
964
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
965
|
+
end
|
966
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
967
|
+
raise e
|
968
|
+
rescue StandardError => e
|
969
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
970
|
+
end
|
971
|
+
|
972
|
+
# 查询在SCDN IP安全策略
|
973
|
+
|
974
|
+
# @param request: Request instance for DescribeScdnIpStrategy.
|
975
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeScdnIpStrategyRequest`
|
976
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeScdnIpStrategyResponse`
|
977
|
+
def DescribeScdnIpStrategy(request)
|
978
|
+
body = send_request('DescribeScdnIpStrategy', request.serialize)
|
979
|
+
response = JSON.parse(body)
|
980
|
+
if response['Response'].key?('Error') == false
|
981
|
+
model = DescribeScdnIpStrategyResponse.new
|
982
|
+
model.deserialize(response['Response'])
|
983
|
+
model
|
984
|
+
else
|
985
|
+
code = response['Response']['Error']['Code']
|
986
|
+
message = response['Response']['Error']['Message']
|
987
|
+
reqid = response['Response']['RequestId']
|
988
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
989
|
+
end
|
990
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
991
|
+
raise e
|
992
|
+
rescue StandardError => e
|
993
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
994
|
+
end
|
995
|
+
|
996
|
+
# 获取SCDN的Top数据
|
997
|
+
|
998
|
+
# @param request: Request instance for DescribeScdnTopData.
|
999
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeScdnTopDataRequest`
|
1000
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeScdnTopDataResponse`
|
1001
|
+
def DescribeScdnTopData(request)
|
1002
|
+
body = send_request('DescribeScdnTopData', request.serialize)
|
1003
|
+
response = JSON.parse(body)
|
1004
|
+
if response['Response'].key?('Error') == false
|
1005
|
+
model = DescribeScdnTopDataResponse.new
|
1006
|
+
model.deserialize(response['Response'])
|
1007
|
+
model
|
1008
|
+
else
|
1009
|
+
code = response['Response']['Error']['Code']
|
1010
|
+
message = response['Response']['Error']['Message']
|
1011
|
+
reqid = response['Response']['RequestId']
|
1012
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1013
|
+
end
|
1014
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1015
|
+
raise e
|
1016
|
+
rescue StandardError => e
|
1017
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
# DescribeTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:
|
1021
|
+
|
1022
|
+
# + 依据总流量、总请求数对访问 IP 排序,从大至小返回 TOP 100 IP
|
1023
|
+
# + 依据总流量、总请求数对访问 Refer 排序,从大至小返回 TOP 100 Refer
|
1024
|
+
# + 依据总流量、总请求数对访问 设备 排序,从大至小返回 设备类型
|
1025
|
+
# + 依据总流量、总请求数对访问 操作系统 排序,从大至小返回 操作系统
|
1026
|
+
# + 依据总流量、总请求数对访问 浏览器 排序,从大至小返回 浏览器
|
1027
|
+
|
1028
|
+
# 注意:
|
1029
|
+
# + 仅支持 90 天内数据查询,且从2021年09月20日开始有数据
|
1030
|
+
# + 本接口为beta版,尚未正式全量发布
|
1031
|
+
|
1032
|
+
# @param request: Request instance for DescribeTopData.
|
1033
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeTopDataRequest`
|
1034
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeTopDataResponse`
|
1035
|
+
def DescribeTopData(request)
|
1036
|
+
body = send_request('DescribeTopData', request.serialize)
|
1037
|
+
response = JSON.parse(body)
|
1038
|
+
if response['Response'].key?('Error') == false
|
1039
|
+
model = DescribeTopDataResponse.new
|
1040
|
+
model.deserialize(response['Response'])
|
1041
|
+
model
|
1042
|
+
else
|
1043
|
+
code = response['Response']['Error']['Code']
|
1044
|
+
message = response['Response']['Error']['Message']
|
1045
|
+
reqid = response['Response']['RequestId']
|
1046
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1047
|
+
end
|
1048
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1049
|
+
raise e
|
1050
|
+
rescue StandardError => e
|
1051
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
# DescribeTrafficPackages 用于查询中国境内 CDN 流量包详情。
|
1055
|
+
|
1056
|
+
# @param request: Request instance for DescribeTrafficPackages.
|
1057
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeTrafficPackagesRequest`
|
1058
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeTrafficPackagesResponse`
|
1059
|
+
def DescribeTrafficPackages(request)
|
1060
|
+
body = send_request('DescribeTrafficPackages', request.serialize)
|
1061
|
+
response = JSON.parse(body)
|
1062
|
+
if response['Response'].key?('Error') == false
|
1063
|
+
model = DescribeTrafficPackagesResponse.new
|
1064
|
+
model.deserialize(response['Response'])
|
1065
|
+
model
|
1066
|
+
else
|
1067
|
+
code = response['Response']['Error']['Code']
|
1068
|
+
message = response['Response']['Error']['Message']
|
1069
|
+
reqid = response['Response']['RequestId']
|
1070
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1071
|
+
end
|
1072
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1073
|
+
raise e
|
1074
|
+
rescue StandardError => e
|
1075
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
# DescribeUrlViolations 用于查询被 CDN 系统扫描到的域名违规 URL 列表及当前状态。
|
1079
|
+
# 对应内容分发网络控制台【图片鉴黄】页面。
|
1080
|
+
|
1081
|
+
# @param request: Request instance for DescribeUrlViolations.
|
1082
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeUrlViolationsRequest`
|
1083
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeUrlViolationsResponse`
|
1084
|
+
def DescribeUrlViolations(request)
|
1085
|
+
body = send_request('DescribeUrlViolations', request.serialize)
|
1086
|
+
response = JSON.parse(body)
|
1087
|
+
if response['Response'].key?('Error') == false
|
1088
|
+
model = DescribeUrlViolationsResponse.new
|
1089
|
+
model.deserialize(response['Response'])
|
1090
|
+
model
|
1091
|
+
else
|
1092
|
+
code = response['Response']['Error']['Code']
|
1093
|
+
message = response['Response']['Error']['Message']
|
1094
|
+
reqid = response['Response']['RequestId']
|
1095
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1096
|
+
end
|
1097
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1098
|
+
raise e
|
1099
|
+
rescue StandardError => e
|
1100
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
# Waf统计数据查询
|
1104
|
+
|
1105
|
+
# @param request: Request instance for DescribeWafData.
|
1106
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DescribeWafDataRequest`
|
1107
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DescribeWafDataResponse`
|
1108
|
+
def DescribeWafData(request)
|
1109
|
+
body = send_request('DescribeWafData', request.serialize)
|
1110
|
+
response = JSON.parse(body)
|
1111
|
+
if response['Response'].key?('Error') == false
|
1112
|
+
model = DescribeWafDataResponse.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
|
+
# DisableCaches 用于禁用 CDN 上指定 URL 的访问,禁用完成后,中国境内访问会直接返回 403。(注:接口尚在内测中,暂未全量开放;封禁URL并非无限期永久封禁)
|
1128
|
+
|
1129
|
+
# @param request: Request instance for DisableCaches.
|
1130
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DisableCachesRequest`
|
1131
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DisableCachesResponse`
|
1132
|
+
def DisableCaches(request)
|
1133
|
+
body = send_request('DisableCaches', request.serialize)
|
1134
|
+
response = JSON.parse(body)
|
1135
|
+
if response['Response'].key?('Error') == false
|
1136
|
+
model = DisableCachesResponse.new
|
1137
|
+
model.deserialize(response['Response'])
|
1138
|
+
model
|
1139
|
+
else
|
1140
|
+
code = response['Response']['Error']['Code']
|
1141
|
+
message = response['Response']['Error']['Message']
|
1142
|
+
reqid = response['Response']['RequestId']
|
1143
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1144
|
+
end
|
1145
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1146
|
+
raise e
|
1147
|
+
rescue StandardError => e
|
1148
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
# DisableClsLogTopic 用于停止日志主题投递。注意:停止后,所有绑定该日志主题域名的日志将不再继续投递至该主题,已经投递的日志将会继续保留。生效时间约为 5~15 分钟。
|
1152
|
+
|
1153
|
+
# @param request: Request instance for DisableClsLogTopic.
|
1154
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DisableClsLogTopicRequest`
|
1155
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DisableClsLogTopicResponse`
|
1156
|
+
def DisableClsLogTopic(request)
|
1157
|
+
body = send_request('DisableClsLogTopic', request.serialize)
|
1158
|
+
response = JSON.parse(body)
|
1159
|
+
if response['Response'].key?('Error') == false
|
1160
|
+
model = DisableClsLogTopicResponse.new
|
1161
|
+
model.deserialize(response['Response'])
|
1162
|
+
model
|
1163
|
+
else
|
1164
|
+
code = response['Response']['Error']['Code']
|
1165
|
+
message = response['Response']['Error']['Message']
|
1166
|
+
reqid = response['Response']['RequestId']
|
1167
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1168
|
+
end
|
1169
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1170
|
+
raise e
|
1171
|
+
rescue StandardError => e
|
1172
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
# 拷贝参考域名的配置至新域名。暂不支持自有证书以及定制化配置
|
1176
|
+
|
1177
|
+
# @param request: Request instance for DuplicateDomainConfig.
|
1178
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::DuplicateDomainConfigRequest`
|
1179
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::DuplicateDomainConfigResponse`
|
1180
|
+
def DuplicateDomainConfig(request)
|
1181
|
+
body = send_request('DuplicateDomainConfig', request.serialize)
|
1182
|
+
response = JSON.parse(body)
|
1183
|
+
if response['Response'].key?('Error') == false
|
1184
|
+
model = DuplicateDomainConfigResponse.new
|
1185
|
+
model.deserialize(response['Response'])
|
1186
|
+
model
|
1187
|
+
else
|
1188
|
+
code = response['Response']['Error']['Code']
|
1189
|
+
message = response['Response']['Error']['Message']
|
1190
|
+
reqid = response['Response']['RequestId']
|
1191
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1192
|
+
end
|
1193
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1194
|
+
raise e
|
1195
|
+
rescue StandardError => e
|
1196
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
# EnableCaches 用于解禁手工封禁的 URL,解禁成功后,全网生效时间约 5~10 分钟。(接口尚在内测中,暂未全量开放使用)
|
1200
|
+
|
1201
|
+
# @param request: Request instance for EnableCaches.
|
1202
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::EnableCachesRequest`
|
1203
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::EnableCachesResponse`
|
1204
|
+
def EnableCaches(request)
|
1205
|
+
body = send_request('EnableCaches', request.serialize)
|
1206
|
+
response = JSON.parse(body)
|
1207
|
+
if response['Response'].key?('Error') == false
|
1208
|
+
model = EnableCachesResponse.new
|
1209
|
+
model.deserialize(response['Response'])
|
1210
|
+
model
|
1211
|
+
else
|
1212
|
+
code = response['Response']['Error']['Code']
|
1213
|
+
message = response['Response']['Error']['Message']
|
1214
|
+
reqid = response['Response']['RequestId']
|
1215
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1216
|
+
end
|
1217
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1218
|
+
raise e
|
1219
|
+
rescue StandardError => e
|
1220
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
# EnableClsLogTopic 用于启动日志主题投递。注意:启动后,所有绑定该日志主题域名的日志将继续投递至该主题。生效时间约为 5~15 分钟。
|
1224
|
+
|
1225
|
+
# @param request: Request instance for EnableClsLogTopic.
|
1226
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::EnableClsLogTopicRequest`
|
1227
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::EnableClsLogTopicResponse`
|
1228
|
+
def EnableClsLogTopic(request)
|
1229
|
+
body = send_request('EnableClsLogTopic', request.serialize)
|
1230
|
+
response = JSON.parse(body)
|
1231
|
+
if response['Response'].key?('Error') == false
|
1232
|
+
model = EnableClsLogTopicResponse.new
|
1233
|
+
model.deserialize(response['Response'])
|
1234
|
+
model
|
1235
|
+
else
|
1236
|
+
code = response['Response']['Error']['Code']
|
1237
|
+
message = response['Response']['Error']['Message']
|
1238
|
+
reqid = response['Response']['RequestId']
|
1239
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1240
|
+
end
|
1241
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1242
|
+
raise e
|
1243
|
+
rescue StandardError => e
|
1244
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
# GetDisableRecords 用于查询资源禁用历史,及 URL 当前状态。(接口尚在内测中,暂未全量开放使用)
|
1248
|
+
|
1249
|
+
# @param request: Request instance for GetDisableRecords.
|
1250
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::GetDisableRecordsRequest`
|
1251
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::GetDisableRecordsResponse`
|
1252
|
+
def GetDisableRecords(request)
|
1253
|
+
body = send_request('GetDisableRecords', request.serialize)
|
1254
|
+
response = JSON.parse(body)
|
1255
|
+
if response['Response'].key?('Error') == false
|
1256
|
+
model = GetDisableRecordsResponse.new
|
1257
|
+
model.deserialize(response['Response'])
|
1258
|
+
model
|
1259
|
+
else
|
1260
|
+
code = response['Response']['Error']['Code']
|
1261
|
+
message = response['Response']['Error']['Message']
|
1262
|
+
reqid = response['Response']['RequestId']
|
1263
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1264
|
+
end
|
1265
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1266
|
+
raise e
|
1267
|
+
rescue StandardError => e
|
1268
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
# ListClsLogTopics 用于显示日志主题列表。注意:一个日志集下至多含10个日志主题。
|
1272
|
+
|
1273
|
+
# @param request: Request instance for ListClsLogTopics.
|
1274
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ListClsLogTopicsRequest`
|
1275
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListClsLogTopicsResponse`
|
1276
|
+
def ListClsLogTopics(request)
|
1277
|
+
body = send_request('ListClsLogTopics', request.serialize)
|
1278
|
+
response = JSON.parse(body)
|
1279
|
+
if response['Response'].key?('Error') == false
|
1280
|
+
model = ListClsLogTopicsResponse.new
|
1281
|
+
model.deserialize(response['Response'])
|
1282
|
+
model
|
1283
|
+
else
|
1284
|
+
code = response['Response']['Error']['Code']
|
1285
|
+
message = response['Response']['Error']['Message']
|
1286
|
+
reqid = response['Response']['RequestId']
|
1287
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1288
|
+
end
|
1289
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1290
|
+
raise e
|
1291
|
+
rescue StandardError => e
|
1292
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
# ListClsTopicDomains 用于获取某日志主题下绑定的域名列表。
|
1296
|
+
|
1297
|
+
# @param request: Request instance for ListClsTopicDomains.
|
1298
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ListClsTopicDomainsRequest`
|
1299
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListClsTopicDomainsResponse`
|
1300
|
+
def ListClsTopicDomains(request)
|
1301
|
+
body = send_request('ListClsTopicDomains', request.serialize)
|
1302
|
+
response = JSON.parse(body)
|
1303
|
+
if response['Response'].key?('Error') == false
|
1304
|
+
model = ListClsTopicDomainsResponse.new
|
1305
|
+
model.deserialize(response['Response'])
|
1306
|
+
model
|
1307
|
+
else
|
1308
|
+
code = response['Response']['Error']['Code']
|
1309
|
+
message = response['Response']['Error']['Message']
|
1310
|
+
reqid = response['Response']['RequestId']
|
1311
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1312
|
+
end
|
1313
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1314
|
+
raise e
|
1315
|
+
rescue StandardError => e
|
1316
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1317
|
+
end
|
1318
|
+
|
1319
|
+
# ListDiagnoseReport 用于获取用户诊断URL访问后各个子任务的简要详情。
|
1320
|
+
|
1321
|
+
# @param request: Request instance for ListDiagnoseReport.
|
1322
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ListDiagnoseReportRequest`
|
1323
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListDiagnoseReportResponse`
|
1324
|
+
def ListDiagnoseReport(request)
|
1325
|
+
body = send_request('ListDiagnoseReport', request.serialize)
|
1326
|
+
response = JSON.parse(body)
|
1327
|
+
if response['Response'].key?('Error') == false
|
1328
|
+
model = ListDiagnoseReportResponse.new
|
1329
|
+
model.deserialize(response['Response'])
|
1330
|
+
model
|
1331
|
+
else
|
1332
|
+
code = response['Response']['Error']['Code']
|
1333
|
+
message = response['Response']['Error']['Message']
|
1334
|
+
reqid = response['Response']['RequestId']
|
1335
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1336
|
+
end
|
1337
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1338
|
+
raise e
|
1339
|
+
rescue StandardError => e
|
1340
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1341
|
+
end
|
1342
|
+
|
1343
|
+
# ListScdnDomains 用于查询 SCDN 安全加速域名列表,及域名基本配置信息
|
1344
|
+
|
1345
|
+
# @param request: Request instance for ListScdnDomains.
|
1346
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ListScdnDomainsRequest`
|
1347
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListScdnDomainsResponse`
|
1348
|
+
def ListScdnDomains(request)
|
1349
|
+
body = send_request('ListScdnDomains', request.serialize)
|
1350
|
+
response = JSON.parse(body)
|
1351
|
+
if response['Response'].key?('Error') == false
|
1352
|
+
model = ListScdnDomainsResponse.new
|
1353
|
+
model.deserialize(response['Response'])
|
1354
|
+
model
|
1355
|
+
else
|
1356
|
+
code = response['Response']['Error']['Code']
|
1357
|
+
message = response['Response']['Error']['Message']
|
1358
|
+
reqid = response['Response']['RequestId']
|
1359
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1360
|
+
end
|
1361
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1362
|
+
raise e
|
1363
|
+
rescue StandardError => e
|
1364
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1365
|
+
end
|
1366
|
+
|
1367
|
+
# ListScdnLogTasks 用于查询SCDN日志下载任务列表,以及展示下载任务基本信息
|
1368
|
+
|
1369
|
+
# @param request: Request instance for ListScdnLogTasks.
|
1370
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ListScdnLogTasksRequest`
|
1371
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListScdnLogTasksResponse`
|
1372
|
+
def ListScdnLogTasks(request)
|
1373
|
+
body = send_request('ListScdnLogTasks', request.serialize)
|
1374
|
+
response = JSON.parse(body)
|
1375
|
+
if response['Response'].key?('Error') == false
|
1376
|
+
model = ListScdnLogTasksResponse.new
|
1377
|
+
model.deserialize(response['Response'])
|
1378
|
+
model
|
1379
|
+
else
|
1380
|
+
code = response['Response']['Error']['Code']
|
1381
|
+
message = response['Response']['Error']['Message']
|
1382
|
+
reqid = response['Response']['RequestId']
|
1383
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1384
|
+
end
|
1385
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1386
|
+
raise e
|
1387
|
+
rescue StandardError => e
|
1388
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1389
|
+
end
|
1390
|
+
|
1391
|
+
# 获取Bot攻击的Top数据列表
|
1392
|
+
|
1393
|
+
# @param request: Request instance for ListScdnTopBotData.
|
1394
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ListScdnTopBotDataRequest`
|
1395
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListScdnTopBotDataResponse`
|
1396
|
+
def ListScdnTopBotData(request)
|
1397
|
+
body = send_request('ListScdnTopBotData', request.serialize)
|
1398
|
+
response = JSON.parse(body)
|
1399
|
+
if response['Response'].key?('Error') == false
|
1400
|
+
model = ListScdnTopBotDataResponse.new
|
1401
|
+
model.deserialize(response['Response'])
|
1402
|
+
model
|
1403
|
+
else
|
1404
|
+
code = response['Response']['Error']['Code']
|
1405
|
+
message = response['Response']['Error']['Message']
|
1406
|
+
reqid = response['Response']['RequestId']
|
1407
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1408
|
+
end
|
1409
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1410
|
+
raise e
|
1411
|
+
rescue StandardError => e
|
1412
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1413
|
+
end
|
1414
|
+
|
1415
|
+
# 获取Bot攻击的Top信息
|
1416
|
+
|
1417
|
+
# @param request: Request instance for ListTopBotData.
|
1418
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ListTopBotDataRequest`
|
1419
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListTopBotDataResponse`
|
1420
|
+
def ListTopBotData(request)
|
1421
|
+
body = send_request('ListTopBotData', request.serialize)
|
1422
|
+
response = JSON.parse(body)
|
1423
|
+
if response['Response'].key?('Error') == false
|
1424
|
+
model = ListTopBotDataResponse.new
|
1425
|
+
model.deserialize(response['Response'])
|
1426
|
+
model
|
1427
|
+
else
|
1428
|
+
code = response['Response']['Error']['Code']
|
1429
|
+
message = response['Response']['Error']['Message']
|
1430
|
+
reqid = response['Response']['RequestId']
|
1431
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1432
|
+
end
|
1433
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1434
|
+
raise e
|
1435
|
+
rescue StandardError => e
|
1436
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
# 获取CC攻击Top数据
|
1440
|
+
|
1441
|
+
# @param request: Request instance for ListTopCcData.
|
1442
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ListTopCcDataRequest`
|
1443
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListTopCcDataResponse`
|
1444
|
+
def ListTopCcData(request)
|
1445
|
+
body = send_request('ListTopCcData', request.serialize)
|
1446
|
+
response = JSON.parse(body)
|
1447
|
+
if response['Response'].key?('Error') == false
|
1448
|
+
model = ListTopCcDataResponse.new
|
1449
|
+
model.deserialize(response['Response'])
|
1450
|
+
model
|
1451
|
+
else
|
1452
|
+
code = response['Response']['Error']['Code']
|
1453
|
+
message = response['Response']['Error']['Message']
|
1454
|
+
reqid = response['Response']['RequestId']
|
1455
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1456
|
+
end
|
1457
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1458
|
+
raise e
|
1459
|
+
rescue StandardError => e
|
1460
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1461
|
+
end
|
1462
|
+
|
1463
|
+
# 通过CLS日志计算Top信息。支持近7天的日志数据。
|
1464
|
+
|
1465
|
+
# @param request: Request instance for ListTopClsLogData.
|
1466
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ListTopClsLogDataRequest`
|
1467
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListTopClsLogDataResponse`
|
1468
|
+
def ListTopClsLogData(request)
|
1469
|
+
body = send_request('ListTopClsLogData', request.serialize)
|
1470
|
+
response = JSON.parse(body)
|
1471
|
+
if response['Response'].key?('Error') == false
|
1472
|
+
model = ListTopClsLogDataResponse.new
|
1473
|
+
model.deserialize(response['Response'])
|
1474
|
+
model
|
1475
|
+
else
|
1476
|
+
code = response['Response']['Error']['Code']
|
1477
|
+
message = response['Response']['Error']['Message']
|
1478
|
+
reqid = response['Response']['RequestId']
|
1479
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1480
|
+
end
|
1481
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1482
|
+
raise e
|
1483
|
+
rescue StandardError => e
|
1484
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1485
|
+
end
|
1486
|
+
|
1487
|
+
# 获取DDoS攻击Top数据
|
1488
|
+
|
1489
|
+
# @param request: Request instance for ListTopDDoSData.
|
1490
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ListTopDDoSDataRequest`
|
1491
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListTopDDoSDataResponse`
|
1492
|
+
def ListTopDDoSData(request)
|
1493
|
+
body = send_request('ListTopDDoSData', request.serialize)
|
1494
|
+
response = JSON.parse(body)
|
1495
|
+
if response['Response'].key?('Error') == false
|
1496
|
+
model = ListTopDDoSDataResponse.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
|
+
# ListTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:
|
1512
|
+
|
1513
|
+
# + 依据总流量、总请求数对访问 URL 排序,从大至小返回 TOP 1000 URL
|
1514
|
+
# + 依据总流量、总请求数对客户端省份排序,从大至小返回省份列表
|
1515
|
+
# + 依据总流量、总请求数对客户端运营商排序,从大至小返回运营商列表
|
1516
|
+
# + 依据总流量、峰值带宽、总请求数、平均命中率、2XX/3XX/4XX/5XX 状态码对域名排序,从大至小返回域名列表
|
1517
|
+
# + 依据总回源流量、回源峰值带宽、总回源请求数、平均回源失败率、2XX/3XX/4XX/5XX 回源状态码对域名排序,从大至小返回域名列表
|
1518
|
+
|
1519
|
+
# 注意:仅支持 90 天内数据查询
|
1520
|
+
|
1521
|
+
# @param request: Request instance for ListTopData.
|
1522
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ListTopDataRequest`
|
1523
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListTopDataResponse`
|
1524
|
+
def ListTopData(request)
|
1525
|
+
body = send_request('ListTopData', request.serialize)
|
1526
|
+
response = JSON.parse(body)
|
1527
|
+
if response['Response'].key?('Error') == false
|
1528
|
+
model = ListTopDataResponse.new
|
1529
|
+
model.deserialize(response['Response'])
|
1530
|
+
model
|
1531
|
+
else
|
1532
|
+
code = response['Response']['Error']['Code']
|
1533
|
+
message = response['Response']['Error']['Message']
|
1534
|
+
reqid = response['Response']['RequestId']
|
1535
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1536
|
+
end
|
1537
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1538
|
+
raise e
|
1539
|
+
rescue StandardError => e
|
1540
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1541
|
+
end
|
1542
|
+
|
1543
|
+
# 获取Waf攻击Top数据
|
1544
|
+
|
1545
|
+
# @param request: Request instance for ListTopWafData.
|
1546
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ListTopWafDataRequest`
|
1547
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ListTopWafDataResponse`
|
1548
|
+
def ListTopWafData(request)
|
1549
|
+
body = send_request('ListTopWafData', request.serialize)
|
1550
|
+
response = JSON.parse(body)
|
1551
|
+
if response['Response'].key?('Error') == false
|
1552
|
+
model = ListTopWafDataResponse.new
|
1553
|
+
model.deserialize(response['Response'])
|
1554
|
+
model
|
1555
|
+
else
|
1556
|
+
code = response['Response']['Error']['Code']
|
1557
|
+
message = response['Response']['Error']['Message']
|
1558
|
+
reqid = response['Response']['RequestId']
|
1559
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1560
|
+
end
|
1561
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1562
|
+
raise e
|
1563
|
+
rescue StandardError => e
|
1564
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1565
|
+
end
|
1566
|
+
|
1567
|
+
# ManageClsTopicDomains 用于管理某日志主题下绑定的域名列表。
|
1568
|
+
|
1569
|
+
# @param request: Request instance for ManageClsTopicDomains.
|
1570
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ManageClsTopicDomainsRequest`
|
1571
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ManageClsTopicDomainsResponse`
|
1572
|
+
def ManageClsTopicDomains(request)
|
1573
|
+
body = send_request('ManageClsTopicDomains', request.serialize)
|
1574
|
+
response = JSON.parse(body)
|
1575
|
+
if response['Response'].key?('Error') == false
|
1576
|
+
model = ManageClsTopicDomainsResponse.new
|
1577
|
+
model.deserialize(response['Response'])
|
1578
|
+
model
|
1579
|
+
else
|
1580
|
+
code = response['Response']['Error']['Code']
|
1581
|
+
message = response['Response']['Error']['Message']
|
1582
|
+
reqid = response['Response']['RequestId']
|
1583
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1584
|
+
end
|
1585
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1586
|
+
raise e
|
1587
|
+
rescue StandardError => e
|
1588
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
# ModifyPurgeFetchTaskStatus 用于上报定时刷新预热任务执行状态
|
1592
|
+
|
1593
|
+
# @param request: Request instance for ModifyPurgeFetchTaskStatus.
|
1594
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::ModifyPurgeFetchTaskStatusRequest`
|
1595
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::ModifyPurgeFetchTaskStatusResponse`
|
1596
|
+
def ModifyPurgeFetchTaskStatus(request)
|
1597
|
+
body = send_request('ModifyPurgeFetchTaskStatus', request.serialize)
|
1598
|
+
response = JSON.parse(body)
|
1599
|
+
if response['Response'].key?('Error') == false
|
1600
|
+
model = ModifyPurgeFetchTaskStatusResponse.new
|
1601
|
+
model.deserialize(response['Response'])
|
1602
|
+
model
|
1603
|
+
else
|
1604
|
+
code = response['Response']['Error']['Code']
|
1605
|
+
message = response['Response']['Error']['Message']
|
1606
|
+
reqid = response['Response']['RequestId']
|
1607
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1608
|
+
end
|
1609
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1610
|
+
raise e
|
1611
|
+
rescue StandardError => e
|
1612
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1613
|
+
end
|
1614
|
+
|
1615
|
+
# PurgePathCache 用于批量提交目录刷新,根据域名的加速区域进行对应区域的刷新。
|
1616
|
+
# 默认情况下境内、境外加速区域每日目录刷新额度为各 100 条,每次最多可提交 20 条。
|
1617
|
+
|
1618
|
+
# @param request: Request instance for PurgePathCache.
|
1619
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::PurgePathCacheRequest`
|
1620
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::PurgePathCacheResponse`
|
1621
|
+
def PurgePathCache(request)
|
1622
|
+
body = send_request('PurgePathCache', request.serialize)
|
1623
|
+
response = JSON.parse(body)
|
1624
|
+
if response['Response'].key?('Error') == false
|
1625
|
+
model = PurgePathCacheResponse.new
|
1626
|
+
model.deserialize(response['Response'])
|
1627
|
+
model
|
1628
|
+
else
|
1629
|
+
code = response['Response']['Error']['Code']
|
1630
|
+
message = response['Response']['Error']['Message']
|
1631
|
+
reqid = response['Response']['RequestId']
|
1632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1633
|
+
end
|
1634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1635
|
+
raise e
|
1636
|
+
rescue StandardError => e
|
1637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
|
+
end
|
1639
|
+
|
1640
|
+
# PurgeUrlsCache 用于批量提交 URL 进行刷新,根据 URL 中域名的当前加速区域进行对应区域的刷新。
|
1641
|
+
# 默认情况下境内、境外加速区域每日 URL 刷新额度各为 10000 条,每次最多可提交 1000 条。
|
1642
|
+
|
1643
|
+
# @param request: Request instance for PurgeUrlsCache.
|
1644
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::PurgeUrlsCacheRequest`
|
1645
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::PurgeUrlsCacheResponse`
|
1646
|
+
def PurgeUrlsCache(request)
|
1647
|
+
body = send_request('PurgeUrlsCache', request.serialize)
|
1648
|
+
response = JSON.parse(body)
|
1649
|
+
if response['Response'].key?('Error') == false
|
1650
|
+
model = PurgeUrlsCacheResponse.new
|
1651
|
+
model.deserialize(response['Response'])
|
1652
|
+
model
|
1653
|
+
else
|
1654
|
+
code = response['Response']['Error']['Code']
|
1655
|
+
message = response['Response']['Error']['Message']
|
1656
|
+
reqid = response['Response']['RequestId']
|
1657
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1658
|
+
end
|
1659
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1660
|
+
raise e
|
1661
|
+
rescue StandardError => e
|
1662
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1663
|
+
end
|
1664
|
+
|
1665
|
+
# PushUrlsCache 用于将指定 URL 资源列表加载至 CDN 节点,支持指定加速区域预热。
|
1666
|
+
# 默认情况下境内、境外每日预热 URL 限额为各 1000 条,每次最多可提交 20 条。注意:中国境外区域预热,资源默认加载至中国境外边缘节点,所产生的边缘层流量会计入计费流量。
|
1667
|
+
|
1668
|
+
# @param request: Request instance for PushUrlsCache.
|
1669
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::PushUrlsCacheRequest`
|
1670
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::PushUrlsCacheResponse`
|
1671
|
+
def PushUrlsCache(request)
|
1672
|
+
body = send_request('PushUrlsCache', request.serialize)
|
1673
|
+
response = JSON.parse(body)
|
1674
|
+
if response['Response'].key?('Error') == false
|
1675
|
+
model = PushUrlsCacheResponse.new
|
1676
|
+
model.deserialize(response['Response'])
|
1677
|
+
model
|
1678
|
+
else
|
1679
|
+
code = response['Response']['Error']['Code']
|
1680
|
+
message = response['Response']['Error']['Message']
|
1681
|
+
reqid = response['Response']['RequestId']
|
1682
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1683
|
+
end
|
1684
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1685
|
+
raise e
|
1686
|
+
rescue StandardError => e
|
1687
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
# SearchClsLog 用于 CLS 日志检索。支持检索今天,24小时(可选近7中的某一天),近7天的日志数据。
|
1691
|
+
|
1692
|
+
# @param request: Request instance for SearchClsLog.
|
1693
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::SearchClsLogRequest`
|
1694
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::SearchClsLogResponse`
|
1695
|
+
def SearchClsLog(request)
|
1696
|
+
body = send_request('SearchClsLog', request.serialize)
|
1697
|
+
response = JSON.parse(body)
|
1698
|
+
if response['Response'].key?('Error') == false
|
1699
|
+
model = SearchClsLogResponse.new
|
1700
|
+
model.deserialize(response['Response'])
|
1701
|
+
model
|
1702
|
+
else
|
1703
|
+
code = response['Response']['Error']['Code']
|
1704
|
+
message = response['Response']['Error']['Message']
|
1705
|
+
reqid = response['Response']['RequestId']
|
1706
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1707
|
+
end
|
1708
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1709
|
+
raise e
|
1710
|
+
rescue StandardError => e
|
1711
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1712
|
+
end
|
1713
|
+
|
1714
|
+
# StartCdnDomain 用于启用已停用域名的加速服务
|
1715
|
+
|
1716
|
+
# @param request: Request instance for StartCdnDomain.
|
1717
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::StartCdnDomainRequest`
|
1718
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::StartCdnDomainResponse`
|
1719
|
+
def StartCdnDomain(request)
|
1720
|
+
body = send_request('StartCdnDomain', request.serialize)
|
1721
|
+
response = JSON.parse(body)
|
1722
|
+
if response['Response'].key?('Error') == false
|
1723
|
+
model = StartCdnDomainResponse.new
|
1724
|
+
model.deserialize(response['Response'])
|
1725
|
+
model
|
1726
|
+
else
|
1727
|
+
code = response['Response']['Error']['Code']
|
1728
|
+
message = response['Response']['Error']['Message']
|
1729
|
+
reqid = response['Response']['RequestId']
|
1730
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1731
|
+
end
|
1732
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1733
|
+
raise e
|
1734
|
+
rescue StandardError => e
|
1735
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1736
|
+
end
|
1737
|
+
|
1738
|
+
# StartScdnDomain 用于开启域名的安全防护配置
|
1739
|
+
|
1740
|
+
# @param request: Request instance for StartScdnDomain.
|
1741
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::StartScdnDomainRequest`
|
1742
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::StartScdnDomainResponse`
|
1743
|
+
def StartScdnDomain(request)
|
1744
|
+
body = send_request('StartScdnDomain', request.serialize)
|
1745
|
+
response = JSON.parse(body)
|
1746
|
+
if response['Response'].key?('Error') == false
|
1747
|
+
model = StartScdnDomainResponse.new
|
1748
|
+
model.deserialize(response['Response'])
|
1749
|
+
model
|
1750
|
+
else
|
1751
|
+
code = response['Response']['Error']['Code']
|
1752
|
+
message = response['Response']['Error']['Message']
|
1753
|
+
reqid = response['Response']['RequestId']
|
1754
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1755
|
+
end
|
1756
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1757
|
+
raise e
|
1758
|
+
rescue StandardError => e
|
1759
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1760
|
+
end
|
1761
|
+
|
1762
|
+
# StopCdnDomain 用于停止域名的加速服务。
|
1763
|
+
# 注意:停止加速服务后,访问至加速节点的请求将会直接返回 404。为避免对您的业务造成影响,请在停止加速服务前将解析切走。
|
1764
|
+
|
1765
|
+
# @param request: Request instance for StopCdnDomain.
|
1766
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::StopCdnDomainRequest`
|
1767
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::StopCdnDomainResponse`
|
1768
|
+
def StopCdnDomain(request)
|
1769
|
+
body = send_request('StopCdnDomain', request.serialize)
|
1770
|
+
response = JSON.parse(body)
|
1771
|
+
if response['Response'].key?('Error') == false
|
1772
|
+
model = StopCdnDomainResponse.new
|
1773
|
+
model.deserialize(response['Response'])
|
1774
|
+
model
|
1775
|
+
else
|
1776
|
+
code = response['Response']['Error']['Code']
|
1777
|
+
message = response['Response']['Error']['Message']
|
1778
|
+
reqid = response['Response']['RequestId']
|
1779
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1780
|
+
end
|
1781
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1782
|
+
raise e
|
1783
|
+
rescue StandardError => e
|
1784
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1785
|
+
end
|
1786
|
+
|
1787
|
+
# StopScdnDomain 用于关闭域名的安全防护配置
|
1788
|
+
|
1789
|
+
# @param request: Request instance for StopScdnDomain.
|
1790
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::StopScdnDomainRequest`
|
1791
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::StopScdnDomainResponse`
|
1792
|
+
def StopScdnDomain(request)
|
1793
|
+
body = send_request('StopScdnDomain', request.serialize)
|
1794
|
+
response = JSON.parse(body)
|
1795
|
+
if response['Response'].key?('Error') == false
|
1796
|
+
model = StopScdnDomainResponse.new
|
1797
|
+
model.deserialize(response['Response'])
|
1798
|
+
model
|
1799
|
+
else
|
1800
|
+
code = response['Response']['Error']['Code']
|
1801
|
+
message = response['Response']['Error']['Message']
|
1802
|
+
reqid = response['Response']['RequestId']
|
1803
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1804
|
+
end
|
1805
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1806
|
+
raise e
|
1807
|
+
rescue StandardError => e
|
1808
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1809
|
+
end
|
1810
|
+
|
1811
|
+
# UpdateDomainConfig 用于修改内容分发网络加速域名配置信息
|
1812
|
+
# 注意:如果需要更新复杂类型的配置项,必须传递整个对象的所有属性,未传递的属性将使用默认值,建议通过查询接口获取配置属性后,直接修改后传递给本接口。Https配置由于证书的特殊性,更新时不用传递证书和密钥字段。
|
1813
|
+
|
1814
|
+
# @param request: Request instance for UpdateDomainConfig.
|
1815
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::UpdateDomainConfigRequest`
|
1816
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::UpdateDomainConfigResponse`
|
1817
|
+
def UpdateDomainConfig(request)
|
1818
|
+
body = send_request('UpdateDomainConfig', request.serialize)
|
1819
|
+
response = JSON.parse(body)
|
1820
|
+
if response['Response'].key?('Error') == false
|
1821
|
+
model = UpdateDomainConfigResponse.new
|
1822
|
+
model.deserialize(response['Response'])
|
1823
|
+
model
|
1824
|
+
else
|
1825
|
+
code = response['Response']['Error']['Code']
|
1826
|
+
message = response['Response']['Error']['Message']
|
1827
|
+
reqid = response['Response']['RequestId']
|
1828
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1829
|
+
end
|
1830
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1831
|
+
raise e
|
1832
|
+
rescue StandardError => e
|
1833
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1834
|
+
end
|
1835
|
+
|
1836
|
+
# UpdateImageConfig 用于更新控制台图片优化的相关配置,支持Webp、TPG 和 Guetzli。
|
1837
|
+
|
1838
|
+
# @param request: Request instance for UpdateImageConfig.
|
1839
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::UpdateImageConfigRequest`
|
1840
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::UpdateImageConfigResponse`
|
1841
|
+
def UpdateImageConfig(request)
|
1842
|
+
body = send_request('UpdateImageConfig', request.serialize)
|
1843
|
+
response = JSON.parse(body)
|
1844
|
+
if response['Response'].key?('Error') == false
|
1845
|
+
model = UpdateImageConfigResponse.new
|
1846
|
+
model.deserialize(response['Response'])
|
1847
|
+
model
|
1848
|
+
else
|
1849
|
+
code = response['Response']['Error']['Code']
|
1850
|
+
message = response['Response']['Error']['Message']
|
1851
|
+
reqid = response['Response']['RequestId']
|
1852
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1853
|
+
end
|
1854
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1855
|
+
raise e
|
1856
|
+
rescue StandardError => e
|
1857
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
# 本接口(UpdatePayType)用于修改账号计费类型,暂不支持月结用户或子账号修改。
|
1861
|
+
|
1862
|
+
# @param request: Request instance for UpdatePayType.
|
1863
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::UpdatePayTypeRequest`
|
1864
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::UpdatePayTypeResponse`
|
1865
|
+
def UpdatePayType(request)
|
1866
|
+
body = send_request('UpdatePayType', request.serialize)
|
1867
|
+
response = JSON.parse(body)
|
1868
|
+
if response['Response'].key?('Error') == false
|
1869
|
+
model = UpdatePayTypeResponse.new
|
1870
|
+
model.deserialize(response['Response'])
|
1871
|
+
model
|
1872
|
+
else
|
1873
|
+
code = response['Response']['Error']['Code']
|
1874
|
+
message = response['Response']['Error']['Message']
|
1875
|
+
reqid = response['Response']['RequestId']
|
1876
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1877
|
+
end
|
1878
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1879
|
+
raise e
|
1880
|
+
rescue StandardError => e
|
1881
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1882
|
+
end
|
1883
|
+
|
1884
|
+
# UpdateScdnDomain 用于修改 SCDN 加速域名安全相关配置
|
1885
|
+
|
1886
|
+
# @param request: Request instance for UpdateScdnDomain.
|
1887
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::UpdateScdnDomainRequest`
|
1888
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::UpdateScdnDomainResponse`
|
1889
|
+
def UpdateScdnDomain(request)
|
1890
|
+
body = send_request('UpdateScdnDomain', request.serialize)
|
1891
|
+
response = JSON.parse(body)
|
1892
|
+
if response['Response'].key?('Error') == false
|
1893
|
+
model = UpdateScdnDomainResponse.new
|
1894
|
+
model.deserialize(response['Response'])
|
1895
|
+
model
|
1896
|
+
else
|
1897
|
+
code = response['Response']['Error']['Code']
|
1898
|
+
message = response['Response']['Error']['Message']
|
1899
|
+
reqid = response['Response']['RequestId']
|
1900
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1901
|
+
end
|
1902
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1903
|
+
raise e
|
1904
|
+
rescue StandardError => e
|
1905
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1906
|
+
end
|
1907
|
+
|
1908
|
+
# 验证域名解析值
|
1909
|
+
|
1910
|
+
# @param request: Request instance for VerifyDomainRecord.
|
1911
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::VerifyDomainRecordRequest`
|
1912
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::VerifyDomainRecordResponse`
|
1913
|
+
def VerifyDomainRecord(request)
|
1914
|
+
body = send_request('VerifyDomainRecord', request.serialize)
|
1915
|
+
response = JSON.parse(body)
|
1916
|
+
if response['Response'].key?('Error') == false
|
1917
|
+
model = VerifyDomainRecordResponse.new
|
1918
|
+
model.deserialize(response['Response'])
|
1919
|
+
model
|
1920
|
+
else
|
1921
|
+
code = response['Response']['Error']['Code']
|
1922
|
+
message = response['Response']['Error']['Message']
|
1923
|
+
reqid = response['Response']['RequestId']
|
1924
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1925
|
+
end
|
1926
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1927
|
+
raise e
|
1928
|
+
rescue StandardError => e
|
1929
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1930
|
+
end
|
1931
|
+
|
1932
|
+
|
1933
|
+
end
|
1934
|
+
end
|
1935
|
+
end
|
1936
|
+
end
|