tccli 3.0.1237.1__py2.py3-none-any.whl → 3.0.1238.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/aca/__init__.py +4 -0
  4. tccli/services/aca/aca_client.py +578 -0
  5. tccli/services/aca/v20210323/api.json +3715 -0
  6. tccli/services/aca/v20210323/examples.json +69 -0
  7. tccli/services/aiart/v20221229/api.json +18 -9
  8. tccli/services/aiart/v20221229/examples.json +2 -2
  9. tccli/services/apm/v20210622/api.json +10 -7
  10. tccli/services/batch/v20170312/api.json +641 -566
  11. tccli/services/batch/v20170312/examples.json +7 -7
  12. tccli/services/bi/v20220105/api.json +9 -0
  13. tccli/services/bpaas/v20181217/examples.json +1 -1
  14. tccli/services/cam/v20190116/api.json +32 -30
  15. tccli/services/cam/v20190116/examples.json +4 -4
  16. tccli/services/ccc/v20200210/api.json +31 -1
  17. tccli/services/ccc/v20200210/examples.json +1 -1
  18. tccli/services/cdb/v20170320/api.json +214 -207
  19. tccli/services/cdb/v20170320/examples.json +10 -10
  20. tccli/services/cdwch/v20200915/api.json +6 -6
  21. tccli/services/cdwdoris/v20211228/api.json +16 -5
  22. tccli/services/cdwdoris/v20211228/examples.json +1 -1
  23. tccli/services/cfg/v20210820/api.json +8 -13
  24. tccli/services/cfg/v20210820/examples.json +1 -1
  25. tccli/services/cfs/v20190719/api.json +84 -84
  26. tccli/services/cfs/v20190719/examples.json +6 -6
  27. tccli/services/chdfs/v20201112/api.json +18 -17
  28. tccli/services/chdfs/v20201112/examples.json +2 -2
  29. tccli/services/clb/v20180317/api.json +184 -162
  30. tccli/services/cloudapp/v20220530/api.json +1 -1
  31. tccli/services/cloudapp/v20220530/examples.json +3 -3
  32. tccli/services/cloudaudit/v20190319/api.json +21 -17
  33. tccli/services/cloudaudit/v20190319/examples.json +3 -3
  34. tccli/services/cls/v20201016/api.json +21 -21
  35. tccli/services/cls/v20201016/examples.json +1 -1
  36. tccli/services/config/v20220802/api.json +2 -0
  37. tccli/services/config/v20220802/examples.json +2 -2
  38. tccli/services/dcdb/v20180411/api.json +390 -387
  39. tccli/services/dcdb/v20180411/examples.json +14 -14
  40. tccli/services/dlc/v20210125/api.json +162 -7
  41. tccli/services/dlc/v20210125/examples.json +1 -1
  42. tccli/services/domain/v20180808/api.json +37 -37
  43. tccli/services/domain/v20180808/examples.json +16 -10
  44. tccli/services/dsgc/v20190723/api.json +1796 -1623
  45. tccli/services/dsgc/v20190723/examples.json +217 -211
  46. tccli/services/dts/v20180330/api.json +143 -106
  47. tccli/services/dts/v20211206/api.json +57 -46
  48. tccli/services/dts/v20211206/examples.json +1 -1
  49. tccli/services/ecm/v20190719/api.json +6 -6
  50. tccli/services/emr/v20190103/api.json +80 -20
  51. tccli/services/ess/ess_client.py +61 -8
  52. tccli/services/ess/v20201111/api.json +267 -37
  53. tccli/services/ess/v20201111/examples.json +11 -3
  54. tccli/services/essbasic/essbasic_client.py +167 -8
  55. tccli/services/essbasic/v20210526/api.json +527 -54
  56. tccli/services/essbasic/v20210526/examples.json +46 -16
  57. tccli/services/facefusion/v20220927/api.json +12 -1
  58. tccli/services/fmu/v20191213/api.json +8 -8
  59. tccli/services/gaap/v20180529/api.json +200 -209
  60. tccli/services/hai/v20230812/api.json +1 -1
  61. tccli/services/iss/v20230517/api.json +11 -11
  62. tccli/services/iss/v20230517/examples.json +31 -31
  63. tccli/services/keewidb/v20220308/api.json +92 -82
  64. tccli/services/keewidb/v20220308/examples.json +5 -5
  65. tccli/services/lighthouse/v20200324/api.json +18 -18
  66. tccli/services/lighthouse/v20200324/examples.json +5 -5
  67. tccli/services/live/v20180801/api.json +27 -9
  68. tccli/services/lke/v20231130/examples.json +1 -1
  69. tccli/services/mariadb/v20170312/api.json +285 -263
  70. tccli/services/mariadb/v20170312/examples.json +12 -12
  71. tccli/services/monitor/monitor_client.py +106 -0
  72. tccli/services/monitor/v20180724/api.json +222 -0
  73. tccli/services/monitor/v20180724/examples.json +16 -0
  74. tccli/services/mps/mps_client.py +228 -16
  75. tccli/services/mps/v20190612/api.json +385 -23
  76. tccli/services/mps/v20190612/examples.json +32 -0
  77. tccli/services/msp/v20180319/api.json +2 -2
  78. tccli/services/ocr/v20181119/api.json +11 -1
  79. tccli/services/omics/v20221128/api.json +14 -2
  80. tccli/services/organization/v20210331/api.json +45 -18
  81. tccli/services/privatedns/v20201028/api.json +90 -81
  82. tccli/services/privatedns/v20201028/examples.json +18 -18
  83. tccli/services/redis/redis_client.py +106 -0
  84. tccli/services/redis/v20180412/api.json +178 -16
  85. tccli/services/redis/v20180412/examples.json +16 -0
  86. tccli/services/region/v20220627/api.json +5 -3
  87. tccli/services/region/v20220627/examples.json +1 -1
  88. tccli/services/ssl/v20191205/api.json +6 -4
  89. tccli/services/tag/v20180813/api.json +4 -5
  90. tccli/services/tcb/v20180608/api.json +36 -16
  91. tccli/services/tdmq/tdmq_client.py +53 -0
  92. tccli/services/tdmq/v20200217/api.json +64 -1
  93. tccli/services/tdmq/v20200217/examples.json +9 -1
  94. tccli/services/teo/teo_client.py +485 -8
  95. tccli/services/teo/v20220901/api.json +837 -39
  96. tccli/services/teo/v20220901/examples.json +108 -0
  97. tccli/services/thpc/v20211109/api.json +32 -34
  98. tccli/services/thpc/v20220401/api.json +31 -33
  99. tccli/services/thpc/v20230321/api.json +55 -57
  100. tccli/services/thpc/v20230321/examples.json +1 -1
  101. tccli/services/tiia/v20190529/api.json +307 -293
  102. tccli/services/tiia/v20190529/examples.json +41 -41
  103. tccli/services/tione/v20211111/api.json +4 -4
  104. tccli/services/tione/v20211111/examples.json +2 -2
  105. tccli/services/tke/v20180525/api.json +1 -1
  106. tccli/services/trocket/trocket_client.py +53 -0
  107. tccli/services/trocket/v20230308/api.json +116 -0
  108. tccli/services/trocket/v20230308/examples.json +14 -0
  109. tccli/services/tse/v20201207/api.json +188 -120
  110. tccli/services/tse/v20201207/examples.json +30 -30
  111. tccli/services/tsf/v20180326/api.json +826 -745
  112. tccli/services/tsf/v20180326/examples.json +99 -111
  113. tccli/services/vclm/v20240523/api.json +1 -1
  114. tccli/services/vdb/v20230616/api.json +80 -80
  115. tccli/services/vdb/v20230616/examples.json +1 -1
  116. tccli/services/vpc/v20170312/api.json +42 -41
  117. tccli/services/vpc/v20170312/examples.json +5 -5
  118. {tccli-3.0.1237.1.dist-info → tccli-3.0.1238.1.dist-info}/METADATA +2 -2
  119. {tccli-3.0.1237.1.dist-info → tccli-3.0.1238.1.dist-info}/RECORD +122 -118
  120. {tccli-3.0.1237.1.dist-info → tccli-3.0.1238.1.dist-info}/WHEEL +0 -0
  121. {tccli-3.0.1237.1.dist-info → tccli-3.0.1238.1.dist-info}/entry_points.txt +0 -0
  122. {tccli-3.0.1237.1.dist-info → tccli-3.0.1238.1.dist-info}/license_files/LICENSE +0 -0
