From 84bbfe6aa10f4182844a5da74e87cd519bda315a Mon Sep 17 00:00:00 2001 From: tencentcloudapi Date: Mon, 10 Feb 2025 04:11:06 +0800 Subject: [PATCH] release 3.0.1264.1 --- CHANGELOG.md | 147 +++++++ SERVICE_CHANGELOG.md | 236 +++++++++-- products.md | 36 +- pyproject.toml | 4 +- tccli/__init__.py | 2 +- .../DescribeFirewallTemplateApplyRecords.md | 2 + .../DescribeFirewallTemplateRules.md | 2 + .../mongodb/v20190725/CreateDBInstanceHour.md | 2 +- .../mongodb/v20190725/DescribeDBInstances.md | 2 +- .../mongodb/v20190725/DescribeSpecInfo.md | 2 +- .../DescribePrometheusInstanceDetail.md | 2 +- .../v20180724/DescribePrometheusTemp.md | 106 +---- .../GetPrometheusAgentManagementCommand.md | 10 +- .../examples/trtc/v20190722/DeletePicture.md | 4 +- .../trtc/v20190722/DescribePicture.md | 24 +- .../examples/trtc/v20190722/ModifyPicture.md | 12 +- tccli/services/aiart/v20221229/api.json | 4 +- tccli/services/batch/v20170312/api.json | 2 +- tccli/services/cdb/v20170320/api.json | 4 +- tccli/services/cdb/v20170320/examples.json | 10 +- tccli/services/cfw/cfw_client.py | 53 --- tccli/services/cfw/v20190904/api.json | 163 -------- tccli/services/cfw/v20190904/examples.json | 8 - tccli/services/ckafka/v20190819/api.json | 13 +- tccli/services/cvm/v20170312/api.json | 2 +- tccli/services/cwp/cwp_client.py | 244 ++++-------- tccli/services/cwp/v20180228/api.json | 374 ------------------ tccli/services/cwp/v20180228/examples.json | 16 - tccli/services/dsgc/v20190723/api.json | 15 +- tccli/services/ess/v20201111/api.json | 2 +- tccli/services/essbasic/v20210526/api.json | 2 +- tccli/services/lighthouse/v20200324/api.json | 77 ++++ .../lighthouse/v20200324/examples.json | 4 +- tccli/services/live/v20180801/api.json | 2 +- tccli/services/lkeap/v20240522/api.json | 4 +- tccli/services/mna/v20210119/api.json | 40 +- tccli/services/mongodb/v20190725/api.json | 30 +- .../services/mongodb/v20190725/examples.json | 10 +- tccli/services/monitor/v20180724/api.json | 42 +- .../services/monitor/v20180724/examples.json | 6 +- tccli/services/tccatalog/v20241024/api.json | 22 ++ tccli/services/trtc/v20190722/api.json | 46 +-- tccli/services/trtc/v20190722/examples.json | 8 +- 43 files changed, 718 insertions(+), 1078 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c90ac16ff..08cb180087 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,150 @@ +# Release 3.0.1264.1 + +## 云防火墙(cfw) 版本:2019-09-04 + +### 第 76 次发布 + +发布时间:2025-02-10 01:16:29 + +本次发布包含了以下内容: + +改善已有的文档。 + +**删除接口**: + +* AddAcRule + + + +## 消息队列 CKafka 版(ckafka) 版本:2019-08-19 + +### 第 118 次发布 + +发布时间:2025-02-10 01:17:31 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [ModifyInstanceAttributes](https://cloud.tencent.com/document/api/597/40832) + + * 新增入参:UncleanLeaderElectionEnable + + + + +## 主机安全(cwp) 版本:2018-02-28 + +### 第 139 次发布 + +发布时间:2025-02-10 01:21:46 + +本次发布包含了以下内容: + +改善已有的文档。 + +**删除接口**: + +* DescribeAttackLogs +* DescribeComponentStatistics + +**删除数据结构**: + +* ComponentStatistics +* DefendAttackLog + + + +## 数据安全治理中心(dsgc) 版本:2019-07-23 + +### 第 24 次发布 + +发布时间:2025-02-10 01:29:02 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [UpdateDSPASelfBuildResource](https://cloud.tencent.com/document/api/1087/97163) + + * 新增入参:ResourceName + + * **修改入参**:ResourceVPort, UserName, Password + + + + +## 轻量应用服务器(lighthouse) 版本:2020-03-24 + +### 第 66 次发布 + +发布时间:2025-02-10 01:42:35 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增数据结构: + +* [SupportIpv6Detail](https://cloud.tencent.com/document/api/1207/47576#SupportIpv6Detail) + +修改数据结构: + +* [FirewallRule](https://cloud.tencent.com/document/api/1207/47576#FirewallRule) + + * 新增成员:Ipv6CidrBlock + +* [FirewallRuleInfo](https://cloud.tencent.com/document/api/1207/47576#FirewallRuleInfo) + + * 新增成员:Ipv6CidrBlock + +* [Instance](https://cloud.tencent.com/document/api/1207/47576#Instance) + + * 新增成员:SupportIpv6Detail, PublicIpv6Addresses + + + + +## 腾讯云可观测平台(monitor) 版本:2018-07-24 + +### 第 130 次发布 + +发布时间:2025-02-10 01:46:38 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [RemoteWrite](https://cloud.tencent.com/document/api/248/30354#RemoteWrite) + + + + +## 统一Catalog服务(tccatalog) 版本:2024-10-24 + +### 第 3 次发布 + +发布时间:2025-02-10 01:57:53 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [NetWork](https://cloud.tencent.com/document/api/1784/115897#NetWork) + + * 新增成员:ClbIp, ClbPort + + + + # Release 3.0.1263.1 ## 云数据库 MySQL(cdb) 版本:2017-03-20 diff --git a/SERVICE_CHANGELOG.md b/SERVICE_CHANGELOG.md index 93eb8dc847..cd6d6a39a2 100644 --- a/SERVICE_CHANGELOG.md +++ b/SERVICE_CHANGELOG.md @@ -1,74 +1,147 @@ # 本版本更新包含以下内容: -## 云数据库 MySQL(cdb) 版本:2017-03-20 +## 云防火墙(cfw) 版本:2019-09-04 -### 第 186 次发布 +### 第 76 次发布 -发布时间:2025-02-07 01:09:45 +发布时间:2025-02-10 01:16:29 本次发布包含了以下内容: 改善已有的文档。 -**预下线接口**: +**删除接口**: -* DescribeCpuExpandStrategy +* AddAcRule -## 大模型知识引擎(lke) 版本:2023-11-30 +## 消息队列 CKafka 版(ckafka) 版本:2019-08-19 -### 第 27 次发布 +### 第 118 次发布 -发布时间:2025-02-07 01:22:45 +发布时间:2025-02-10 01:17:31 本次发布包含了以下内容: 改善已有的文档。 -修改数据结构: +修改接口: -* [ModelInfo](https://cloud.tencent.com/document/api/1759/105104#ModelInfo) +* [ModifyInstanceAttributes](https://cloud.tencent.com/document/api/597/40832) - * 新增成员:Source, Icon, IsFree + * 新增入参:UncleanLeaderElectionEnable -## 统一Catalog服务(tccatalog) 版本:2024-10-24 +## 主机安全(cwp) 版本:2018-02-28 -### 第 2 次发布 +### 第 139 次发布 -发布时间:2025-02-07 01:28:26 +发布时间:2025-02-10 01:21:46 + +本次发布包含了以下内容: + +改善已有的文档。 + +**删除接口**: + +* DescribeAttackLogs +* DescribeComponentStatistics + +**删除数据结构**: + +* ComponentStatistics +* DefendAttackLog + + + +## 数据安全治理中心(dsgc) 版本:2019-07-23 + +### 第 24 次发布 + +发布时间:2025-02-10 01:29:02 本次发布包含了以下内容: 改善已有的文档。 +修改接口: + +* [UpdateDSPASelfBuildResource](https://cloud.tencent.com/document/api/1087/97163) + + * 新增入参:ResourceName + + * **修改入参**:ResourceVPort, UserName, Password + + + + +## 轻量应用服务器(lighthouse) 版本:2020-03-24 + +### 第 66 次发布 + +发布时间:2025-02-10 01:42:35 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增数据结构: + +* [SupportIpv6Detail](https://cloud.tencent.com/document/api/1207/47576#SupportIpv6Detail) + 修改数据结构: -* [TccConnection](https://cloud.tencent.com/document/api/1784/115897#TccConnection) +* [FirewallRule](https://cloud.tencent.com/document/api/1207/47576#FirewallRule) - * 新增成员:HiveVersion, Location, HmsEndpointServiceId + * 新增成员:Ipv6CidrBlock - * **修改成员**:EndpointServiceId, MetaStoreUrl, NetWork +* [FirewallRuleInfo](https://cloud.tencent.com/document/api/1207/47576#FirewallRuleInfo) + * 新增成员:Ipv6CidrBlock +* [Instance](https://cloud.tencent.com/document/api/1207/47576#Instance) + * 新增成员:SupportIpv6Detail, PublicIpv6Addresses -## 消息队列 RocketMQ 版(trocket) 版本:2023-03-08 -### 第 31 次发布 -发布时间:2025-02-07 01:31:01 + +## 腾讯云可观测平台(monitor) 版本:2018-07-24 + +### 第 130 次发布 + +发布时间:2025-02-10 01:46:38 本次发布包含了以下内容: 改善已有的文档。 -新增接口: +修改数据结构: + +* [RemoteWrite](https://cloud.tencent.com/document/api/248/30354#RemoteWrite) + + + + +## 统一Catalog服务(tccatalog) 版本:2024-10-24 + +### 第 3 次发布 + +发布时间:2025-02-10 01:57:53 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [NetWork](https://cloud.tencent.com/document/api/1784/115897#NetWork) + + * 新增成员:ClbIp, ClbPort -* [ModifyInstanceEndpoint](https://cloud.tencent.com/document/api/1493/115981) @@ -27910,6 +27983,18 @@ ## 云防火墙(cfw) 版本:2019-09-04 +### 第 76 次发布 + +发布时间:2025-02-10 01:16:29 + +本次发布包含了以下内容: + +改善已有的文档。 + +**删除接口**: + +* AddAcRule + ### 第 75 次发布 发布时间:2025-01-27 01:11:03 @@ -30398,6 +30483,21 @@ ## 消息队列 CKafka 版(ckafka) 版本:2019-08-19 +### 第 118 次发布 + +发布时间:2025-02-10 01:17:31 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [ModifyInstanceAttributes](https://cloud.tencent.com/document/api/597/40832) + + * 新增入参:UncleanLeaderElectionEnable + + ### 第 117 次发布 发布时间:2025-01-01 01:12:29 @@ -46578,6 +46678,24 @@ ## 主机安全(cwp) 版本:2018-02-28 +### 第 139 次发布 + +发布时间:2025-02-10 01:21:46 + +本次发布包含了以下内容: + +改善已有的文档。 + +**删除接口**: + +* DescribeAttackLogs +* DescribeComponentStatistics + +**删除数据结构**: + +* ComponentStatistics +* DefendAttackLog + ### 第 138 次发布 发布时间:2025-01-22 01:12:36 @@ -62120,6 +62238,23 @@ ## 数据安全治理中心(dsgc) 版本:2019-07-23 +### 第 24 次发布 + +发布时间:2025-02-10 01:29:02 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [UpdateDSPASelfBuildResource](https://cloud.tencent.com/document/api/1087/97163) + + * 新增入参:ResourceName + + * **修改入参**:ResourceVPort, UserName, Password + + ### 第 23 次发布 发布时间:2024-12-20 16:58:37 @@ -95599,6 +95734,33 @@ ## 轻量应用服务器(lighthouse) 版本:2020-03-24 +### 第 66 次发布 + +发布时间:2025-02-10 01:42:35 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增数据结构: + +* [[SupportIpv6Detail](https://cloud.tencent.com/document/api/1207/47576#SupportIpv6Detail)](https://cloud.tencent.com/document/api/1207/47576#[SupportIpv6Detail](https://cloud.tencent.com/document/api/1207/47576#SupportIpv6Detail)) + +修改数据结构: + +* [FirewallRule](https://cloud.tencent.com/document/api/1207/47576#FirewallRule) + + * 新增成员:Ipv6CidrBlock + +* [FirewallRuleInfo](https://cloud.tencent.com/document/api/1207/47576#FirewallRuleInfo) + + * 新增成员:Ipv6CidrBlock + +* [Instance](https://cloud.tencent.com/document/api/1207/47576#Instance) + + * 新增成员:SupportIpv6Detail, PublicIpv6Addresses + + ### 第 65 次发布 发布时间:2025-01-20 01:19:11 @@ -103970,6 +104132,19 @@ ## 腾讯云可观测平台(monitor) 版本:2018-07-24 +### 第 130 次发布 + +发布时间:2025-02-10 01:46:38 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [RemoteWrite](https://cloud.tencent.com/document/api/248/30354#RemoteWrite) + + ### 第 129 次发布 发布时间:2025-01-15 01:21:56 @@ -135552,6 +135727,21 @@ ## 统一Catalog服务(tccatalog) 版本:2024-10-24 +### 第 3 次发布 + +发布时间:2025-02-10 01:57:53 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [NetWork](https://cloud.tencent.com/document/api/1784/115897#NetWork) + + * 新增成员:ClbIp, ClbPort + + ### 第 2 次发布 发布时间:2025-02-07 01:28:26 @@ -157917,7 +158107,7 @@ 新增接口: -* [[ModifyInstanceEndpoint](https://cloud.tencent.com/document/api/1493/115981)](https://cloud.tencent.com/document/api/#/#) +* [ModifyInstanceEndpoint](https://cloud.tencent.com/document/api/1493/115981) ### 第 30 次发布 diff --git a/products.md b/products.md index 6f27dda102..af561d7250 100644 --- a/products.md +++ b/products.md @@ -7,7 +7,7 @@ | advisor | [云顾问](https://cloud.tencent.com/document/product/1264) | 2025-01-16 20:27:23 | | af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2024-11-22 11:20:38 | | afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2024-05-31 01:07:25 | -| aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2025-01-15 01:07:21 | +| aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2025-02-10 01:07:18 | | ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2023-08-17 01:06:14 | | ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2025-01-08 01:09:45 | | anicloud | [动效素材服务](https://cloud.tencent.com/document/product/1641) | 2023-05-18 01:01:53 | @@ -21,7 +21,7 @@ | asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2025-01-23 01:08:34 | | asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2023-05-18 01:04:02 | | ba | [ICP备案](https://cloud.tencent.com/document/product/243) | 2024-12-19 01:10:53 | -| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2025-01-10 01:08:10 | +| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2025-02-10 01:09:36 | | bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2024-11-14 01:10:31 | | bh | [运维安全中心(堡垒机)](https://cloud.tencent.com/document/product/1025) | 2025-01-09 01:09:37 | | bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2025-01-24 01:08:37 | @@ -43,7 +43,7 @@ | cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2025-01-17 01:09:42 | | cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2025-01-10 01:09:12 | | ccc | [云联络中心](https://cloud.tencent.com/document/product/679) | 2025-01-24 01:09:27 | -| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2025-02-07 01:09:45 | +| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2025-02-10 01:13:20 | | cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2024-11-15 01:15:46 | | cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2025-01-14 01:09:45 | | cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2024-11-08 01:17:02 | @@ -53,13 +53,13 @@ | cdz | [专属可用区](https://cloud.tencent.com/document/product/1629) | 2024-11-14 01:17:55 | | cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2025-01-22 01:10:37 | | cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2025-01-20 01:10:16 | -| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2025-02-07 01:11:05 | +| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2025-02-10 01:16:29 | | chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2024-12-27 10:55:07 | | ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2024-10-28 01:19:38 | | cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2023-05-18 01:12:07 | | cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 | | cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 | -| ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) | 2025-01-01 01:12:29 | +| ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) | 2025-02-10 01:17:31 | | clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2025-01-17 01:11:39 | | cloudapp | [云应用](https://cloud.tencent.com/document/product/1689) | 2025-01-09 01:12:37 | | cloudaudit | [操作审计](https://cloud.tencent.com/document/product/629) | 2025-01-15 01:11:23 | @@ -74,8 +74,8 @@ | cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2023-09-21 02:09:54 | | csip | [云安全一体化平台](https://cloud.tencent.com/document/product/664) | 2025-01-10 01:11:55 | | csxg | [5G入云服务](https://cloud.tencent.com/document/product/1687) | 2024-03-20 01:12:25 | -| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2025-01-21 01:07:28 | -| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2025-01-22 01:12:36 | +| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2025-02-10 01:21:01 | +| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2025-02-10 01:21:46 | | cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 | | cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2025-01-09 01:14:38 | | dasb | [运维安全中心(堡垒机)](https://cloud.tencent.com/document/product/1025) | 2024-11-19 01:26:13 | @@ -90,7 +90,7 @@ | domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2024-12-25 01:30:08 | | drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2025-01-09 01:16:10 | | ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2024-03-20 01:15:13 | -| dsgc | [数据安全治理中心](https://cloud.tencent.com/document/product/1087) | 2025-01-15 01:14:50 | +| dsgc | [数据安全治理中心](https://cloud.tencent.com/document/product/1087) | 2025-02-10 01:29:02 | | dtf | [分布式事务](https://cloud.tencent.com/document/product/1224) | 2022-04-04 06:38:57 | | dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2025-01-09 01:16:34 | | eb | [事件总线](https://cloud.tencent.com/document/product/1359) | 2024-12-26 01:31:46 | @@ -101,8 +101,8 @@ | eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 | | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2025-02-07 01:17:36 | | es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2025-01-13 01:16:10 | -| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2025-01-16 01:16:17 | -| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2025-01-23 01:16:56 | +| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2025-02-10 01:33:14 | +| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2025-02-10 01:34:02 | | facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2024-12-26 01:36:01 | | faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2025-01-24 01:16:50 | | fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2024-12-25 01:36:47 | @@ -141,10 +141,10 @@ | keewidb | [云数据库 KeeWiDB](https://cloud.tencent.com/document/product/1520) | 2025-01-09 01:20:47 | | kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2024-11-07 01:44:48 | | lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2025-01-21 01:14:38 | -| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2025-01-27 01:21:56 | -| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2025-01-14 01:19:30 | +| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2025-02-10 01:42:35 | +| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2025-02-10 01:43:13 | | lke | [大模型知识引擎](https://cloud.tencent.com/document/product/1759) | 2025-02-07 01:22:45 | -| lkeap | [知识引擎原子能力](https://cloud.tencent.com/document/product/1772) | 2025-02-06 11:42:18 | +| lkeap | [知识引擎原子能力](https://cloud.tencent.com/document/product/1772) | 2025-02-07 18:22:13 | | lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 | | lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 | | mall | [商场客留大数据](https://cloud.tencent.com/document/product/1707) | 2024-03-20 01:20:11 | @@ -153,9 +153,9 @@ | memcached | [云数据库Memcached](https://cloud.tencent.com/document/product/241) | 2024-12-16 01:45:51 | | mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-07-08 06:11:32 | | mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2024-11-11 01:49:22 | -| mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2025-01-17 01:21:18 | -| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2025-02-06 01:23:15 | -| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2025-01-17 01:21:34 | +| mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2025-02-10 01:45:54 | +| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2025-02-08 17:32:26 | +| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2025-02-10 01:46:38 | | mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2025-01-20 01:20:52 | | mqtt | [消息队列 MQTT 版](https://cloud.tencent.com/document/product/1778) | 2024-12-19 01:49:38 | | mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2024-12-12 01:48:36 | @@ -205,7 +205,7 @@ | tcaplusdb | [游戏数据库 TcaplusDB](https://cloud.tencent.com/document/product/596) | 2024-08-05 02:05:20 | | tcb | [云开发 CloudBase](https://cloud.tencent.com/document/product/876) | 2025-01-13 01:24:44 | | tcbr | [云托管 CloudBase Run](https://cloud.tencent.com/document/product/1243) | 2025-01-08 01:27:40 | -| tccatalog | [统一Catalog服务](https://cloud.tencent.com/document/product/1784) | 2025-02-07 01:28:26 | +| tccatalog | [统一Catalog服务](https://cloud.tencent.com/document/product/1784) | 2025-02-10 01:57:53 | | tcex | [腾讯云释义](https://cloud.tencent.com/document/product/1266) | 2022-07-21 06:17:29 | | tchd | [腾讯云健康看板](https://cloud.tencent.com/document/product/1688) | 2025-01-16 01:25:03 | | tci | [腾讯智学课堂分析](https://cloud.tencent.com/document/product) | 2020-08-24 08:06:03 | @@ -236,7 +236,7 @@ | trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2025-02-07 01:31:01 | | trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2024-11-08 02:10:59 | | trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2025-01-21 01:22:38 | -| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2025-02-07 01:31:26 | +| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2025-02-10 02:05:03 | | tse | [微服务引擎](https://cloud.tencent.com/document/product/1364) | 2025-01-21 01:22:52 | | tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2024-12-30 02:06:44 | | tsi | [腾讯同传系统](https://cloud.tencent.com/document/product/1399) | 2024-10-23 01:36:51 | diff --git a/pyproject.toml b/pyproject.toml index 1e72760500..c85d1a9bfa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ exclude = ["tccli/examples"] [project] name = "tccli" -version = "3.0.1263.1" +version = "3.0.1264.1" authors = [ { name="tencentcloudapi", email="tencentcloudapi@tencent.com" }, ] @@ -24,7 +24,7 @@ classifiers = [ dependencies = [ "jmespath==0.10.0", "six==1.16.0", - "tencentcloud-sdk-python>=3.0.1263", + "tencentcloud-sdk-python>=3.0.1264", ] [project.urls] diff --git a/tccli/__init__.py b/tccli/__init__.py index ad1e0be04d..270c32f468 100644 --- a/tccli/__init__.py +++ b/tccli/__init__.py @@ -1 +1 @@ -__version__ = '3.0.1263.1' +__version__ = '3.0.1264.1' diff --git a/tccli/examples/lighthouse/v20200324/DescribeFirewallTemplateApplyRecords.md b/tccli/examples/lighthouse/v20200324/DescribeFirewallTemplateApplyRecords.md index ace8613d43..7e1e5e5f52 100644 --- a/tccli/examples/lighthouse/v20200324/DescribeFirewallTemplateApplyRecords.md +++ b/tccli/examples/lighthouse/v20200324/DescribeFirewallTemplateApplyRecords.md @@ -36,6 +36,7 @@ Output: "FirewallRule": { "Action": "ACCEPT", "CidrBlock": "0.0.0.0/0", + "Ipv6CidrBlock": "", "FirewallRuleDescription": "tcp 80", "Port": "81", "Protocol": "TCP" @@ -46,6 +47,7 @@ Output: "FirewallRule": { "Action": "DROP", "CidrBlock": "0.0.0.0/0", + "Ipv6CidrBlock": "", "FirewallRuleDescription": "udp 80", "Port": "81", "Protocol": "UDP" diff --git a/tccli/examples/lighthouse/v20200324/DescribeFirewallTemplateRules.md b/tccli/examples/lighthouse/v20200324/DescribeFirewallTemplateRules.md index 15ae489c47..3772853bc2 100644 --- a/tccli/examples/lighthouse/v20200324/DescribeFirewallTemplateRules.md +++ b/tccli/examples/lighthouse/v20200324/DescribeFirewallTemplateRules.md @@ -20,6 +20,7 @@ Output: "Action": "ACCEPT", "AppType": "user-defined", "CidrBlock": "0.0.0.0/0", + "Ipv6CidrBlock": "::/0", "FirewallRuleDescription": "tcp 80", "Port": "81", "Protocol": "TCP" @@ -31,6 +32,7 @@ Output: "Action": "DROP", "AppType": "user-defined", "CidrBlock": "0.0.0.0/0", + "Ipv6CidrBlock": "::/0", "FirewallRuleDescription": "udp 80", "Port": "81", "Protocol": "UDP" diff --git a/tccli/examples/mongodb/v20190725/CreateDBInstanceHour.md b/tccli/examples/mongodb/v20190725/CreateDBInstanceHour.md index f64371feb0..9ab19f830d 100644 --- a/tccli/examples/mongodb/v20190725/CreateDBInstanceHour.md +++ b/tccli/examples/mongodb/v20190725/CreateDBInstanceHour.md @@ -15,7 +15,7 @@ tccli mongodb CreateDBInstanceHour --cli-unfold-argument \ --NodeNum 2 \ --ReplicateSetNum 1 \ --MachineCode HIO10G \ - --MongoVersion MONGO_40_WT + --MongoVersion MONGO_50_WT ``` Output: diff --git a/tccli/examples/mongodb/v20190725/DescribeDBInstances.md b/tccli/examples/mongodb/v20190725/DescribeDBInstances.md index 978273825c..ca06ff25b6 100644 --- a/tccli/examples/mongodb/v20190725/DescribeDBInstances.md +++ b/tccli/examples/mongodb/v20190725/DescribeDBInstances.md @@ -7,7 +7,7 @@ Input: ``` tccli mongodb DescribeDBInstances --cli-unfold-argument \ --Status 0 \ - --OrderBy DESC \ + --OrderBy ProjectId \ --InstanceIds cmgo-3vgr**** \ --VpcId vpc-gfb3**** \ --Tags.0.TagKey testTag \ diff --git a/tccli/examples/mongodb/v20190725/DescribeSpecInfo.md b/tccli/examples/mongodb/v20190725/DescribeSpecInfo.md index 65dec1cc6c..a61343ec7b 100644 --- a/tccli/examples/mongodb/v20190725/DescribeSpecInfo.md +++ b/tccli/examples/mongodb/v20190725/DescribeSpecInfo.md @@ -6,7 +6,7 @@ Input: ``` tccli mongodb DescribeSpecInfo --cli-unfold-argument \ - --Zone ap-guangzhou + --Zone ap-guangzhou-3 ``` Output: diff --git a/tccli/examples/monitor/v20180724/DescribePrometheusInstanceDetail.md b/tccli/examples/monitor/v20180724/DescribePrometheusInstanceDetail.md index 6489078dc3..a847c288f2 100644 --- a/tccli/examples/monitor/v20180724/DescribePrometheusInstanceDetail.md +++ b/tccli/examples/monitor/v20180724/DescribePrometheusInstanceDetail.md @@ -6,7 +6,7 @@ Input: ``` tccli monitor DescribePrometheusInstanceDetail --cli-unfold-argument \ - --InstanceId abc + --InstanceId prom-abc ``` Output: diff --git a/tccli/examples/monitor/v20180724/DescribePrometheusTemp.md b/tccli/examples/monitor/v20180724/DescribePrometheusTemp.md index b77f5e653c..8fa89dd053 100644 --- a/tccli/examples/monitor/v20180724/DescribePrometheusTemp.md +++ b/tccli/examples/monitor/v20180724/DescribePrometheusTemp.md @@ -18,52 +18,16 @@ Output: "Response": { "Templates": [ { - "Name": "test", - "Describe": "test", + "Name": "template", + "Describe": "template", "Level": "instance", - "RecordRules": [ - { - "Name": "testRule", - "Config": "abc", - "TemplateId": "temp-asdj", - "Targets": { - "Total": 1, - "Up": 1, - "Down": 1, - "Unknown": 1 - } - } - ], - "RawJobs": [ - { - "Name": "abc", - "Config": "abc", - "TemplateId": "abc", - "Targets": { - "Total": 1, - "Up": 1, - "Down": 1, - "Unknown": 1 - } - } - ], - "ServiceMonitors": [ - { - "Name": "test-sm", - "Config": "abc", - "TemplateId": "temp-asdj", - "Targets": { - "Total": 1, - "Up": 1, - "Down": 1, - "Unknown": 1 - } - } - ], + "RecordRules": [], + "RawJobs": [], + "ServiceMonitors": [], "PodMonitors": [ { "Name": "test-pm", - "Config": "abc", + "Config": "apiVersion: monitoring.coreos.com/v1\nkind: PodMonitor\nmetadata:\n name: example-app\n labels:\n team: frontend\nspec:\n selector:\n matchLabels:\n app: example-app\n podMetricsEndpoints:\n - port: web", "TemplateId": "temp-asdj", "Targets": { "Total": 1, @@ -77,63 +41,7 @@ Output: "UpdateTime": "2024-07-16T08:28:54Z", "Version": "v1", "IsDefault": true, - "AlertDetailRules": [ - { - "Id": "rule-asdk", - "Name": "testAlert", - "TemplateId": "temp-asdj", - "Notification": { - "Enabled": true, - "Type": "amp", - "WebHook": "abc", - "AlertManager": { - "ClusterType": "tke", - "ClusterId": "cls-askj", - "Url": "http://asasdkfh:9000" - }, - "RepeatInterval": "5m", - "TimeRangeStart": "00:00:00", - "TimeRangeEnd": "23:59:59", - "NotifyWay": [ - "abc" - ], - "ReceiverGroups": [ - "notice-yakj" - ], - "PhoneNotifyOrder": [ - 1 - ], - "PhoneCircleTimes": 0, - "PhoneInnerInterval": 0, - "PhoneCircleInterval": 0, - "PhoneArriveNotice": true - }, - "Rules": [ - { - "Name": "rule-ajdb", - "Rule": "avg by (abc) skdj", - "Labels": [ - { - "Name": "label-name", - "Value": "label-value" - } - ], - "Template": "temp-asdj", - "For": "5m", - "Describe": "test-temp", - "Annotations": [ - { - "Name": "label-name", - "Value": "label-value" - } - ], - "RuleState": 0 - } - ], - "UpdatedAt": "2024-07-16 16:28:54", - "ClusterId": "cls-djfb" - } - ], + "AlertDetailRules": [], "TargetsTotal": 0 } ], diff --git a/tccli/examples/monitor/v20180724/GetPrometheusAgentManagementCommand.md b/tccli/examples/monitor/v20180724/GetPrometheusAgentManagementCommand.md index b47ba029eb..7805b15adc 100644 --- a/tccli/examples/monitor/v20180724/GetPrometheusAgentManagementCommand.md +++ b/tccli/examples/monitor/v20180724/GetPrometheusAgentManagementCommand.md @@ -15,11 +15,11 @@ Output: { "Response": { "Command": { - "Install": "xx", - "Restart": "xx", - "Stop": "xx", - "StatusCheck": "xx", - "LogCheck": "xx" + "Install": "/bin/bash -c \"$(curl -fsSL https:/cos-url/install.sh)\"", + "Restart": "systemctl restart prometheus-agent", + "Stop": "systemctl stop prometheus-agent", + "StatusCheck": "systemctl status prometheus-agent", + "LogCheck": "journalctl -u prometheus-agent" }, "RequestId": "as131asfjl23dsf342lxdsf" } diff --git a/tccli/examples/trtc/v20190722/DeletePicture.md b/tccli/examples/trtc/v20190722/DeletePicture.md index aa25f8a54d..d8bf653538 100644 --- a/tccli/examples/trtc/v20190722/DeletePicture.md +++ b/tccli/examples/trtc/v20190722/DeletePicture.md @@ -6,8 +6,8 @@ Input: ``` tccli trtc DeletePicture --cli-unfold-argument \ - --PictureId 1234567890 \ - --SdkAppId 123456789 + --PictureId 18813 \ + --SdkAppId 140000001 ``` Output: diff --git a/tccli/examples/trtc/v20190722/DescribePicture.md b/tccli/examples/trtc/v20190722/DescribePicture.md index 224c7e379b..73aa85412f 100644 --- a/tccli/examples/trtc/v20190722/DescribePicture.md +++ b/tccli/examples/trtc/v20190722/DescribePicture.md @@ -6,8 +6,8 @@ Input: ``` tccli trtc DescribePicture --cli-unfold-argument \ - --SdkAppId 123456 \ - --PictureId 123 + --SdkAppId 140000001 \ + --PictureId 100861 ``` Output: @@ -17,20 +17,12 @@ Output: "Total": 2, "PictureInfo": [ { - "PictureId": 1, - "Height": 12, - "Width": 13, - "XPosition": 14, - "YPosition": 15, - "SdkAppId": 123456 - }, - { - "PictureId": 2, - "Height": 22, - "Width": 23, - "XPosition": 24, - "YPosition": 25, - "SdkAppId": 123456 + "PictureId": 100861, + "Height": 120, + "Width": 113, + "XPosition": 124, + "YPosition": 150, + "SdkAppId": 140000001 } ], "RequestId": "83ca6fdd-cf4c-46a9-a577-74c3497ad3fa" diff --git a/tccli/examples/trtc/v20190722/ModifyPicture.md b/tccli/examples/trtc/v20190722/ModifyPicture.md index 44bfc91b08..f05e5634e6 100644 --- a/tccli/examples/trtc/v20190722/ModifyPicture.md +++ b/tccli/examples/trtc/v20190722/ModifyPicture.md @@ -6,12 +6,12 @@ Input: ``` tccli trtc ModifyPicture --cli-unfold-argument \ - --PictureId 123456 \ - --Height 12 \ - --Width 15 \ - --XPosition 15 \ - --YPosition 36 \ - --SdkAppId 30 + --PictureId 10081 \ + --Height 80 \ + --Width 70 \ + --XPosition 10 \ + --YPosition 20 \ + --SdkAppId 1500000001 ``` Output: diff --git a/tccli/services/aiart/v20221229/api.json b/tccli/services/aiart/v20221229/api.json index 7281736590..b1ecabe794 100644 --- a/tccli/services/aiart/v20221229/api.json +++ b/tccli/services/aiart/v20221229/api.json @@ -1215,7 +1215,7 @@ }, { "disabled": false, - "document": "线稿图 Base64 数据。\nBase64 和 Url 必须提供一个,如果都提供以Url 为准。\n图片限制:黑白线稿图片,单边分辨率小于5000且大于512(分辨率过小会导致效果受损),转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。", + "document": "线稿图 Base64 数据。\nBase64 和 Url 必须提供一个,如果都提供以Url 为准。\n图片限制:黑白线稿图片,单边分辨率小于5000且大于128(分辨率过小会导致效果受损),转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。", "example": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIo...lftXF/DjFZNXoSP5V2U0HMt/1FQf/Z", "member": "string", "name": "InputImage", @@ -1224,7 +1224,7 @@ }, { "disabled": false, - "document": "线稿图 Url。\nBase64 和 Url 必须提供一个,如果都提供以Url 为准。\n图片限制:黑白线稿图片,单边分辨率小于5000且大于512(分辨率过小会导致效果受损),转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。", + "document": "线稿图 Url。\nBase64 和 Url 必须提供一个,如果都提供以Url 为准。\n图片限制:黑白线稿图片,单边分辨率小于5000且大于128(分辨率过小会导致效果受损),转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。", "example": "https://xxx.com/image.jpg", "member": "string", "name": "InputUrl", diff --git a/tccli/services/batch/v20170312/api.json b/tccli/services/batch/v20170312/api.json index 6985914cf6..a614b5432f 100644 --- a/tccli/services/batch/v20170312/api.json +++ b/tccli/services/batch/v20170312/api.json @@ -5395,7 +5395,7 @@ }, { "disabled": false, - "document": "系统盘ID。LOCAL_BASIC 和 LOCAL_SSD 类型没有ID。暂时不支持该参数。\n该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。", + "document": "系统盘ID。\n该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。", "example": "disk-xyzw1234", "member": "string", "name": "DiskId", diff --git a/tccli/services/cdb/v20170320/api.json b/tccli/services/cdb/v20170320/api.json index 555341a51f..a9902ccccc 100644 --- a/tccli/services/cdb/v20170320/api.json +++ b/tccli/services/cdb/v20170320/api.json @@ -5898,7 +5898,7 @@ { "disabled": false, "document": "只读实例信息。购买只读实例时,该参数必传。", - "example": "{\"RoGroupMode\": \"allinone\",\"RoGroupName\": \"jersey\",\"RoMaxDelayTime\": \"5\",\"MinRoInGroup\": \"1\",\"RoOfflineDelay\": \"1\"}", + "example": "{\"RoGroupMode\": \"allinone\",\"RoGroupName\": \"jersey\",\"RoMaxDelayTime\": 5,\"MinRoInGroup\": 1,\"RoOfflineDelay\": 1}", "member": "RoGroup", "name": "RoGroup", "required": false, @@ -6323,7 +6323,7 @@ { "disabled": false, "document": "只读实例参数。购买只读实例时,该参数必传。", - "example": "{\"RoGroupMode\": \"allinone\",\"RoGroupName\": \"jersey\",\"RoMaxDelayTime\": \"5\",\"MinRoInGroup\": \"1\",\"RoOfflineDelay\": \"1\"}", + "example": "{\"RoGroupMode\": \"allinone\",\"RoGroupName\": \"jersey\",\"RoMaxDelayTime\": 5,\"MinRoInGroup\": 1,\"RoOfflineDelay\": 1}", "member": "RoGroup", "name": "RoGroup", "required": false, diff --git a/tccli/services/cdb/v20170320/examples.json b/tccli/services/cdb/v20170320/examples.json index 46c981c784..a4e7a09b11 100644 --- a/tccli/services/cdb/v20170320/examples.json +++ b/tccli/services/cdb/v20170320/examples.json @@ -197,13 +197,13 @@ "CreateDBInstance": [ { "document": "购买主实例", - "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstance\n<公共请求参数>\n\n{\n \"ResourceTags\": [\n {\n \"TagKey\": \"march\",\n \"TagValue\": [\n \"march1\"\n ]\n }\n ],\n \"Zone\": \"ap-guangzhou-3\",\n \"UniqVpcId\": \"vpc-0akbol5v\",\n \"ProjectId\": \"0\",\n \"InstanceRole\": \"master\",\n \"GoodsNum\": \"1\",\n \"Period\": \"1\",\n \"Volume\": \"25\",\n \"EngineVersion\": \"5.6\",\n \"UniqSubnetId\": \"subnet-fyrtjbqw\",\n \"Memory\": \"1000\",\n \"InstanceNodes\": \"2\"\n}", + "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstance\n<公共请求参数>\n\n{\n \"ResourceTags\": [\n {\n \"TagKey\": \"march\",\n \"TagValue\": [\n \"march1\"\n ]\n }\n ],\n \"Zone\": \"ap-guangzhou-3\",\n \"UniqVpcId\": \"vpc-0akbol5v\",\n \"ProjectId\": 0,\n \"InstanceRole\": \"master\",\n \"GoodsNum\": 1,\n \"Period\": 1,\n \"Volume\": 25,\n \"EngineVersion\": \"5.6\",\n \"UniqSubnetId\": \"subnet-fyrtjbqw\",\n \"Memory\": 1000,\n \"InstanceNodes\": 2\n}", "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"InstanceIds\": [\n \"cdb-pn6gd5jp\"\n ],\n \"DealIds\": [\n \"20171201110011\"\n ]\n }\n}", "title": "购买主实例" }, { "document": "购买只读实例", - "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstance\n<公共请求参数>\n\n{\n \"RoGroup\": {\n \"RoGroupMode\": \"allinone\",\n \"RoGroupName\": \"jersey\",\n \"RoMaxDelayTime\": \"5\",\n \"MinRoInGroup\": \"1\",\n \"RoOfflineDelay\": \"1\"\n },\n \"GoodsNum\": \"1\",\n \"InstanceRole\": \"ro\",\n \"MasterInstanceId\": \"cdb-fn3f9xpx\",\n \"Period\": \"1\",\n \"Volume\": \"100\",\n \"Memory\": \"4000\"\n}", + "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstance\n<公共请求参数>\n\n{\n \"RoGroup\": {\n \"RoGroupMode\": \"allinone\",\n \"RoGroupName\": \"jersey\",\n \"RoMaxDelayTime\": 5,\n \"MinRoInGroup\": 1,\n \"RoOfflineDelay\": 1\n },\n \"GoodsNum\": 1,\n \"InstanceRole\": \"ro\",\n \"MasterInstanceId\": \"cdb-fn3f9xpx\",\n \"Period\": 1,\n \"Volume\": 100,\n \"Memory\": 4000\n}", "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"DealIds\": [\n \"20171205110051\"\n ],\n \"InstanceIds\": [\n \"cdbro-hlpl4ik9\"\n ]\n }\n}", "title": "购买只读实例" } @@ -211,7 +211,7 @@ "CreateDBInstanceHour": [ { "document": "创建云数据库实例(按量计费)", - "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstanceHour\n<公共请求参数>\n\n{\n \"ResourceTags\": [\n {\n \"TagKey\": \"march\",\n \"TagValue\": [\n \"march1\"\n ]\n }\n ],\n \"Zone\": \"ap-guangzhou-3\",\n \"UniqVpcId\": \"vpc-0akbol5v\",\n \"ProjectId\": \"0\",\n \"SlaveZone\": \"ap-guangzhou-3\",\n \"InstanceRole\": \"master\",\n \"GoodsNum\": \"1\",\n \"DeployMode\": \"0\",\n \"Volume\": \"25\",\n \"EngineVersion\": \"5.6\",\n \"UniqSubnetId\": \"subnet-fyrtjbqw\",\n \"Memory\": \"1000\",\n \"ProtectMode\": \"0\"\n}", + "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstanceHour\n<公共请求参数>\n\n{\n \"ResourceTags\": [\n {\n \"TagKey\": \"march\",\n \"TagValue\": [\n \"march1\"\n ]\n }\n ],\n \"Zone\": \"ap-guangzhou-3\",\n \"UniqVpcId\": \"vpc-0akbol5v\",\n \"ProjectId\": 0,\n \"SlaveZone\": \"ap-guangzhou-3\",\n \"InstanceRole\": \"master\",\n \"GoodsNum\": 1,\n \"DeployMode\": 0,\n \"Volume\": 25,\n \"EngineVersion\": \"5.6\",\n \"UniqSubnetId\": \"subnet-fyrtjbqw\",\n \"Memory\": 1000,\n \"ProtectMode\": 0\n}", "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"InstanceIds\": [\n \"cdb-03brtubb\"\n ],\n \"DealIds\": [\n \"20171201160000002670226599824833\"\n ]\n }\n}", "title": "创建云数据库实例(按量计费)" } @@ -631,13 +631,13 @@ "DescribeDBPrice": [ { "document": "查询数据库实例新购价格", - "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBPrice\n<公共请求参数>\n\n{\n \"Zone\": \"ap-guangzhou-1\",\n \"GoodsNum\": \"1\",\n \"PayType\": \"PRE_PAID\",\n \"Period\": \"24\",\n \"Volume\": \"25\",\n \"Memory\": \"1000\"\n}", + "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBPrice\n<公共请求参数>\n\n{\n \"Zone\": \"ap-guangzhou-1\",\n \"GoodsNum\": 1,\n \"PayType\": \"PRE_PAID\",\n \"Period\": 24,\n \"Volume\": 25,\n \"Memory\": 1000\n}", "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"Currency\": \"CNY\",\n \"Price\": 48000,\n \"OriginalPrice\": 460800\n }\n}", "title": "查询数据库实例新购价格" }, { "document": "查询数据库实例续费价格", - "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBPrice\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-6no119yd\",\n \"Period\": \"24\"\n}", + "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBPrice\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-6no119yd\",\n \"Period\": 24\n}", "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"Currency\": \"CNY\",\n \"Price\": 48000,\n \"OriginalPrice\": 460800\n }\n}", "title": "查询数据库实例续费价格" } diff --git a/tccli/services/cfw/cfw_client.py b/tccli/services/cfw/cfw_client.py index 4feef1421c..16eef98175 100644 --- a/tccli/services/cfw/cfw_client.py +++ b/tccli/services/cfw/cfw_client.py @@ -3449,58 +3449,6 @@ def doModifySequenceRules(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doAddAcRule(args, parsed_globals): - g_param = parse_global_arg(parsed_globals) - - if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: - cred = credential.CVMRoleCredential() - elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: - cred = credential.STSAssumeRoleCredential( - g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], - g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] - ) - elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): - cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() - else: - cred = credential.Credential( - g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] - ) - http_profile = HttpProfile( - reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), - reqMethod="POST", - endpoint=g_param[OptionsDefine.Endpoint], - proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] - ) - profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") - if g_param[OptionsDefine.Language]: - profile.language = g_param[OptionsDefine.Language] - mod = CLIENT_MAP[g_param[OptionsDefine.Version]] - client = mod.CfwClient(cred, g_param[OptionsDefine.Region], profile) - client._sdkVersion += ("_CLI_" + __version__) - models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.AddAcRuleRequest() - model.from_json_string(json.dumps(args)) - start_time = time.time() - while True: - rsp = client.AddAcRule(model) - result = rsp.to_json_string() - try: - json_obj = json.loads(result) - except TypeError as e: - json_obj = json.loads(result.decode('utf-8')) # python3.3 - if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: - break - cur_time = time.time() - if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: - raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % - (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], - search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) - else: - print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) - time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) - FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) - - def doModifySequenceAclRules(args, parsed_globals): g_param = parse_global_arg(parsed_globals) @@ -5970,7 +5918,6 @@ def doDescribeFwEdgeIps(args, parsed_globals): "ModifyAssetScan": doModifyAssetScan, "DeleteIdsWhiteRule": doDeleteIdsWhiteRule, "ModifySequenceRules": doModifySequenceRules, - "AddAcRule": doAddAcRule, "ModifySequenceAclRules": doModifySequenceAclRules, "DescribeRuleOverview": doDescribeRuleOverview, "DescribeIPStatusList": doDescribeIPStatusList, diff --git a/tccli/services/cfw/v20190904/api.json b/tccli/services/cfw/v20190904/api.json index 41a5613696..433edbb499 100644 --- a/tccli/services/cfw/v20190904/api.json +++ b/tccli/services/cfw/v20190904/api.json @@ -1,12 +1,5 @@ { "actions": { - "AddAcRule": { - "document": "接口不再使用,已有新接口AddAclRule\n\n添加互联网边界规则", - "input": "AddAcRuleRequest", - "name": "添加互联网边界规则(不再使用,已迁移到新接口AddAclRule)", - "output": "AddAcRuleResponse", - "status": "deprecated" - }, "AddAclRule": { "document": "添加互联网边界访问控制规则", "input": "AddAclRuleRequest", @@ -1045,162 +1038,6 @@ ], "usage": "out" }, - "AddAcRuleRequest": { - "document": "AddAcRule请求参数结构体", - "members": [ - { - "disabled": false, - "document": "-1表示优先级最低,1表示优先级最高", - "example": "-1", - "member": "string", - "name": "OrderIndex", - "required": true, - "type": "string" - }, - { - "disabled": false, - "document": "访问控制策略中设置的流量通过云防火墙的方式。取值:\naccept:放行\ndrop:拒绝\nlog:观察", - "example": "accept", - "member": "string", - "name": "RuleAction", - "required": true, - "type": "string" - }, - { - "disabled": false, - "document": "访问控制策略的流量方向。取值:\nin:外对内流量访问控制\nout:内对外流量访问控制", - "example": "in", - "member": "string", - "name": "Direction", - "required": true, - "type": "string" - }, - { - "disabled": false, - "document": "访问控制策略的描述信息", - "example": "默认拒绝所有流量", - "member": "string", - "name": "Description", - "required": true, - "type": "string" - }, - { - "disabled": false, - "document": "访问控制策略中的源地址类型。取值:\nnet:源IP或网段(IP或者CIDR)\nlocation:源区域\ntemplate:云防火墙地址模板\ninstance:实例id\nvendor:云厂商", - "example": "net", - "member": "string", - "name": "SourceType", - "required": true, - "type": "string" - }, - { - "disabled": false, - "document": "访问控制策略中的源地址。取值:\n当SourceType为net时,SourceContent为源IP地址或者CIDR地址。\n例如:1.1.1.0/24\n\n当SourceType为template时,SourceContent为源地址模板id。\n\n当SourceType为location时,SourceContent为源区域。\n例如[\"BJ11\", \"ZB\"]\n\n当SourceType为instance时,SourceContent为该实例id对应的公网ip。\n例如ins-xxxxx\n\n当SourceType为vendor时,SourceContent为所选择厂商的公网ip列表。\n例如:aws,huawei,tencent,aliyun,azure,all代表以上五个", - "example": "1.1.1.1", - "member": "string", - "name": "SourceContent", - "required": true, - "type": "string" - }, - { - "disabled": false, - "document": "访问控制策略中的目的地址类型。取值:\nnet:目的IP或者网段(IP或者CIDR)\nlocation:源区域\ntemplate:云防火墙地址模板\ninstance:实例id\nvendor:云厂商\ndomain: 域名或者ip", - "example": "domain", - "member": "string", - "name": "DestType", - "required": true, - "type": "string" - }, - { - "disabled": false, - "document": "访问控制策略中的目的地址。取值:\n当DestType为net时,DestContent为源IP地址或者CIDR地址。\n例如:1.1.1.0/24\n\n当DestType为template时,DestContent为源地址模板id。\n\n当DestType为location时,DestContent为源区域。\n例如[\"BJ11\", \"ZB\"]\n\n当DestType为instance时,DestContent为该实例id对应的公网ip。\n例如ins-xxxxx\n\n当DestType为domain时,DestContent为该实例id对应的域名规则。\n例如*.qq.com\n\n当DestType为vendor时,DestContent为所选择厂商的公网ip列表。\n例如:aws,huawei,tencent,aliyun,azure,all代表以上五个", - "example": "*.qq.com", - "member": "string", - "name": "DestContent", - "required": true, - "type": "string" - }, - { - "disabled": false, - "document": "访问控制策略的端口。取值:\n-1/-1:全部端口\n80,443:80或者443", - "example": "-1/-1", - "member": "string", - "name": "Port", - "required": true, - "type": "string" - }, - { - "disabled": false, - "document": "访问控制策略中流量访问的协议类型。取值:TCP,目前互联网边界规则只能支持TCP,不传参数默认就是TCP", - "example": "TCP", - "member": "string", - "name": "Protocol", - "required": false, - "type": "string" - }, - { - "disabled": false, - "document": "七层协议,取值:\nHTTP/HTTPS\nTLS/SSL", - "example": "HTTP", - "member": "string", - "name": "ApplicationName", - "required": false, - "type": "string" - }, - { - "disabled": false, - "document": "是否启用规则,默认为启用,取值:\ntrue为启用,false为不启用", - "example": "true", - "member": "string", - "name": "Enable", - "required": false, - "type": "string" - } - ], - "type": "object" - }, - "AddAcRuleResponse": { - "document": "AddAcRule返回参数结构体", - "members": [ - { - "disabled": false, - "document": "创建成功后返回新策略的uuid", - "example": "8888", - "member": "int64", - "name": "RuleUuid", - "output_required": true, - "type": "int", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "0代表成功,-1代表失败", - "example": "0", - "member": "int64", - "name": "ReturnCode", - "output_required": true, - "type": "int", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "success代表成功,failed代表失败", - "example": "success", - "member": "string", - "name": "ReturnMsg", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", - "member": "string", - "name": "RequestId", - "type": "string" - } - ], - "type": "object" - }, "AddAclRuleRequest": { "document": "AddAclRule请求参数结构体", "members": [ diff --git a/tccli/services/cfw/v20190904/examples.json b/tccli/services/cfw/v20190904/examples.json index 2c49e365bb..67058a165f 100644 --- a/tccli/services/cfw/v20190904/examples.json +++ b/tccli/services/cfw/v20190904/examples.json @@ -1,13 +1,5 @@ { "actions": { - "AddAcRule": [ - { - "document": "", - "input": "POST / HTTP/1.1\nHost: cfw.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddAcRule\n<公共请求参数>\n\n{\n \"OrderIndex\": \"-1\",\n \"Description\": \"api test1\",\n \"SourceType\": \"location\",\n \"SourceContent\": \"cq50,sh31,tj12,bj11\",\n \"DestType\": \"net\",\n \"DestContent\": \"0.0.0.0/0\",\n \"Enable\": \"true\",\n \"Direction\": \"in\",\n \"RuleAction\": \"accept\",\n \"Port\": \"-1/-1\",\n \"Protocol\": \"tcp\"\n}", - "output": "{\n \"Response\": {\n \"RuleUuid\": 8888,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"ReturnCode\": 0,\n \"ReturnMsg\": \"success\"\n }\n}", - "title": "添加互联网边界规则" - } - ], "AddAclRule": [ { "document": "添加互联网边界访问控制规则", diff --git a/tccli/services/ckafka/v20190819/api.json b/tccli/services/ckafka/v20190819/api.json index c7934c0cff..9d50f00e96 100644 --- a/tccli/services/ckafka/v20190819/api.json +++ b/tccli/services/ckafka/v20190819/api.json @@ -13612,8 +13612,8 @@ }, { "disabled": false, - "document": "升配Rebalance时间 参数已废弃,忽略不填!!!", - "example": "20", + "document": "用于修改升级版本或升配定时任务的执行时间,Unix时间戳,精确到秒", + "example": "1566144000", "member": "int64", "name": "RebalanceTime", "required": false, @@ -13645,6 +13645,15 @@ "name": "MaxMessageByte", "required": false, "type": "int" + }, + { + "disabled": false, + "document": "集群topic默认 unclean.leader.election.enable配置: 1 开启 0 关闭", + "example": "1", + "member": "int64", + "name": "UncleanLeaderElectionEnable", + "required": false, + "type": "int" } ], "type": "object" diff --git a/tccli/services/cvm/v20170312/api.json b/tccli/services/cvm/v20170312/api.json index 35e951442f..911809b57d 100644 --- a/tccli/services/cvm/v20170312/api.json +++ b/tccli/services/cvm/v20170312/api.json @@ -11270,7 +11270,7 @@ }, { "disabled": false, - "document": "系统盘ID。LOCAL_BASIC 和 LOCAL_SSD 类型没有ID。暂时不支持该参数。\n该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。", + "document": "系统盘ID。\n该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。", "example": "disk-xyzw1234", "member": "string", "name": "DiskId", diff --git a/tccli/services/cwp/cwp_client.py b/tccli/services/cwp/cwp_client.py index 4e5e45f8d2..eacb5b780d 100644 --- a/tccli/services/cwp/cwp_client.py +++ b/tccli/services/cwp/cwp_client.py @@ -69,58 +69,6 @@ def doDescribeAssetPortInfoList(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeComponentStatistics(args, parsed_globals): - g_param = parse_global_arg(parsed_globals) - - if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: - cred = credential.CVMRoleCredential() - elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: - cred = credential.STSAssumeRoleCredential( - g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], - g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] - ) - elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): - cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() - else: - cred = credential.Credential( - g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] - ) - http_profile = HttpProfile( - reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), - reqMethod="POST", - endpoint=g_param[OptionsDefine.Endpoint], - proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] - ) - profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") - if g_param[OptionsDefine.Language]: - profile.language = g_param[OptionsDefine.Language] - mod = CLIENT_MAP[g_param[OptionsDefine.Version]] - client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile) - client._sdkVersion += ("_CLI_" + __version__) - models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeComponentStatisticsRequest() - model.from_json_string(json.dumps(args)) - start_time = time.time() - while True: - rsp = client.DescribeComponentStatistics(model) - result = rsp.to_json_string() - try: - json_obj = json.loads(result) - except TypeError as e: - json_obj = json.loads(result.decode('utf-8')) # python3.3 - if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: - break - cur_time = time.time() - if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: - raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % - (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], - search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) - else: - print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) - time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) - FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) - - def doDescribeAESKey(args, parsed_globals): g_param = parse_global_arg(parsed_globals) @@ -7973,58 +7921,6 @@ def doDescribeVertexDetail(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeAttackLogs(args, parsed_globals): - g_param = parse_global_arg(parsed_globals) - - if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: - cred = credential.CVMRoleCredential() - elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: - cred = credential.STSAssumeRoleCredential( - g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], - g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] - ) - elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): - cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() - else: - cred = credential.Credential( - g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] - ) - http_profile = HttpProfile( - reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), - reqMethod="POST", - endpoint=g_param[OptionsDefine.Endpoint], - proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] - ) - profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") - if g_param[OptionsDefine.Language]: - profile.language = g_param[OptionsDefine.Language] - mod = CLIENT_MAP[g_param[OptionsDefine.Version]] - client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile) - client._sdkVersion += ("_CLI_" + __version__) - models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeAttackLogsRequest() - model.from_json_string(json.dumps(args)) - start_time = time.time() - while True: - rsp = client.DescribeAttackLogs(model) - result = rsp.to_json_string() - try: - json_obj = json.loads(result) - except TypeError as e: - json_obj = json.loads(result.decode('utf-8')) # python3.3 - if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: - break - cur_time = time.time() - if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: - raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % - (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], - search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) - else: - print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) - time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) - FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) - - def doModifyWebHookPolicyStatus(args, parsed_globals): g_param = parse_global_arg(parsed_globals) @@ -8285,7 +8181,7 @@ def doExportBaselineWeakPasswordList(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeBaselineStrategyList(args, parsed_globals): +def doDescribeAssetUserKeyList(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -8314,11 +8210,11 @@ def doDescribeBaselineStrategyList(args, parsed_globals): client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeBaselineStrategyListRequest() + model = models.DescribeAssetUserKeyListRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeBaselineStrategyList(model) + rsp = client.DescribeAssetUserKeyList(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -17749,7 +17645,7 @@ def doDescribeAttackStatistics(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeAssetUserKeyList(args, parsed_globals): +def doDescribeBaselineStrategyList(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -17778,11 +17674,11 @@ def doDescribeAssetUserKeyList(args, parsed_globals): client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeAssetUserKeyListRequest() + model = models.DescribeBaselineStrategyListRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeAssetUserKeyList(model) + rsp = client.DescribeBaselineStrategyList(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -17801,7 +17697,7 @@ def doDescribeAssetUserKeyList(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doModifyBaselineRuleIgnore(args, parsed_globals): +def doDescribeScanMalwareSchedule(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -17830,11 +17726,11 @@ def doModifyBaselineRuleIgnore(args, parsed_globals): client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ModifyBaselineRuleIgnoreRequest() + model = models.DescribeScanMalwareScheduleRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ModifyBaselineRuleIgnore(model) + rsp = client.DescribeScanMalwareSchedule(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -20193,6 +20089,58 @@ def doDescribeRansomDefenseEventsList(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) +def doExportLicenseDetail(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.ExportLicenseDetailRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ExportLicenseDetail(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + def doExportAssetProcessInfoList(args, parsed_globals): g_param = parse_global_arg(parsed_globals) @@ -22429,58 +22377,6 @@ def doDeleteBaselineWeakPassword(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeScanMalwareSchedule(args, parsed_globals): - g_param = parse_global_arg(parsed_globals) - - if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: - cred = credential.CVMRoleCredential() - elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: - cred = credential.STSAssumeRoleCredential( - g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], - g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] - ) - elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): - cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() - else: - cred = credential.Credential( - g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] - ) - http_profile = HttpProfile( - reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), - reqMethod="POST", - endpoint=g_param[OptionsDefine.Endpoint], - proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] - ) - profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") - if g_param[OptionsDefine.Language]: - profile.language = g_param[OptionsDefine.Language] - mod = CLIENT_MAP[g_param[OptionsDefine.Version]] - client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile) - client._sdkVersion += ("_CLI_" + __version__) - models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeScanMalwareScheduleRequest() - model.from_json_string(json.dumps(args)) - start_time = time.time() - while True: - rsp = client.DescribeScanMalwareSchedule(model) - result = rsp.to_json_string() - try: - json_obj = json.loads(result) - except TypeError as e: - json_obj = json.loads(result.decode('utf-8')) # python3.3 - if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: - break - cur_time = time.time() - if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: - raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % - (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], - search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) - else: - print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) - time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) - FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) - - def doDeleteNonlocalLoginPlaces(args, parsed_globals): g_param = parse_global_arg(parsed_globals) @@ -23781,7 +23677,7 @@ def doExportRiskDnsEventList(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doExportLicenseDetail(args, parsed_globals): +def doModifyBaselineRuleIgnore(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -23810,11 +23706,11 @@ def doExportLicenseDetail(args, parsed_globals): client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ExportLicenseDetailRequest() + model = models.ModifyBaselineRuleIgnoreRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ExportLicenseDetail(model) + rsp = client.ModifyBaselineRuleIgnore(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -26913,7 +26809,6 @@ def doDescribeAssetMachineTagTop(args, parsed_globals): ACTION_MAP = { "DescribeAssetPortInfoList": doDescribeAssetPortInfoList, - "DescribeComponentStatistics": doDescribeComponentStatistics, "DescribeAESKey": doDescribeAESKey, "ModifyRansomDefenseStrategyStatus": doModifyRansomDefenseStrategyStatus, "DescribeRansomDefenseStrategyList": doDescribeRansomDefenseStrategyList, @@ -27065,13 +26960,12 @@ def doDescribeAssetMachineTagTop(args, parsed_globals): "DeleteMachineTag": doDeleteMachineTag, "DescribeVulTrend": doDescribeVulTrend, "DescribeVertexDetail": doDescribeVertexDetail, - "DescribeAttackLogs": doDescribeAttackLogs, "ModifyWebHookPolicyStatus": doModifyWebHookPolicyStatus, "ExportBaselineItemList": doExportBaselineItemList, "DescribeBaselineItemRiskTop": doDescribeBaselineItemRiskTop, "ExportAssetAppList": doExportAssetAppList, "ExportBaselineWeakPasswordList": doExportBaselineWeakPasswordList, - "DescribeBaselineStrategyList": doDescribeBaselineStrategyList, + "DescribeAssetUserKeyList": doDescribeAssetUserKeyList, "ExportAssetPortInfoList": doExportAssetPortInfoList, "ExportAssetMachineList": doExportAssetMachineList, "DescribeLogStorageRecord": doDescribeLogStorageRecord, @@ -27253,8 +27147,8 @@ def doDescribeAssetMachineTagTop(args, parsed_globals): "ModifyWebPageProtectSetting": doModifyWebPageProtectSetting, "DescribeBashRules": doDescribeBashRules, "DescribeAttackStatistics": doDescribeAttackStatistics, - "DescribeAssetUserKeyList": doDescribeAssetUserKeyList, - "ModifyBaselineRuleIgnore": doModifyBaselineRuleIgnore, + "DescribeBaselineStrategyList": doDescribeBaselineStrategyList, + "DescribeScanMalwareSchedule": doDescribeScanMalwareSchedule, "ModifyMalwareWhiteList": doModifyMalwareWhiteList, "DescribeWebHookRule": doDescribeWebHookRule, "RetryVulFix": doRetryVulFix, @@ -27300,6 +27194,7 @@ def doDescribeAssetMachineTagTop(args, parsed_globals): "GetLocalStorageItem": doGetLocalStorageItem, "ExportRansomDefenseMachineList": doExportRansomDefenseMachineList, "DescribeRansomDefenseEventsList": doDescribeRansomDefenseEventsList, + "ExportLicenseDetail": doExportLicenseDetail, "ExportAssetProcessInfoList": doExportAssetProcessInfoList, "DescribeMachinesSimple": doDescribeMachinesSimple, "DescribeBashEvents": doDescribeBashEvents, @@ -27343,7 +27238,6 @@ def doDescribeAssetMachineTagTop(args, parsed_globals): "DescribeAssetTotalCount": doDescribeAssetTotalCount, "DescribeHotVulTop": doDescribeHotVulTop, "DeleteBaselineWeakPassword": doDeleteBaselineWeakPassword, - "DescribeScanMalwareSchedule": doDescribeScanMalwareSchedule, "DeleteNonlocalLoginPlaces": doDeleteNonlocalLoginPlaces, "ExportAssetSystemPackageList": doExportAssetSystemPackageList, "EditReverseShellRules": doEditReverseShellRules, @@ -27369,7 +27263,7 @@ def doDescribeAssetMachineTagTop(args, parsed_globals): "ExportWebPageEventList": doExportWebPageEventList, "DescribeBaselineHostRiskTop": doDescribeBaselineHostRiskTop, "ExportRiskDnsEventList": doExportRiskDnsEventList, - "ExportLicenseDetail": doExportLicenseDetail, + "ModifyBaselineRuleIgnore": doModifyBaselineRuleIgnore, "DescribeEmergencyResponseList": doDescribeEmergencyResponseList, "DescribeAttackTrends": doDescribeAttackTrends, "DescribeScreenDefenseTrends": doDescribeScreenDefenseTrends, diff --git a/tccli/services/cwp/v20180228/api.json b/tccli/services/cwp/v20180228/api.json index d7bded3c07..816abbce05 100644 --- a/tccli/services/cwp/v20180228/api.json +++ b/tccli/services/cwp/v20180228/api.json @@ -847,13 +847,6 @@ "output": "DescribeAttackEventsResponse", "status": "online" }, - "DescribeAttackLogs": { - "document": "DescribeAttackEvents 代替\n\n按分页形式展示网络攻击日志列表", - "input": "DescribeAttackLogsRequest", - "name": "网络攻击日志列表(待下线,请使用DescribeAttackEvents代替)", - "output": "DescribeAttackLogsResponse", - "status": "deprecated" - }, "DescribeAttackStatistics": { "document": "网络攻击数据统计", "input": "DescribeAttackStatisticsRequest", @@ -1204,13 +1197,6 @@ "output": "DescribeClientExceptionResponse", "status": "online" }, - "DescribeComponentStatistics": { - "document": "接口已无效\n\n本接口 (DescribeComponentStatistics) 用于获取组件统计列表数据。", - "input": "DescribeComponentStatisticsRequest", - "name": "获取组件统计列表", - "output": "DescribeComponentStatisticsResponse", - "status": "deprecated" - }, "DescribeDefenceEventDetail": { "document": "获取漏洞防御事件详情", "input": "DescribeDefenceEventDetailRequest", @@ -13783,62 +13769,6 @@ ], "usage": "both" }, - "ComponentStatistics": { - "document": "组件统计数据。", - "members": [ - { - "disabled": false, - "document": "组件ID。", - "example": "100010", - "member": "uint64", - "name": "Id", - "output_required": true, - "type": "int", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "主机数量。", - "example": "10", - "member": "uint64", - "name": "MachineNum", - "output_required": true, - "type": "int", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "组件名称。", - "example": "machine-name", - "member": "string", - "name": "ComponentName", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "组件类型。\n
  • WEB:Web组件
  • \n
  • SYSTEM:系统组件
  • ", - "example": "WEB", - "member": "string", - "name": "ComponentType", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "组件描述。", - "example": "description", - "member": "string", - "name": "Description", - "output_required": true, - "type": "string", - "value_allowed_null": false - } - ], - "usage": "out" - }, "CreateBanWhiteListRequest": { "document": "CreateBanWhiteList请求参数结构体", "members": [ @@ -15081,162 +15011,6 @@ ], "usage": "out" }, - "DefendAttackLog": { - "document": "网络攻击日志", - "members": [ - { - "disabled": false, - "document": "日志ID", - "example": "10001", - "member": "uint64", - "name": "Id", - "output_required": true, - "type": "int", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "客户端ID", - "example": "93b5fa8f-f5bc-4cf9-8253-d2739e5aa484", - "member": "string", - "name": "Uuid", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "来源IP", - "example": "1.1.1.1", - "member": "string", - "name": "SrcIp", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "来源端口", - "example": "80", - "member": "uint64", - "name": "SrcPort", - "output_required": true, - "type": "int", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "攻击方式", - "example": "attck_method", - "member": "string", - "name": "HttpMethod", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "攻击描述", - "example": "描述", - "member": "string", - "name": "HttpCgi", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "攻击参数", - "example": "header", - "member": "string", - "name": "HttpParam", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "威胁类型", - "example": "tcp", - "member": "string", - "name": "VulType", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "攻击时间", - "example": "2020-01-01 00:00:00", - "member": "string", - "name": "CreatedAt", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "目标服务器IP", - "example": "1.1.1.1", - "member": "string", - "name": "MachineIp", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "目标服务器名称", - "example": "1.1.1.1", - "member": "string", - "name": "MachineName", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "目标IP", - "example": "1.1.1.1", - "member": "string", - "name": "DstIp", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "目标端口", - "example": "8080", - "member": "uint64", - "name": "DstPort", - "output_required": true, - "type": "int", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "攻击内容", - "example": "content", - "member": "string", - "name": "HttpContent", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "主机额外信息", - "example": "{\"WanIP\":\"1.1.1.1\",\"PrivateIP\":\"1.1.1.1\",\"NetworkType\":1,\"NetworkName\":\"vpc-id\",\"InstanceID\":\"ins-id\",\"HostName\":\"hn\"}", - "member": "MachineExtraInfo", - "name": "MachineExtraInfo", - "output_required": true, - "type": "object", - "value_allowed_null": false - } - ], - "usage": "out" - }, "DeleteAllJavaMemShellsRequest": { "document": "DeleteAllJavaMemShells请求参数结构体", "members": [ @@ -20320,89 +20094,6 @@ ], "type": "object" }, - "DescribeAttackLogsRequest": { - "document": "DescribeAttackLogs请求参数结构体", - "members": [ - { - "disabled": false, - "document": "返回数量,最大值为100。", - "example": "10", - "member": "uint64", - "name": "Limit", - "required": false, - "type": "int" - }, - { - "disabled": false, - "document": "偏移量,默认为0。", - "example": "0", - "member": "uint64", - "name": "Offset", - "required": false, - "type": "int" - }, - { - "disabled": false, - "document": "过滤条件。\n
  • HttpMethod - String - 是否必填:否 - 攻击方法(POST|GET)
  • \n
  • DateRange - String - 是否必填:否 - 时间范围(存储最近3个月的数据),如最近一个月[\"2019-11-17\", \"2019-12-17\"]
  • \n
  • VulType - String 威胁类型 - 是否必填: 否
  • \n
  • SrcIp - String 攻击源IP - 是否必填: 否
  • \n
  • DstIp - String 攻击目标IP - 是否必填: 否
  • \n
  • SrcPort - String 攻击源端口 - 是否必填: 否
  • \n
  • DstPort - String 攻击目标端口 - 是否必填: 否
  • ", - "example": "[]", - "member": "Filter", - "name": "Filters", - "required": false, - "type": "list" - }, - { - "disabled": false, - "document": "主机安全客户端ID", - "example": "uuid", - "member": "string", - "name": "Uuid", - "required": false, - "type": "string" - }, - { - "disabled": false, - "document": "云主机机器ID", - "example": "quuid", - "member": "string", - "name": "Quuid", - "required": false, - "type": "string" - } - ], - "type": "object" - }, - "DescribeAttackLogsResponse": { - "document": "DescribeAttackLogs返回参数结构体", - "members": [ - { - "disabled": false, - "document": "日志列表\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "[]", - "member": "DefendAttackLog", - "name": "AttackLogs", - "output_required": true, - "type": "list", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "总条数", - "example": "0", - "member": "uint64", - "name": "TotalCount", - "output_required": true, - "type": "int", - "value_allowed_null": false - }, - { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", - "member": "string", - "name": "RequestId", - "type": "string" - } - ], - "type": "object" - }, "DescribeAttackStatisticsRequest": { "document": "DescribeAttackStatistics请求参数结构体", "members": [], @@ -23684,71 +23375,6 @@ ], "type": "object" }, - "DescribeComponentStatisticsRequest": { - "document": "DescribeComponentStatistics请求参数结构体", - "members": [ - { - "disabled": false, - "document": "返回数量,默认为10,最大值为100。", - "example": "10", - "member": "uint64", - "name": "Limit", - "required": false, - "type": "int" - }, - { - "disabled": false, - "document": "偏移量,默认为0。", - "example": "0", - "member": "uint64", - "name": "Offset", - "required": false, - "type": "int" - }, - { - "disabled": false, - "document": "过滤条件。\nComponentName - String - 是否必填:否 - 组件名称", - "example": "[]", - "member": "Filter", - "name": "Filters", - "required": false, - "type": "list" - } - ], - "type": "object" - }, - "DescribeComponentStatisticsResponse": { - "document": "DescribeComponentStatistics返回参数结构体", - "members": [ - { - "disabled": false, - "document": "组件统计列表记录总数。", - "example": "100", - "member": "uint64", - "name": "TotalCount", - "required": true, - "type": "int", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "组件统计列表数据数组。", - "example": "[]", - "member": "ComponentStatistics", - "name": "ComponentStatistics", - "required": true, - "type": "list", - "value_allowed_null": false - }, - { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", - "member": "string", - "name": "RequestId", - "type": "string" - } - ], - "type": "object" - }, "DescribeDefenceEventDetailRequest": { "document": "DescribeDefenceEventDetail请求参数结构体", "members": [ diff --git a/tccli/services/cwp/v20180228/examples.json b/tccli/services/cwp/v20180228/examples.json index fe4fe02544..40c6705dae 100644 --- a/tccli/services/cwp/v20180228/examples.json +++ b/tccli/services/cwp/v20180228/examples.json @@ -968,14 +968,6 @@ "title": "网络攻击检测列表" } ], - "DescribeAttackLogs": [ - { - "document": "网络攻击日志列表", - "input": "https://cwp.tencentcloudapi.com/?Action=DescribeAttackLogs\n&<公共请求参数>", - "output": "{\n \"Response\": {\n \"AttackLogs\": [\n {\n \"Id\": 1,\n \"Uuid\": \"abc\",\n \"SrcIp\": \"abc\",\n \"SrcPort\": 1,\n \"HttpMethod\": \"abc\",\n \"HttpCgi\": \"abc\",\n \"HttpParam\": \"abc\",\n \"VulType\": \"abc\",\n \"CreatedAt\": \"abc\",\n \"MachineIp\": \"abc\",\n \"MachineName\": \"abc\",\n \"DstIp\": \"abc\",\n \"DstPort\": 1,\n \"HttpContent\": \"abc\",\n \"MachineExtraInfo\": {\n \"WanIP\": \"abc\",\n \"PrivateIP\": \"abc\",\n \"NetworkType\": 0,\n \"NetworkName\": \"abc\",\n \"InstanceID\": \"abc\",\n \"HostName\": \"abc\"\n }\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"abc\"\n }\n}", - "title": "网络攻击日志列表" - } - ], "DescribeAttackStatistics": [ { "document": "网络攻击数据统计", @@ -1382,14 +1374,6 @@ "title": "示例1" } ], - "DescribeComponentStatistics": [ - { - "document": "获取组件统计列表", - "input": "https://cwp.tencentcloudapi.com/?Action=DescribeComponentStatistics\n&Limit=10\n&Offset=0\n&<公共请求参数>", - "output": "{\n \"Response\": {\n \"ComponentStatistics\": [\n {\n \"Id\": 100010,\n \"MachineNum\": 10,\n \"ComponentName\": \"machine-name\",\n \"ComponentType\": \"WEB\",\n \"Description\": \"description\"\n }\n ],\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\",\n \"TotalCount\": 100\n }\n}", - "title": "获取组件统计列表" - } - ], "DescribeDefenceEventDetail": [ { "document": "", diff --git a/tccli/services/dsgc/v20190723/api.json b/tccli/services/dsgc/v20190723/api.json index f884651fb2..fd04257d68 100644 --- a/tccli/services/dsgc/v20190723/api.json +++ b/tccli/services/dsgc/v20190723/api.json @@ -18812,7 +18812,7 @@ "example": "2204", "member": "uint64", "name": "ResourceVPort", - "required": true, + "required": false, "type": "int" }, { @@ -18821,7 +18821,7 @@ "example": "admin", "member": "string", "name": "UserName", - "required": true, + "required": false, "type": "string" }, { @@ -18830,7 +18830,7 @@ "example": "pass", "member": "string", "name": "Password", - "required": true, + "required": false, "type": "string" }, { @@ -18841,6 +18841,15 @@ "name": "AuthRange", "required": false, "type": "string" + }, + { + "disabled": false, + "document": "自建数据资产的名称,支持修改", + "example": "我的自建资产", + "member": "string", + "name": "ResourceName", + "required": false, + "type": "string" } ], "type": "object" diff --git a/tccli/services/ess/v20201111/api.json b/tccli/services/ess/v20201111/api.json index fa334351bc..72118aa0a5 100644 --- a/tccli/services/ess/v20201111/api.json +++ b/tccli/services/ess/v20201111/api.json @@ -2078,7 +2078,7 @@ }, { "disabled": false, - "document": "**在所有的定位方式下**,控件的扩展参数,为JSON格式,不同类型的控件会有部分非通用参数。\n\nComponentType为TEXT、MULTI_LINE_TEXT时,支持以下参数:\n\n参数样例:`{\"FontColor\":\"255,0,0\",\"FontSize\":12}`\n\nComponentType为DATE时,支持以下参数:\n\n参数样例:`{\"FontColor\":\"255,0,0\",\"FontSize\":12}`\n\nComponentType为WATERMARK时,支持以下参数:\n\n参数样例:`\"{\\\"Font\\\":\\\"黑体\\\",\\\"FontSize\\\":20,\\\"Opacity\\\":0.1,\\\"Density\\\":2,\\\"SubType\\\":\\\"PERSON_INFO_WATERMARK\\\"}\"`\n\nComponentType为FILL_IMAGE时,支持以下参数:\n\n\nComponentType为SIGN_SIGNATURE类型时,可以通过**ComponentTypeLimit**参数控制签名方式\n\n参考样例:`{\"ComponentTypeLimit\": [\"SYSTEM_ESIGN\"]}`\n印章的对应关系参考下图\n![image](https://qcloudimg.tencent-cloud.cn/raw/ee0498856c060c065628a0c5ba780d6b.jpg)

    \n\nComponentType为SIGN_SEAL 或者 SIGN_PAGING_SEAL类型时,可以通过**ComponentTypeLimit**参数控制签署方签署时要使用的印章类型,支持指定以下印章类型\n\n参考样例:`{\\\"ComponentTypeLimit\\\":[\\\"PERSONNEL\\\",\\\"FINANCE\\\"]}` 表示改印章签署区,客户需使用人事专用章或财务专用章盖章签署。

    \n\nComponentType为SIGN_DATE时,支持以下参数:\n\n如果extra参数为空,默认为”yyyy年m月d日”格式的居中日期\n特别地,如果extra中Format字段为空或无法被识别,则extra参数会被当作默认值处理(Font,FontSize,Gaps和FontAlign都不会起效)\n参数样例: ` \"{\"Format\":\"yyyy m d\",\"FontSize\":12,\"Gaps\":\"2,2\", \"FontAlign\":\"Right\"}\"`\n\nComponentType为SIGN_SEAL类型时,支持以下参数:\n\n参数样例:` \"{\"PageRanges\":[{\"BeginPage\":1,\"EndPage\":-1}]}\"`\n\n签署印章透明度功能设置,当ComponentType为SIGN_SIGNATURE、SIGN_SEAL、SIGN_PAGING_SEAL、SIGN_LEGAL_PERSON_SEAL时,可以通过以下参数设置签署印章的透明度:\n\n参数样例:`{\"Opacity\":0.7}`\n\n签署印章大小功能设置,当ComponentType为SIGN_SEAL、SIGN_PAGING_SEAL、SIGN_LEGAL_PERSON_SEAL时,可以通过以下参数设置签署时按照实际印章的大小进行签署,如果印章没有设置大小,那么默认会是4.2cm的印章大小:\n\n参数样例:`{\"UseSealSize\":true}`\n\n关键字模式下支持关键字找不到的情况下不进行报错的设置\n\n场景说明:如果使用关键字进行定位,但是指定的PDF文件中又没有设置的关键字时,发起合同会进行关键字是否存在的校验,如果关键字不存在,会进行报错返回。如果不希望进行报错,可以设置\"IgnoreKeywordError\"来忽略错误。请注意,如果关键字签署控件对应的签署方在整个PDF文件中一个签署控件都没有,还是会触发报错逻辑。\n参数样例:` \"{\"IgnoreKeywordError\":1}\"`\n\nComponentType为SIGN_VIRTUAL_COMBINATION时,支持以下参数:\n\n\n", + "document": "**在所有的定位方式下**,控件的扩展参数,为JSON格式,不同类型的控件会有部分非通用参数。\n\nComponentType为TEXT、MULTI_LINE_TEXT时,支持以下参数:\n\n参数样例:`{\"FontColor\":\"255,0,0\",\"FontSize\":12}`\n\nComponentType为DATE时,支持以下参数:\n\n参数样例:`{\"FontColor\":\"255,0,0\",\"FontSize\":12}`\n\nComponentType为WATERMARK时,支持以下参数:\n\n参数样例:`\"{\\\"Font\\\":\\\"黑体\\\",\\\"FontSize\\\":20,\\\"Opacity\\\":0.1,\\\"Density\\\":2,\\\"SubType\\\":\\\"PERSON_INFO_WATERMARK\\\"}\"`\n\nComponentType为FILL_IMAGE时,支持以下参数:\n\n\nComponentType为SIGN_SIGNATURE类型时,可以通过**ComponentTypeLimit**参数控制签名方式\n\n参考样例:`{\"ComponentTypeLimit\": [\"SYSTEM_ESIGN\"]}`\n印章的对应关系参考下图\n![image](https://qcloudimg.tencent-cloud.cn/raw/ee0498856c060c065628a0c5ba780d6b.jpg)

    \n\nComponentType为SIGN_SEAL 或者 SIGN_PAGING_SEAL类型时,可以通过**ComponentTypeLimit**参数控制签署方签署时要使用的印章类型,支持指定以下印章类型\n\n参考样例:`{\\\"ComponentTypeLimit\\\":[\\\"PERSONNEL\\\",\\\"FINANCE\\\"]}` 表示改印章签署区,客户需使用人事专用章或财务专用章盖章签署。

    \n\nComponentType为SIGN_DATE时,支持以下参数:\n\n如果extra参数为空,默认为”yyyy年m月d日”格式的居中日期\n特别地,如果extra中Format字段为空或无法被识别,则extra参数会被当作默认值处理(Font,FontSize,Gaps和FontAlign都不会起效)\n参数样例: ` \"{\"Format\":\"yyyy m d\",\"FontSize\":12,\"Gaps\":\"2,2\", \"FontAlign\":\"Right\"}\"`\n\nComponentType为SIGN_SEAL、SIGN_SIGNATURE类型时,支持以下参数:\n\n参数样例:` \"{\"PageRanges\":[{\"BeginPage\":1,\"EndPage\":-1}]}\"`\n\n签署印章透明度功能设置,当ComponentType为SIGN_SIGNATURE、SIGN_SEAL、SIGN_PAGING_SEAL、SIGN_LEGAL_PERSON_SEAL时,可以通过以下参数设置签署印章的透明度:\n\n参数样例:`{\"Opacity\":0.7}`\n\n签署印章大小功能设置,当ComponentType为SIGN_SEAL、SIGN_PAGING_SEAL、SIGN_LEGAL_PERSON_SEAL时,可以通过以下参数设置签署时按照实际印章的大小进行签署,如果印章没有设置大小,那么默认会是4.2cm的印章大小:\n\n参数样例:`{\"UseSealSize\":true}`\n\n关键字模式下支持关键字找不到的情况下不进行报错的设置\n\n场景说明:如果使用关键字进行定位,但是指定的PDF文件中又没有设置的关键字时,发起合同会进行关键字是否存在的校验,如果关键字不存在,会进行报错返回。如果不希望进行报错,可以设置\"IgnoreKeywordError\"来忽略错误。请注意,如果关键字签署控件对应的签署方在整个PDF文件中一个签署控件都没有,还是会触发报错逻辑。\n参数样例:` \"{\"IgnoreKeywordError\":1}\"`\n\nComponentType为SIGN_VIRTUAL_COMBINATION时,支持以下参数:\n\n\n", "example": "{\"FontColor\":\"255,0,0\",\"FontSize\":12}", "member": "string", "name": "ComponentExtra", diff --git a/tccli/services/essbasic/v20210526/api.json b/tccli/services/essbasic/v20210526/api.json index d1c7df340e..3dbc6f94f6 100644 --- a/tccli/services/essbasic/v20210526/api.json +++ b/tccli/services/essbasic/v20210526/api.json @@ -6091,7 +6091,7 @@ }, { "disabled": false, - "document": "**在所有的定位方式下**,控件的扩展参数,为JSON格式,不同类型的控件会有部分非通用参数。\n\nComponentType为TEXT、MULTI_LINE_TEXT时,支持以下参数:\n\n参数样例:`{\"FontColor\":\"255,0,0\",\"FontSize\":12}`\n\nComponentType为DATE时,支持以下参数:\n\n参数样例:`{\"FontColor\":\"255,0,0\",\"FontSize\":12}`\n\nComponentType为FILL_IMAGE时,支持以下参数:\n\n\nComponentType为SIGN_SIGNATURE类型时,可以**ComponentTypeLimit**参数控制签署方式\n\n参考样例:`{\"ComponentTypeLimit\": [\"SYSTEM_ESIGN\"]}`\n印章的对应关系参考下图\n![image](https://qcloudimg.tencent-cloud.cn/raw/ee0498856c060c065628a0c5ba780d6b.jpg)

    \nComponentType为SIGN_SEAL 或者 SIGN_PAGING_SEAL类型时,可以通过**ComponentTypeLimit**参数控制签署方签署时要使用的印章类型,支持指定以下印章类型\n\n参考样例:`{\\\"ComponentTypeLimit\\\":[\\\"PERSONNEL\\\",\\\"FINANCE\\\"]}` 表示改印章签署区,客户需使用人事专用章或财务专用章盖章签署。

    \n\nComponentType为SIGN_DATE时,支持以下参数:\n\n如果extra参数为空,默认为”yyyy年m月d日”格式的居中日期\n特别地,如果extra中Format字段为空或无法被识别,则extra参数会被当作默认值处理(Font,FontSize,Gaps和FontAlign都不会起效)\n参数样例: ` \"{\"Format\":\"yyyy m d\",\"FontSize\":12,\"Gaps\":\"2,2\", \"FontAlign\":\"Right\"}\"`\n\nComponentType为SIGN_SEAL类型时,支持以下参数:\n\n参数样例:` \"{\"PageRanges\":[{\"BeginPage\":1,\"EndPage\":-1}]}\"`\n\n签署印章旋转功能,当ComponentType为SIGN_SIGNATURE、SIGN_DATE、SIGN_SEAL时,可以通过以下参数设置签署图片的旋转角度:\n\n参数样例:`{\"Rotate\":-30,\"RotateRelation\":\"Component_Id1\"}`\n\n签署印章透明度功能设置,当ComponentType为SIGN_SIGNATURE、SIGN_SEAL、SIGN_PAGING_SEAL、SIGN_LEGAL_PERSON_SEAL时,可以通过以下参数设置签署印章的透明度:\n\n参数样例:`{\"Opacity\":0.7}`\n\n签署印章大小功能设置,当ComponentType为SIGN_SEAL、SIGN_PAGING_SEAL、SIGN_LEGAL_PERSON_SEAL时,可以通过以下参数设置签署时按照实际印章的大小进行签署,如果印章没有设置大小,那么默认会是4.2cm的印章大小:\n\n参数样例:`{\"UseSealSize\":true}`\n\n关键字模式下支持关键字找不到的情况下不进行报错的设置\n\n场景说明:如果使用关键字进行定位,但是指定的PDF文件中又没有设置的关键字时,发起合同会进行关键字是否存在的校验,如果关键字不存在,会进行报错返回。如果不希望进行报错,可以设置\"IgnoreKeywordError\"来忽略错误。请注意,如果关键字签署控件对应的签署方在整个PDF文件中一个签署控件都没有,还是会触发报错逻辑。\n参数样例:` \"{\"IgnoreKeywordError\":1}\"`\n\n\nComponentType为SIGN_VIRTUAL_COMBINATION时,支持以下参数:\n\n\n\n\n", + "document": "**在所有的定位方式下**,控件的扩展参数,为JSON格式,不同类型的控件会有部分非通用参数。\n\nComponentType为TEXT、MULTI_LINE_TEXT时,支持以下参数:\n\n参数样例:`{\"FontColor\":\"255,0,0\",\"FontSize\":12}`\n\nComponentType为DATE时,支持以下参数:\n\n参数样例:`{\"FontColor\":\"255,0,0\",\"FontSize\":12}`\n\nComponentType为FILL_IMAGE时,支持以下参数:\n\n\nComponentType为SIGN_SIGNATURE类型时,可以**ComponentTypeLimit**参数控制签署方式\n\n参考样例:`{\"ComponentTypeLimit\": [\"SYSTEM_ESIGN\"]}`\n印章的对应关系参考下图\n![image](https://qcloudimg.tencent-cloud.cn/raw/ee0498856c060c065628a0c5ba780d6b.jpg)

    \nComponentType为SIGN_SEAL 或者 SIGN_PAGING_SEAL类型时,可以通过**ComponentTypeLimit**参数控制签署方签署时要使用的印章类型,支持指定以下印章类型\n\n参考样例:`{\\\"ComponentTypeLimit\\\":[\\\"PERSONNEL\\\",\\\"FINANCE\\\"]}` 表示改印章签署区,客户需使用人事专用章或财务专用章盖章签署。

    \n\nComponentType为SIGN_DATE时,支持以下参数:\n\n如果extra参数为空,默认为”yyyy年m月d日”格式的居中日期\n特别地,如果extra中Format字段为空或无法被识别,则extra参数会被当作默认值处理(Font,FontSize,Gaps和FontAlign都不会起效)\n参数样例: ` \"{\"Format\":\"yyyy m d\",\"FontSize\":12,\"Gaps\":\"2,2\", \"FontAlign\":\"Right\"}\"`\n\nComponentType为SIGN_SEAL、SIGN_SIGNATURE类型时,支持以下参数:\n\n参数样例:` \"{\"PageRanges\":[{\"BeginPage\":1,\"EndPage\":-1}]}\"`\n\n签署印章旋转功能,当ComponentType为SIGN_SIGNATURE、SIGN_DATE、SIGN_SEAL时,可以通过以下参数设置签署图片的旋转角度:\n\n参数样例:`{\"Rotate\":-30,\"RotateRelation\":\"Component_Id1\"}`\n\n签署印章透明度功能设置,当ComponentType为SIGN_SIGNATURE、SIGN_SEAL、SIGN_PAGING_SEAL、SIGN_LEGAL_PERSON_SEAL时,可以通过以下参数设置签署印章的透明度:\n\n参数样例:`{\"Opacity\":0.7}`\n\n签署印章大小功能设置,当ComponentType为SIGN_SEAL、SIGN_PAGING_SEAL、SIGN_LEGAL_PERSON_SEAL时,可以通过以下参数设置签署时按照实际印章的大小进行签署,如果印章没有设置大小,那么默认会是4.2cm的印章大小:\n\n参数样例:`{\"UseSealSize\":true}`\n\n关键字模式下支持关键字找不到的情况下不进行报错的设置\n\n场景说明:如果使用关键字进行定位,但是指定的PDF文件中又没有设置的关键字时,发起合同会进行关键字是否存在的校验,如果关键字不存在,会进行报错返回。如果不希望进行报错,可以设置\"IgnoreKeywordError\"来忽略错误。请注意,如果关键字签署控件对应的签署方在整个PDF文件中一个签署控件都没有,还是会触发报错逻辑。\n参数样例:` \"{\"IgnoreKeywordError\":1}\"`\n\n\nComponentType为SIGN_VIRTUAL_COMBINATION时,支持以下参数:\n\n\n\n\n", "example": "ComponentExtra", "member": "string", "name": "ComponentExtra", diff --git a/tccli/services/lighthouse/v20200324/api.json b/tccli/services/lighthouse/v20200324/api.json index 5d89424601..cd73fd38fa 100644 --- a/tccli/services/lighthouse/v20200324/api.json +++ b/tccli/services/lighthouse/v20200324/api.json @@ -6100,6 +6100,17 @@ "type": "string", "value_allowed_null": false }, + { + "disabled": false, + "document": "IPv6网段或IPv6地址(互斥)。\n示例值:::/0。\n\n和CidrBlock互斥,两者都不指定时,如果Protocol是ICMPv6,则取默认值::/0。", + "example": "::/0", + "member": "string", + "name": "Ipv6CidrBlock", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, { "disabled": false, "document": "取值:ACCEPT,DROP。默认为 ACCEPT。", @@ -6168,6 +6179,16 @@ "type": "string", "value_allowed_null": false }, + { + "disabled": false, + "document": "IPv6网段或IPv6地址(互斥)。\n示例值:::/0。\n\n和CidrBlock互斥,两者都不指定时,如果Protocol是ICMPv6,则取默认值::/0。", + "example": "::/0", + "member": "string", + "name": "Ipv6CidrBlock", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, { "disabled": false, "document": "取值:ACCEPT,DROP。默认为 ACCEPT。", @@ -7100,6 +7121,26 @@ "type": "string", "value_allowed_null": false }, + { + "disabled": false, + "document": "描述实例是否支持IPv6。", + "example": "无", + "member": "SupportIpv6Detail", + "name": "SupportIpv6Detail", + "output_required": false, + "type": "object", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "公网IPv6地址列表。", + "example": "[\"2402:4e00:c000:100:c0b4:df6e:e276:6\"]", + "member": "string", + "name": "PublicIpv6Addresses", + "output_required": false, + "type": "list", + "value_allowed_null": false + }, { "disabled": false, "document": "创建实例后自动执行TAT命令的调用ID。", @@ -9577,6 +9618,42 @@ ], "type": "object" }, + "SupportIpv6Detail": { + "document": "实例支持IPv6详情描述。", + "members": [ + { + "disabled": false, + "document": "是否支持开启IPv6。", + "example": "true", + "member": "bool", + "name": "IsSupport", + "output_required": true, + "type": "bool", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "详情。\n\n当IsSupport为True,Detail枚举值为:\n\nEFFECTIVE_IMMEDIATELY: 立即生效\n\nEFFECTIVE_AFTER_REBOOT: 分配过程需要开关机,用户需备份数据\n\n \n\n当IsSupport为False,Detail枚举值为:\n\nHAD_BEEN_ASSIGNED: 已分配IPv6地址\n\nREGION_NOT_SUPPORT: 地域不支持\n\nBLUEPRINT_NOT_SUPPORT: 镜像不支持\n\nBUNDLE_INSTANCE_NOT_SUPPORT: 套餐实例不支持\n\nBUNDLE_BANDWIDTH_NOT_SUPPORT: 套餐带宽不支持", + "example": "HAD_BEEN_ASSIGNED", + "member": "string", + "name": "Detail", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "提示信息。", + "example": "The current instance has been assigned an IPv6 address.", + "member": "string", + "name": "Message", + "output_required": true, + "type": "string", + "value_allowed_null": false + } + ], + "usage": "out" + }, "SystemDisk": { "document": "描述了操作系统所在块设备即系统盘的信息。", "members": [ diff --git a/tccli/services/lighthouse/v20200324/examples.json b/tccli/services/lighthouse/v20200324/examples.json index 657b84aa4e..e4c34002b8 100644 --- a/tccli/services/lighthouse/v20200324/examples.json +++ b/tccli/services/lighthouse/v20200324/examples.json @@ -346,7 +346,7 @@ { "document": "查询防火墙模板应用记录", "input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFirewallTemplateApplyRecords\n<公共请求参数>\n\n{\n \"TemplateId\": \"lhft-6brh0ciy\"\n}", - "output": "{\n \"Response\": {\n \"ApplyRecordSet\": [\n {\n \"ApplyDetailSet\": [\n {\n \"ApplyState\": \"SUCCESS\",\n \"ErrorMessage\": \"\",\n \"Instance\": {\n \"InstanceId\": \"lhins-abcd1234\",\n \"Region\": \"ap-guangzhou\"\n }\n }\n ],\n \"TaskId\": \"lgtk-dodi8tqa\",\n \"ApplyState\": \"SUCCESS\",\n \"ApplyTime\": \"2023-06-21T02:47:42Z\",\n \"FailedCount\": 0,\n \"RunningCount\": 0,\n \"SuccessCount\": 1,\n \"TemplateRuleSet\": [\n {\n \"FirewallRule\": {\n \"Action\": \"ACCEPT\",\n \"CidrBlock\": \"0.0.0.0/0\",\n \"FirewallRuleDescription\": \"tcp 80\",\n \"Port\": \"81\",\n \"Protocol\": \"TCP\"\n },\n \"TemplateRuleId\": \"lhftr-gexf7cmvpq\"\n },\n {\n \"FirewallRule\": {\n \"Action\": \"DROP\",\n \"CidrBlock\": \"0.0.0.0/0\",\n \"FirewallRuleDescription\": \"udp 80\",\n \"Port\": \"81\",\n \"Protocol\": \"UDP\"\n },\n \"TemplateRuleId\": \"lhftr-9uxz9zuz62\"\n }\n ]\n }\n ],\n \"RequestId\": \"cd7f9d77-c19b-4490-8d5e-42a776383f90\"\n }\n}", + "output": "{\n \"Response\": {\n \"ApplyRecordSet\": [\n {\n \"ApplyDetailSet\": [\n {\n \"ApplyState\": \"SUCCESS\",\n \"ErrorMessage\": \"\",\n \"Instance\": {\n \"InstanceId\": \"lhins-abcd1234\",\n \"Region\": \"ap-guangzhou\"\n }\n }\n ],\n \"TaskId\": \"lgtk-dodi8tqa\",\n \"ApplyState\": \"SUCCESS\",\n \"ApplyTime\": \"2023-06-21T02:47:42Z\",\n \"FailedCount\": 0,\n \"RunningCount\": 0,\n \"SuccessCount\": 1,\n \"TemplateRuleSet\": [\n {\n \"FirewallRule\": {\n \"Action\": \"ACCEPT\",\n \"CidrBlock\": \"0.0.0.0/0\",\n \"Ipv6CidrBlock\": \"\",\n \"FirewallRuleDescription\": \"tcp 80\",\n \"Port\": \"81\",\n \"Protocol\": \"TCP\"\n },\n \"TemplateRuleId\": \"lhftr-gexf7cmvpq\"\n },\n {\n \"FirewallRule\": {\n \"Action\": \"DROP\",\n \"CidrBlock\": \"0.0.0.0/0\",\n \"Ipv6CidrBlock\": \"\",\n \"FirewallRuleDescription\": \"udp 80\",\n \"Port\": \"81\",\n \"Protocol\": \"UDP\"\n },\n \"TemplateRuleId\": \"lhftr-9uxz9zuz62\"\n }\n ]\n }\n ],\n \"RequestId\": \"cd7f9d77-c19b-4490-8d5e-42a776383f90\"\n }\n}", "title": "查询防火墙模板应用记录" } ], @@ -370,7 +370,7 @@ { "document": "查询防火墙模板规则列表", "input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFirewallTemplateRules\n<公共请求参数>\n\n{\n \"TemplateId\": \"lhft-6brh0ciy\"\n}", - "output": "{\n \"Response\": {\n \"RequestId\": \"8e3d057f-a651-4c66-b5e3-abb11e305f19\",\n \"TemplateRuleSet\": [\n {\n \"FirewallRuleInfo\": {\n \"Action\": \"ACCEPT\",\n \"AppType\": \"user-defined\",\n \"CidrBlock\": \"0.0.0.0/0\",\n \"FirewallRuleDescription\": \"tcp 80\",\n \"Port\": \"81\",\n \"Protocol\": \"TCP\"\n },\n \"TemplateRuleId\": \"lhftr-gexf7cmvpq\"\n },\n {\n \"FirewallRuleInfo\": {\n \"Action\": \"DROP\",\n \"AppType\": \"user-defined\",\n \"CidrBlock\": \"0.0.0.0/0\",\n \"FirewallRuleDescription\": \"udp 80\",\n \"Port\": \"81\",\n \"Protocol\": \"UDP\"\n },\n \"TemplateRuleId\": \"lhftr-9uxz9zuz62\"\n }\n ],\n \"TotalCount\": 2\n }\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"8e3d057f-a651-4c66-b5e3-abb11e305f19\",\n \"TemplateRuleSet\": [\n {\n \"FirewallRuleInfo\": {\n \"Action\": \"ACCEPT\",\n \"AppType\": \"user-defined\",\n \"CidrBlock\": \"0.0.0.0/0\",\n \"Ipv6CidrBlock\": \"::/0\",\n \"FirewallRuleDescription\": \"tcp 80\",\n \"Port\": \"81\",\n \"Protocol\": \"TCP\"\n },\n \"TemplateRuleId\": \"lhftr-gexf7cmvpq\"\n },\n {\n \"FirewallRuleInfo\": {\n \"Action\": \"DROP\",\n \"AppType\": \"user-defined\",\n \"CidrBlock\": \"0.0.0.0/0\",\n \"Ipv6CidrBlock\": \"::/0\",\n \"FirewallRuleDescription\": \"udp 80\",\n \"Port\": \"81\",\n \"Protocol\": \"UDP\"\n },\n \"TemplateRuleId\": \"lhftr-9uxz9zuz62\"\n }\n ],\n \"TotalCount\": 2\n }\n}", "title": "查询防火墙模板规则列表" } ], diff --git a/tccli/services/live/v20180801/api.json b/tccli/services/live/v20180801/api.json index e8c8e1e4b9..9fc2b32d5d 100644 --- a/tccli/services/live/v20180801/api.json +++ b/tccli/services/live/v20180801/api.json @@ -4740,7 +4740,7 @@ }, { "disabled": false, - "document": "拉流源 url 列表。\nSourceType 为直播(PullLivePushLive)只可以填1个,\nSourceType 为点播(PullVodPushLive)可以填多个,上限30个。\n当前支持的文件格式:flv,mp4,hls。\n当前支持的拉流协议:http,https,rtmp,rtmps,rtsp,srt。\n注意:\n1. 建议优先使用 flv 文件,对于 mp4 未交织好的文件轮播推流易产生卡顿,可通过点播转码进行重新交织后再轮播。\n2. 拒绝内网域名等攻击性拉流地址,如有使用,则做账号封禁处理。\n3. 源文件请保持时间戳正常交织递增,避免因源文件异常影响推流及播放。\n4. 视频编码格式仅支持: H264, H265。\n5. 音频编码格式仅支持: AAC。\n6. 点播源请使用小文件,尽量时长保持在1小时内,较大文件打开和续播耗时较久,耗时超过15秒会有无法正常转推风险。\n7. 避免使用低频存储的文件,该类文件因低频存储,拉取时容易出现慢速,影响拉转推质量。", + "document": "拉流源 url 列表。\nSourceType 为直播(PullLivePushLive)只可以填1个,\nSourceType 为点播(PullVodPushLive)可以填多个,上限30个。\n当前支持的文件格式:flv,mp4,hls。\n当前支持的拉流协议:http,https,rtmp,rtmps,rtsp,srt。\n注意:\n1. 建议优先使用 flv 文件,对于 mp4 未交织好的文件轮播推流易产生卡顿以及因为频繁拉取导致源产生大量源出口带宽成本,可通过点播转码进行重新交织后再轮播,或提前创建任务并开启本地模式。\n2. 拒绝内网域名等攻击性拉流地址,如有使用,则做账号封禁处理。\n3. 源文件请保持时间戳正常交织递增,避免因源文件异常影响推流及播放。\n4. 视频编码格式仅支持: H264, H265。\n5. 音频编码格式仅支持: AAC。\n6. 点播源请使用小文件,尽量时长保持在1小时内,较大文件打开和续播耗时较久,耗时超过15秒会有无法正常转推风险。\n7. 避免使用低频存储的文件,该类文件因低频存储,拉取时容易出现慢速,影响拉转推质量。", "example": "http://5000.liveplay.myqcloud.com/live/testsrc.flv?txSecret=4d8e", "member": "string", "name": "SourceUrls", diff --git a/tccli/services/lkeap/v20240522/api.json b/tccli/services/lkeap/v20240522/api.json index ec3988f22e..f073b9e7e7 100644 --- a/tccli/services/lkeap/v20240522/api.json +++ b/tccli/services/lkeap/v20240522/api.json @@ -1,7 +1,7 @@ { "actions": { "ChatCompletions": { - "document": "#### 接口功能\n\n调用接口,发起一次对话请求。\n\n#### 已支持的模型\n- DeepSeek-V3(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大支持8K输出长度。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持64K上下文长度,最大支持8K输出长度。\n\n#### 计费说明\n- 限时免费\n\n本接口调用DeepSeek系列模型限时免费。即日至北京时间2025年2月25日23:59:59,所有腾讯云用户均可享受DeepSeek-V3、DeepSeek-R1模型限时免费服务,单账号限制接口并发上限为5。在此之后,模型价格将恢复至原价。\n- 标准计费(2025年2月26日起生效)\n![image](https://cdn.xiaowei.qq.com/static/lke/deepseek-token.png)\n\n### Openai兼容协议接口\n知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。\n> base_url: https://api.lkeap.cloud.tencent.com/v1\n\n> api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)\n\n\n#### 快速接入\n1. 完成[实名认证](https://console.cloud.tencent.com/developer/auth)。\n2. 主账户前往[控制台](https://console.cloud.tencent.com/lkeap)开通服务。若为子账户,需由主账号在[权限管理](https://console.cloud.tencent.com/cam)中为子账号授权,关联预设策略,策略名称:QcloudLKEAPFullAccess。\n3. 通过API Explorer[在线调试](https://console.cloud.tencent.com/api/explorer?Product=lkeap&Version=2024-05-22&Action=ChatCompletions)。\n4. 使用[官方 SDK ](https://cloud.tencent.com/document/product/1772/115963#SDK)调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言)。\n\n-----------\n\n### SDK调用示例\n通过本地代码调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言):下面的代码以 Python 语言为例,展示如何访问腾讯云上的DeepSeek模型API的样例。\n(1)安装环境\n```\npython3 -m pip install --upgrade tencentcloud-sdk-python-common\npython3 -m pip install --upgrade tencentcloud-sdk-python-lkeap\n```\n\n(2)示例代码\n\n- 其中SecretKey和SecretID需要从腾讯云控制台获取\n\n- 参数params中模型Model字段可以选择“deepseek-r1“和“deepseek-v3”\n\n```\n# -*- coding: utf-8 -*-\nimport json\n\nfrom tencentcloud.common.common_client import CommonClient\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.common.profile.client_profile import ClientProfile\nfrom tencentcloud.common.profile.http_profile import HttpProfile\n\nclass NonStreamResponse(object):\n def __init__(self):\n self.response = \"\"\n\n def _deserialize(self, obj):\n self.response = json.dumps(obj)\n\ntry:\n # 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密\n # 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305\n # 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取\n cred = credential.Credential(\"\", \"\")\n\n httpProfile = HttpProfile()\n httpProfile.endpoint = \"lkeap.tencentcloudapi.com\"\n httpProfile.reqTimeout = 40000 # 流式接口可能耗时较长\n clientProfile = ClientProfile()\n clientProfile.httpProfile = httpProfile\n\n params = \"{\\\"Model\\\":\\\"deepseek-r1\\\",\\\"Messages\\\":[{\\\"Role\\\":\\\"user\\\",\\\"Content\\\":\\\"你好\\\"}],\\\"Stream\\\":true}\";\n common_client = CommonClient(\"lkeap\", \"2024-05-22\", cred, \"ap-guangzhou\", profile=clientProfile)\n resp = common_client._call_and_deserialize(\"ChatCompletions\", json.loads(params), NonStreamResponse)\n if isinstance(resp, NonStreamResponse): # 非流式响应\n print(resp.response)\n else: # 流式响应\n for event in resp:\n print(event)\nexcept TencentCloudSDKException as err:\n print(err)\n\n```\n\n**DeepSeek-R1使用建议**\n\n1. 将温度设置在 0.5-0.7 范围内(建议为0.6),以防止无休止的重复或不连贯的输出。\n2. 避免添加system prompt,所有说明都应包含在user prompt中。", + "document": "#### 接口功能\n\n调用接口,发起一次对话请求。\n如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1772/115968)\n\n#### 已支持的模型\n- DeepSeek-V3(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大支持8K输出长度。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持64K上下文长度,最大支持8K输出长度。\n\n#### 计费说明\n- 限时免费\n\n本接口调用DeepSeek系列模型限时免费。即日至北京时间2025年2月25日23:59:59,所有腾讯云用户均可享受DeepSeek-V3、DeepSeek-R1模型限时免费服务,单账号限制接口并发上限为5。在此之后,模型价格将恢复至原价。\n- 标准计费(2025年2月26日起生效)\n![image](https://cdn.xiaowei.qq.com/static/lke/deepseek-token.png)\n\n### Openai兼容协议接口\n知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1772/115968)。\n> base_url: https://api.lkeap.cloud.tencent.com/v1\n\n> api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)\n\n\n#### 快速接入\n1. 完成[实名认证](https://console.cloud.tencent.com/developer/auth)。\n2. 主账户前往[控制台](https://console.cloud.tencent.com/lkeap)开通服务。若为子账户,需由主账号在[权限管理](https://console.cloud.tencent.com/cam)中为子账号授权,关联预设策略,策略名称:QcloudLKEAPFullAccess。\n3. 通过API Explorer[在线调试](https://console.cloud.tencent.com/api/explorer?Product=lkeap&Version=2024-05-22&Action=ChatCompletions)。\n4. 使用[官方 SDK ](https://cloud.tencent.com/document/product/1772/115963#SDK)调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言)。\n\n-----------\n\n### SDK调用示例\n通过本地代码调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言):下面的代码以 Python 语言为例,展示如何访问腾讯云上的DeepSeek模型API的样例。\n(1)安装环境\n```\npython3 -m pip install --upgrade tencentcloud-sdk-python-common\npython3 -m pip install --upgrade tencentcloud-sdk-python-lkeap\n```\n\n(2)示例代码\n\n- 其中SecretKey和SecretID需要从腾讯云控制台获取\n\n- 参数params中模型Model字段可以选择“deepseek-r1“和“deepseek-v3”\n\n```\n# -*- coding: utf-8 -*-\nimport json\n\nfrom tencentcloud.common.common_client import CommonClient\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.common.profile.client_profile import ClientProfile\nfrom tencentcloud.common.profile.http_profile import HttpProfile\n\nclass NonStreamResponse(object):\n def __init__(self):\n self.response = \"\"\n\n def _deserialize(self, obj):\n self.response = json.dumps(obj)\n\ntry:\n # 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密\n # 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305\n # 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取\n cred = credential.Credential(\"\", \"\")\n\n httpProfile = HttpProfile()\n httpProfile.endpoint = \"lkeap.tencentcloudapi.com\"\n httpProfile.reqTimeout = 40000 # 流式接口可能耗时较长\n clientProfile = ClientProfile()\n clientProfile.httpProfile = httpProfile\n\n params = \"{\\\"Model\\\":\\\"deepseek-r1\\\",\\\"Messages\\\":[{\\\"Role\\\":\\\"user\\\",\\\"Content\\\":\\\"你好\\\"}],\\\"Stream\\\":true}\";\n common_client = CommonClient(\"lkeap\", \"2024-05-22\", cred, \"ap-guangzhou\", profile=clientProfile)\n resp = common_client._call_and_deserialize(\"ChatCompletions\", json.loads(params), NonStreamResponse)\n if isinstance(resp, NonStreamResponse): # 非流式响应\n print(resp.response)\n else: # 流式响应\n for event in resp:\n print(event)\nexcept TencentCloudSDKException as err:\n print(err)\n\n```\n\n**DeepSeek-R1使用建议**\n\n1. 将温度设置在 0.5-0.7 范围内(建议为0.6),以防止无休止的重复或不连贯的输出。\n2. 避免添加system prompt,所有说明都应包含在user prompt中。", "input": "ChatCompletionsRequest", "name": "对话", "output": "ChatCompletionsResponse", @@ -310,7 +310,7 @@ }, { "disabled": false, - "document": "会话列表", + "document": "聊天上下文信息。\n说明:\n1. 长度最多为 40,按对话时间从旧到新在数组中排列。\n2. Message.Role 可选值:system、user、assistant。\n其中,system 角色可选,如存在则必须位于列表的最开始。user(tool) 和 assistant 需交替出现(一问一答),以 user 提问开始,user(tool)提问结束,其中tool可以连续出现多次,且 Content 不能为空。Role 的顺序示例:[system(可选) user assistant user(tool tool ...) assistant user(tool tool ...) ...]。\n", "example": "[{\"role\":\"user\",\"content\":\"你好\"}]", "member": "Message", "name": "Messages", diff --git a/tccli/services/mna/v20210119/api.json b/tccli/services/mna/v20210119/api.json index b2a0eb9ab1..d73c81999f 100644 --- a/tccli/services/mna/v20210119/api.json +++ b/tccli/services/mna/v20210119/api.json @@ -1444,103 +1444,103 @@ }, { "disabled": false, - "document": "启用/禁用\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "启用/禁用", "example": "true", "member": "bool", "name": "DataEnable", "output_required": true, "type": "bool", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "上行限速\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "上行限速", "example": "10000", "member": "string", "name": "UploadLimit", "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "下行限速\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "下行限速", "example": "10000", "member": "string", "name": "DownloadLimit", "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "接收实时速率\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "接收实时速率", "example": "100", "member": "uint64", "name": "DataRx", "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "发送实时速率\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "发送实时速率", "example": "100", "member": "uint64", "name": "DataTx", "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "运营商类型:\n1: 中国移动;\n2: 中国电信; \n3: 中国联通\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "运营商类型:\n1: 中国移动;\n2: 中国电信; \n3: 中国联通", "example": "1", "member": "int64", "name": "Vendor", "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "连接状态:\n0:无连接\n1:连接中\n2:已连接\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "连接状态:\n0:无连接\n1:连接中\n2:已连接", "example": "1", "member": "int64", "name": "State", "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "公网IP\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "公网IP", "example": "\"xxx.xxx.xxx.xx\"", "member": "string", "name": "PublicIp", "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "信号强度/单位:dbm\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "信号强度/单位:dbm", "example": "-85", "member": "int64", "name": "SignalStrength", "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "数据网络类型:\n-1 :无效值 \n2:2G \n3:3G \n4:4G \n5:5G\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "数据网络类型:\n-1 :无效值 \n2:2G \n3:3G \n4:4G \n5:5G", "example": "4", "member": "int64", "name": "Rat", "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, diff --git a/tccli/services/mongodb/v20190725/api.json b/tccli/services/mongodb/v20190725/api.json index ec494b1880..b66dd1b856 100644 --- a/tccli/services/mongodb/v20190725/api.json +++ b/tccli/services/mongodb/v20190725/api.json @@ -380,7 +380,7 @@ "members": [ { "disabled": false, - "document": "实例ID列表,格式如:cmgo-p8vn****。与云数据库控制台页面中显示的实例ID相同", + "document": "实例 ID 列表,请登录[MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。", "example": "[\"cmgo-eqmo****\"]", "member": "string", "name": "InstanceIds", @@ -1056,8 +1056,8 @@ }, { "disabled": false, - "document": "实例密码。自定义密码长度为8-32个字符,至少包含字母、数字和字符(!@#%^*()_)中的两种。", - "example": "********", + "document": "实例密码。设置要求如下:\n- 字符个数为[8,32]。\n- 可输入[A,Z]、[a,z]、[0,9]范围内的字符。\n- 可输入的特殊字符包括:感叹号“!”,at“@”,警号“#”、百分号“%”、插入号“^”、星号“\\*”、括号“()”、下划线“_”。\n- 不能设置单一的字母或者数字。", + "example": "************", "member": "string", "name": "Password", "required": false, @@ -1437,7 +1437,7 @@ }, { "disabled": false, - "document": "实例密码。设置要求如下:\n- 字符个数为[8,32]。\n- 可输入[A,Z]、[a,z]、[0,9]范围内的字符。\n- 可输入的特殊字符包括:感叹号“!”,at“@”,警号“#“、百分号”%”、插入号“^”、星号“*”、括号“()”、下划线“_”。\n- 不能设置单一的字母或者数字。", + "document": "实例密码。设置要求如下:\n- 字符个数为[8,32]。\n- 可输入[A,Z]、[a,z]、[0,9]范围内的字符。\n- 可输入的特殊字符包括:感叹号“!”,at“@”,警号“#”、百分号“%”、插入号“^”、星号“\\*”、括号“()”、下划线“\\_”。\n- 不能设置单一的字母或者数字。", "example": "********", "member": "string", "name": "Password", @@ -3216,7 +3216,7 @@ { "disabled": false, "document": "待查询可用区", - "example": "1", + "example": "ap-guangzhou-3", "member": "string", "name": "Zone", "required": false, @@ -3815,8 +3815,8 @@ "members": [ { "disabled": false, - "document": "实例ID,格式如:cmgo-p8vn****。请登录[MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID,且单次最多同时查询5个实例。", - "example": "[cmgo-8oij****]", + "document": "实例ID。请登录[MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID,且单次最多同时查询5个实例。", + "example": "[\"cmgo-8oij****\"]", "member": "string", "name": "InstanceIds", "required": true, @@ -5624,7 +5624,7 @@ "members": [ { "disabled": false, - "document": "实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同", + "document": "实例ID,格式如:cmgo-p8vnipr5。请登录[MongoDB 控制台](https://console.cloud.tencent.com/mongodb#/)在实例列表复制实例 ID。", "example": "cmgo-eqmoa5sf", "member": "string", "name": "InstanceId", @@ -5633,7 +5633,7 @@ }, { "disabled": false, - "document": "自定义实例名称,名称只支持长度为60个字符的中文、英文、数字、下划线_、分隔符 -", + "document": "自定义实例名称,要求为1~128 长度的任意字符。", "example": "test_name", "member": "string", "name": "NewName", @@ -5660,8 +5660,8 @@ "members": [ { "disabled": false, - "document": "一个或多个待操作的实例ID。可通过DescribeInstances接口返回值中的InstanceId获取。每次请求批量实例的上限为100。", - "example": "[\"cmgo-gzo03o75\\n\"]", + "document": "指定续费的一个或多个待操作的实例ID。\n- 可通过[DescribeDBInstances](https://cloud.tencent.com/document/product/240/38568)接口返回值中的**InstanceIds**获取。\n- 每次续费请求的实例数量上限为100。", + "example": "[\"cmgo-gzo0****\"]", "member": "string", "name": "InstanceIds", "required": true, @@ -6505,7 +6505,7 @@ "example": "ap-guangzhou", "member": "string", "name": "Region", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": false }, @@ -6515,7 +6515,7 @@ "example": "ap-guangzhou-1", "member": "string", "name": "Zone", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": false }, @@ -6525,7 +6525,7 @@ "example": "无", "member": "SpecItem", "name": "SpecItems", - "required": true, + "output_required": true, "type": "list", "value_allowed_null": false }, @@ -6535,7 +6535,7 @@ "example": "1", "member": "int64", "name": "SupportMultiAZ", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false } diff --git a/tccli/services/mongodb/v20190725/examples.json b/tccli/services/mongodb/v20190725/examples.json index 32b3a4ab4c..73f9696e39 100644 --- a/tccli/services/mongodb/v20190725/examples.json +++ b/tccli/services/mongodb/v20190725/examples.json @@ -43,7 +43,7 @@ "CreateDBInstanceHour": [ { "document": "当前示例仅适合4.0版本,其余版本请严格参考传入参数中各版本说明项", - "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstanceHour\n<公共请求参数>\n\n{\n \"Zone\": \"ap-guangzhou-3\",\n \"GoodsNum\": \"1\",\n \"Clone\": \"1\",\n \"Memory\": \"4\",\n \"ClusterType\": \"REPLSET\",\n \"Volume\": \"250\",\n \"NodeNum\": \"2\",\n \"ReplicateSetNum\": \"1\",\n \"MachineCode\": \"HIO10G\",\n \"MongoVersion\": \"MONGO_40_WT\"\n}", + "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstanceHour\n<公共请求参数>\n\n{\n \"Zone\": \"ap-guangzhou-3\",\n \"GoodsNum\": 1,\n \"Clone\": 1,\n \"Memory\": 4,\n \"ClusterType\": \"REPLSET\",\n \"Volume\": 250,\n \"NodeNum\": 2,\n \"ReplicateSetNum\": 1,\n \"MachineCode\": \"HIO10G\",\n \"MongoVersion\": \"MONGO_50_WT\"\n}", "output": "{\n \"Response\": {\n \"RequestId\": \"eaf9b19d-5ad4-4ca2-9fc4-a319aeb9181f\",\n \"DealId\": \"20190709160000003502416120946732\",\n \"InstanceIds\": [\n \"cmgo-m26c****\"\n ]\n }\n}", "title": "创建云数据库实例(按量计费)" } @@ -155,7 +155,7 @@ "DescribeDBInstances": [ { "document": "查询实例列表", - "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBInstances\n<公共请求参数>\n\n{\n \"Status\": [\n 0\n ],\n \"OrderBy\": \"DESC\",\n \"InstanceIds\": [\n \"cmgo-3vgr****\"\n ],\n \"VpcId\": \"vpc-gfb3****\",\n \"Tags\": [\n {\n \"TagKey\": \"testTag\",\n \"TagValue\": \"testValue\"\n }\n ],\n \"ClusterType\": 0,\n \"PayMode\": 0,\n \"Limit\": 1,\n \"SearchKey\": \"\",\n \"Offset\": 1,\n \"SubnetId\": \"\",\n \"OrderByType\": \"\",\n \"InstanceType\": 0,\n \"ProjectIds\": [\n 1\n ]\n}", + "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBInstances\n<公共请求参数>\n\n{\n \"Status\": [\n 0\n ],\n \"OrderBy\": \"ProjectId\",\n \"InstanceIds\": [\n \"cmgo-3vgr****\"\n ],\n \"VpcId\": \"vpc-gfb3****\",\n \"Tags\": [\n {\n \"TagKey\": \"testTag\",\n \"TagValue\": \"testValue\"\n }\n ],\n \"ClusterType\": 0,\n \"PayMode\": 0,\n \"Limit\": 1,\n \"SearchKey\": \"\",\n \"Offset\": 1,\n \"SubnetId\": \"\",\n \"OrderByType\": \"\",\n \"InstanceType\": 0,\n \"ProjectIds\": [\n 1\n ]\n}", "output": "{\n \"Response\": {\n \"InstanceDetails\": [\n {\n \"AutoRenewFlag\": 0,\n \"CloneInstances\": [],\n \"ClusterType\": 0,\n \"ClusterVer\": 1,\n \"ConfigServerCpuNum\": 0,\n \"ConfigServerMemory\": 0,\n \"ConfigServerNodeNum\": 3,\n \"ConfigServerVolume\": 0,\n \"CpuNum\": 2,\n \"CreateTime\": \"2023-03-30 07:44:21\",\n \"DeadLine\": \"2073-03-30 07:44:21\",\n \"InstanceId\": \"cmgo-3vgr****\",\n \"InstanceName\": \"测试实例\",\n \"InstanceStatusDesc\": \"运行中\",\n \"InstanceType\": 1,\n \"InstanceVer\": 4,\n \"MachineType\": \"HIO10G\",\n \"MaintenanceEnd\": \"05:00:00\",\n \"MaintenanceStart\": \"04:00:00\",\n \"Memory\": 4096,\n \"MongoVersion\": \"MONGO_42_WT\",\n \"MongosCpuNum\": 0,\n \"MongosMemory\": 0,\n \"MongosNodeNum\": 0,\n \"NetType\": 1,\n \"PayMode\": 0,\n \"ProjectId\": 0,\n \"Protocol\": 0,\n \"ReadonlyInstances\": [],\n \"ReadonlyNodeNum\": 0,\n \"RealInstanceId\": \"cmgo-3vgr****\",\n \"Region\": \"ap-guangzhou\",\n \"RelatedInstance\": {\n \"InstanceId\": \"\",\n \"Region\": \"\"\n },\n \"ReplicaSets\": [\n {\n \"Memory\": 4096,\n \"OplogSize\": 1024,\n \"RealReplicaSetId\": \"cmgo-3vgrapm5_*\",\n \"ReplicaSetId\": \"cmgo-3vgrapm5_*\",\n \"ReplicaSetName\": \"cmgo-3vgrapm5_*\",\n \"SecondaryNum\": 2,\n \"UsedVolume\": 315,\n \"Volume\": 10240\n }\n ],\n \"ReplicationSetNum\": 1,\n \"SecondaryNum\": 2,\n \"StandbyInstances\": [],\n \"Status\": 2,\n \"SubnetId\": \"subnet-7q7d****\",\n \"Tags\": [],\n \"UsedVolume\": 315,\n \"Vip\": \"10.5.2.12;10.5.2.14;10.5.2.10\",\n \"Volume\": 10240,\n \"VpcId\": \"vpc-gfb3****\",\n \"Vport\": 27017,\n \"Zone\": \"ap-guangzhou-2\",\n \"ZoneList\": []\n }\n ],\n \"RequestId\": \"230c9c0e-a56f-4639-81ee-3cb46905c087\",\n \"TotalCount\": 1\n }\n}", "title": "查询实例列表" } @@ -195,7 +195,7 @@ "DescribeSpecInfo": [ { "document": "", - "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSpecInfo\n<公共请求参数>\n\n{\n \"Zone\": \"ap-guangzhou\"\n}", + "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSpecInfo\n<公共请求参数>\n\n{\n \"Zone\": \"ap-guangzhou-3\"\n}", "output": "{\n \"Response\": {\n \"RequestId\": \"a8c7ade4-2d22-4f5e-9e71-f546f15e6d67\",\n \"SpecInfoList\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"SpecItems\": [\n {\n \"ClusterType\": 0,\n \"Conns\": 1500,\n \"Cpu\": 2,\n \"DefaultStorage\": 25600,\n \"EngineName\": \"WiredTiger\",\n \"MachineType\": \"HIO10G\",\n \"MaxNodeNum\": 3,\n \"MaxReplicateSetNodeNum\": 5,\n \"MaxReplicateSetNum\": 20,\n \"MaxStorage\": 512000,\n \"Memory\": 4096,\n \"MinNodeNum\": 3,\n \"MinReplicateSetNodeNum\": 3,\n \"MinReplicateSetNum\": 2,\n \"MinStorage\": 102400,\n \"MongoVersionCode\": \"MONGO_36_WT\",\n \"MongoVersionValue\": 4,\n \"Qps\": 5000,\n \"SpecCode\": \"mongo.HIO10G.4g\",\n \"Status\": 1,\n \"Version\": \"3.6\"\n },\n {\n \"ClusterType\": 0,\n \"Conns\": 1500,\n \"Cpu\": 2,\n \"DefaultStorage\": 25600,\n \"EngineName\": \"WiredTiger\",\n \"MachineType\": \"HIO10G\",\n \"MaxNodeNum\": 3,\n \"MaxReplicateSetNodeNum\": 5,\n \"MaxReplicateSetNum\": 20,\n \"MaxStorage\": 512000,\n \"Memory\": 4096,\n \"MinNodeNum\": 3,\n \"MinReplicateSetNodeNum\": 3,\n \"MinReplicateSetNum\": 2,\n \"MinStorage\": 102400,\n \"MongoVersionCode\": \"MONGO_3_WT\",\n \"MongoVersionValue\": 2,\n \"Qps\": 5000,\n \"SpecCode\": \"mongo.HIO10G.4g\",\n \"Status\": 1,\n \"Version\": \"3.2\"\n },\n {\n \"ClusterType\": 1,\n \"Conns\": 15000,\n \"Cpu\": 48,\n \"DefaultStorage\": 4096000,\n \"EngineName\": \"WiredTiger\",\n \"MachineType\": \"HIO10G\",\n \"MaxNodeNum\": 3,\n \"MaxReplicateSetNodeNum\": 5,\n \"MaxReplicateSetNum\": 20,\n \"MaxStorage\": 6144000,\n \"Memory\": 524288,\n \"MinNodeNum\": 3,\n \"MinReplicateSetNodeNum\": 3,\n \"MinReplicateSetNum\": 2,\n \"MinStorage\": 1536000,\n \"MongoVersionCode\": \"MONGO_36_WT\",\n \"MongoVersionValue\": 4,\n \"Qps\": 42000,\n \"SpecCode\": \"mongo.HIO10G.512g\",\n \"Status\": 1,\n \"Version\": \"3.6\"\n }\n ],\n \"SupportMultiAZ\": 1,\n \"Zone\": \"ap-guangzhou-3\"\n }\n ]\n }\n}", "title": "查询云数据库售卖" } @@ -243,7 +243,7 @@ "InquirePriceCreateDBInstances": [ { "document": "", - "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquirePriceCreateDBInstances\n<公共请求参数>\n\n{\n \"GoodsNum\": 2,\n \"Zone\": \"ap-guangzhou-4\",\n \"Memory\": 4,\n \"Period\": \"1\",\n \"ClusterType\": \"REPLSET\",\n \"Volume\": 100,\n \"NodeNum\": 3,\n \"ReplicateSetNum\": 1,\n \"MachineCode\": \"HIO10G\",\n \"MongoVersion\": \"MONGO_50_WT\"\n}", + "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquirePriceCreateDBInstances\n<公共请求参数>\n\n{\n \"GoodsNum\": 2,\n \"Zone\": \"ap-guangzhou-4\",\n \"Memory\": 4,\n \"Period\": 1,\n \"ClusterType\": \"REPLSET\",\n \"Volume\": 100,\n \"NodeNum\": 3,\n \"ReplicateSetNum\": 1,\n \"MachineCode\": \"HIO10G\",\n \"MongoVersion\": \"MONGO_50_WT\"\n}", "output": "{\n \"Response\": {\n \"Price\": {\n \"DiscountPrice\": 1340,\n \"OriginalPrice\": 1340,\n \"UnitPrice\": 670\n },\n \"RequestId\": \"fb8b4646-389d-44cc-ab8c-98c081cbdad3\"\n }\n}", "title": "查询新购数据库实例价格" } @@ -307,7 +307,7 @@ "ModifyDBInstanceSpec": [ { "document": "调整云数据库实例配置", - "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDBInstanceSpec\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-p8vn****\",\n \"Volume\": \"250\",\n \"Memory\": \"4\"\n}", + "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDBInstanceSpec\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-p8vn****\",\n \"Volume\": 250,\n \"Memory\": 4\n}", "output": "{\n \"Response\": {\n \"RequestId\": \"d88095e5-50e8-4245-a0cf-993a536f9b20\",\n \"DealId\": \"7142863\"\n }\n}", "title": "调整云数据库实例配置" }, diff --git a/tccli/services/monitor/v20180724/api.json b/tccli/services/monitor/v20180724/api.json index 48eba7110f..770d4efe00 100644 --- a/tccli/services/monitor/v20180724/api.json +++ b/tccli/services/monitor/v20180724/api.json @@ -12168,7 +12168,7 @@ { "disabled": false, "document": "规格名称\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "abc", + "example": "基础1", "member": "string", "name": "SpecName", "output_required": true, @@ -12844,7 +12844,7 @@ { "disabled": false, "document": "模板列表", - "example": "[{\"Name\":\"abc\",\"Describe\":\"abc\",\"Level\":\"abc\",\"RecordRules\":[{\"Name\":\"abc\",\"Config\":\"abc\",\"TemplateId\":\"abc\",\"Targets\":{\"Total\":1,\"Up\":1,\"Down\":1,\"Unknown\":1}}],\"RawJobs\":[{\"Name\":\"abc\",\"Config\":\"abc\",\"TemplateId\":\"abc\",\"Targets\":{\"Total\":1,\"Up\":1,\"Down\":1,\"Unknown\":1}}],\"ServiceMonitors\":[{\"Name\":\"abc\",\"Config\":\"abc\",\"TemplateId\":\"abc\",\"Targets\":{\"Total\":1,\"Up\":1,\"Down\":1,\"Unknown\":1}}],\"PodMonitors\":[{\"Name\":\"abc\",\"Config\":\"abc\",\"TemplateId\":\"abc\",\"Targets\":{\"Total\":1,\"Up\":1,\"Down\":1,\"Unknown\":1}}],\"TemplateId\":\"abc\",\"UpdateTime\":\"abc\",\"Version\":\"abc\",\"IsDefault\":true,\"AlertDetailRules\":[{\"Id\":\"abc\",\"Name\":\"abc\",\"TemplateId\":\"abc\",\"Notification\":{\"Enabled\":true,\"Type\":\"abc\",\"WebHook\":\"abc\",\"AlertManager\":{\"ClusterType\":\"abc\",\"ClusterId\":\"abc\",\"Url\":\"abc\"},\"RepeatInterval\":\"abc\",\"TimeRangeStart\":\"abc\",\"TimeRangeEnd\":\"abc\",\"NotifyWay\":[\"abc\"],\"ReceiverGroups\":[\"abc\"],\"PhoneNotifyOrder\":[1],\"PhoneCircleTimes\":0,\"PhoneInnerInterval\":0,\"PhoneCircleInterval\":0,\"PhoneArriveNotice\":true},\"Rules\":[{\"Name\":\"abc\",\"Rule\":\"abc\",\"Labels\":[{\"Name\":\"abc\",\"Value\":\"abc\"}],\"Template\":\"abc\",\"For\":\"abc\",\"Describe\":\"abc\",\"Annotations\":[{\"Name\":\"abc\",\"Value\":\"abc\"}],\"RuleState\":0}],\"UpdatedAt\":\"abc\",\"ClusterId\":\"abc\",\"Interval\":\"abc\"}],\"TargetsTotal\": 0}]", + "example": "无", "member": "PrometheusTemp", "name": "Templates", "output_required": true, @@ -13143,7 +13143,7 @@ { "disabled": false, "document": "Prometheus 实例 ID", - "example": "", + "example": "prom-abc", "member": "string", "name": "InstanceId", "required": true, @@ -13152,7 +13152,7 @@ { "disabled": false, "document": "
  • 类型是 TKE,为对应的腾讯云容器服务集群 ID
  • ", - "example": "", + "example": "cls-abc", "member": "string", "name": "KubeClusterId", "required": true, @@ -13161,7 +13161,7 @@ { "disabled": false, "document": "用户 Kubernetes 集群类型:\n
  • 1 = 容器服务集群(TKE)
  • ", - "example": "", + "example": "1", "member": "int64", "name": "KubeType", "required": true, @@ -13176,9 +13176,10 @@ { "disabled": false, "document": "返回服务发现列表信息\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "", + "example": "无", "member": "ServiceDiscoveryItem", "name": "ServiceDiscoverySet", + "output_required": true, "type": "list", "value_allowed_null": true }, @@ -13890,7 +13891,7 @@ { "disabled": false, "document": "Prometheus 实例 ID", - "example": "", + "example": "prom-abc", "member": "string", "name": "InstanceId", "required": true, @@ -13899,7 +13900,7 @@ { "disabled": false, "document": "Prometheus Agent ID", - "example": "", + "example": "agent-abc", "member": "string", "name": "AgentId", "required": true, @@ -13914,9 +13915,10 @@ { "disabled": false, "document": "Agent 管理命令", - "example": "", + "example": "无", "member": "ManagementCommand", "name": "Command", + "output_required": true, "type": "object", "value_allowed_null": false }, @@ -18886,40 +18888,40 @@ { "disabled": false, "document": "任务名\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "", + "example": "redis-monitor", "member": "string", "name": "Name", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": true }, { "disabled": false, "document": "Agent ID", - "example": "", + "example": "agent-abc", "member": "string", "name": "AgentId", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, "document": "任务 ID", - "example": "", + "example": "job-abc", "member": "string", "name": "JobId", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, "document": "配置\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "", + "example": "job_name: \"redis-monitor\"\\nstatic_configs:\\n- targets: [\"localhost:8080\"]", "member": "string", "name": "Config", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": true } @@ -19622,7 +19624,7 @@ { "disabled": false, "document": "RelabelConfig\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", + "example": "- source_labels: [label] target_label: label1", "member": "string", "name": "URLRelabelConfig", "output_required": true, @@ -19642,7 +19644,7 @@ "value_allowed_null": true }, { - "disabled": false, + "disabled": true, "document": "最大block\n注意:此字段可能返回 null,表示取不到有效值。", "example": "无", "member": "string", @@ -19653,7 +19655,7 @@ "value_allowed_null": true }, { - "disabled": false, + "disabled": true, "document": "Label\n注意:此字段可能返回 null,表示取不到有效值。", "example": "无", "member": "string", diff --git a/tccli/services/monitor/v20180724/examples.json b/tccli/services/monitor/v20180724/examples.json index bcb4147c06..3a27ffb05f 100644 --- a/tccli/services/monitor/v20180724/examples.json +++ b/tccli/services/monitor/v20180724/examples.json @@ -877,7 +877,7 @@ "DescribePrometheusInstanceDetail": [ { "document": "查询TMP实例详情", - "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusInstanceDetail\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}", + "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusInstanceDetail\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-abc\"\n}", "output": "{\n \"Response\": {\n \"InstanceId\": \"prom-skdfj\",\n \"InstanceName\": \"test-prom\",\n \"VpcId\": \"vpc-sjdh\",\n \"SubnetId\": \"subnet-kdhe\",\n \"InstanceStatus\": 3,\n \"ChargeStatus\": 1,\n \"EnableGrafana\": 0,\n \"GrafanaURL\": \"http://djeb:9000\",\n \"InstanceChargeType\": 0,\n \"SpecName\": \"name-sjdb\",\n \"DataRetentionTime\": 15,\n \"ExpireTime\": \"2024-07-16 16:28:54\",\n \"AutoRenewFlag\": 0,\n \"RequestId\": \"skdbfdi-akenfhl\"\n }\n}", "title": "查询TMP实例详情" } @@ -956,7 +956,7 @@ { "document": "拉取模板列表", "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusTemp\n<公共请求参数>\n\n{\n \"Limit\": 1,\n \"Filters\": [\n {\n \"Name\": \"ID\",\n \"Values\": [\n \"alert-test\"\n ]\n }\n ],\n \"Offset\": 1\n}", - "output": "{\n \"Response\": {\n \"Templates\": [\n {\n \"Name\": \"test\",\n \"Describe\": \"test\",\n \"Level\": \"instance\",\n \"RecordRules\": [\n {\n \"Name\": \"testRule\",\n \"Config\": \"abc\",\n \"TemplateId\": \"temp-asdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"RawJobs\": [\n {\n \"Name\": \"abc\",\n \"Config\": \"abc\",\n \"TemplateId\": \"abc\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"ServiceMonitors\": [\n {\n \"Name\": \"test-sm\",\n \"Config\": \"abc\",\n \"TemplateId\": \"temp-asdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"PodMonitors\": [\n {\n \"Name\": \"test-pm\",\n \"Config\": \"abc\",\n \"TemplateId\": \"temp-asdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"TemplateId\": \"temp-asdj\",\n \"UpdateTime\": \"2024-07-16T08:28:54Z\",\n \"Version\": \"v1\",\n \"IsDefault\": true,\n \"AlertDetailRules\": [\n {\n \"Id\": \"rule-asdk\",\n \"Name\": \"testAlert\",\n \"TemplateId\": \"temp-asdj\",\n \"Notification\": {\n \"Enabled\": true,\n \"Type\": \"amp\",\n \"WebHook\": \"abc\",\n \"AlertManager\": {\n \"ClusterType\": \"tke\",\n \"ClusterId\": \"cls-askj\",\n \"Url\": \"http://asasdkfh:9000\"\n },\n \"RepeatInterval\": \"5m\",\n \"TimeRangeStart\": \"00:00:00\",\n \"TimeRangeEnd\": \"23:59:59\",\n \"NotifyWay\": [\n \"abc\"\n ],\n \"ReceiverGroups\": [\n \"notice-yakj\"\n ],\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneCircleTimes\": 0,\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"PhoneArriveNotice\": true\n },\n \"Rules\": [\n {\n \"Name\": \"rule-ajdb\",\n \"Rule\": \"avg by (abc) skdj\",\n \"Labels\": [\n {\n \"Name\": \"label-name\",\n \"Value\": \"label-value\"\n }\n ],\n \"Template\": \"temp-asdj\",\n \"For\": \"5m\",\n \"Describe\": \"test-temp\",\n \"Annotations\": [\n {\n \"Name\": \"label-name\",\n \"Value\": \"label-value\"\n }\n ],\n \"RuleState\": 0\n }\n ],\n \"UpdatedAt\": \"2024-07-16 16:28:54\",\n \"ClusterId\": \"cls-djfb\"\n }\n ],\n \"TargetsTotal\": 0\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"skdh-afbri\"\n }\n}", + "output": "{\n \"Response\": {\n \"Templates\": [\n {\n \"Name\": \"template\",\n \"Describe\": \"template\",\n \"Level\": \"instance\",\n \"RecordRules\": [],\n \"RawJobs\": [],\n \"ServiceMonitors\": [],\n \"PodMonitors\": [\n {\n \"Name\": \"test-pm\",\n \"Config\": \"apiVersion: monitoring.coreos.com/v1\\nkind: PodMonitor\\nmetadata:\\n name: example-app\\n labels:\\n team: frontend\\nspec:\\n selector:\\n matchLabels:\\n app: example-app\\n podMetricsEndpoints:\\n - port: web\",\n \"TemplateId\": \"temp-asdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"TemplateId\": \"temp-asdj\",\n \"UpdateTime\": \"2024-07-16T08:28:54Z\",\n \"Version\": \"v1\",\n \"IsDefault\": true,\n \"AlertDetailRules\": [],\n \"TargetsTotal\": 0\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"skdh-afbri\"\n }\n}", "title": "拉取模板列表" } ], @@ -1072,7 +1072,7 @@ { "document": "", "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetPrometheusAgentManagementCommand\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-23kdafdf\",\n \"AgentId\": \"agent-23kdafdf\"\n}", - "output": "{\n \"Response\": {\n \"Command\": {\n \"Install\": \"xx\",\n \"Restart\": \"xx\",\n \"Stop\": \"xx\",\n \"StatusCheck\": \"xx\",\n \"LogCheck\": \"xx\"\n },\n \"RequestId\": \"as131asfjl23dsf342lxdsf\"\n }\n}", + "output": "{\n \"Response\": {\n \"Command\": {\n \"Install\": \"/bin/bash -c \\\"$(curl -fsSL https:/cos-url/install.sh)\\\"\",\n \"Restart\": \"systemctl restart prometheus-agent\",\n \"Stop\": \"systemctl stop prometheus-agent\",\n \"StatusCheck\": \"systemctl status prometheus-agent\",\n \"LogCheck\": \"journalctl -u prometheus-agent\"\n },\n \"RequestId\": \"as131asfjl23dsf342lxdsf\"\n }\n}", "title": "获取 Prometheus Agent 管理相关的命令行" } ], diff --git a/tccli/services/tccatalog/v20241024/api.json b/tccli/services/tccatalog/v20241024/api.json index b1b0838960..6821d10cd0 100644 --- a/tccli/services/tccatalog/v20241024/api.json +++ b/tccli/services/tccatalog/v20241024/api.json @@ -292,6 +292,28 @@ "required": false, "type": "string", "value_allowed_null": false + }, + { + "disabled": false, + "document": "服务clbip", + "example": "127.0.0.1", + "member": "string", + "name": "ClbIp", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "服务clbPort", + "example": "11808", + "member": "string", + "name": "ClbPort", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": false } ], "usage": "both" diff --git a/tccli/services/trtc/v20190722/api.json b/tccli/services/trtc/v20190722/api.json index 4662dbacbd..21a4373b3d 100644 --- a/tccli/services/trtc/v20190722/api.json +++ b/tccli/services/trtc/v20190722/api.json @@ -1346,7 +1346,7 @@ { "disabled": false, "document": "图片id", - "example": "123", + "example": "18813", "member": "uint64", "name": "PictureId", "required": true, @@ -1355,7 +1355,7 @@ { "disabled": false, "document": "应用id", - "example": "123", + "example": "140000001", "member": "uint64", "name": "SdkAppId", "required": true, @@ -1803,7 +1803,7 @@ { "disabled": false, "document": "应用ID", - "example": "1234567", + "example": "1400000001", "member": "uint64", "name": "SdkAppId", "required": true, @@ -1812,7 +1812,7 @@ { "disabled": false, "document": "图片ID,不填时返回该应用下所有图片", - "example": "123", + "example": "100861", "member": "uint64", "name": "PictureId", "required": false, @@ -1848,7 +1848,7 @@ "example": "2", "member": "uint64", "name": "Total", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, @@ -1858,7 +1858,7 @@ "example": "无", "member": "PictureInfo", "name": "PictureInfo", - "required": true, + "output_required": true, "type": "list", "value_allowed_null": false }, @@ -4710,7 +4710,7 @@ { "disabled": false, "document": "字符串内容为待显示在该画面的主播对应的UserId,如果不指定,会按照主播加入房间的顺序匹配。", - "example": "123", + "example": "user_1", "member": "string", "name": "UserId", "required": false, @@ -4788,7 +4788,7 @@ { "disabled": false, "document": "录制背景颜色,RGB的颜色表的16进制表示,每个颜色通过8bit长度标识,默认为黑色。比如橙色对应的RGB为 R:255 G:165 B:0, 那么对应的字符串描述为#FFA500,格式规范:‘#‘开头,后面跟固定RGB的颜色值", - "example": "123", + "example": "#FF0000", "member": "string", "name": "BackGroundColor", "required": false, @@ -4797,7 +4797,7 @@ { "disabled": false, "document": "在布局模式为1:悬浮布局和 2:屏幕分享布局时,设定为显示大视频画面的UserId。不填的话:悬浮布局默认是第一个进房间的主播,屏幕分享布局默认是背景色", - "example": "123", + "example": "user_1", "member": "string", "name": "MaxResolutionUserId", "required": false, @@ -5007,7 +5007,7 @@ { "disabled": false, "document": "图片id", - "example": "123", + "example": "10081", "member": "uint64", "name": "PictureId", "required": true, @@ -5016,7 +5016,7 @@ { "disabled": false, "document": "应用id", - "example": "123", + "example": "1500000001", "member": "uint64", "name": "SdkAppId", "required": true, @@ -5025,7 +5025,7 @@ { "disabled": false, "document": "图片长度", - "example": "12", + "example": "80", "member": "uint64", "name": "Height", "required": false, @@ -5034,7 +5034,7 @@ { "disabled": false, "document": "图片宽度", - "example": "15", + "example": "70", "member": "uint64", "name": "Width", "required": false, @@ -5043,7 +5043,7 @@ { "disabled": false, "document": "显示位置x轴方向", - "example": "15", + "example": "10", "member": "uint64", "name": "XPosition", "required": false, @@ -5052,7 +5052,7 @@ { "disabled": false, "document": "显示位置y轴方向", - "example": "16", + "example": "20", "member": "uint64", "name": "YPosition", "required": false, @@ -7115,10 +7115,10 @@ { "disabled": false, "document": "录制文件对应的UserId,如果是混流的话的这里返回的是空串。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "123", + "example": "user_1", "member": "string", "name": "UserId", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": true }, @@ -7128,7 +7128,7 @@ "example": "xxx.m3u8", "member": "string", "name": "FileName", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": false }, @@ -7138,7 +7138,7 @@ "example": "audio_video", "member": "string", "name": "TrackType", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": true }, @@ -7148,7 +7148,7 @@ "example": "1562724852626", "member": "uint64", "name": "BeginTimeStamp", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false } @@ -7344,7 +7344,7 @@ { "disabled": false, "document": "任务流上下文,任务完成回调时透传。", - "example": "\"\"", + "example": "\"session_context_example\"", "member": "string", "name": "SessionContext", "required": false, @@ -7353,7 +7353,7 @@ { "disabled": false, "document": "上传上下文,上传完成回调时透传。", - "example": "\"\"", + "example": "\"source_context_example\"", "member": "string", "name": "SourceContext", "required": false, @@ -7371,7 +7371,7 @@ { "disabled": false, "document": "仅支持API录制上传vod,该参数表示用户可以自定义录制文件名前缀,【限制长度为64字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线和连词符】。前缀与自动生成的录制文件名之间用`__UserDefine_u_` 分开。", - "example": "\"\"", + "example": "\"user_prefix\"", "member": "string", "name": "UserDefineRecordId", "required": false, diff --git a/tccli/services/trtc/v20190722/examples.json b/tccli/services/trtc/v20190722/examples.json index 0cd6ce3e36..8cc1d54c01 100644 --- a/tccli/services/trtc/v20190722/examples.json +++ b/tccli/services/trtc/v20190722/examples.json @@ -51,7 +51,7 @@ "DeletePicture": [ { "document": "", - "input": "https://trtc.tencentcloudapi.com/?Action=DeletePicture\n&PictureId=1234567890\n&SdkAppId=123456789\n&<公共请求参数>", + "input": "https://trtc.tencentcloudapi.com/?Action=DeletePicture\n&PictureId=18813\n&SdkAppId=140000001\n&<公共请求参数>", "output": "{\n \"Response\": {\n \"RequestId\": \"049461e6-f2f5-4168-887e-aca4fbfa5fae\"\n }\n}", "title": "删除图片" } @@ -99,8 +99,8 @@ "DescribePicture": [ { "document": "", - "input": "https://trtc.tencentcloudapi.com/?Action=DescribePicture\n&SdkAppId=123456\n&PictureId=123\n&<公共请求参数>", - "output": "{\n \"Response\": {\n \"Total\": 2,\n \"PictureInfo\": [\n {\n \"PictureId\": 1,\n \"Height\": 12,\n \"Width\": 13,\n \"XPosition\": 14,\n \"YPosition\": 15,\n \"SdkAppId\": 123456\n },\n {\n \"PictureId\": 2,\n \"Height\": 22,\n \"Width\": 23,\n \"XPosition\": 24,\n \"YPosition\": 25,\n \"SdkAppId\": 123456\n }\n ],\n \"RequestId\": \"83ca6fdd-cf4c-46a9-a577-74c3497ad3fa\"\n }\n}", + "input": "https://trtc.tencentcloudapi.com/?Action=DescribePicture\n&SdkAppId=140000001\n&PictureId=100861\n&<公共请求参数>", + "output": "{\n \"Response\": {\n \"Total\": 2,\n \"PictureInfo\": [\n {\n \"PictureId\": 100861,\n \"Height\": 120,\n \"Width\": 113,\n \"XPosition\": 124,\n \"YPosition\": 150,\n \"SdkAppId\": 140000001\n }\n ],\n \"RequestId\": \"83ca6fdd-cf4c-46a9-a577-74c3497ad3fa\"\n }\n}", "title": "查询图片信息" } ], @@ -299,7 +299,7 @@ "ModifyPicture": [ { "document": "", - "input": "https://trtc.tencentcloudapi.com/?Action=ModifyPicture\n&PictureId=123456\n&Height=12\n&Width=15\n&XPosition=15\n&YPosition=36\n&SdkAppId=30\n&<公共请求参数>", + "input": "https://trtc.tencentcloudapi.com/?Action=ModifyPicture\n&PictureId=10081\n&Height=80\n&Width=70\n&XPosition=10\n&YPosition=20\n&SdkAppId=1500000001\n&<公共请求参数>", "output": "{\n \"Response\": {\n \"RequestId\": \"049461e6-f2f5-4168-887e-aca4fbfa5fae\"\n }\n}", "title": "修改图片相关参数" }