tccli 3.0.1285.1__py2.py3-none-any.whl → 3.0.1287.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/autoscaling/autoscaling_client.py +53 -0
- tccli/services/autoscaling/v20180419/api.json +53 -0
- tccli/services/autoscaling/v20180419/examples.json +8 -0
- tccli/services/cdc/v20201214/api.json +107 -97
- tccli/services/cdwch/v20200915/api.json +70 -2
- tccli/services/cdwch/v20200915/examples.json +2 -2
- tccli/services/cdz/v20221123/api.json +10 -10
- tccli/services/cynosdb/v20190107/api.json +298 -298
- tccli/services/dbbrain/v20210527/api.json +11 -2
- tccli/services/dlc/dlc_client.py +61 -8
- tccli/services/dlc/v20210125/api.json +252 -1
- tccli/services/dlc/v20210125/examples.json +9 -1
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +284 -0
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/lcic/v20220817/api.json +2 -2
- tccli/services/lighthouse/v20200324/api.json +47 -47
- tccli/services/lke/v20231130/api.json +6 -6
- tccli/services/ocr/v20181119/api.json +36 -0
- tccli/services/ssl/v20191205/api.json +317 -317
- tccli/services/ssl/v20191205/examples.json +6 -6
- tccli/services/tat/v20201028/examples.json +1 -1
- tccli/services/tchd/tchd_client.py +53 -0
- tccli/services/tchd/v20230306/api.json +89 -0
- tccli/services/tchd/v20230306/examples.json +8 -0
- tccli/services/tdmq/v20200217/api.json +1 -1
- tccli/services/tiw/tiw_client.py +91 -1416
- tccli/services/tiw/v20190919/api.json +351 -2897
- tccli/services/tiw/v20190919/examples.json +6 -206
- tccli/services/wedata/v20210820/api.json +124 -204
- tccli/services/wedata/v20210820/examples.json +7 -1
- {tccli-3.0.1285.1.dist-info → tccli-3.0.1287.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1285.1.dist-info → tccli-3.0.1287.1.dist-info}/RECORD +37 -37
- {tccli-3.0.1285.1.dist-info → tccli-3.0.1287.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1285.1.dist-info → tccli-3.0.1287.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1285.1.dist-info → tccli-3.0.1287.1.dist-info}/license_files/LICENSE +0 -0
@@ -298,19 +298,19 @@
|
|
298
298
|
{
|
299
299
|
"document": "",
|
300
300
|
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCertificates\n<公共请求参数>\n\n{\n \"Offset\": \"0\",\n \"Limit\": \"1\",\n \"SearchKey\": \"ninghhuang\"\n}",
|
301
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 54,\n \"Certificates\": [\n {\n \"OwnerUin\": \"815836472\",\n \"ProjectId\": \"0\",\n \"From\": \"trustasia\",\n \"ProductZhName\": \"TrustAsia C1 DV Free\",\n \"Domain\": \"ninghhuang.online\",\n \"Alias\": \"\",\n \"Status\": 1,\n \"VulnerabilityStatus\": \"INACTIVE\",\n \"StatusMsg\":
|
301
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 54,\n \"Certificates\": [\n {\n \"OwnerUin\": \"815836472\",\n \"ProjectId\": \"0\",\n \"From\": \"trustasia\",\n \"ProductZhName\": \"TrustAsia C1 DV Free\",\n \"Domain\": \"ninghhuang.online\",\n \"Alias\": \"\",\n \"Status\": 1,\n \"VulnerabilityStatus\": \"INACTIVE\",\n \"StatusMsg\": \"ca-reviewing\",\n \"VerifyType\": \"DNS_AUTO\",\n \"CertBeginTime\": \"2025-02-12 08:00:00\",\n \"CertEndTime\": \"2025-05-14 07:59:59\",\n \"ValidityPeriod\": \"3\",\n \"InsertTime\": \"2025-02-12 10:11:21\",\n \"AutoRenewFlag\": 1,\n \"EncryptAlgorithm\": \"RSA 2048\",\n \"IsIgnore\": false,\n \"PreAuditInfo\": {\n \"TotalPeriod\": 1,\n \"NowPeriod\": 1,\n \"ManagerId\": \"\"\n },\n \"IsSM\": false,\n \"SubjectAltName\": [\n \"ninghhuang.online\",\n \"www.ninghhuang.online\"\n ],\n \"StatusName\": \"证书已颁发\",\n \"IsVip\": false,\n \"IsDv\": true,\n \"IsWildcard\": false,\n \"IsVulnerability\": false,\n \"HasRenewOrder\": \"\",\n \"ReplaceOriCertIsDelete\": false,\n \"RenewAble\": false,\n \"IsExpiring\": false,\n \"DVAuthDeadline\": \"2025-02-19 10:11:21\",\n \"ValidationPassedTime\": \"--\",\n \"CertSANs\": [\n \"ninghhuang.online\",\n \"www.ninghhuang.online\"\n ],\n \"CertRevokedTime\": \"\",\n \"CAEncryptAlgorithms\": [],\n \"CAEndTimes\": [],\n \"CACommonNames\": [],\n \"Deployable\": true,\n \"AwaitingValidationMsg\": \"\",\n \"ProjectInfo\": {\n \"ProjectId\": \"0\",\n \"OwnerUin\": 0,\n \"ProjectName\": \"默认项目\",\n \"ProjectCreatorUin\": 0,\n \"ProjectCreateTime\": \"0000-00-00 00:00:00\",\n \"ProjectResume\": \"默认项目\"\n },\n \"Tags\": [],\n \"CertificateId\": \"LtIaSxlb\",\n \"CertificateType\": \"SVR\",\n \"PackageType\": \"83\",\n \"PackageTypeName\": \"TrustAsia C1 DV Free\",\n \"KeyPasswordCustomFlag\": false,\n \"SupportDownloadType\": {\n \"NGINX\": true,\n \"APACHE\": true,\n \"TOMCAT\": true,\n \"IIS\": true,\n \"JKS\": true,\n \"OTHER\": true,\n \"ROOT\": true\n },\n \"CertificateExtra\": {\n \"DomainNumber\": \"1\",\n \"OriginCertificateId\": null,\n \"ReplacedBy\": null,\n \"ReplacedFor\": null,\n \"RenewOrder\": null,\n \"SMCert\": 0,\n \"CompanyType\": 1\n },\n \"AllowDownload\": false,\n \"IsPackage\": false,\n \"HostingStatus\": -1,\n \"HostingCompleteTime\": \"\",\n \"HostingRenewCertId\": \"\",\n \"HostingResourceTypes\": [],\n \"IsDNSPODResolve\": false,\n \"BoundResource\": []\n }\n ],\n \"RequestId\": \"e7f6021f-47bb-476b-a424-6a0cde19a1eb\"\n }\n}",
|
302
302
|
"title": "获取证书列表 - SearchKey查询域名"
|
303
303
|
},
|
304
304
|
{
|
305
305
|
"document": "",
|
306
306
|
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCertificates\n<公共请求参数>\n\n{\n \"Offset\": \"0\",\n \"Limit\": \"1\",\n \"SearchKey\": \"LtIaS\"\n}",
|
307
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Certificates\": [\n {\n \"OwnerUin\": \"815836472\",\n \"ProjectId\": \"0\",\n \"From\": \"trustasia\",\n \"ProductZhName\": \"TrustAsia C1 DV Free\",\n \"Domain\": \"ninghhuang.online\",\n \"Alias\": \"\",\n \"Status\": 1,\n \"VulnerabilityStatus\": \"INACTIVE\",\n \"StatusMsg\":
|
307
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Certificates\": [\n {\n \"OwnerUin\": \"815836472\",\n \"ProjectId\": \"0\",\n \"From\": \"trustasia\",\n \"ProductZhName\": \"TrustAsia C1 DV Free\",\n \"Domain\": \"ninghhuang.online\",\n \"Alias\": \"\",\n \"Status\": 1,\n \"VulnerabilityStatus\": \"INACTIVE\",\n \"StatusMsg\": \"\",\n \"VerifyType\": \"DNS_AUTO\",\n \"CertBeginTime\": \"2025-02-12 08:00:00\",\n \"CertEndTime\": \"2025-05-14 07:59:59\",\n \"ValidityPeriod\": \"3\",\n \"InsertTime\": \"2025-02-12 10:11:21\",\n \"AutoRenewFlag\": 1,\n \"EncryptAlgorithm\": \"RSA 2048\",\n \"IsIgnore\": false,\n \"PreAuditInfo\": {\n \"TotalPeriod\": 1,\n \"NowPeriod\": 1,\n \"ManagerId\": \"\"\n },\n \"IsSM\": false,\n \"SubjectAltName\": [\n \"ninghhuang.online\",\n \"www.ninghhuang.online\"\n ],\n \"StatusName\": \"证书已颁发\",\n \"IsVip\": false,\n \"IsDv\": true,\n \"IsWildcard\": false,\n \"IsVulnerability\": false,\n \"HasRenewOrder\": \"\",\n \"ReplaceOriCertIsDelete\": false,\n \"RenewAble\": false,\n \"IsExpiring\": false,\n \"DVAuthDeadline\": \"2025-02-19 10:11:21\",\n \"ValidationPassedTime\": \"--\",\n \"CertSANs\": [\n \"ninghhuang.online\",\n \"www.ninghhuang.online\"\n ],\n \"CertRevokedTime\": \"\",\n \"CAEncryptAlgorithms\": [],\n \"CAEndTimes\": [],\n \"CACommonNames\": [],\n \"Deployable\": true,\n \"AwaitingValidationMsg\": \"\",\n \"ProjectInfo\": {\n \"ProjectId\": \"0\",\n \"OwnerUin\": 0,\n \"ProjectName\": \"默认项目\",\n \"ProjectCreatorUin\": 0,\n \"ProjectCreateTime\": \"0000-00-00 00:00:00\",\n \"ProjectResume\": \"默认项目\"\n },\n \"Tags\": [],\n \"CertificateId\": \"LtIaSxlb\",\n \"CertificateType\": \"SVR\",\n \"PackageType\": \"83\",\n \"PackageTypeName\": \"TrustAsia C1 DV Free\",\n \"KeyPasswordCustomFlag\": false,\n \"SupportDownloadType\": {\n \"NGINX\": true,\n \"APACHE\": true,\n \"TOMCAT\": true,\n \"IIS\": true,\n \"JKS\": true,\n \"OTHER\": true,\n \"ROOT\": true\n },\n \"CertificateExtra\": {\n \"DomainNumber\": \"1\",\n \"OriginCertificateId\": null,\n \"ReplacedBy\": null,\n \"ReplacedFor\": null,\n \"RenewOrder\": null,\n \"SMCert\": 0,\n \"CompanyType\": 1\n },\n \"AllowDownload\": false,\n \"IsPackage\": false,\n \"HostingStatus\": -1,\n \"HostingCompleteTime\": \"\",\n \"HostingRenewCertId\": \"\",\n \"HostingResourceTypes\": [],\n \"IsDNSPODResolve\": false,\n \"BoundResource\": []\n }\n ],\n \"RequestId\": \"e7f6021f-47bb-476b-a424-6a0cde19a1eb\"\n }\n}",
|
308
308
|
"title": "获取证书列表 - SearchKey查询证书ID"
|
309
309
|
},
|
310
310
|
{
|
311
311
|
"document": "",
|
312
312
|
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCertificates\n<公共请求参数>\n\n{\n \"Offset\": \"0\",\n \"Limit\": \"1\",\n \"SearchKey\": \"K926htp2\"\n}",
|
313
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"Certificates\": [\n {\n \"OwnerUin\": \"815836472\",\n \"ProjectId\": \"0\",\n \"From\": \"trustasia\",\n \"ProductZhName\": \"TrustAsia C1 DV Free\",\n \"Domain\": \"ninghhuang.online\",\n \"Alias\": \"K926htp2的自动续费证书\",\n \"Status\": 1,\n \"VulnerabilityStatus\": \"INACTIVE\",\n \"StatusMsg\":
|
313
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"Certificates\": [\n {\n \"OwnerUin\": \"815836472\",\n \"ProjectId\": \"0\",\n \"From\": \"trustasia\",\n \"ProductZhName\": \"TrustAsia C1 DV Free\",\n \"Domain\": \"ninghhuang.online\",\n \"Alias\": \"K926htp2的自动续费证书\",\n \"Status\": 1,\n \"VulnerabilityStatus\": \"INACTIVE\",\n \"StatusMsg\": \"\",\n \"VerifyType\": \"DNS_AUTO\",\n \"CertBeginTime\": \"2025-02-05 08:00:00\",\n \"CertEndTime\": \"2025-05-07 07:59:59\",\n \"ValidityPeriod\": \"3\",\n \"InsertTime\": \"2025-02-05 08:26:42\",\n \"AutoRenewFlag\": 1,\n \"EncryptAlgorithm\": \"RSA 2048\",\n \"IsIgnore\": false,\n \"PreAuditInfo\": {\n \"TotalPeriod\": 1,\n \"NowPeriod\": 1,\n \"ManagerId\": \"\"\n },\n \"IsSM\": false,\n \"SubjectAltName\": [\n \"ninghhuang.online\",\n \"www.ninghhuang.online\"\n ],\n \"StatusName\": \"证书已颁发\",\n \"IsVip\": false,\n \"IsDv\": true,\n \"IsWildcard\": false,\n \"IsVulnerability\": false,\n \"HasRenewOrder\": \"\",\n \"ReplaceOriCertIsDelete\": false,\n \"RenewAble\": false,\n \"IsExpiring\": false,\n \"DVAuthDeadline\": \"2025-02-12 08:26:42\",\n \"ValidationPassedTime\": \"--\",\n \"CertSANs\": [\n \"ninghhuang.online\",\n \"www.ninghhuang.online\"\n ],\n \"CertRevokedTime\": \"\",\n \"CAEncryptAlgorithms\": [],\n \"CAEndTimes\": [],\n \"CACommonNames\": [],\n \"Deployable\": true,\n \"AwaitingValidationMsg\": \"\",\n \"ProjectInfo\": {\n \"ProjectId\": \"0\",\n \"OwnerUin\": 0,\n \"ProjectName\": \"默认项目\",\n \"ProjectCreatorUin\": 0,\n \"ProjectCreateTime\": \"0000-00-00 00:00:00\",\n \"ProjectResume\": \"默认项目\"\n },\n \"Tags\": [],\n \"CertificateId\": \"Li1AKHnS\",\n \"CertificateType\": \"SVR\",\n \"PackageType\": \"83\",\n \"PackageTypeName\": \"TrustAsia C1 DV Free\",\n \"KeyPasswordCustomFlag\": false,\n \"SupportDownloadType\": {\n \"NGINX\": true,\n \"APACHE\": true,\n \"TOMCAT\": true,\n \"IIS\": true,\n \"JKS\": true,\n \"OTHER\": true,\n \"ROOT\": true\n },\n \"CertificateExtra\": {\n \"DomainNumber\": \"1\",\n \"OriginCertificateId\": \"K926htp2\",\n \"ReplacedBy\": null,\n \"ReplacedFor\": null,\n \"RenewOrder\": null,\n \"SMCert\": 0,\n \"CompanyType\": 1\n },\n \"AllowDownload\": false,\n \"IsPackage\": false,\n \"HostingStatus\": 0,\n \"HostingCompleteTime\": \"2025-02-05 08:39:30\",\n \"HostingRenewCertId\": \"\",\n \"HostingResourceTypes\": [\n \"cdn\",\n \"clb\",\n \"cos\"\n ],\n \"HostingConfig\": {\n \"MessageTypes\": [\n 0\n ],\n \"ReplaceEndTime\": \"23:59:59\",\n \"ReplaceStartTime\": \"00:00:00\",\n \"ReplaceTime\": 999\n },\n \"IsDNSPODResolve\": false,\n \"BoundResource\": []\n }\n ],\n \"RequestId\": \"e7f6021f-47bb-476b-a424-6a0cde19a1eb\"\n }\n}",
|
314
314
|
"title": "获取证书列表 - SearchKey查询备注名称"
|
315
315
|
}
|
316
316
|
],
|
@@ -326,7 +326,7 @@
|
|
326
326
|
{
|
327
327
|
"document": "正常查询",
|
328
328
|
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDeleteCertificatesTaskResult\n<公共请求参数>\n\n{\n \"TaskIds\": [\n \"11\",\n \"12\",\n \"13\",\n \"15\",\n \"14\"\n ]\n}",
|
329
|
-
"output": "{\n \"Response\": {\n \"DeleteTaskResult\": [\n {\n \"TaskId\": \"11\",\n \"Status\": 0,\n \"CertId\": \"1ODjBeH8\",\n \"Domains\": [\n \"GMCert ECC Root CA - 01\"\n ],\n \"Error\":
|
329
|
+
"output": "{\n \"Response\": {\n \"DeleteTaskResult\": [\n {\n \"TaskId\": \"11\",\n \"Status\": 0,\n \"CertId\": \"1ODjBeH8\",\n \"Domains\": [\n \"GMCert ECC Root CA - 01\"\n ],\n \"Error\": \"\",\n \"CacheTime\": \"2023-09-27 19:01:47\"\n },\n {\n \"TaskId\": \"12\",\n \"Status\": 0,\n \"CertId\": \"25EMBPYQ\",\n \"Domains\": [\n \"hank.com\"\n ],\n \"Error\": \"\",\n \"CacheTime\": \"2023-09-27 19:01:48\"\n },\n {\n \"TaskId\": \"13\",\n \"Status\": 0,\n \"CertId\": \"txV0pewo\",\n \"Domains\": [\n \"test.hankzzz.com\"\n ],\n \"Error\": \"\",\n \"CacheTime\": \"2023-09-27 19:01:48\"\n },\n {\n \"TaskId\": \"14\",\n \"Status\": 4,\n \"CertId\": \"rcGiGyTx\",\n \"Domains\": [\n \"*.hath.fun\"\n ],\n \"Error\": \"有未解绑的云资源\",\n \"CacheTime\": \"2023-09-27 19:01:48\"\n },\n {\n \"TaskId\": \"15\",\n \"Status\": 2,\n \"CertId\": \"4FVmnb1u\",\n \"Domains\": [\n \"*.hank-dv.com\"\n ],\n \"Error\": \"当前的证书状态不支持此操作\",\n \"CacheTime\": \"2023-09-27 19:01:48\"\n }\n ],\n \"RequestId\": \"037cc05f-c384-4d71-ab4f-a42d896ebb2e\"\n }\n}",
|
330
330
|
"title": "正常查询"
|
331
331
|
}
|
332
332
|
],
|
@@ -534,7 +534,7 @@
|
|
534
534
|
{
|
535
535
|
"document": "获取主机安全服务列表",
|
536
536
|
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeHostWafInstanceList\n<公共请求参数>\n\n{\n \"CertificateId\": \"T****j\",\n \"IsCache\": 1,\n \"Filters\": [\n {\n \"FilterKey\": \"domainMatch\",\n \"FilterValue\": \"1\"\n }\n ],\n \"OldCertificateId\": \"Yj****k\"\n}",
|
537
|
-
"output": "{\n \"Response\": {\n \"InstanceList\": [\n {\n \"Domain\": \"hh**.com\",\n \"CertId\": \"K***hh\",\n \"
|
537
|
+
"output": "{\n \"Response\": {\n \"InstanceList\": [\n {\n \"Domain\": \"hh**.com\",\n \"CertId\": \"K***hh\",\n \"Keepalive\": 1\n }\n ],\n \"RequestId\": \"14727a68-3b90-4408-99c9-dea6d7de9456\"\n }\n}",
|
538
538
|
"title": "获取主机安全服务列表"
|
539
539
|
}
|
540
540
|
],
|
@@ -581,7 +581,7 @@
|
|
581
581
|
"ModifyCertificateProject": [
|
582
582
|
{
|
583
583
|
"document": "",
|
584
|
-
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:
|
584
|
+
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCertificateProject\n<公共请求参数>\n\n{\n \"CertificateIdList\": [\n \"8ea2a8ee\",\n \"4084da1d\",\n \"e45e529f\"\n ],\n \"ProjectId\": 673782\n}",
|
585
585
|
"output": "{\n \"Response\": {\n \"FailCertificates\": [],\n \"SuccessCertificates\": [\n \"8ea2a8ee\",\n \"4084da1d\",\n \"e45e529f\"\n ],\n \"RequestId\": \"95adbcc1-a0bb-4b9c-acf6-5c4e514b945f\"\n }\n}",
|
586
586
|
"title": "修改证书所属项目"
|
587
587
|
}
|
@@ -192,7 +192,7 @@
|
|
192
192
|
{
|
193
193
|
"document": "",
|
194
194
|
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeScenes\n<公共请求参数>\n\n{\n \"SceneIds\": [\n \"sc-12345678\"\n ],\n \"Offset\": 0,\n \"Limit\": 20\n}",
|
195
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"eb973a12-71e3-4c0c-b1d8-4b863e5f5daf\",\n \"TotalCount\": 1,\n \"SceneSet\": [\n {\n \"SceneId\": \"sc-12345678\",\n \"SceneName\": \"运维场景\",\n \"CreatedBy\": \"
|
195
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"eb973a12-71e3-4c0c-b1d8-4b863e5f5daf\",\n \"TotalCount\": 1,\n \"SceneSet\": [\n {\n \"SceneId\": \"sc-12345678\",\n \"SceneName\": \"运维场景\",\n \"CreatedBy\": \"TAT\",\n \"CreatedTime\": \"2020-11-02T02:48:11+00:00\",\n \"UpdatedTime\": \"2020-11-02T02:48:11+00:00\"\n }\n ]\n }\n}",
|
196
196
|
"title": "查询场景"
|
197
197
|
}
|
198
198
|
],
|
@@ -69,6 +69,58 @@ def doDescribeEvents(args, parsed_globals):
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
70
|
|
71
71
|
|
72
|
+
def doDescribeEventStatistics(args, parsed_globals):
|
73
|
+
g_param = parse_global_arg(parsed_globals)
|
74
|
+
|
75
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
76
|
+
cred = credential.CVMRoleCredential()
|
77
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
78
|
+
cred = credential.STSAssumeRoleCredential(
|
79
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
80
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
81
|
+
)
|
82
|
+
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):
|
83
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
84
|
+
else:
|
85
|
+
cred = credential.Credential(
|
86
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
87
|
+
)
|
88
|
+
http_profile = HttpProfile(
|
89
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
90
|
+
reqMethod="POST",
|
91
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
92
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
93
|
+
)
|
94
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
95
|
+
if g_param[OptionsDefine.Language]:
|
96
|
+
profile.language = g_param[OptionsDefine.Language]
|
97
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
98
|
+
client = mod.TchdClient(cred, g_param[OptionsDefine.Region], profile)
|
99
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
+
model = models.DescribeEventStatisticsRequest()
|
102
|
+
model.from_json_string(json.dumps(args))
|
103
|
+
start_time = time.time()
|
104
|
+
while True:
|
105
|
+
rsp = client.DescribeEventStatistics(model)
|
106
|
+
result = rsp.to_json_string()
|
107
|
+
try:
|
108
|
+
json_obj = json.loads(result)
|
109
|
+
except TypeError as e:
|
110
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
111
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
112
|
+
break
|
113
|
+
cur_time = time.time()
|
114
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
115
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
116
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
117
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
118
|
+
else:
|
119
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
120
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
121
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
|
+
|
123
|
+
|
72
124
|
CLIENT_MAP = {
|
73
125
|
"v20230306": tchd_client_v20230306,
|
74
126
|
|
@@ -81,6 +133,7 @@ MODELS_MAP = {
|
|
81
133
|
|
82
134
|
ACTION_MAP = {
|
83
135
|
"DescribeEvents": doDescribeEvents,
|
136
|
+
"DescribeEventStatistics": doDescribeEventStatistics,
|
84
137
|
|
85
138
|
}
|
86
139
|
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"DescribeEventStatistics": {
|
4
|
+
"document": "本接口用于查询腾讯云健康看板的实时可用性事件信息,可以通过产品列表、地域进行过滤查询。\n可以参考健康看板历史事件页面来获取查询案例(链接:https://status.cloud.tencent.com/history)。",
|
5
|
+
"input": "DescribeEventStatisticsRequest",
|
6
|
+
"name": "查看事件统计",
|
7
|
+
"output": "DescribeEventStatisticsResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"DescribeEvents": {
|
4
11
|
"document": "本接口用于查询腾讯云健康看板的可用性事件信息,可以通过产品列表、地域列表和事件发生日期进行过滤查询。\n当查询的产品对应时间内无事件时将返回空结果。\n可以参考健康看板历史事件页面来获取查询案例(链接:https://status.cloud.tencent.com/history)。",
|
5
12
|
"input": "DescribeEventsRequest",
|
@@ -15,6 +22,52 @@
|
|
15
22
|
"serviceShortName": "tchd"
|
16
23
|
},
|
17
24
|
"objects": {
|
25
|
+
"DescribeEventStatisticsRequest": {
|
26
|
+
"document": "DescribeEventStatistics请求参数结构体",
|
27
|
+
"members": [
|
28
|
+
{
|
29
|
+
"disabled": false,
|
30
|
+
"document": "1. 查询非区域性产品事件时,地域ID指定为:non-regional\n2. 其他地域ID取值请参考:https://cloud.tencent.com/document/api/213/15692",
|
31
|
+
"example": "\"ap-beijing\"",
|
32
|
+
"member": "string",
|
33
|
+
"name": "RegionId",
|
34
|
+
"required": true,
|
35
|
+
"type": "string"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"disabled": false,
|
39
|
+
"document": "1. 不指定产品列表时将查询所有产品。\n2. 产品ID示例:cvm、lb、cdb、cdn、crs",
|
40
|
+
"example": "[\"tse\"]",
|
41
|
+
"member": "string",
|
42
|
+
"name": "ProductIds",
|
43
|
+
"required": false,
|
44
|
+
"type": "list"
|
45
|
+
}
|
46
|
+
],
|
47
|
+
"type": "object"
|
48
|
+
},
|
49
|
+
"DescribeEventStatisticsResponse": {
|
50
|
+
"document": "DescribeEventStatistics返回参数结构体",
|
51
|
+
"members": [
|
52
|
+
{
|
53
|
+
"disabled": false,
|
54
|
+
"document": "正常产品数",
|
55
|
+
"example": "{ \"NormalCount\": 77, \"NotifyCount\": 0, \"AbnormalCount\": 2 }",
|
56
|
+
"member": "TotalStatus",
|
57
|
+
"name": "Data",
|
58
|
+
"output_required": true,
|
59
|
+
"type": "object",
|
60
|
+
"value_allowed_null": false
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
64
|
+
"member": "string",
|
65
|
+
"name": "RequestId",
|
66
|
+
"type": "string"
|
67
|
+
}
|
68
|
+
],
|
69
|
+
"type": "object"
|
70
|
+
},
|
18
71
|
"DescribeEventsRequest": {
|
19
72
|
"document": "DescribeEvents请求参数结构体",
|
20
73
|
"members": [
|
@@ -161,6 +214,42 @@
|
|
161
214
|
}
|
162
215
|
],
|
163
216
|
"usage": "out"
|
217
|
+
},
|
218
|
+
"TotalStatus": {
|
219
|
+
"document": "状态汇总",
|
220
|
+
"members": [
|
221
|
+
{
|
222
|
+
"disabled": false,
|
223
|
+
"document": "正常状态的数目",
|
224
|
+
"example": "1",
|
225
|
+
"member": "int64",
|
226
|
+
"name": "NormalCount",
|
227
|
+
"required": false,
|
228
|
+
"type": "int",
|
229
|
+
"value_allowed_null": false
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"disabled": false,
|
233
|
+
"document": "通知状态的数目",
|
234
|
+
"example": "1",
|
235
|
+
"member": "int64",
|
236
|
+
"name": "NotifyCount",
|
237
|
+
"required": false,
|
238
|
+
"type": "int",
|
239
|
+
"value_allowed_null": false
|
240
|
+
},
|
241
|
+
{
|
242
|
+
"disabled": false,
|
243
|
+
"document": "异常状态的数目\n注意:此字段可能返回 null,表示取不到有效值。",
|
244
|
+
"example": "1",
|
245
|
+
"member": "int64",
|
246
|
+
"name": "AbnormalCount",
|
247
|
+
"required": false,
|
248
|
+
"type": "int",
|
249
|
+
"value_allowed_null": true
|
250
|
+
}
|
251
|
+
],
|
252
|
+
"usage": "out"
|
164
253
|
}
|
165
254
|
},
|
166
255
|
"version": "1.0"
|
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"DescribeEventStatistics": [
|
4
|
+
{
|
5
|
+
"document": "查询腾讯云健康看板的实时可用性事件信息",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: tchd.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEventStatistics\n<公共请求参数>\n\n{\n \"RegionId\": \"ap-nanjing\",\n \"ProductIds\": [\n \"cvm\"\n ]\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"AbnormalCount\": 0,\n \"NormalCount\": 1,\n \"NotifyCount\": 0\n },\n \"RequestId\": \"c6847868-264b-4879-b406-9283e708412b\"\n }\n}",
|
8
|
+
"title": "查询腾讯云健康看板的实时可用性事件信息"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"DescribeEvents": [
|
4
12
|
{
|
5
13
|
"document": "查询2024年07月30日发生在北京地域的 TSE 产品可用性事件",
|
@@ -10370,7 +10370,7 @@
|
|
10370
10370
|
{
|
10371
10371
|
"disabled": false,
|
10372
10372
|
"document": "任务列表",
|
10373
|
-
"example": "
|
10373
|
+
"example": "无",
|
10374
10374
|
"member": "RocketMQSmoothMigrationTaskItem",
|
10375
10375
|
"name": "Data",
|
10376
10376
|
"output_required": false,
|