@@ -99,7 +99,7 @@
99
99
  "DescribeAccountPrivileges": [
100
100
  {
101
101
  "document": "",
102
- "input": "https://mariadb.tencentcloudapi.com/?Action=DescribeAccountPrivileges\n&InstanceId=tdsql-fdpjf5zh\n&UserName=testuser1\n&Host=172.17.%\n&DbName=*\n&Type=*\n&<公共请求参数>",
102
+ "input": "https://mariadb.tencentcloudapi.com/?Action=DescribeAccountPrivileges\n&InstanceId=tdsql-fdpjf5zh\n&UserName=testuser1\n&Host=172.17.%\n&DbName=product_db\n&Type=table\n&Object=prod_user_tbl\n&<公共请求参数>",
103
103
  "output": "{\n \"Response\": {\n \"RequestId\": \"3381c9e9-d87f-4e21-ba1d-596d6f697a7e\",\n \"InstanceId\": \"tdsql-fdpjf5zh\",\n \"UserName\": \"testuser1\",\n \"Host\": \"172.17.%\",\n \"Privileges\": [\n \"SELECT\",\n \"UPDATE\"\n ]\n }\n}",
104
104
  "title": "查询云数据库账号全局权限"
105
105
  }
@@ -124,7 +124,7 @@
124
124
  {
125
125
  "document": "",
126
126
  "input": "POST / HTTP/1.1\nHost: mariadb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupFiles\n<公共请求参数>\n\n{}",
127
- "output": "{\n \"Response\": {\n \"Files\": [\n {\n \"BackupType\": \"Data\",\n \"EndTime\": \"2022-05-20 00:02:19\",\n \"FileName\": \"cos_xtrabackup+1652976129+20220520+000209+3085636221+xbstream.lz4\",\n \"FilePath\": \"cos_backup/tdsql/set_1652843814_8559529/xtrabackup/2022-05-20/cos_xtrabackup+1652976129+20220520+000209+3085636221+xbstream.lz4\",\n \"FileSize\": 48721218,\n \"InstanceId\": \"tdsql-lyzax5rb\",\n \"InstanceName\": \"test-name\",\n \"InstanceStatus\": 2,\n \"ManualBackup\": 0,\n \"ShardId\": \"\",\n \"StartTime\": \"2022-05-20 00:02:09\"\n },\n {\n \"BackupType\": \"Data\",\n \"EndTime\": \"2022-05-19 00:23:03\",\n \"FileName\": \"cos_xtrabackup+1652890972+20220519+002252+3085636221+xbstream.lz4\",\n \"FilePath\": \"cos_backup/tdsql/set_1652843814_8559529/xtrabackup/2022-05-19/cos_xtrabackup+1652890972+20220519+002252+3085636221+xbstream.lz4\",\n \"FileSize\": 47738611,\n \"InstanceId\": \"tdsql-lyzax5rb\",\n \"InstanceName\": \"test-name\",\n \"InstanceStatus\": 2,\n \"ManualBackup\": 0,\n \"ShardId\": \"\",\n \"StartTime\": \"2022-05-19 00:22:52\"\n },\n {\n \"BackupType\": \"Data\",\n \"EndTime\": \"2022-05-18 11:44:52\",\n \"FileName\": \"cos_xtrabackup+1652845485+20220518+114445+3085636221+xbstream.lz4\",\n \"FilePath\": \"cos_backup/tdsql/set_1652843814_8559529/xtrabackup/2022-05-18/cos_xtrabackup+1652845485+20220518+114445+3085636221+xbstream.lz4\",\n \"FileSize\": 10281128,\n \"InstanceId\": \"tdsql-lyzax5rb\",\n \"InstanceName\": \"test-name\",\n \"InstanceStatus\": 2,\n \"ManualBackup\": 0,\n \"ShardId\": \"\",\n \"StartTime\": \"2022-05-18 11:44:45\"\n },\n {\n \"BackupType\": \"Binlog\",\n \"EndTime\": \"2022-05-20 17:13:31\",\n \"FileName\": \"binlog+1652843821+20220518+111701+3085636221+binlog.000002.lz4\",\n \"FilePath\": \"cos_backup/tdsql/set_1652843814_8559529/binlog/2022-05-18/binlog+1652843821+20220518+111701+3085636221+binlog.000002.lz4\",\n \"FileSize\": 51119079,\n \"InstanceId\": \"tdsql-lyzax5rb\",\n \"InstanceName\": \"test-name\",\n \"InstanceStatus\": 2,\n \"ManualBackup\": 0,\n \"ShardId\": \"\",\n \"StartTime\": \"2022-05-18 11:17:01\"\n }\n ],\n \"RequestId\": \"dce77e5f-57b9-4df5-9889-1a4b9f318659\",\n \"TotalCount\": 4\n }\n}",
127
+ "output": "{\n \"Response\": {\n \"Files\": [\n {\n \"BackupType\": \"Data\",\n \"EndTime\": \"2022-05-20 00:02:19\",\n \"FileName\": \"cos_xtrabackup+1652976129+20220520+000209+3085636221+xbstream.lz4\",\n \"FilePath\": \"cos_backup/tdsql/set_1652843814_8559529/xtrabackup/2022-05-20/cos_xtrabackup+1652976129+20220520+000209+3085636221+xbstream.lz4\",\n \"FileSize\": 48721218,\n \"InstanceId\": \"tdsql-lyzax5rb\",\n \"InstanceName\": \"test-name\",\n \"InstanceStatus\": 2,\n \"ManualBackup\": 0,\n \"ShardId\": \"\",\n \"StartTime\": \"2022-05-20 00:02:09\",\n \"StorageClass\": \"STANDARD\"\n },\n {\n \"BackupType\": \"Data\",\n \"EndTime\": \"2022-05-19 00:23:03\",\n \"FileName\": \"cos_xtrabackup+1652890972+20220519+002252+3085636221+xbstream.lz4\",\n \"FilePath\": \"cos_backup/tdsql/set_1652843814_8559529/xtrabackup/2022-05-19/cos_xtrabackup+1652890972+20220519+002252+3085636221+xbstream.lz4\",\n \"FileSize\": 47738611,\n \"InstanceId\": \"tdsql-lyzax5rb\",\n \"InstanceName\": \"test-name\",\n \"InstanceStatus\": 2,\n \"ManualBackup\": 0,\n \"ShardId\": \"\",\n \"StartTime\": \"2022-05-19 00:22:52\",\n \"StorageClass\": \"STANDARD\"\n },\n {\n \"BackupType\": \"Data\",\n \"EndTime\": \"2022-05-18 11:44:52\",\n \"FileName\": \"cos_xtrabackup+1652845485+20220518+114445+3085636221+xbstream.lz4\",\n \"FilePath\": \"cos_backup/tdsql/set_1652843814_8559529/xtrabackup/2022-05-18/cos_xtrabackup+1652845485+20220518+114445+3085636221+xbstream.lz4\",\n \"FileSize\": 10281128,\n \"InstanceId\": \"tdsql-lyzax5rb\",\n \"InstanceName\": \"test-name\",\n \"InstanceStatus\": 2,\n \"ManualBackup\": 0,\n \"ShardId\": \"\",\n \"StartTime\": \"2022-05-18 11:44:45\",\n \"StorageClass\": \"STANDARD\"\n },\n {\n \"BackupType\": \"Binlog\",\n \"EndTime\": \"2022-05-20 17:13:31\",\n \"FileName\": \"binlog+1652843821+20220518+111701+3085636221+binlog.000002.lz4\",\n \"FilePath\": \"cos_backup/tdsql/set_1652843814_8559529/binlog/2022-05-18/binlog+1652843821+20220518+111701+3085636221+binlog.000002.lz4\",\n \"FileSize\": 51119079,\n \"InstanceId\": \"tdsql-lyzax5rb\",\n \"InstanceName\": \"test-name\",\n \"InstanceStatus\": 2,\n \"ManualBackup\": 0,\n \"ShardId\": \"\",\n \"StartTime\": \"2022-05-18 11:17:01\",\n \"StorageClass\": \"STANDARD\"\n }\n ],\n \"RequestId\": \"dce77e5f-57b9-4df5-9889-1a4b9f318659\",\n \"TotalCount\": 4\n }\n}",
128
128
  "title": "无"
129
129
  }
130
130
  ],
