-
Notifications
You must be signed in to change notification settings - Fork 286
Expand file tree
/
Copy pathCdnClient.java
More file actions
679 lines (613 loc) · 32.5 KB
/
CdnClient.java
File metadata and controls
679 lines (613 loc) · 32.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
/*
* Copyright (c) 2017-2025 Tencent. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.cdn.v20180606;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.cdn.v20180606.models.*;
public class CdnClient extends AbstractClient{
private static String endpoint = "cdn.tencentcloudapi.com";
private static String service = "cdn";
private static String version = "2018-06-06";
public CdnClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public CdnClient(Credential credential, String region, ClientProfile profile) {
super(CdnClient.endpoint, CdnClient.version, credential, region, profile);
}
/**
*AddCLSTopicDomains 用于新增域名到某日志主题下
* @param req AddCLSTopicDomainsRequest
* @return AddCLSTopicDomainsResponse
* @throws TencentCloudSDKException
*/
public AddCLSTopicDomainsResponse AddCLSTopicDomains(AddCLSTopicDomainsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AddCLSTopicDomains", AddCLSTopicDomainsResponse.class);
}
/**
*AddCdnDomain 用于新增内容分发网络加速域名。1分钟内最多可新增100个域名。
* @param req AddCdnDomainRequest
* @return AddCdnDomainResponse
* @throws TencentCloudSDKException
*/
public AddCdnDomainResponse AddCdnDomain(AddCdnDomainRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AddCdnDomain", AddCdnDomainResponse.class);
}
/**
*CreateClsLogTopic 用于创建日志主题。注意:一个日志集下至多可创建10个日志主题。
* @param req CreateClsLogTopicRequest
* @return CreateClsLogTopicResponse
* @throws TencentCloudSDKException
*/
public CreateClsLogTopicResponse CreateClsLogTopic(CreateClsLogTopicRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateClsLogTopic", CreateClsLogTopicResponse.class);
}
/**
*动态打包任务提交接口
* @param req CreateEdgePackTaskRequest
* @return CreateEdgePackTaskResponse
* @throws TencentCloudSDKException
*/
public CreateEdgePackTaskResponse CreateEdgePackTask(CreateEdgePackTaskRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateEdgePackTask", CreateEdgePackTaskResponse.class);
}
/**
*CreateVerifyRecord 用于生成一条子域名解析,提示客户添加到域名解析上,用于泛域名及域名取回校验归属权。
生成的解析记录可通过 [VerifyDomainRecord](https://cloud.tencent.com/document/product/228/48117) 完成归属权校验。
注意:生成的解析记录有效期为24小时,超过24小时后,需重新生成。
具体流程可参考:[使用API接口进行域名归属校验](https://cloud.tencent.com/document/product/228/61702#.E6.96.B9.E6.B3.95.E4.B8.89.EF.BC.9Aapi-.E6.8E.A5.E5.8F.A3.E6.93.8D.E4.BD.9C)
* @param req CreateVerifyRecordRequest
* @return CreateVerifyRecordResponse
* @throws TencentCloudSDKException
*/
public CreateVerifyRecordResponse CreateVerifyRecord(CreateVerifyRecordRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateVerifyRecord", CreateVerifyRecordResponse.class);
}
/**
*DeleteCdnDomain 用于删除指定加速域名
* @param req DeleteCdnDomainRequest
* @return DeleteCdnDomainResponse
* @throws TencentCloudSDKException
*/
public DeleteCdnDomainResponse DeleteCdnDomain(DeleteCdnDomainRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteCdnDomain", DeleteCdnDomainResponse.class);
}
/**
*DeleteClsLogTopic 用于删除日志主题。注意:删除后,所有该日志主题下绑定域名的日志将不再继续投递至该主题,已经投递的日志将会被全部清空。生效时间约为 5~15 分钟。
* @param req DeleteClsLogTopicRequest
* @return DeleteClsLogTopicResponse
* @throws TencentCloudSDKException
*/
public DeleteClsLogTopicResponse DeleteClsLogTopic(DeleteClsLogTopicRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteClsLogTopic", DeleteClsLogTopicResponse.class);
}
/**
*DescribeBillingData 用于查询实际计费数据明细。
注意:
受计费算法的影响,计费数据接口返回的数据均存在一定延时。小时结算客户预计延时3-5小时。月结算客户预计延迟4-28小时,在凌晨4点(不含4点)之前,仅能查询到前2天数据,4点(含)之后,能查询到前1天数据。若您对数据及时性较强的诉求,建议使用[监控访问数据](https://cloud.tencent.com/document/product/228/30986)。
* @param req DescribeBillingDataRequest
* @return DescribeBillingDataResponse
* @throws TencentCloudSDKException
*/
public DescribeBillingDataResponse DescribeBillingData(DescribeBillingDataRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillingData", DescribeBillingDataResponse.class);
}
/**
*DescribeCdnData 用于查询 CDN 实时访问监控数据,支持以下指标查询:
+ 流量(单位为 byte)
+ 带宽(单位为 bps)
+ 请求数(单位为 次)
+ 命中请求数(单位为 次)
+ 请求命中率(单位为 %)
+ 命中流量(单位为 byte)
+ 流量命中率(单位为 %)
+ 状态码 2xx 汇总及各 2 开头状态码明细(单位为 个)
+ 状态码 3xx 汇总及各 3 开头状态码明细(单位为 个)
+ 状态码 4xx 汇总及各 4 开头状态码明细(单位为 个)
+ 状态码 5xx 汇总及各 5 开头状态码明细(单位为 个)
* @param req DescribeCdnDataRequest
* @return DescribeCdnDataResponse
* @throws TencentCloudSDKException
*/
public DescribeCdnDataResponse DescribeCdnData(DescribeCdnDataRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCdnData", DescribeCdnDataResponse.class);
}
/**
*DescribeCdnDomainLogs 用于查询访问日志下载地址,仅支持 30 天以内的境内、境外访问日志下载链接查询。
* @param req DescribeCdnDomainLogsRequest
* @return DescribeCdnDomainLogsResponse
* @throws TencentCloudSDKException
*/
public DescribeCdnDomainLogsResponse DescribeCdnDomainLogs(DescribeCdnDomainLogsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCdnDomainLogs", DescribeCdnDomainLogsResponse.class);
}
/**
*DescribeCdnIp 用于查询 CDN IP 归属。
(注意:此接口请求频率限制以 CDN 侧限制为准:200次/10分钟)
* @param req DescribeCdnIpRequest
* @return DescribeCdnIpResponse
* @throws TencentCloudSDKException
*/
public DescribeCdnIpResponse DescribeCdnIp(DescribeCdnIpRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCdnIp", DescribeCdnIpResponse.class);
}
/**
*### <font color=red>**该接口已废弃** </font><br>
本接口(DescribeCdnOriginIp)用于查询 CDN 回源节点的IP信息。(注:替换接口为DescribeIpStatus)
* @param req DescribeCdnOriginIpRequest
* @return DescribeCdnOriginIpResponse
* @throws TencentCloudSDKException
*/
public DescribeCdnOriginIpResponse DescribeCdnOriginIp(DescribeCdnOriginIpRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCdnOriginIp", DescribeCdnOriginIpResponse.class);
}
/**
*DescribeCertDomains 用于校验SSL证书并提取证书中包含的域名。
* @param req DescribeCertDomainsRequest
* @return DescribeCertDomainsResponse
* @throws TencentCloudSDKException
*/
public DescribeCertDomainsResponse DescribeCertDomains(DescribeCertDomainsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCertDomains", DescribeCertDomainsResponse.class);
}
/**
*查询指定域名的区域、运营商明细数据
注意事项:接口尚未全面开放,未在内测名单中的账号不支持调用
* @param req DescribeDistrictIspDataRequest
* @return DescribeDistrictIspDataResponse
* @throws TencentCloudSDKException
*/
public DescribeDistrictIspDataResponse DescribeDistrictIspData(DescribeDistrictIspDataRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDistrictIspData", DescribeDistrictIspDataResponse.class);
}
/**
*DescribeDomains 用于查询内容分发网络加速域名(含境内、境外)基本配置信息,包括项目ID、服务状态,业务类型、创建时间、更新时间等信息。
* @param req DescribeDomainsRequest
* @return DescribeDomainsResponse
* @throws TencentCloudSDKException
*/
public DescribeDomainsResponse DescribeDomains(DescribeDomainsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDomains", DescribeDomainsResponse.class);
}
/**
*DescribeDomainsConfig 用于查询内容分发网络加速域名(含境内、境外)的所有配置信息。
* @param req DescribeDomainsConfigRequest
* @return DescribeDomainsConfigResponse
* @throws TencentCloudSDKException
*/
public DescribeDomainsConfigResponse DescribeDomainsConfig(DescribeDomainsConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDomainsConfig", DescribeDomainsConfigResponse.class);
}
/**
*DescribeEdgePackTaskStatus 用于查询动态打包任务状态列表
* @param req DescribeEdgePackTaskStatusRequest
* @return DescribeEdgePackTaskStatusResponse
* @throws TencentCloudSDKException
*/
public DescribeEdgePackTaskStatusResponse DescribeEdgePackTaskStatus(DescribeEdgePackTaskStatusRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeEdgePackTaskStatus", DescribeEdgePackTaskStatusResponse.class);
}
/**
*DescribeHttpsPackages 用于查询 CDN HTTPS请求包详情。
* @param req DescribeHttpsPackagesRequest
* @return DescribeHttpsPackagesResponse
* @throws TencentCloudSDKException
*/
public DescribeHttpsPackagesResponse DescribeHttpsPackages(DescribeHttpsPackagesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeHttpsPackages", DescribeHttpsPackagesResponse.class);
}
/**
*DescribeImageConfig 用于获取域名图片优化的当前配置,支持Webp、TPG、 Guetzli 和 Avif。
* @param req DescribeImageConfigRequest
* @return DescribeImageConfigResponse
* @throws TencentCloudSDKException
*/
public DescribeImageConfigResponse DescribeImageConfig(DescribeImageConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeImageConfig", DescribeImageConfigResponse.class);
}
/**
*DescribeIpStatus 用于查询域名所在加速平台的边缘节点、回源节点明细。注意事项:暂不支持查询边缘节点信息并且数据会存在一定延迟。
>? 若您的业务已迁移至 CDN 控制台,请参考<a href="https://cloud.tencent.com/document/api/228/41954"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。
* @param req DescribeIpStatusRequest
* @return DescribeIpStatusResponse
* @throws TencentCloudSDKException
*/
public DescribeIpStatusResponse DescribeIpStatus(DescribeIpStatusRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeIpStatus", DescribeIpStatusResponse.class);
}
/**
*DescribeIpVisit 用于查询 5 分钟活跃用户数,及日活跃用户数明细
+ 5 分钟活跃用户数:根据日志中客户端 IP,5 分钟粒度去重统计
+ 日活跃用户数:根据日志中客户端 IP,按天粒度去重统计
* @param req DescribeIpVisitRequest
* @return DescribeIpVisitResponse
* @throws TencentCloudSDKException
*/
public DescribeIpVisitResponse DescribeIpVisit(DescribeIpVisitRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeIpVisit", DescribeIpVisitResponse.class);
}
/**
*DescribeMapInfo 用于查询省份对应的 ID,运营商对应的 ID 信息。
* @param req DescribeMapInfoRequest
* @return DescribeMapInfoResponse
* @throws TencentCloudSDKException
*/
public DescribeMapInfoResponse DescribeMapInfo(DescribeMapInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeMapInfo", DescribeMapInfoResponse.class);
}
/**
*DescribeOriginData 用于查询 CDN 实时回源监控数据,支持以下指标查询:
+ 回源流量(单位为 byte)
+ 回源带宽(单位为 bps)
+ 回源请求数(单位为 次)
+ 回源失败请求数(单位为 次)
+ 回源失败率(单位为 %,小数点后保留两位)
+ 回源状态码 2xx 汇总及各 2 开头回源状态码明细(单位为 个)
+ 回源状态码 3xx 汇总及各 3 开头回源状态码明细(单位为 个)
+ 回源状态码 4xx 汇总及各 4 开头回源状态码明细(单位为 个)
+ 回源状态码 5xx 汇总及各 5 开头回源状态码明细(单位为 个)
* @param req DescribeOriginDataRequest
* @return DescribeOriginDataResponse
* @throws TencentCloudSDKException
*/
public DescribeOriginDataResponse DescribeOriginData(DescribeOriginDataRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeOriginData", DescribeOriginDataResponse.class);
}
/**
*DescribePayType 用于查询用户的计费类型,计费周期等信息。
* @param req DescribePayTypeRequest
* @return DescribePayTypeResponse
* @throws TencentCloudSDKException
*/
public DescribePayTypeResponse DescribePayType(DescribePayTypeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePayType", DescribePayTypeResponse.class);
}
/**
*DescribePurgeQuota 用于查询账户刷新配额和每日可用量。
* @param req DescribePurgeQuotaRequest
* @return DescribePurgeQuotaResponse
* @throws TencentCloudSDKException
*/
public DescribePurgeQuotaResponse DescribePurgeQuota(DescribePurgeQuotaRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePurgeQuota", DescribePurgeQuotaResponse.class);
}
/**
*DescribePurgeTasks 用于查询提交的 URL 刷新、目录刷新记录及执行进度,通过 PurgePathCache 与 PurgeUrlsCache 接口提交的任务均可通过此接口进行查询。
* @param req DescribePurgeTasksRequest
* @return DescribePurgeTasksResponse
* @throws TencentCloudSDKException
*/
public DescribePurgeTasksResponse DescribePurgeTasks(DescribePurgeTasksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePurgeTasks", DescribePurgeTasksResponse.class);
}
/**
*DescribePushQuota 用于查询预热配额和每日可用量。
* @param req DescribePushQuotaRequest
* @return DescribePushQuotaResponse
* @throws TencentCloudSDKException
*/
public DescribePushQuotaResponse DescribePushQuota(DescribePushQuotaRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePushQuota", DescribePushQuotaResponse.class);
}
/**
*DescribePushTasks 用于查询预热任务提交历史记录及执行进度。
* @param req DescribePushTasksRequest
* @return DescribePushTasksResponse
* @throws TencentCloudSDKException
*/
public DescribePushTasksResponse DescribePushTasks(DescribePushTasksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePushTasks", DescribePushTasksResponse.class);
}
/**
*DescribeReportData 用于查询域名/项目维度的日/周/月报表数据。
* @param req DescribeReportDataRequest
* @return DescribeReportDataResponse
* @throws TencentCloudSDKException
*/
public DescribeReportDataResponse DescribeReportData(DescribeReportDataRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeReportData", DescribeReportDataResponse.class);
}
/**
*DescribeTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:
+ 依据总流量、总请求数对访问 IP 排序,从大至小返回 TOP 100 IP
+ 依据总流量、总请求数对访问 Refer 排序,从大至小返回 TOP 100 Refer
+ 依据总流量、总请求数对访问 设备 排序,从大至小返回 设备类型
+ 依据总流量、总请求数对访问 操作系统 排序,从大至小返回 操作系统
+ 依据总流量、总请求数对访问 浏览器 排序,从大至小返回 浏览器
注意:
+ 仅支持 90 天内数据查询,且从2021年09月20日开始有数据
* @param req DescribeTopDataRequest
* @return DescribeTopDataResponse
* @throws TencentCloudSDKException
*/
public DescribeTopDataResponse DescribeTopData(DescribeTopDataRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTopData", DescribeTopDataResponse.class);
}
/**
*DescribeTrafficPackages 用于查询 CDN 流量包详情。
* @param req DescribeTrafficPackagesRequest
* @return DescribeTrafficPackagesResponse
* @throws TencentCloudSDKException
*/
public DescribeTrafficPackagesResponse DescribeTrafficPackages(DescribeTrafficPackagesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTrafficPackages", DescribeTrafficPackagesResponse.class);
}
/**
*DescribeUrlViolations 用于查询被 CDN 系统扫描到的域名违规 URL 列表及当前状态。
对应内容分发网络控制台【内容合规】页面。
* @param req DescribeUrlViolationsRequest
* @return DescribeUrlViolationsResponse
* @throws TencentCloudSDKException
*/
public DescribeUrlViolationsResponse DescribeUrlViolations(DescribeUrlViolationsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeUrlViolations", DescribeUrlViolationsResponse.class);
}
/**
*DisableClsLogTopic 用于停止日志主题投递。注意:停止后,所有绑定该日志主题域名的日志将不再继续投递至该主题,已经投递的日志将会继续保留。生效时间约为 5~15 分钟。
* @param req DisableClsLogTopicRequest
* @return DisableClsLogTopicResponse
* @throws TencentCloudSDKException
*/
public DisableClsLogTopicResponse DisableClsLogTopic(DisableClsLogTopicRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DisableClsLogTopic", DisableClsLogTopicResponse.class);
}
/**
*拷贝参考域名的配置至新域名。暂不支持自有证书以及定制化配置
* @param req DuplicateDomainConfigRequest
* @return DuplicateDomainConfigResponse
* @throws TencentCloudSDKException
*/
public DuplicateDomainConfigResponse DuplicateDomainConfig(DuplicateDomainConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DuplicateDomainConfig", DuplicateDomainConfigResponse.class);
}
/**
*EnableClsLogTopic 用于启动日志主题投递。注意:启动后,所有绑定该日志主题域名的日志将继续投递至该主题。生效时间约为 5~15 分钟。
* @param req EnableClsLogTopicRequest
* @return EnableClsLogTopicResponse
* @throws TencentCloudSDKException
*/
public EnableClsLogTopicResponse EnableClsLogTopic(EnableClsLogTopicRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "EnableClsLogTopic", EnableClsLogTopicResponse.class);
}
/**
*ListClsLogTopics 用于显示日志主题列表。注意:一个日志集下至多含10个日志主题。
* @param req ListClsLogTopicsRequest
* @return ListClsLogTopicsResponse
* @throws TencentCloudSDKException
*/
public ListClsLogTopicsResponse ListClsLogTopics(ListClsLogTopicsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListClsLogTopics", ListClsLogTopicsResponse.class);
}
/**
*ListClsTopicDomains 用于获取某日志主题下绑定的域名列表。
* @param req ListClsTopicDomainsRequest
* @return ListClsTopicDomainsResponse
* @throws TencentCloudSDKException
*/
public ListClsTopicDomainsResponse ListClsTopicDomains(ListClsTopicDomainsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListClsTopicDomains", ListClsTopicDomainsResponse.class);
}
/**
*通过CLS日志计算Top信息。支持近7天的日志数据。
* @param req ListTopClsLogDataRequest
* @return ListTopClsLogDataResponse
* @throws TencentCloudSDKException
*/
public ListTopClsLogDataResponse ListTopClsLogData(ListTopClsLogDataRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListTopClsLogData", ListTopClsLogDataResponse.class);
}
/**
*ListTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:
+ 依据总流量、总请求数对访问 URL 排序,从大至小返回 TOP 1000 URL
+ 依据总流量、总请求数对客户端省份排序,从大至小返回省份列表
+ 依据总流量、总请求数对客户端运营商排序,从大至小返回运营商列表
+ 依据总流量、峰值带宽、总请求数、平均命中率、2XX/3XX/4XX/5XX 状态码对域名排序,从大至小返回域名列表
+ 依据总回源流量、回源峰值带宽、总回源请求数、平均回源失败率、2XX/3XX/4XX/5XX 回源状态码对域名排序,从大至小返回域名列表
注意:仅支持 90 天内数据查询
* @param req ListTopDataRequest
* @return ListTopDataResponse
* @throws TencentCloudSDKException
*/
public ListTopDataResponse ListTopData(ListTopDataRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListTopData", ListTopDataResponse.class);
}
/**
*ManageClsTopicDomains 用于管理某日志主题下绑定的域名列表。
* @param req ManageClsTopicDomainsRequest
* @return ManageClsTopicDomainsResponse
* @throws TencentCloudSDKException
*/
public ManageClsTopicDomainsResponse ManageClsTopicDomains(ManageClsTopicDomainsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ManageClsTopicDomains", ManageClsTopicDomainsResponse.class);
}
/**
*ModifyDomainConfig 用于修改内容分发网络加速域名配置信息
注意:
Route 字段,使用点分隔,最后一段称为叶子节点,非叶子节点配置保持不变;
Value 字段,使用 json 进行序列化,其中固定 update 作为 key,配置路径值参考 https://cloud.tencent.com/document/product/228/41116 接口各配置项复杂类型,为配置路径对应复杂类型下的节点。
操作审计相关:接口的入参可能包含密钥等敏感信息,所以此接口的入参不会上报到操作审计。
* @param req ModifyDomainConfigRequest
* @return ModifyDomainConfigResponse
* @throws TencentCloudSDKException
*/
public ModifyDomainConfigResponse ModifyDomainConfig(ModifyDomainConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDomainConfig", ModifyDomainConfigResponse.class);
}
/**
*ModifyPurgeFetchTaskStatus 用于上报定时刷新预热任务执行状态
* @param req ModifyPurgeFetchTaskStatusRequest
* @return ModifyPurgeFetchTaskStatusResponse
* @throws TencentCloudSDKException
*/
public ModifyPurgeFetchTaskStatusResponse ModifyPurgeFetchTaskStatus(ModifyPurgeFetchTaskStatusRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyPurgeFetchTaskStatus", ModifyPurgeFetchTaskStatusResponse.class);
}
/**
*PurgePathCache 用于批量提交目录刷新,根据域名的加速区域进行对应区域的刷新。
默认情况下境内、境外加速区域每日目录刷新额度为各 100 条,每次最多可提交 500 条。
* @param req PurgePathCacheRequest
* @return PurgePathCacheResponse
* @throws TencentCloudSDKException
*/
public PurgePathCacheResponse PurgePathCache(PurgePathCacheRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "PurgePathCache", PurgePathCacheResponse.class);
}
/**
*PurgeUrlsCache 用于批量提交 URL 进行刷新,根据 URL 中域名的当前加速区域进行对应区域的刷新。
默认情况下境内、境外加速区域每日 URL 刷新额度各为 10000 条,每次最多可提交 1000 条。
* @param req PurgeUrlsCacheRequest
* @return PurgeUrlsCacheResponse
* @throws TencentCloudSDKException
*/
public PurgeUrlsCacheResponse PurgeUrlsCache(PurgeUrlsCacheRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "PurgeUrlsCache", PurgeUrlsCacheResponse.class);
}
/**
*PushUrlsCache 用于将指定 URL 资源列表加载至 CDN 节点,支持指定加速区域预热。
默认情况下境内、境外每日预热 URL 限额为各 1000 条,每次最多可提交 500 条 URL,每次提交的数量会消耗配额总数。如:1次提交500条URL全球预热,此时境内、境外预热 URL 各剩余 500条。注意:中国境外区域预热,资源默认加载至中国境外边缘节点。
* @param req PushUrlsCacheRequest
* @return PushUrlsCacheResponse
* @throws TencentCloudSDKException
*/
public PushUrlsCacheResponse PushUrlsCache(PushUrlsCacheRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "PushUrlsCache", PushUrlsCacheResponse.class);
}
/**
*SearchClsLog 用于 CLS 日志检索。支持检索今天,24小时(可选近7中的某一天),近7天的日志数据。
* @param req SearchClsLogRequest
* @return SearchClsLogResponse
* @throws TencentCloudSDKException
*/
public SearchClsLogResponse SearchClsLog(SearchClsLogRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "SearchClsLog", SearchClsLogResponse.class);
}
/**
*StartCdnDomain 用于启用已停用域名的加速服务
* @param req StartCdnDomainRequest
* @return StartCdnDomainResponse
* @throws TencentCloudSDKException
*/
public StartCdnDomainResponse StartCdnDomain(StartCdnDomainRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "StartCdnDomain", StartCdnDomainResponse.class);
}
/**
*StopCdnDomain 用于停止域名的加速服务。
注意:停止加速服务后,访问至加速节点的请求将会直接返回 404。为避免对您的业务造成影响,请在停止加速服务前将解析切走。
* @param req StopCdnDomainRequest
* @return StopCdnDomainResponse
* @throws TencentCloudSDKException
*/
public StopCdnDomainResponse StopCdnDomain(StopCdnDomainRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "StopCdnDomain", StopCdnDomainResponse.class);
}
/**
*UpdateDomainConfig 用于修改内容分发网络加速域名配置信息。
注意:如果需要更新复杂类型的配置项,必须传递整个对象的所有属性,未传递的属性将使用默认值,建议通过查询接口获取配置属性后,直接修改后传递给本接口;如果仅修改单独配置项只传对应配置参数即可。
操作审计相关:接口的入参可能包含密钥等敏感信息,所以此接口的入参不会上报到操作审计。
* @param req UpdateDomainConfigRequest
* @return UpdateDomainConfigResponse
* @throws TencentCloudSDKException
*/
public UpdateDomainConfigResponse UpdateDomainConfig(UpdateDomainConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateDomainConfig", UpdateDomainConfigResponse.class);
}
/**
*UpdateImageConfig 用于更新控制台图片优化的相关配置,支持Webp、TPG、 Guetzli 和 Avif。
* @param req UpdateImageConfigRequest
* @return UpdateImageConfigResponse
* @throws TencentCloudSDKException
*/
public UpdateImageConfigResponse UpdateImageConfig(UpdateImageConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateImageConfig", UpdateImageConfigResponse.class);
}
/**
*本接口(UpdatePayType)用于修改账号计费类型,暂不支持月结用户或子账号修改。
* @param req UpdatePayTypeRequest
* @return UpdatePayTypeResponse
* @throws TencentCloudSDKException
*/
public UpdatePayTypeResponse UpdatePayType(UpdatePayTypeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdatePayType", UpdatePayTypeResponse.class);
}
/**
*VerifyDomainRecord 用于验证域名解析值。
验证域名解析记录值前,您需要通过 [CreateVerifyRecord](https://cloud.tencent.com/document/product/228/48118) 生成校验解析值,验证通过后,24小时有效。
具体流程可参考:[使用API接口进行域名归属校验](https://cloud.tencent.com/document/product/228/61702#.E6.96.B9.E6.B3.95.E4.B8.89.EF.BC.9Aapi-.E6.8E.A5.E5.8F.A3.E6.93.8D.E4.BD.9C)
* @param req VerifyDomainRecordRequest
* @return VerifyDomainRecordResponse
* @throws TencentCloudSDKException
*/
public VerifyDomainRecordResponse VerifyDomainRecord(VerifyDomainRecordRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "VerifyDomainRecord", VerifyDomainRecordResponse.class);
}
}