tencentcloud-sdk-nodejs 4.0.505 → 4.0.507
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +430 -0
- package/README.md +17 -29
- package/SERVICE_CHANGELOG.md +548 -45
- package/examples/cvm_role.js +26 -0
- package/package.json +1 -1
- package/products.md +23 -23
- package/src/common/abstract_client.ts +27 -19
- package/src/common/cvm_role_credential.ts +62 -0
- package/src/common/http/fetch.ts +2 -2
- package/src/common/interface.ts +8 -1
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_client.ts +14 -1
- package/src/services/antiddos/v20200309/antiddos_models.ts +121 -6
- package/src/services/billing/v20180709/billing_models.ts +4 -6
- package/src/services/cam/v20190116/cam_client.ts +1 -1
- package/src/services/cam/v20190116/cam_models.ts +3 -3
- package/src/services/cdb/v20170320/cdb_client.ts +24 -0
- package/src/services/cdb/v20170320/cdb_models.ts +151 -0
- package/src/services/cdwch/v20200915/cdwch_client.ts +48 -19
- package/src/services/cdwch/v20200915/cdwch_models.ts +614 -202
- package/src/services/cfs/v20190719/cfs_models.ts +12 -0
- package/src/services/ckafka/v20190819/ckafka_client.ts +2 -0
- package/src/services/ckafka/v20190819/ckafka_models.ts +73 -0
- package/src/services/cvm/v20170312/cvm_models.ts +7 -2
- package/src/services/essbasic/v20210526/essbasic_client.ts +1 -1
- package/src/services/irp/v20220805/irp_models.ts +5 -5
- package/src/services/lighthouse/v20200324/lighthouse_client.ts +105 -23
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +408 -140
- package/src/services/monitor/v20180724/monitor_client.ts +14 -1
- package/src/services/monitor/v20180724/monitor_models.ts +75 -4
- package/src/services/ssl/v20191205/ssl_client.ts +1 -0
- package/src/services/ssl/v20191205/ssl_models.ts +52 -0
- package/src/services/teo/v20220901/teo_client.ts +0 -12
- package/src/services/teo/v20220901/teo_models.ts +0 -32
- package/src/services/thpc/v20220401/thpc_client.ts +42 -6
- package/src/services/thpc/v20220401/thpc_models.ts +75 -5
- package/src/services/tione/v20211111/tione_models.ts +24 -2
- package/src/services/trtc/v20190722/trtc_models.ts +4 -4
- package/src/services/vod/v20180717/vod_client.ts +81 -28
- package/src/services/vod/v20180717/vod_models.ts +312 -19
- package/src/services/vpc/v20170312/vpc_client.ts +1 -1
- package/src/services/vpc/v20170312/vpc_models.ts +14 -8
- package/src/services/waf/v20180125/waf_models.ts +67 -1
- package/tencentcloud/common/abstract_client.d.ts +3 -2
- package/tencentcloud/common/abstract_client.js +20 -12
- package/tencentcloud/common/cvm_role_credential.d.ts +17 -0
- package/tencentcloud/common/cvm_role_credential.js +47 -0
- package/tencentcloud/common/http/fetch.d.ts +2 -2
- package/tencentcloud/common/interface.d.ts +7 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +5 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +6 -0
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +101 -6
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +4 -6
- package/tencentcloud/services/cam/v20190116/cam_client.d.ts +1 -1
- package/tencentcloud/services/cam/v20190116/cam_client.js +1 -1
- package/tencentcloud/services/cam/v20190116/cam_models.d.ts +3 -3
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +9 -1
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +12 -0
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +125 -0
- package/tencentcloud/services/cdwch/v20200915/cdwch_client.d.ts +11 -3
- package/tencentcloud/services/cdwch/v20200915/cdwch_client.js +15 -3
- package/tencentcloud/services/cdwch/v20200915/cdwch_models.d.ts +484 -138
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +10 -0
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +62 -0
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +6 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +1 -1
- package/tencentcloud/services/irp/v20220805/irp_models.d.ts +5 -5
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.d.ts +39 -7
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.js +51 -7
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +361 -128
- package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +5 -1
- package/tencentcloud/services/monitor/v20180724/monitor_client.js +6 -0
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +65 -4
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +44 -0
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +1 -5
- package/tencentcloud/services/teo/v20220901/teo_client.js +0 -6
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +0 -28
- package/tencentcloud/services/thpc/v20220401/thpc_client.d.ts +15 -3
- package/tencentcloud/services/thpc/v20220401/thpc_client.js +21 -3
- package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +67 -5
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +20 -2
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +4 -4
- package/tencentcloud/services/vod/v20180717/vod_client.d.ts +38 -20
- package/tencentcloud/services/vod/v20180717/vod_client.js +47 -21
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +273 -18
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +11 -6
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +57 -1
- package/test/antiddos.v20200309.test.js +10 -0
- package/test/cdb.v20170320.test.js +20 -0
- package/test/cdwch.v20200915.test.js +22 -2
- package/test/lighthouse.v20200324.test.js +62 -2
- package/test/monitor.v20180724.test.js +10 -0
- package/test/teo.v20220901.test.js +0 -10
- package/test/thpc.v20220401.test.js +32 -2
- package/test/vod.v20180717.test.js +44 -4
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
async function main() {
|
|
6
|
+
// 导入对应产品模块的client models。
|
|
7
|
+
const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
8
|
+
// 实例化要请求产品的client对象
|
|
9
|
+
const client = new CvmClient({
|
|
10
|
+
credential: new tencentcloud.CvmRoleCredential(),
|
|
11
|
+
region: "ap-shanghai",
|
|
12
|
+
})
|
|
13
|
+
// 通过client对象调用想要访问的接口,需要传入请求对象以及响应回调函数
|
|
14
|
+
client.DescribeZones(null, function (err, response) {
|
|
15
|
+
// 请求异常返回,打印异常信息
|
|
16
|
+
if (err) {
|
|
17
|
+
console.log(err)
|
|
18
|
+
return
|
|
19
|
+
}
|
|
20
|
+
// 请求正常返回,打印response对象
|
|
21
|
+
console.log(response)
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
main().catch(console.error)
|
package/package.json
CHANGED
package/products.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
| afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2022-11-14 06:09:18 |
|
|
9
9
|
| ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2022-04-15 06:01:25 |
|
|
10
10
|
| ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2022-11-16 06:07:01 |
|
|
11
|
-
| antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/1021) | 2022-12-
|
|
11
|
+
| antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/1021) | 2022-12-20 11:47:08 |
|
|
12
12
|
| apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
|
|
13
13
|
| ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
|
|
14
14
|
| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2022-06-07 06:00:45 |
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2022-12-09 01:11:02 |
|
|
22
22
|
| bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2022-12-15 01:09:06 |
|
|
23
23
|
| bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2022-08-09 10:42:14 |
|
|
24
|
-
| billing | [费用中心](https://cloud.tencent.com/document/product/555) | 2022-
|
|
24
|
+
| billing | [费用中心](https://cloud.tencent.com/document/product/555) | 2022-12-19 01:17:34 |
|
|
25
25
|
| bizlive | [商业直播](https://cloud.tencent.com/document/product) | 2020-03-10 01:08:07 |
|
|
26
26
|
| bm | [黑石物理服务器1.0](https://cloud.tencent.com/document/product/386) | 2022-08-09 11:50:03 |
|
|
27
27
|
| bma | [品牌经营管家](https://cloud.tencent.com/document/product/1296) | 2022-11-04 06:09:26 |
|
|
@@ -32,27 +32,27 @@
|
|
|
32
32
|
| bri | [业务风险情报](https://cloud.tencent.com/document/product/1064) | 2021-01-07 08:02:40 |
|
|
33
33
|
| bsca | [二进制软件成分分析](https://cloud.tencent.com/document/product/1483) | 2022-09-29 06:12:03 |
|
|
34
34
|
| btoe | [区块链可信取证](https://cloud.tencent.com/document/product/1259) | 2022-04-04 06:10:17 |
|
|
35
|
-
| cam | [访问管理](https://cloud.tencent.com/document/product/598) | 2022-12-
|
|
35
|
+
| cam | [访问管理](https://cloud.tencent.com/document/product/598) | 2022-12-21 01:18:15 |
|
|
36
36
|
| captcha | [验证码](https://cloud.tencent.com/document/product/1110) | 2022-12-15 01:11:14 |
|
|
37
37
|
| car | [应用云渲染](https://cloud.tencent.com/document/product/1547) | 2022-11-18 06:12:01 |
|
|
38
38
|
| casb | [云访问安全代理](https://cloud.tencent.com/document/product/1303) | 2022-10-31 06:12:52 |
|
|
39
39
|
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2022-12-12 01:11:14 |
|
|
40
40
|
| cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2022-12-15 01:11:34 |
|
|
41
41
|
| ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2022-12-16 01:10:35 |
|
|
42
|
-
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-12-
|
|
42
|
+
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-12-21 01:20:25 |
|
|
43
43
|
| cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2022-12-15 01:12:58 |
|
|
44
44
|
| cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2022-12-14 01:13:32 |
|
|
45
45
|
| cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2022-10-31 06:15:53 |
|
|
46
|
-
| cdwch | [云数据仓库 ClickHouse](https://cloud.tencent.com/document/product/1299) | 2022-12-
|
|
46
|
+
| cdwch | [云数据仓库 ClickHouse](https://cloud.tencent.com/document/product/1299) | 2022-12-20 14:06:27 |
|
|
47
47
|
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2022-09-26 06:16:02 |
|
|
48
|
-
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2022-
|
|
48
|
+
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2022-12-19 01:23:20 |
|
|
49
49
|
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2022-12-16 01:12:46 |
|
|
50
50
|
| chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2022-07-04 06:04:36 |
|
|
51
|
-
| ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2022-
|
|
51
|
+
| ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2022-12-19 01:24:16 |
|
|
52
52
|
| cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2022-06-27 06:06:02 |
|
|
53
53
|
| cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
|
|
54
54
|
| cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
|
|
55
|
-
| ckafka | [消息队列 CKafka](https://cloud.tencent.com/document/product/597) | 2022-12-
|
|
55
|
+
| ckafka | [消息队列 CKafka](https://cloud.tencent.com/document/product/597) | 2022-12-21 01:24:34 |
|
|
56
56
|
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2022-12-14 01:16:36 |
|
|
57
57
|
| cloudaudit | [云审计](https://cloud.tencent.com/document/product/629) | 2022-11-24 06:19:10 |
|
|
58
58
|
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2022-12-14 01:17:29 |
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
| cms | [内容安全](https://cloud.tencent.com/document/product) | 2020-10-29 08:03:08 |
|
|
64
64
|
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-12-14 11:33:48 |
|
|
65
65
|
| cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
|
|
66
|
-
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-12-
|
|
66
|
+
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-12-19 01:29:05 |
|
|
67
67
|
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2022-12-13 10:22:29 |
|
|
68
68
|
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
|
69
69
|
| cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2022-12-15 01:20:30 |
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
| dbdc | [云数据库独享集群](https://cloud.tencent.com/document/product/1322) | 2022-11-23 06:23:05 |
|
|
75
75
|
| dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2022-10-26 06:29:47 |
|
|
76
76
|
| dcdb | [TDSQL MySQL 版](https://cloud.tencent.com/document/product/557) | 2022-11-29 06:37:37 |
|
|
77
|
-
| dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2022-12-
|
|
77
|
+
| dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2022-12-21 01:34:36 |
|
|
78
78
|
| dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2022-11-25 06:28:38 |
|
|
79
79
|
| domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2022-05-24 06:11:36 |
|
|
80
80
|
| drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2022-04-04 06:38:48 |
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2022-12-13 10:29:37 |
|
|
91
91
|
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2022-12-12 01:25:49 |
|
|
92
92
|
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2022-12-14 01:27:17 |
|
|
93
|
-
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-12-
|
|
93
|
+
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-12-19 01:39:01 |
|
|
94
94
|
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2022-06-15 06:09:10 |
|
|
95
95
|
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2022-12-07 06:39:49 |
|
|
96
96
|
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2022-04-04 06:43:06 |
|
|
@@ -115,11 +115,11 @@
|
|
|
115
115
|
| iottid | [物联网设备身份认证](https://cloud.tencent.com/document/product/1086) | 2022-04-04 06:49:46 |
|
|
116
116
|
| iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2022-12-16 01:28:53 |
|
|
117
117
|
| iotvideoindustry | [物联网智能视频服务(行业版)](https://cloud.tencent.com/document/product/1361) | 2022-11-17 06:31:48 |
|
|
118
|
-
| irp | [智能推荐平台](https://cloud.tencent.com/document/product/1541) | 2022-
|
|
118
|
+
| irp | [智能推荐平台](https://cloud.tencent.com/document/product/1541) | 2022-12-20 01:38:37 |
|
|
119
119
|
| ivld | [媒体智能标签](https://cloud.tencent.com/document/product/1509) | 2022-10-28 11:32:11 |
|
|
120
120
|
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2022-12-13 10:37:12 |
|
|
121
121
|
| lcic | [低代码互动课堂](https://cloud.tencent.com/document/product/1639) | 2022-12-13 10:37:33 |
|
|
122
|
-
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2022-12-
|
|
122
|
+
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2022-12-21 01:48:07 |
|
|
123
123
|
| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2022-12-15 01:33:41 |
|
|
124
124
|
| lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
|
|
125
125
|
| lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 |
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
| mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2022-08-25 06:38:57 |
|
|
131
131
|
| mna | [移动网络加速](https://cloud.tencent.com/document/product/1385) | 2022-11-17 11:16:37 |
|
|
132
132
|
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2022-11-28 06:50:22 |
|
|
133
|
-
| monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2022-12-
|
|
133
|
+
| monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2022-12-21 01:51:22 |
|
|
134
134
|
| mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2022-12-16 01:33:15 |
|
|
135
135
|
| mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2022-12-08 01:38:36 |
|
|
136
136
|
| ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2022-12-09 15:05:58 |
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
| solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
|
|
162
162
|
| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2022-12-07 06:58:03 |
|
|
163
163
|
| ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2022-08-16 06:39:20 |
|
|
164
|
-
| ssl | [SSL 证书](https://cloud.tencent.com/document/product/400) | 2022-
|
|
164
|
+
| ssl | [SSL 证书](https://cloud.tencent.com/document/product/400) | 2022-12-21 02:00:03 |
|
|
165
165
|
| sslpod | [SSL证书监控SSLPod](https://cloud.tencent.com/document/product/1084) | 2022-10-31 06:47:43 |
|
|
166
166
|
| ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2022-10-20 06:38:33 |
|
|
167
167
|
| sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2022-07-07 06:15:25 |
|
|
@@ -179,22 +179,22 @@
|
|
|
179
179
|
| tcex | [腾讯云释义](https://cloud.tencent.com/document/product/1266) | 2022-07-21 06:17:29 |
|
|
180
180
|
| tci | [腾讯智学课堂分析](https://cloud.tencent.com/document/product) | 2020-08-24 08:06:03 |
|
|
181
181
|
| tcm | [服务网格](https://cloud.tencent.com/document/product/1261) | 2022-11-30 06:59:59 |
|
|
182
|
-
| tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2022-12-
|
|
182
|
+
| tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2022-12-21 02:03:06 |
|
|
183
183
|
| tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2022-12-15 01:46:24 |
|
|
184
184
|
| tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2022-10-21 06:47:14 |
|
|
185
185
|
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2022-11-17 06:47:13 |
|
|
186
186
|
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2022-11-25 07:03:54 |
|
|
187
187
|
| tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2022-12-06 07:10:10 |
|
|
188
188
|
| tem | [弹性微服务 TEM](https://cloud.tencent.com/document/product/1371) | 2022-12-15 01:49:45 |
|
|
189
|
-
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-12-
|
|
190
|
-
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2022-12-
|
|
189
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-12-20 01:58:08 |
|
|
190
|
+
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2022-12-21 02:09:45 |
|
|
191
191
|
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
|
192
192
|
| tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2022-10-31 06:55:14 |
|
|
193
193
|
| ticm | [智能鉴黄](https://cloud.tencent.com/document/product/864) | 2021-01-07 08:08:15 |
|
|
194
194
|
| tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2022-04-04 07:16:59 |
|
|
195
195
|
| tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-07-19 06:19:39 |
|
|
196
196
|
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2022-12-15 01:51:46 |
|
|
197
|
-
| tione | [腾讯云 TI 平台 TI-ONE](https://cloud.tencent.com/document/product/851) | 2022-12-
|
|
197
|
+
| tione | [腾讯云 TI 平台 TI-ONE](https://cloud.tencent.com/document/product/851) | 2022-12-20 02:01:23 |
|
|
198
198
|
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2022-12-13 10:56:59 |
|
|
199
199
|
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-12-14 01:52:28 |
|
|
200
200
|
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2022-12-09 02:09:44 |
|
|
203
203
|
| trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2022-12-07 07:14:03 |
|
|
204
204
|
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2022-12-07 07:14:07 |
|
|
205
|
-
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-12-
|
|
205
|
+
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-12-19 02:11:18 |
|
|
206
206
|
| tse | [微服务引擎 TSE](https://cloud.tencent.com/document/product/1364) | 2022-10-31 06:58:14 |
|
|
207
207
|
| tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2022-12-16 01:48:54 |
|
|
208
208
|
| tsw | [微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2022-10-31 06:59:44 |
|
|
@@ -210,9 +210,9 @@
|
|
|
210
210
|
| ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2022-04-04 07:22:44 |
|
|
211
211
|
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2022-11-16 06:46:30 |
|
|
212
212
|
| vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2022-04-04 07:22:54 |
|
|
213
|
-
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-12-
|
|
214
|
-
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-12-
|
|
215
|
-
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-12-
|
|
213
|
+
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-12-21 02:16:04 |
|
|
214
|
+
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-12-16 18:54:14 |
|
|
215
|
+
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-12-21 02:20:11 |
|
|
216
216
|
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2022-10-12 07:10:28 |
|
|
217
217
|
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2022-12-07 07:21:53 |
|
|
218
218
|
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
ClientConfig,
|
|
6
6
|
SUPPORT_LANGUAGE_LIST,
|
|
7
7
|
HttpProfile,
|
|
8
|
+
DynamicCredential,
|
|
8
9
|
} from "./interface"
|
|
9
10
|
import Sign from "./sign"
|
|
10
11
|
import { HttpConnection } from "./http/http_connection"
|
|
@@ -41,7 +42,7 @@ type ResponseData = any
|
|
|
41
42
|
export class AbstractClient {
|
|
42
43
|
sdkVersion: string
|
|
43
44
|
path: string
|
|
44
|
-
credential: Credential
|
|
45
|
+
credential: Credential | DynamicCredential
|
|
45
46
|
region: string
|
|
46
47
|
apiVersion: string
|
|
47
48
|
endpoint: string
|
|
@@ -64,14 +65,11 @@ export class AbstractClient {
|
|
|
64
65
|
/**
|
|
65
66
|
* 认证信息实例
|
|
66
67
|
*/
|
|
67
|
-
this.credential =
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
credential
|
|
74
|
-
)
|
|
68
|
+
this.credential = credential || {
|
|
69
|
+
secretId: null,
|
|
70
|
+
secretKey: null,
|
|
71
|
+
token: null,
|
|
72
|
+
}
|
|
75
73
|
|
|
76
74
|
/**
|
|
77
75
|
* 产品地域
|
|
@@ -106,6 +104,13 @@ export class AbstractClient {
|
|
|
106
104
|
}
|
|
107
105
|
}
|
|
108
106
|
|
|
107
|
+
async getCredential(): Promise<Credential> {
|
|
108
|
+
if ("getCredential" in this.credential) {
|
|
109
|
+
return await this.credential.getCredential()
|
|
110
|
+
}
|
|
111
|
+
return this.credential
|
|
112
|
+
}
|
|
113
|
+
|
|
109
114
|
/**
|
|
110
115
|
* @inner
|
|
111
116
|
*/
|
|
@@ -141,7 +146,7 @@ export class AbstractClient {
|
|
|
141
146
|
return this.doRequestWithSign3(action, req, options)
|
|
142
147
|
}
|
|
143
148
|
let params = this.mergeData(req)
|
|
144
|
-
params = this.formatRequestData(action, params)
|
|
149
|
+
params = await this.formatRequestData(action, params)
|
|
145
150
|
let res
|
|
146
151
|
try {
|
|
147
152
|
res = await HttpConnection.doRequest({
|
|
@@ -170,11 +175,12 @@ export class AbstractClient {
|
|
|
170
175
|
): Promise<ResponseData> {
|
|
171
176
|
let res
|
|
172
177
|
try {
|
|
178
|
+
const credential = await this.getCredential()
|
|
173
179
|
res = await HttpConnection.doRequestWithSign3({
|
|
174
180
|
method: this.profile.httpProfile.reqMethod,
|
|
175
181
|
url: this.profile.httpProfile.protocol + this.endpoint + this.path,
|
|
176
|
-
secretId:
|
|
177
|
-
secretKey:
|
|
182
|
+
secretId: credential.secretId,
|
|
183
|
+
secretKey: credential.secretKey,
|
|
178
184
|
region: this.region,
|
|
179
185
|
data: params || "",
|
|
180
186
|
service: this.endpoint.split(".")[0],
|
|
@@ -182,7 +188,7 @@ export class AbstractClient {
|
|
|
182
188
|
version: this.apiVersion,
|
|
183
189
|
multipart: options && options.multipart,
|
|
184
190
|
timeout: this.profile.httpProfile.reqTimeout * 1000,
|
|
185
|
-
token:
|
|
191
|
+
token: credential.token,
|
|
186
192
|
requestClient: this.sdkVersion,
|
|
187
193
|
language: this.profile.language,
|
|
188
194
|
headers: Object.assign({}, this.profile.httpProfile.headers, options.headers),
|
|
@@ -237,23 +243,25 @@ export class AbstractClient {
|
|
|
237
243
|
/**
|
|
238
244
|
* @inner
|
|
239
245
|
*/
|
|
240
|
-
private formatRequestData(action: string, params: RequestData): RequestData {
|
|
246
|
+
private async formatRequestData(action: string, params: RequestData): Promise<RequestData> {
|
|
241
247
|
params.Action = action
|
|
242
248
|
params.RequestClient = this.sdkVersion
|
|
243
249
|
params.Nonce = Math.round(Math.random() * 65535)
|
|
244
250
|
params.Timestamp = Math.round(Date.now() / 1000)
|
|
245
251
|
params.Version = this.apiVersion
|
|
246
252
|
|
|
247
|
-
|
|
248
|
-
|
|
253
|
+
const credential = await this.getCredential()
|
|
254
|
+
|
|
255
|
+
if (credential.secretId) {
|
|
256
|
+
params.SecretId = credential.secretId
|
|
249
257
|
}
|
|
250
258
|
|
|
251
259
|
if (this.region) {
|
|
252
260
|
params.Region = this.region
|
|
253
261
|
}
|
|
254
262
|
|
|
255
|
-
if (
|
|
256
|
-
params.Token =
|
|
263
|
+
if (credential.token) {
|
|
264
|
+
params.Token = credential.token
|
|
257
265
|
}
|
|
258
266
|
|
|
259
267
|
if (this.profile.language) {
|
|
@@ -265,7 +273,7 @@ export class AbstractClient {
|
|
|
265
273
|
}
|
|
266
274
|
const signStr = this.formatSignString(params)
|
|
267
275
|
|
|
268
|
-
params.Signature = Sign.sign(
|
|
276
|
+
params.Signature = Sign.sign(credential.secretKey, signStr, this.profile.signMethod)
|
|
269
277
|
return params
|
|
270
278
|
}
|
|
271
279
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Credential, DynamicCredential } from "./interface"
|
|
2
|
+
import fetch from "./http/fetch"
|
|
3
|
+
|
|
4
|
+
const META_URL = "http://metadata.tencentyun.com/latest/meta-data/"
|
|
5
|
+
const ROLE_URL = META_URL + "cam/security-credentials/"
|
|
6
|
+
const EXPIRE_BUFFER = 30 * 1000
|
|
7
|
+
|
|
8
|
+
interface CvmRoleCredentialResult {
|
|
9
|
+
TmpSecretId: string
|
|
10
|
+
TmpSecretKey: string
|
|
11
|
+
ExpiredTime: 1671330188
|
|
12
|
+
Expiration: string
|
|
13
|
+
Token: string
|
|
14
|
+
Code: string
|
|
15
|
+
}
|
|
16
|
+
export default class CvmRoleCredential implements DynamicCredential {
|
|
17
|
+
protected roleNameTask: Promise<string>
|
|
18
|
+
protected credentialTask: Promise<CvmRoleCredentialResult>
|
|
19
|
+
protected async getRoleName() {
|
|
20
|
+
const response = await fetch(ROLE_URL, {})
|
|
21
|
+
if (!response.ok) {
|
|
22
|
+
throw new Error("Get cvm role name failed, Please confirm whether the role is bound")
|
|
23
|
+
}
|
|
24
|
+
return await response.text()
|
|
25
|
+
}
|
|
26
|
+
protected async getRoleCredential(roleName: string): Promise<CvmRoleCredentialResult> {
|
|
27
|
+
const response = await fetch(ROLE_URL + roleName, {})
|
|
28
|
+
if (!response.ok) {
|
|
29
|
+
throw new Error(
|
|
30
|
+
`Get credential from metadata server by role name ${roleName} failed, http code: ${response.status}`
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
const json: CvmRoleCredentialResult = await response.json()
|
|
34
|
+
if (json.Code !== "Success") {
|
|
35
|
+
throw new Error(
|
|
36
|
+
`Get credential from metadata server by role name ${roleName} failed, Code: ${json.Code}`
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
return json
|
|
40
|
+
}
|
|
41
|
+
async getCredential(): Promise<Credential> {
|
|
42
|
+
if (!this.roleNameTask) {
|
|
43
|
+
this.roleNameTask = this.getRoleName()
|
|
44
|
+
}
|
|
45
|
+
const roleName = await this.roleNameTask
|
|
46
|
+
if (!this.credentialTask) {
|
|
47
|
+
this.credentialTask = this.getRoleCredential(roleName)
|
|
48
|
+
}
|
|
49
|
+
const credential = await this.credentialTask
|
|
50
|
+
// expired
|
|
51
|
+
if (credential.ExpiredTime * 1000 - EXPIRE_BUFFER <= Date.now()) {
|
|
52
|
+
this.credentialTask = null
|
|
53
|
+
return this.getCredential()
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return {
|
|
57
|
+
secretId: credential.TmpSecretId,
|
|
58
|
+
secretKey: credential.TmpSecretKey,
|
|
59
|
+
token: credential.Token,
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
package/src/common/http/fetch.ts
CHANGED
|
@@ -3,9 +3,9 @@ import HttpsProxyAgent = require("https-proxy-agent")
|
|
|
3
3
|
|
|
4
4
|
export interface FetchOptions extends Omit<RequestInit, "signal"> {
|
|
5
5
|
proxy?: string
|
|
6
|
-
headers
|
|
6
|
+
headers?: Record<string, string>
|
|
7
7
|
// node-fetch中的signal声明与ts自带的有点冲突,以ts的为准
|
|
8
|
-
signal
|
|
8
|
+
signal?: AbortSignal
|
|
9
9
|
}
|
|
10
10
|
export default function (url: string, options: FetchOptions): Promise<Response> {
|
|
11
11
|
const instanceOptions = options || ({} as FetchOptions)
|
package/src/common/interface.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface ClientConfig {
|
|
|
7
7
|
* @param {Credential} credential 认证信息
|
|
8
8
|
* 必选
|
|
9
9
|
*/
|
|
10
|
-
credential: Credential
|
|
10
|
+
credential: Credential | DynamicCredential
|
|
11
11
|
/**
|
|
12
12
|
* @param {string} region 产品地域
|
|
13
13
|
* 对于要求区分地域的产品,此参数必选(如 cvm);对于不区分地域的产品(如 sms),无需传入。
|
|
@@ -112,3 +112,10 @@ export interface Credential {
|
|
|
112
112
|
*/
|
|
113
113
|
token?: string
|
|
114
114
|
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* 动态认证信息
|
|
118
|
+
*/
|
|
119
|
+
export interface DynamicCredential {
|
|
120
|
+
getCredential(): Promise<Credential>
|
|
121
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const sdkVersion = "4.0.
|
|
1
|
+
export const sdkVersion = "4.0.507"
|
|
@@ -85,6 +85,7 @@ import {
|
|
|
85
85
|
DisassociateDDoSEipAddressResponse,
|
|
86
86
|
DescribeBgpBizTrendRequest,
|
|
87
87
|
DeleteCCThresholdPolicyResponse,
|
|
88
|
+
DescribeBizHttpStatusRequest,
|
|
88
89
|
SourceServer,
|
|
89
90
|
CCLevelPolicy,
|
|
90
91
|
DescribeOverviewIndexResponse,
|
|
@@ -107,6 +108,7 @@ import {
|
|
|
107
108
|
DescribeOverviewDDoSEventListResponse,
|
|
108
109
|
CreateCcGeoIPBlockConfigResponse,
|
|
109
110
|
DescribeOverviewAttackTrendResponse,
|
|
111
|
+
HttpStatusMap,
|
|
110
112
|
Layer7Rule,
|
|
111
113
|
ModifyPortAclConfigResponse,
|
|
112
114
|
DescribeBasicDeviceStatusRequest,
|
|
@@ -159,6 +161,7 @@ import {
|
|
|
159
161
|
DeleteDDoSBlackWhiteIpListRequest,
|
|
160
162
|
PackInfo,
|
|
161
163
|
CreateDDoSConnectLimitResponse,
|
|
164
|
+
WaterPrintRelation,
|
|
162
165
|
IPLineInfo,
|
|
163
166
|
DescribeCcBlackWhiteIpListRequest,
|
|
164
167
|
DescribeListListenerResponse,
|
|
@@ -200,7 +203,7 @@ import {
|
|
|
200
203
|
ModifyDomainUsrNameRequest,
|
|
201
204
|
CreateDDoSConnectLimitRequest,
|
|
202
205
|
CreateWaterPrintKeyRequest,
|
|
203
|
-
|
|
206
|
+
DescribeBizHttpStatusResponse,
|
|
204
207
|
InsL7Rules,
|
|
205
208
|
DescribeCCReqLimitPolicyListResponse,
|
|
206
209
|
DescribeListDDoSAIResponse,
|
|
@@ -732,6 +735,16 @@ export class Client extends AbstractClient {
|
|
|
732
735
|
return this.request("CreateDDoSSpeedLimitConfig", req, cb)
|
|
733
736
|
}
|
|
734
737
|
|
|
738
|
+
/**
|
|
739
|
+
* 获取业务流量状态码统计列表
|
|
740
|
+
*/
|
|
741
|
+
async DescribeBizHttpStatus(
|
|
742
|
+
req: DescribeBizHttpStatusRequest,
|
|
743
|
+
cb?: (error: string, rep: DescribeBizHttpStatusResponse) => void
|
|
744
|
+
): Promise<DescribeBizHttpStatusResponse> {
|
|
745
|
+
return this.request("DescribeBizHttpStatus", req, cb)
|
|
746
|
+
}
|
|
747
|
+
|
|
735
748
|
/**
|
|
736
749
|
* 获取高防包资产实例列表
|
|
737
750
|
|
|
@@ -1683,6 +1683,51 @@ export interface DeleteCCThresholdPolicyResponse {
|
|
|
1683
1683
|
RequestId?: string
|
|
1684
1684
|
}
|
|
1685
1685
|
|
|
1686
|
+
/**
|
|
1687
|
+
* DescribeBizHttpStatus请求参数结构体
|
|
1688
|
+
*/
|
|
1689
|
+
export interface DescribeBizHttpStatusRequest {
|
|
1690
|
+
/**
|
|
1691
|
+
* 统计方式,仅支持sum
|
|
1692
|
+
*/
|
|
1693
|
+
Statistics: string
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* 大禹子产品代号(bgpip表示高防IP)
|
|
1697
|
+
*/
|
|
1698
|
+
Business: string
|
|
1699
|
+
|
|
1700
|
+
/**
|
|
1701
|
+
* 统计周期,可取值60,300,1800,3600, 21600,86400,单位秒
|
|
1702
|
+
*/
|
|
1703
|
+
Period: number
|
|
1704
|
+
|
|
1705
|
+
/**
|
|
1706
|
+
* 统计开始时间。 如2020-02-01 12:04:12
|
|
1707
|
+
*/
|
|
1708
|
+
StartTime: string
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* 统计结束时间。如2020-02-03 18:03:23
|
|
1712
|
+
*/
|
|
1713
|
+
EndTime: string
|
|
1714
|
+
|
|
1715
|
+
/**
|
|
1716
|
+
* 资源Id
|
|
1717
|
+
*/
|
|
1718
|
+
Id: string
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* 特定域名查询
|
|
1722
|
+
*/
|
|
1723
|
+
Domain?: string
|
|
1724
|
+
|
|
1725
|
+
/**
|
|
1726
|
+
* 协议及端口列表,协议可取值TCP, UDP, HTTP, HTTPS,仅统计纬度为连接数时有效
|
|
1727
|
+
*/
|
|
1728
|
+
ProtoInfo?: Array<ProtocolPort>
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1686
1731
|
/**
|
|
1687
1732
|
* 源站信息
|
|
1688
1733
|
*/
|
|
@@ -2212,6 +2257,61 @@ export interface DescribeOverviewAttackTrendResponse {
|
|
|
2212
2257
|
RequestId?: string
|
|
2213
2258
|
}
|
|
2214
2259
|
|
|
2260
|
+
/**
|
|
2261
|
+
* 业务流量的http状态码聚合数据
|
|
2262
|
+
*/
|
|
2263
|
+
export interface HttpStatusMap {
|
|
2264
|
+
/**
|
|
2265
|
+
* http2xx回源状态码
|
|
2266
|
+
*/
|
|
2267
|
+
SourceHttp2xx: Array<number>
|
|
2268
|
+
|
|
2269
|
+
/**
|
|
2270
|
+
* http5xx状态码
|
|
2271
|
+
*/
|
|
2272
|
+
Http5xx: Array<number>
|
|
2273
|
+
|
|
2274
|
+
/**
|
|
2275
|
+
* http5xx回源状态码
|
|
2276
|
+
*/
|
|
2277
|
+
SourceHttp5xx: Array<number>
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* http404回源状态码
|
|
2281
|
+
*/
|
|
2282
|
+
SourceHttp404: Array<number>
|
|
2283
|
+
|
|
2284
|
+
/**
|
|
2285
|
+
* http4xx状态码
|
|
2286
|
+
*/
|
|
2287
|
+
Http4xx: Array<number>
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* http4xx回源状态码
|
|
2291
|
+
*/
|
|
2292
|
+
SourceHttp4xx: Array<number>
|
|
2293
|
+
|
|
2294
|
+
/**
|
|
2295
|
+
* http2xx状态码
|
|
2296
|
+
*/
|
|
2297
|
+
Http2xx: Array<number>
|
|
2298
|
+
|
|
2299
|
+
/**
|
|
2300
|
+
* http404状态码
|
|
2301
|
+
*/
|
|
2302
|
+
Http404: Array<number>
|
|
2303
|
+
|
|
2304
|
+
/**
|
|
2305
|
+
* http3xx回源状态码
|
|
2306
|
+
*/
|
|
2307
|
+
SourceHttp3xx: Array<number>
|
|
2308
|
+
|
|
2309
|
+
/**
|
|
2310
|
+
* http3xx状态码
|
|
2311
|
+
*/
|
|
2312
|
+
Http3xx: Array<number>
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2215
2315
|
/**
|
|
2216
2316
|
* 7层转发规则
|
|
2217
2317
|
*/
|
|
@@ -3351,6 +3451,21 @@ export interface CreateDDoSConnectLimitResponse {
|
|
|
3351
3451
|
RequestId?: string
|
|
3352
3452
|
}
|
|
3353
3453
|
|
|
3454
|
+
/**
|
|
3455
|
+
* 水印配置相关信息
|
|
3456
|
+
*/
|
|
3457
|
+
export interface WaterPrintRelation {
|
|
3458
|
+
/**
|
|
3459
|
+
* 水印配置
|
|
3460
|
+
*/
|
|
3461
|
+
WaterPrintConfig: WaterPrintConfig
|
|
3462
|
+
|
|
3463
|
+
/**
|
|
3464
|
+
* 水印配置所属的资源实例
|
|
3465
|
+
*/
|
|
3466
|
+
InstanceDetailList: Array<InstanceRelation>
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3354
3469
|
/**
|
|
3355
3470
|
* IP线路信息
|
|
3356
3471
|
*/
|
|
@@ -4496,18 +4611,18 @@ export interface CreateWaterPrintKeyRequest {
|
|
|
4496
4611
|
}
|
|
4497
4612
|
|
|
4498
4613
|
/**
|
|
4499
|
-
*
|
|
4614
|
+
* DescribeBizHttpStatus返回参数结构体
|
|
4500
4615
|
*/
|
|
4501
|
-
export interface
|
|
4616
|
+
export interface DescribeBizHttpStatusResponse {
|
|
4502
4617
|
/**
|
|
4503
|
-
*
|
|
4618
|
+
* 业务流量http状态码统计数据
|
|
4504
4619
|
*/
|
|
4505
|
-
|
|
4620
|
+
HttpStatusMap: HttpStatusMap
|
|
4506
4621
|
|
|
4507
4622
|
/**
|
|
4508
|
-
*
|
|
4623
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4509
4624
|
*/
|
|
4510
|
-
|
|
4625
|
+
RequestId?: string
|
|
4511
4626
|
}
|
|
4512
4627
|
|
|
4513
4628
|
/**
|
|
@@ -237,12 +237,10 @@ export interface DescribeDosageDetailByDateRequest {
|
|
|
237
237
|
10195 互动直播-边缘机房
|
|
238
238
|
|
|
239
239
|
cdn业务:
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
10231:CDN静态加速流量(海外)
|
|
245
|
-
10232:CDN静态加速带宽(海外)
|
|
240
|
+
102383:CDN静态加速流量(国内)
|
|
241
|
+
102384:CDN静态加速带宽(国内)
|
|
242
|
+
102385:CDN静态加速流量(海外)
|
|
243
|
+
102386:CDN静态加速带宽(海外)
|
|
246
244
|
|
|
247
245
|
100967:弹性公网IP-按流量计费
|
|
248
246
|
101065:公网负载均衡-按流量计费
|