@@ -219,24 +219,24 @@
219
219
  "DescribeDBTmpInstances": [
220
220
  {
221
221
  "document": "",
222
- "input": "POST / HTTP/1.1\nHost: mariadb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBTmpInstances\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\"\n}",
223
- "output": "{\n \"Response\": {\n \"TmpInstances\": [\n {\n \"Status\": 0,\n \"SrcInstanceId\": \"xx\",\n \"Zone\": \"xx\",\n \"InstanceId\": \"xx\",\n \"Region\": \"xx\",\n \"TempType\": 0,\n \"InstanceRemark\": \"xx\",\n \"Vip\": \"xx\",\n \"AppId\": 0,\n \"PeriodEndTime\": \"2020-09-22 00:00:00\",\n \"Ipv6Flag\": 1,\n \"Vport\": 0,\n \"StatusDesc\": \"xx\",\n \"Vipv6\": \"xx\",\n \"CreateTime\": \"2020-09-22 00:00:00\"\n }\n ],\n \"RequestId\": \"xx\"\n }\n}",
222
+ "input": "POST / HTTP/1.1\nHost: mariadb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBTmpInstances\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsql-oc5srykh\"\n}",
223
+ "output": "{\n \"Response\": {\n \"TmpInstances\": [\n {\n \"Status\": 2,\n \"SrcInstanceId\": \"tdsql-ow728lmc\",\n \"Zone\": \"ap-guangzhou-3\",\n \"InstanceId\": \"tdsql-oc5srykh\",\n \"Region\": \"ap-guangzhou\",\n \"TempType\": 0,\n \"InstanceRemark\": \"临时实例\",\n \"Vip\": \"10.0.0.30\",\n \"AppId\": 251202055,\n \"PeriodEndTime\": \"2020-09-22 00:00:00\",\n \"Ipv6Flag\": 1,\n \"Vport\": 0,\n \"StatusDesc\": \"运行中\",\n \"Vipv6\": \"\",\n \"CreateTime\": \"2020-09-22 00:00:00\"\n }\n ],\n \"RequestId\": \"35e66783-c90f-46e2-aeac-758d51133094\"\n }\n}",
224
224
  "title": "无"
225
225
  }
226
226
  ],
227
227
  "DescribeDatabaseObjects": [
228
228
  {
229
229
  "document": "",
230
- "input": "https://mariadb.tencentcloudapi.com/?Action=DescribeDatabaseObjects\n&InstanceId=tdsql-e9tklsgz\n&DbName=test\n&<公共请求参数>",
231
- "output": "{\n \"Response\": {\n \"DbName\": \"test\",\n \"Funcs\": [],\n \"InstanceId\": \"tdsql-e9tklsgz\",\n \"Procs\": [\n {\n \"Proc\": \"AddGeometryColumn\"\n },\n {\n \"Proc\": \"DropGeometryColumn\"\n }\n ],\n \"RequestId\": \"a70c33e5-0c38-43a0-9953-234accd84d2a\",\n \"Tables\": [\n {\n \"Table\": \"region\"\n }\n ],\n \"Views\": []\n }\n}",
230
+ "input": "https://mariadb.tencentcloudapi.com/?Action=DescribeDatabaseObjects\n&InstanceId=tdsql-e9tklsgz\n&DbName=product_db\n&<公共请求参数>",
231
+ "output": "{\n \"Response\": {\n \"DbName\": \"product_db\",\n \"Funcs\": [],\n \"InstanceId\": \"tdsql-e9tklsgz\",\n \"Procs\": [\n {\n \"Proc\": \"AddGeometryColumn\"\n },\n {\n \"Proc\": \"DropGeometryColumn\"\n }\n ],\n \"RequestId\": \"a70c33e5-0c38-43a0-9953-234accd84d2a\",\n \"Tables\": [\n {\n \"Table\": \"region\"\n }\n ],\n \"Views\": []\n }\n}",
232
232
  "title": "查询实例的表对象"
233
233
  }
234
234
  ],
235
235
  "DescribeDatabaseTable": [
236
236
  {
237
237
  "document": "",
238
- "input": "https://mariadb.tencentcloudapi.com/?Action=DescribeDatabaseTable\n&InstanceId=tdsql-e9tklsgz\n&DbName=test\n&Table=region\n&<公共请求参数>",
239
- "output": "{\n \"Response\": {\n \"Cols\": [\n {\n \"Col\": \"id\",\n \"Type\": \"tinyint(4) unsigned\"\n },\n {\n \"Col\": \"name\",\n \"Type\": \"varchar(16)\"\n },\n {\n \"Col\": \"short_name\",\n \"Type\": \"varchar(8)\"\n },\n {\n \"Col\": \"code\",\n \"Type\": \"varchar(256)\"\n }\n ],\n \"DbName\": \"test\",\n \"InstanceId\": \"tdsql-e9tklsgz\",\n \"RequestId\": \"2de52957-ebe4-4d7b-8985-4e415b3fb360\",\n \"Table\": \"region\"\n }\n}",
238
+ "input": "https://mariadb.tencentcloudapi.com/?Action=DescribeDatabaseTable\n&InstanceId=tdsql-e9tklsgz\n&DbName=product_db\n&Table=region\n&<公共请求参数>",
239
+ "output": "{\n \"Response\": {\n \"Cols\": [\n {\n \"Col\": \"id\",\n \"Type\": \"tinyint(4) unsigned\"\n },\n {\n \"Col\": \"name\",\n \"Type\": \"varchar(16)\"\n },\n {\n \"Col\": \"short_name\",\n \"Type\": \"varchar(8)\"\n },\n {\n \"Col\": \"code\",\n \"Type\": \"varchar(256)\"\n }\n ],\n \"DbName\": \"product_db\",\n \"InstanceId\": \"tdsql-e9tklsgz\",\n \"RequestId\": \"2de52957-ebe4-4d7b-8985-4e415b3fb360\",\n \"Table\": \"region\"\n }\n}",
240
240
  "title": "查询指定实例的表结构"
241
241
  }
242
242
  ],
@@ -244,7 +244,7 @@
244
244
  {
245
245
  "document": "",
246
246
  "input": "https://mariadb.tencentcloudapi.com/?Action=DescribeDatabases\n&InstanceId=tdsql-e9tklsgz\n&<公共请求参数>",
247
- "output": "{\n \"Response\": {\n \"Databases\": [\n {\n \"DbName\": \"information_schema\"\n },\n {\n \"DbName\": \"mysql\"\n },\n {\n \"DbName\": \"performance_schema\"\n },\n {\n \"DbName\": \"test\"\n }\n ],\n \"InstanceId\": \"tdsql-e9tklsgz\",\n \"RequestId\": \"86cb12ed-0e1f-416c-99a6-79f83a8fd31e\"\n }\n}",
247
+ "output": "{\n \"Response\": {\n \"Databases\": [\n {\n \"DbName\": \"information_schema\"\n },\n {\n \"DbName\": \"mysql\"\n },\n {\n \"DbName\": \"performance_schema\"\n },\n {\n \"DbName\": \"product_db\"\n }\n ],\n \"InstanceId\": \"tdsql-e9tklsgz\",\n \"RequestId\": \"86cb12ed-0e1f-416c-99a6-79f83a8fd31e\"\n }\n}",
248
248
  "title": "查询实例的库列表"
249
249
  }
250
250
  ],
@@ -371,7 +371,7 @@
371
371
  "GrantAccountPrivileges": [
372
372
  {
373
373
  "document": "",
374
- "input": "https://mariadb.tencentcloudapi.com/?Action=GrantAccountPrivileges\n&InstanceId=tdsql-fdpjf5zh\n&UserName=testuser1\n&Host=172.17.%\n&DbName=*\n&Type=*\n&Privileges.0=select\n&Privileges.1=update\n&<公共请求参数>",
374
+ "input": "https://mariadb.tencentcloudapi.com/?Action=GrantAccountPrivileges\n&InstanceId=tdsql-fdpjf5zh\n&UserName=testuser1\n&Host=172.17.%\n&DbName=product_db\n&Type=table\n&Object=prod_user_tbl\n&Privileges.0=select\n&Privileges.1=update\n&<公共请求参数>",
375
375
  "output": "{\n \"Response\": {\n \"RequestId\": \"87201772-351f-4fb5-9164-fe757fbadb79\"\n }\n}",
376
376
  "title": "给云数据库账号赋权"
377
377
  }
@@ -411,7 +411,7 @@
411
411
  "KillSession": [
412
412
  {
413
413
  "document": "",
414
- "input": "https://mariadb.tencentcloudapi.com/?Action=KillSession\n&InstanceId=tdsql-2gk4nxyz\n&SessionId.0=1111\n&SessionId.1=2222\n&<公共请求参数>",
414
+ "input": "https://mariadb.tencentcloudapi.com/?Action=KillSession\n&InstanceId=tdsql-2gk4nxyz\n&SessionId.0=11917970\n&SessionId.1=11918810\n&<公共请求参数>",
415
415
  "output": "{\n \"Response\": {\n \"RequestId\": \"14f6980a-7fe1-11ea-b896-525400542aa6\",\n \"TaskId\": 11\n }\n}",
416
416
  "title": "杀死指定会话"
417
417
  }
@@ -531,7 +531,7 @@
531
531
  "ModifyRealServerAccessStrategy": [
532
532
  {
533
533
  "document": "",
534
- "input": "https://mariadb.tencentcloudapi.com/?Action=ModifyRealServerAccessStrategy\n&InstanceId=tdsql-f35wr6wj\n&RsAccessStrategy=1\n&<公共请求参数>",
534
+ "input": "POST / HTTP/1.1\nHost: mariadb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRealServerAccessStrategy\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsql-f35wr6wj\",\n \"RsAccessStrategy\": \"1\"\n}",
535
535
  "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\"\n }\n}",
536
536
  "title": "请求示例DEMO"
537
537
  }
@@ -3553,6 +3553,58 @@ def doDeleteSSOAccount(args, parsed_globals):
3553
3553
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3554
3554
 
3555
3555
 
3556
+ def doDescribeRemoteURLs(args, parsed_globals):
3557
+ g_param = parse_global_arg(parsed_globals)
3558
+
3559
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3560
+ cred = credential.CVMRoleCredential()
3561
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3562
+ cred = credential.STSAssumeRoleCredential(
3563
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3564
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3565
+ )
3566
+ 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):
3567
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3568
+ else:
3569
+ cred = credential.Credential(
3570
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3571
+ )
3572
+ http_profile = HttpProfile(
3573
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3574
+ reqMethod="POST",
3575
+ endpoint=g_param[OptionsDefine.Endpoint],
3576
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3577
+ )
3578
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3579
+ if g_param[OptionsDefine.Language]:
3580
+ profile.language = g_param[OptionsDefine.Language]
3581
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3582
+ client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
3583
+ client._sdkVersion += ("_CLI_" + __version__)
3584
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3585
+ model = models.DescribeRemoteURLsRequest()
3586
+ model.from_json_string(json.dumps(args))
3587
+ start_time = time.time()
3588
+ while True:
3589
+ rsp = client.DescribeRemoteURLs(model)
3590
+ result = rsp.to_json_string()
3591
+ try:
3592
+ json_obj = json.loads(result)
3593
+ except TypeError as e:
3594
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3595
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3596
+ break
3597
+ cur_time = time.time()
3598
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3599
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3600
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3601
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3602
+ else:
3603
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3604
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3605
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3606
+
3607
+
3556
3608
  def doDescribeAlarmNotice(args, parsed_globals):
3557
3609
  g_param = parse_global_arg(parsed_globals)
3558
3610
 
@@ -6309,6 +6361,58 @@ def doDescribeRecordingRules(args, parsed_globals):
6309
6361
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6310
6362
 
6311
6363
 
6364
+ def doModifyRemoteURLs(args, parsed_globals):
6365
+ g_param = parse_global_arg(parsed_globals)
6366
+
6367
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6368
+ cred = credential.CVMRoleCredential()
6369
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6370
+ cred = credential.STSAssumeRoleCredential(
6371
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6372
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6373
+ )
6374
+ 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):
6375
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6376
+ else:
6377
+ cred = credential.Credential(
6378
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6379
+ )
6380
+ http_profile = HttpProfile(
6381
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6382
+ reqMethod="POST",
6383
+ endpoint=g_param[OptionsDefine.Endpoint],
6384
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6385
+ )
6386
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6387
+ if g_param[OptionsDefine.Language]:
6388
+ profile.language = g_param[OptionsDefine.Language]
6389
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6390
+ client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
6391
+ client._sdkVersion += ("_CLI_" + __version__)
6392
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6393
+ model = models.ModifyRemoteURLsRequest()
6394
+ model.from_json_string(json.dumps(args))
6395
+ start_time = time.time()
6396
+ while True:
6397
+ rsp = client.ModifyRemoteURLs(model)
6398
+ result = rsp.to_json_string()
6399
+ try:
6400
+ json_obj = json.loads(result)
6401
+ except TypeError as e:
6402
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6403
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6404
+ break
6405
+ cur_time = time.time()
6406
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6407
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6408
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6409
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6410
+ else:
6411
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6412
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6413
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6414
+
6415
+
6312
6416
  def doDescribeGrafanaWhiteList(args, parsed_globals):
6313
6417
  g_param = parse_global_arg(parsed_globals)
6314
6418
 
@@ -8208,6 +8312,7 @@ ACTION_MAP = {
8208
8312
  "DescribeAlarmHistories": doDescribeAlarmHistories,
8209
8313
  "CreateAlarmNotice": doCreateAlarmNotice,
8210
8314
  "DeleteSSOAccount": doDeleteSSOAccount,
8315
+ "DescribeRemoteURLs": doDescribeRemoteURLs,
8211
8316
  "DescribeAlarmNotice": doDescribeAlarmNotice,
8212
8317
  "CreateGrafanaIntegration": doCreateGrafanaIntegration,
8213
8318
  "DescribePrometheusTemp": doDescribePrometheusTemp,
@@ -8261,6 +8366,7 @@ ACTION_MAP = {
8261
8366
  "DescribeAlarmPolicies": doDescribeAlarmPolicies,
8262
8367
  "DescribePrometheusTargetsTMP": doDescribePrometheusTargetsTMP,
8263
8368
  "DescribeRecordingRules": doDescribeRecordingRules,
8369
+ "ModifyRemoteURLs": doModifyRemoteURLs,
8264
8370
  "DescribeGrafanaWhiteList": doDescribeGrafanaWhiteList,
8265
8371
  "DeleteAlarmPolicy": doDeleteAlarmPolicy,
8266
8372
  "CreatePrometheusAlertPolicy": doCreatePrometheusAlertPolicy,
@@ -714,6 +714,13 @@
714
714
  "output": "DescribeRecordingRulesResponse",
715
715
  "status": "online"
716
716
  },
717
+ "DescribeRemoteURLs": {
718
+ "document": "获取多写配置详情",
719
+ "input": "DescribeRemoteURLsRequest",
720
+ "name": "获取多写配置详情",
721
+ "output": "DescribeRemoteURLsResponse",
722
+ "status": "online"
723
+ },
717
724
  "DescribeSSOAccount": {
718
725
  "document": "列出当前grafana实例的所有授权账号",
719
726
  "input": "DescribeSSOAccountRequest",
@@ -896,6 +903,13 @@
896
903
  "output": "ModifyPrometheusTempResponse",
897
904
  "status": "online"
898
905
  },
906
+ "ModifyRemoteURLs": {
907
+ "document": "修改多写配置",
908
+ "input": "ModifyRemoteURLsRequest",
909
+ "name": "修改多写配置",
910
+ "output": "ModifyRemoteURLsResponse",
911
+ "status": "online"
912
+ },
899
913
  "ResumeGrafanaInstance": {
900
914
  "document": "本接口(ResumeGrafanaInstance)用于 Grafana 包年包月实例的停服续费,调用后按原版本续费一个月。仍在运行中的实例无法使用该接口进行续费。",
901
915
  "input": "ResumeGrafanaInstanceRequest",
@@ -2528,6 +2542,32 @@
2528
2542
  ],
2529
2543
  "usage": "both"
2530
2544
  },
2545
+ "BasicAuth": {
2546
+ "document": "url鉴权",
2547
+ "members": [
2548
+ {
2549
+ "disabled": false,
2550
+ "document": "用户名\n注意:此字段可能返回 null,表示取不到有效值。",
2551
+ "example": "cherry",
2552
+ "member": "string",
2553
+ "name": "UserName",
2554
+ "required": false,
2555
+ "type": "string",
2556
+ "value_allowed_null": true
2557
+ },
2558
+ {
2559
+ "disabled": false,
2560
+ "document": "密码\n注意:此字段可能返回 null,表示取不到有效值。",
2561
+ "example": "无",
2562
+ "member": "string",
2563
+ "name": "Password",
2564
+ "required": false,
2565
+ "type": "string",
2566
+ "value_allowed_null": true
2567
+ }
2568
+ ],
2569
+ "usage": "both"
2570
+ },
2531
2571
  "BindPrometheusManagedGrafanaRequest": {
2532
2572
  "document": "BindPrometheusManagedGrafana请求参数结构体",
2533
2573
  "members": [
@@ -12966,6 +13006,52 @@
12966
13006
  ],
12967
13007
  "type": "object"
12968
13008
  },
13009
+ "DescribeRemoteURLsRequest": {
13010
+ "document": "DescribeRemoteURLs请求参数结构体",
13011
+ "members": [
13012
+ {
13013
+ "disabled": false,
13014
+ "document": "实例ID",
13015
+ "example": "prom-jsbr",
13016
+ "member": "string",
13017
+ "name": "InstanceId",
13018
+ "required": true,
13019
+ "type": "string"
13020
+ },
13021
+ {
13022
+ "disabled": false,
13023
+ "document": "url数组",
13024
+ "example": "[\"http://172.30.0.9:9090/api/v1/prom/write\"]",
13025
+ "member": "string",
13026
+ "name": "RemoteURLs",
13027
+ "required": false,
13028
+ "type": "list"
13029
+ }
13030
+ ],
13031
+ "type": "object"
13032
+ },
13033
+ "DescribeRemoteURLsResponse": {
13034
+ "document": "DescribeRemoteURLs返回参数结构体",
13035
+ "members": [
13036
+ {
13037
+ "disabled": false,
13038
+ "document": "多写配置",
13039
+ "example": "无",
13040
+ "member": "RemoteWrite",
13041
+ "name": "RemoteWrites",
13042
+ "output_required": true,
13043
+ "type": "list",
13044
+ "value_allowed_null": false
13045
+ },
13046
+ {
13047
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
13048
+ "member": "string",
13049
+ "name": "RequestId",
13050
+ "type": "string"
13051
+ }
13052
+ ],
13053
+ "type": "object"
13054
+ },
12969
13055
  "DescribeSSOAccountRequest": {
12970
13056
  "document": "DescribeSSOAccount请求参数结构体",
12971
13057
  "members": [
@@ -16169,6 +16255,42 @@
16169
16255
  ],
16170
16256
  "type": "object"
16171
16257
  },
16258
+ "ModifyRemoteURLsRequest": {
16259
+ "document": "ModifyRemoteURLs请求参数结构体",
16260
+ "members": [
16261
+ {
16262
+ "disabled": false,
16263
+ "document": "实例ID",
16264
+ "example": "无",
16265
+ "member": "string",
16266
+ "name": "InstanceId",
16267
+ "required": true,
16268
+ "type": "string"
16269
+ },
16270
+ {
16271
+ "disabled": false,
16272
+ "document": "多写配置",
16273
+ "example": "无",
16274
+ "member": "RemoteWrite",
16275
+ "name": "RemoteWrites",
16276
+ "required": false,
16277
+ "type": "list"
16278
+ }
16279
+ ],
16280
+ "type": "object"
16281
+ },
16282
+ "ModifyRemoteURLsResponse": {
16283
+ "document": "ModifyRemoteURLs返回参数结构体",
16284
+ "members": [
16285
+ {
16286
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
16287
+ "member": "string",
16288
+ "name": "RequestId",
16289
+ "type": "string"
16290
+ }
16291
+ ],
16292
+ "type": "object"
16293
+ },
16172
16294
  "MonitorTypeInfo": {
16173
16295
  "document": "监控类型详细信息",
16174
16296
  "members": [
@@ -19391,6 +19513,106 @@
19391
19513
  ],
19392
19514
  "usage": "out"
19393
19515
  },
19516
+ "RemoteWrite": {
19517
+ "document": "多写配置",
19518
+ "members": [
19519
+ {
19520
+ "disabled": false,
19521
+ "document": "多写url",
19522
+ "example": "http://172.30.0.9:9090/api/v1/prom/write",
19523
+ "member": "string",
19524
+ "name": "URL",
19525
+ "output_required": true,
19526
+ "required": true,
19527
+ "type": "string",
19528
+ "value_allowed_null": false
19529
+ },
19530
+ {
19531
+ "disabled": false,
19532
+ "document": "RelabelConfig\n注意:此字段可能返回 null,表示取不到有效值。",
19533
+ "example": "无",
19534
+ "member": "string",
19535
+ "name": "URLRelabelConfig",
19536
+ "output_required": true,
19537
+ "required": false,
19538
+ "type": "string",
19539
+ "value_allowed_null": true
19540
+ },
19541
+ {
19542
+ "disabled": false,
19543
+ "document": "鉴权\n注意:此字段可能返回 null,表示取不到有效值。",
19544
+ "example": "无",
19545
+ "member": "BasicAuth",
19546
+ "name": "BasicAuth",
19547
+ "output_required": true,
19548
+ "required": false,
19549
+ "type": "object",
19550
+ "value_allowed_null": true
19551
+ },
19552
+ {
19553
+ "disabled": false,
19554
+ "document": "最大block\n注意:此字段可能返回 null,表示取不到有效值。",
19555
+ "example": "无",
19556
+ "member": "string",
19557
+ "name": "MaxBlockSize",
19558
+ "output_required": true,
19559
+ "required": false,
19560
+ "type": "string",
19561
+ "value_allowed_null": true
19562
+ },
19563
+ {
19564
+ "disabled": false,
19565
+ "document": "Label\n注意:此字段可能返回 null,表示取不到有效值。",
19566
+ "example": "无",
19567
+ "member": "string",
19568
+ "name": "Label",
19569
+ "output_required": true,
19570
+ "required": false,
19571
+ "type": "string",
19572
+ "value_allowed_null": true
19573
+ },
19574
+ {
19575
+ "disabled": false,
19576
+ "document": "HTTP 额外添加的头\n注意:此字段可能返回 null,表示取不到有效值。",
19577
+ "example": "无",
19578
+ "member": "RemoteWriteHeader",
19579
+ "name": "Headers",
19580
+ "output_required": false,
19581
+ "required": false,
19582
+ "type": "list",
19583
+ "value_allowed_null": true
19584
+ }
19585
+ ],
19586
+ "usage": "both"
19587
+ },
19588
+ "RemoteWriteHeader": {
19589
+ "document": "Remote Write 协议额外添加的 HTTP 头",
19590
+ "members": [
19591
+ {
19592
+ "disabled": false,
19593
+ "document": "HTTP 头的键\n注意:此字段可能返回 null,表示取不到有效值。",
19594
+ "example": "X-Custom-Header",
19595
+ "member": "string",
19596
+ "name": "Key",
19597
+ "output_required": false,
19598
+ "required": true,
19599
+ "type": "string",
19600
+ "value_allowed_null": true
19601
+ },
19602
+ {
19603
+ "disabled": false,
19604
+ "document": "HTTP 头的值\n注意:此字段可能返回 null,表示取不到有效值。",
19605
+ "example": "custom-value",
19606
+ "member": "string",
19607
+ "name": "Value",
19608
+ "output_required": false,
19609
+ "required": false,
19610
+ "type": "string",
19611
+ "value_allowed_null": true
19612
+ }
19613
+ ],
19614
+ "usage": "both"
19615
+ },
19394
19616
  "ResumeGrafanaInstanceRequest": {
19395
19617
  "document": "ResumeGrafanaInstance请求参数结构体",
19396
19618
  "members": [
@@ -984,6 +984,14 @@
984
984
  "title": "查询预聚合规则"
985
985
  }
986
986
  ],
987
+ "DescribeRemoteURLs": [
988
+ {
989
+ "document": "获取多写配置",
990
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRemoteURLs\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-kewhrgvf\",\n \"RemoteURLs\": [\n \"http://172.0.0.1:9090/api/v1/prom/write\"\n ]\n}",
991
+ "output": "{\n \"Response\": {\n \"RemoteWrites\": [\n {\n \"URL\": \"http://172.0.0.1:9090/api/v1/prom/write\",\n \"URLRelabelConfig\": \"source_labels:asd\\n\",\n \"BasicAuth\": {\n \"UserName\": \"user-name\",\n \"Password\": \"sklehrgb\"\n },\n \"MaxBlockSize\": \"1024\",\n \"Label\": \"label-name=label-value\",\n \"Headers\": [\n {\n \"Key\": \"X-Custom-Header\",\n \"Value\": \"custom-value\"\n }\n ]\n }\n ],\n \"RequestId\": \"langy-akrbnf\"\n }\n}",
992
+ "title": "获取多写配置"
993
+ }
994
+ ],
987
995
  "DescribeSSOAccount": [
988
996
  {
989
997
  "document": "列出当前grafana实例的所有授权账号",
@@ -1210,6 +1218,14 @@
1210
1218
  "title": "修改模板描述"
1211
1219
  }
1212
1220
  ],
1221
+ "ModifyRemoteURLs": [
1222
+ {
1223
+ "document": "修改多写配置",
1224
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRemoteURLs\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-m4qf27hg\",\n \"RemoteWrites\": [\n {\n \"URL\": \"http://172.30.0.9:9090/api/v1/prom/write\",\n \"BasicAuth\": {\n \"UserName\": \"cherry\",\n \"Password\": \"xxx\"\n }\n }\n ]\n}",
1225
+ "output": "{\n \"Response\": {\n \"RequestId\": \"\"\n }\n}",
1226
+ "title": "修改多写配置"
1227
+ }
1228
+ ],
1213
1229
  "ResumeGrafanaInstance": [
1214
1230
  {
1215
1231
  "document": "恢复 Grafana 实例",