tccli 3.0.1218.1__py2.py3-none-any.whl → 3.0.1220.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/af/v20200226/api.json +2 -2
- tccli/services/autoscaling/v20180419/api.json +1 -1
- tccli/services/billing/v20180709/api.json +176 -181
- tccli/services/billing/v20180709/examples.json +7 -7
- tccli/services/cdwch/cdwch_client.py +53 -0
- tccli/services/cdwch/v20200915/api.json +100 -0
- tccli/services/cdwch/v20200915/examples.json +8 -0
- tccli/services/ckafka/v20190819/api.json +7 -7
- tccli/services/clb/v20180317/api.json +12 -12
- tccli/services/cwp/v20180228/api.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +12 -2
- tccli/services/es/v20180416/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +19 -1
- tccli/services/essbasic/v20210526/api.json +28 -1
- tccli/services/faceid/v20180301/api.json +2 -2
- tccli/services/iai/v20180301/api.json +17 -13
- tccli/services/iai/v20200303/examples.json +200 -200
- tccli/services/iap/__init__.py +4 -0
- tccli/services/iap/iap_client.py +472 -0
- tccli/services/iap/v20240713/api.json +471 -0
- tccli/services/iap/v20240713/examples.json +59 -0
- tccli/services/lcic/v20220817/api.json +3 -3
- tccli/services/live/live_client.py +428 -4
- tccli/services/live/v20180801/api.json +1070 -68
- tccli/services/live/v20180801/examples.json +64 -0
- tccli/services/market/v20191010/api.json +7 -7
- tccli/services/market/v20191010/examples.json +2 -2
- tccli/services/mps/mps_client.py +53 -0
- tccli/services/mps/v20190612/api.json +164 -0
- tccli/services/mps/v20190612/examples.json +8 -0
- tccli/services/partners/v20180321/api.json +4 -4
- tccli/services/pts/v20210728/api.json +3 -0
- tccli/services/redis/v20180412/api.json +169 -163
- tccli/services/redis/v20180412/examples.json +3 -3
- tccli/services/svp/v20240125/api.json +29 -29
- tccli/services/svp/v20240125/examples.json +1 -1
- tccli/services/tat/v20201028/api.json +5 -5
- tccli/services/tdmq/v20200217/api.json +1 -1
- tccli/services/tke/v20220501/api.json +2 -2
- tccli/services/tse/v20201207/api.json +199 -12
- tccli/services/tse/v20201207/examples.json +4 -4
- tccli/services/vcg/v20240404/api.json +1 -1
- tccli/services/vcg/v20240404/examples.json +4 -4
- tccli/services/vpc/v20170312/api.json +492 -66
- tccli/services/vpc/v20170312/examples.json +59 -21
- tccli/services/vpc/vpc_client.py +212 -0
- tccli/services/wedata/v20210820/api.json +47 -2
- tccli/services/wedata/v20210820/examples.json +1 -1
- {tccli-3.0.1218.1.dist-info → tccli-3.0.1220.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1218.1.dist-info → tccli-3.0.1220.1.dist-info}/RECORD +55 -51
- {tccli-3.0.1218.1.dist-info → tccli-3.0.1220.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1218.1.dist-info → tccli-3.0.1220.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1218.1.dist-info → tccli-3.0.1220.1.dist-info}/license_files/LICENSE +0 -0
@@ -156,7 +156,7 @@
|
|
156
156
|
{
|
157
157
|
"document": "获取账单资源汇总",
|
158
158
|
"input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationBillResourceSummary\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 1,\n \"Month\": \"2023-08\",\n \"NeedRecordNum\": 1,\n \"ResourceId\": \"cdb-0a90mrac\"\n}",
|
159
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"0a27bddd-8683-4187-b9c0-7d407a2c818f\",\n \"ResourceSummarySet\": [\n {\n \"ActionTypeName\": \"包年包月续费\",\n \"BusinessCode\": \"p_cdb\",\n \"BusinessCodeName\": \"云数据库MySQL\",\n \"CashPayAmount\": \"11.56675785\",\n \"ConfigDesc\": \"云数据库MySQL-CPU: 1 核\",\n \"Discount\": \"0.325825\",\n \"ExtendField1\": \"vpc: vpc-l0u15j26,Default-VPC\",\n \"ExtendField2\": \"vip: 172.27.0.8\",\n \"ExtendField3\": \"
|
159
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"0a27bddd-8683-4187-b9c0-7d407a2c818f\",\n \"ResourceSummarySet\": [\n {\n \"ActionTypeName\": \"包年包月续费\",\n \"BusinessCode\": \"p_cdb\",\n \"BusinessCodeName\": \"云数据库MySQL\",\n \"CashPayAmount\": \"11.56675785\",\n \"ConfigDesc\": \"云数据库MySQL-CPU: 1 核\",\n \"Discount\": \"0.325825\",\n \"ExtendField1\": \"vpc: vpc-l0u15j26,Default-VPC\",\n \"ExtendField2\": \"vip: 172.27.0.8\",\n \"ExtendField3\": \"extend info\",\n \"ExtendField4\": \"extend info\",\n \"ExtendField5\": \"extend info\",\n \"FeeBeginTime\": \"2023-08-07 10:58:41\",\n \"FeeEndTime\": \"2023-09-07 10:58:41\",\n \"IncentivePayAmount\": \"0.00000000\",\n \"InstanceType\": \"it\",\n \"OperateUin\": \"700000686592\",\n \"OrderId\": \"20230807867037044170861\",\n \"OriginalCostWithRI\": \"0.00000000\",\n \"OriginalCostWithSP\": \"0.00000000\",\n \"OwnerUin\": \"700000686592\",\n \"PayModeName\": \"包年包月\",\n \"PayTime\": \"2023-08-07 03:42:18\",\n \"ProductCode\": \"sp_cdb_master\",\n \"ProductCodeName\": \"云数据库MySQL-高可用版-通用型\",\n \"ProjectName\": \"默认项目\",\n \"RealTotalCost\": \"11.56675785\",\n \"ReduceType\": \"折扣\",\n \"RegionId\": 16,\n \"RegionName\": \"西南地区(成都)\",\n \"ResourceId\": \"cdb-0a90mrac\",\n \"ResourceName\": \"云数据库mysql-test7\",\n \"SPDeduction\": \"0.00000000\",\n \"Tags\": [],\n \"TotalCost\": \"35.5\",\n \"TransferPayAmount\": \"0.00000000\",\n \"VoucherPayAmount\": \"0.00000000\",\n \"ZoneName\": \"成都一区\"\n }\n ],\n \"Total\": 3\n }\n}",
|
160
160
|
"title": "获取账单资源汇总"
|
161
161
|
}
|
162
162
|
],
|
@@ -182,7 +182,7 @@
|
|
182
182
|
{
|
183
183
|
"document": "获取按标签维度汇总费用明细",
|
184
184
|
"input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBillSummary\n<公共请求参数>\n\n{\n \"Month\": \"2023-05\",\n \"GroupType\": \"tag\",\n \"TagKey\": [\n \"测试键\",\n \"部门分类\"\n ]\n}",
|
185
|
-
"output": "{\n \"Response\": {\n \"Ready\": 1,\n \"RequestId\": \"fdb44563-4a70-4c41-88a4-68b628a221a8\",\n \"SummaryDetail\": [\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_tencentmeeting_saas\",\n \"BusinessCodeName\": \"腾讯会议(SAAS版)\",\n \"CashPayAmount\": \"3284.27\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"3284.27\",\n \"TotalCost\": \"7308.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"BusinessCode\": \"p_cbs\",\n \"BusinessCodeName\": \"云硬盘CBS\",\n \"CashPayAmount\": \"2583.11\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"2583.43\",\n \"TotalCost\": \"6383.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.32\"\n }\n ],\n \"CashPayAmount\": \"5867.38\",\n \"GroupKey\": \"测试键\",\n \"GroupValue\": \"\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"5867.70\",\n \"TotalCost\": \"13691.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.32\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_nat\",\n \"BusinessCodeName\": \"NAT网关\",\n \"CashPayAmount\": \"127.44\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"127.44\",\n \"TotalCost\": \"188.93\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"BusinessCode\": \"p_cls\",\n \"BusinessCodeName\": \"日志服务CLS\",\n \"CashPayAmount\": \"0.71\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"0.71\",\n \"TotalCost\": \"1.08\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ],\n \"CashPayAmount\": \"128.15\",\n \"GroupKey\": \"测试键\",\n \"GroupValue\": \"
|
185
|
+
"output": "{\n \"Response\": {\n \"Ready\": 1,\n \"RequestId\": \"fdb44563-4a70-4c41-88a4-68b628a221a8\",\n \"SummaryDetail\": [\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_tencentmeeting_saas\",\n \"BusinessCodeName\": \"腾讯会议(SAAS版)\",\n \"CashPayAmount\": \"3284.27\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"3284.27\",\n \"TotalCost\": \"7308.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"BusinessCode\": \"p_cbs\",\n \"BusinessCodeName\": \"云硬盘CBS\",\n \"CashPayAmount\": \"2583.11\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"2583.43\",\n \"TotalCost\": \"6383.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.32\"\n }\n ],\n \"CashPayAmount\": \"5867.38\",\n \"GroupKey\": \"测试键\",\n \"GroupValue\": \"test_v\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"5867.70\",\n \"TotalCost\": \"13691.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.32\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_nat\",\n \"BusinessCodeName\": \"NAT网关\",\n \"CashPayAmount\": \"127.44\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"127.44\",\n \"TotalCost\": \"188.93\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"BusinessCode\": \"p_cls\",\n \"BusinessCodeName\": \"日志服务CLS\",\n \"CashPayAmount\": \"0.71\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"0.71\",\n \"TotalCost\": \"1.08\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ],\n \"CashPayAmount\": \"128.15\",\n \"GroupKey\": \"测试键\",\n \"GroupValue\": \"test_v\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"128.15\",\n \"TotalCost\": \"190.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_tencentmeeting_saas\",\n \"BusinessCodeName\": \"腾讯会议(SAAS版)\",\n \"CashPayAmount\": \"3284.27\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"3284.27\",\n \"TotalCost\": \"7308.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"BusinessCode\": \"p_cbs\",\n \"BusinessCodeName\": \"云硬盘CBS\",\n \"CashPayAmount\": \"2583.11\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"2583.43\",\n \"TotalCost\": \"6383.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.32\"\n }\n ],\n \"CashPayAmount\": \"5867.38\",\n \"GroupKey\": \"部门分类\",\n \"GroupValue\": \"test_v \",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"5867.70\",\n \"TotalCost\": \"13691.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.32\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_ckafka\",\n \"BusinessCodeName\": \"消息服务CKafka\",\n \"CashPayAmount\": \"1076.00\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"1076.00\",\n \"TotalCost\": \"1076.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ],\n \"CashPayAmount\": \"1076.00\",\n \"GroupKey\": \"部门分类\",\n \"GroupValue\": \"采购部\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"1076.00\",\n \"TotalCost\": \"1076.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_yunjing\",\n \"BusinessCodeName\": \"T-Sec-主机安全(CWP)\",\n \"CashPayAmount\": \"123.18\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"123.18\",\n \"TotalCost\": \"180.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ],\n \"CashPayAmount\": \"123.18\",\n \"GroupKey\": \"部门分类\",\n \"GroupValue\": \"行政部\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"123.18\",\n \"TotalCost\": \"180.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_clb\",\n \"BusinessCodeName\": \"负载均衡CLB\",\n \"CashPayAmount\": \"38.31\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"38.31\",\n \"TotalCost\": \"112.20\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"BusinessCode\": \"p_cos\",\n \"BusinessCodeName\": \"COS 对象存储\",\n \"CashPayAmount\": \"0.00\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"0.00\",\n \"TotalCost\": \"0.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ],\n \"CashPayAmount\": \"38.31\",\n \"GroupKey\": \"部门分类\",\n \"GroupValue\": \"业务部\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"38.31\",\n \"TotalCost\": \"112.20\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_cvm\",\n \"BusinessCodeName\": \"云服务器CVM\",\n \"CashPayAmount\": \"-43.67\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"-43.67\",\n \"TotalCost\": \"-43.67\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ],\n \"CashPayAmount\": \"-43.67\",\n \"GroupKey\": \"部门分类\",\n \"GroupValue\": \"财务部\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"-43.67\",\n \"TotalCost\": \"-43.67\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ]\n }\n}",
|
186
186
|
"title": "获取按标签维度汇总费用明细"
|
187
187
|
},
|
188
188
|
{
|
@@ -254,7 +254,7 @@
|
|
254
254
|
{
|
255
255
|
"document": "获取按标签维度汇总费用明细",
|
256
256
|
"input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBillSummary\n<公共请求参数>\n\n{\n \"Month\": \"2023-05\",\n \"GroupType\": \"tag\",\n \"TagKey\": [\n \"测试键\",\n \"部门分类\"\n ]\n}",
|
257
|
-
"output": "{\n \"Response\": {\n \"Ready\": 1,\n \"RequestId\": \"fdb44563-4a70-4c41-88a4-68b628a221a8\",\n \"SummaryDetail\": [\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_tencentmeeting_saas\",\n \"BusinessCodeName\": \"腾讯会议(SAAS版)\",\n \"CashPayAmount\": \"3284.27\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"3284.27\",\n \"TotalCost\": \"7308.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"BusinessCode\": \"p_cbs\",\n \"BusinessCodeName\": \"云硬盘CBS\",\n \"CashPayAmount\": \"2583.11\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"2583.43\",\n \"TotalCost\": \"6383.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.32\"\n }\n ],\n \"CashPayAmount\": \"5867.38\",\n \"GroupKey\": \"
|
257
|
+
"output": "{\n \"Response\": {\n \"Ready\": 1,\n \"RequestId\": \"fdb44563-4a70-4c41-88a4-68b628a221a8\",\n \"SummaryDetail\": [\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_tencentmeeting_saas\",\n \"BusinessCodeName\": \"腾讯会议(SAAS版)\",\n \"CashPayAmount\": \"3284.27\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"3284.27\",\n \"TotalCost\": \"7308.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"BusinessCode\": \"p_cbs\",\n \"BusinessCodeName\": \"云硬盘CBS\",\n \"CashPayAmount\": \"2583.11\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"2583.43\",\n \"TotalCost\": \"6383.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.32\"\n }\n ],\n \"CashPayAmount\": \"5867.38\",\n \"GroupKey\": \"部门分类\",\n \"GroupValue\": \"采购部\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"5867.70\",\n \"TotalCost\": \"13691.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.32\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_nat\",\n \"BusinessCodeName\": \"NAT网关\",\n \"CashPayAmount\": \"127.44\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"127.44\",\n \"TotalCost\": \"188.93\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"BusinessCode\": \"p_cls\",\n \"BusinessCodeName\": \"日志服务CLS\",\n \"CashPayAmount\": \"0.71\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"0.71\",\n \"TotalCost\": \"1.08\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ],\n \"CashPayAmount\": \"128.15\",\n \"GroupKey\": \"部门分类\",\n \"GroupValue\": \"采购部\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"128.15\",\n \"TotalCost\": \"190.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_tencentmeeting_saas\",\n \"BusinessCodeName\": \"腾讯会议(SAAS版)\",\n \"CashPayAmount\": \"3284.27\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"3284.27\",\n \"TotalCost\": \"7308.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"BusinessCode\": \"p_cbs\",\n \"BusinessCodeName\": \"云硬盘CBS\",\n \"CashPayAmount\": \"2583.11\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"2583.43\",\n \"TotalCost\": \"6383.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.32\"\n }\n ],\n \"CashPayAmount\": \"5867.38\",\n \"GroupKey\": \"部门分类\",\n \"GroupValue\": \"采购部\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"5867.70\",\n \"TotalCost\": \"13691.01\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.32\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_ckafka\",\n \"BusinessCodeName\": \"消息服务CKafka\",\n \"CashPayAmount\": \"1076.00\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"1076.00\",\n \"TotalCost\": \"1076.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ],\n \"CashPayAmount\": \"1076.00\",\n \"GroupKey\": \"部门分类\",\n \"GroupValue\": \"采购部\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"1076.00\",\n \"TotalCost\": \"1076.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_yunjing\",\n \"BusinessCodeName\": \"T-Sec-主机安全(CWP)\",\n \"CashPayAmount\": \"123.18\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"123.18\",\n \"TotalCost\": \"180.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ],\n \"CashPayAmount\": \"123.18\",\n \"GroupKey\": \"部门分类\",\n \"GroupValue\": \"行政部\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"123.18\",\n \"TotalCost\": \"180.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_clb\",\n \"BusinessCodeName\": \"负载均衡CLB\",\n \"CashPayAmount\": \"38.31\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"38.31\",\n \"TotalCost\": \"112.20\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"BusinessCode\": \"p_cos\",\n \"BusinessCodeName\": \"COS 对象存储\",\n \"CashPayAmount\": \"0.00\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"0.00\",\n \"TotalCost\": \"0.00\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ],\n \"CashPayAmount\": \"38.31\",\n \"GroupKey\": \"部门分类\",\n \"GroupValue\": \"业务部\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"38.31\",\n \"TotalCost\": \"112.20\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n },\n {\n \"Business\": [\n {\n \"BusinessCode\": \"p_cvm\",\n \"BusinessCodeName\": \"云服务器CVM\",\n \"CashPayAmount\": \"-43.67\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"-43.67\",\n \"TotalCost\": \"-43.67\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ],\n \"CashPayAmount\": \"-43.67\",\n \"GroupKey\": \"部门分类\",\n \"GroupValue\": \"财务部\",\n \"IncentivePayAmount\": \"0.00\",\n \"RealTotalCost\": \"-43.67\",\n \"TotalCost\": \"-43.67\",\n \"TransferPayAmount\": \"0.00\",\n \"VoucherPayAmount\": \"0.00\"\n }\n ]\n }\n}",
|
258
258
|
"title": "获取按标签维度汇总费用明细"
|
259
259
|
},
|
260
260
|
{
|
@@ -268,7 +268,7 @@
|
|
268
268
|
{
|
269
269
|
"document": "",
|
270
270
|
"input": "https://billing.tencentcloudapi.com/?Action=DescribeCostDetail\n&Offset=0\n&Limit=10\n&BeginTime=2018-11-01 00:00:00\n&EndTime=2018-11-01 23:59:59\n&NeedRecordNum=1\n&<公共请求参数>",
|
271
|
-
"output": "{\n \"Response\": {\n \"DetailSet\": [\n {\n \"PayerUin\": \"
|
271
|
+
"output": "{\n \"Response\": {\n \"DetailSet\": [\n {\n \"PayerUin\": \"10002011014\",\n \"BusinessCodeName\": \"COS 对象存储\",\n \"ProductCodeName\": \"COS 流量\",\n \"PayModeName\": \"按量计费\",\n \"ProjectName\": \"默认项目\",\n \"RegionName\": \"华南地区(广州)\",\n \"ZoneName\": \"其他\",\n \"ResourceId\": \"cpn-dev-238-ap-beijing-1000000086\",\n \"ResourceName\": \"cpn-dev-238-ap-beijing\",\n \"ActionTypeName\": \"按量计费日结\",\n \"OrderId\": \"20211009400006732337101\",\n \"BillId\": \"2021100940000673233\",\n \"FeeBeginTime\": \"2021-11-03 00:00:00\",\n \"FeeEndTime\": \"2021-11-03 23:59:59\",\n \"ComponentSet\": [\n {\n \"ComponentCodeName\": \"外网下行流量\",\n \"ItemCodeName\": \"COS 外网下行流量\",\n \"SinglePrice\": \"0.50000000\",\n \"PriceUnit\": \"元/GB/天\",\n \"UsedAmount\": \"0.0020975\",\n \"UsedAmountUnit\": \"GB\",\n \"Cost\": \"0.00104875\",\n \"Discount\": \"1\",\n \"RealCost\": \"0.00104875\",\n \"VoucherPayAmount\": \"0\",\n \"CashPayAmount\": \"0.00104875\",\n \"IncentivePayAmount\": \"0\"\n }\n ],\n \"ProductCode\": \"sp_cos_bw\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"51db5fda-deac-4d51-8464-d23c32791abd\"\n }\n}",
|
272
272
|
"title": "查询消耗明细数据"
|
273
273
|
}
|
274
274
|
],
|
@@ -284,7 +284,7 @@
|
|
284
284
|
{
|
285
285
|
"document": "获取按产品汇总消耗详情",
|
286
286
|
"input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCostSummaryByProduct\n<公共请求参数>\n\n{\n \"NeedRecordNum\": \"1\",\n \"EndTime\": \"2018-11\",\n \"Limit\": \"1\",\n \"BeginTime\": \"2018-11\",\n \"Offset\": \"0\"\n}",
|
287
|
-
"output": "{\n \"Response\": {\n \"Ready\": 1,\n \"
|
287
|
+
"output": "{\n \"Response\": {\n \"Ready\": 1,\n \"Total\": {\n \"RealTotalCost\": \"4.20000000\"\n },\n \"Data\": [\n {\n \"BusinessCode\": \"p_clb\",\n \"BusinessCodeName\": \"负载均衡CLB\",\n \"RealTotalCost\": \"4.20000000\",\n \"Trend\": {\n \"Type\": \"upward\",\n \"Value\": \"1.72\"\n },\n \"CashPayAmount\": \"4.20000000\",\n \"IncentivePayAmount\": \"0.00000000\",\n \"VoucherPayAmount\": \"0.00000000\",\n \"TransferPayAmount\": \"0.00000000\",\n \"RegionName\": \"其他\"\n }\n ],\n \"RecordNum\": 1,\n \"RequestId\": \"078ec9c607a2486099e06e04a99502db\"\n }\n}",
|
288
288
|
"title": "获取按产品汇总消耗详情"
|
289
289
|
}
|
290
290
|
],
|
@@ -292,7 +292,7 @@
|
|
292
292
|
{
|
293
293
|
"document": "获取按项目汇总消耗详情",
|
294
294
|
"input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCostSummaryByProject\n<公共请求参数>\n\n{\n \"NeedRecordNum\": \"1\",\n \"EndTime\": \"2018-11\",\n \"Limit\": \"1\",\n \"BeginTime\": \"2018-11\",\n \"Offset\": \"0\"\n}",
|
295
|
-
"output": "{\n \"Response\": {\n \"Ready\": 1,\n \"Total\": {\n \"RealTotalCost\": \"
|
295
|
+
"output": "{\n \"Response\": {\n \"Ready\": 1,\n \"Total\": {\n \"RealTotalCost\": \"4.20000000\"\n },\n \"Data\": [\n {\n \"ProjectId\": \"0\",\n \"ProjectName\": \"项目名称\",\n \"RealTotalCost\": \"4.20000000\",\n \"Trend\": {\n \"Type\": \"upward\",\n \"Value\": \"1.72\"\n },\n \"Business\": [\n {\n \"BusinessCode\": \"p_clb\",\n \"BusinessCodeName\": \"负载均衡CLB\",\n \"RealTotalCost\": \"4.20000000\",\n \"Trend\": {\n \"Type\": \"upward\",\n \"Value\": \"1.72\"\n },\n \"CashPayAmount\": \"0.00000000\",\n \"IncentivePayAmount\": \"0.00000000\",\n \"VoucherPayAmount\": \"0.00000000\",\n \"TransferPayAmount\": \"0.00000000\"\n }\n ],\n \"CashPayAmount\": \"0.00000000\",\n \"IncentivePayAmount\": \"0.00000000\",\n \"VoucherPayAmount\": \"0.00000000\",\n \"TransferPayAmount\": \"ab0.00000000c\"\n }\n ],\n \"RecordNum\": 1,\n \"RequestId\": \"078ec9c607a2486099e06e04a99502db\"\n }\n}",
|
296
296
|
"title": "获取按项目汇总消耗详情"
|
297
297
|
}
|
298
298
|
],
|
@@ -308,7 +308,7 @@
|
|
308
308
|
{
|
309
309
|
"document": "获取按资源汇总消耗详情",
|
310
310
|
"input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCostSummaryByResource\n<公共请求参数>\n\n{\n \"EndTime\": \"2018-11\",\n \"Limit\": \"1\",\n \"BeginTime\": \"2018-11\",\n \"Offset\": \"0\"\n}",
|
311
|
-
"output": "{\n \"Response\": {\n \"Ready\": 1,\n \"
|
311
|
+
"output": "{\n \"Response\": {\n \"Ready\": 1,\n \"RecordNum\": 4,\n \"ConditionValue\": {\n \"Business\": [\n {\n \"BusinessCode\": \"p_cdn\",\n \"BusinessCodeName\": \"内容分发网络 CDN\"\n }\n ],\n \"Project\": [\n {\n \"ProjectId\": \"0\",\n \"ProjectName\": \"默认项目\"\n }\n ],\n \"Region\": [\n {\n \"RegionId\": \"0\",\n \"RegionName\": \"其他\"\n }\n ],\n \"PayMode\": [\n {\n \"PayMode\": \"postPay\",\n \"PayModeName\": \"按量计费\"\n }\n ]\n },\n \"Total\": {\n \"RealTotalCost\": \"0.07\"\n },\n \"Data\": [\n {\n \"OwnerUin\": \"10002011014\",\n \"PayerUin\": \"10002011014\",\n \"OperateUin\": \"10002011014\",\n \"BusinessCode\": \"p_cdn\",\n \"BusinessCodeName\": \"内容分发网络 CDN\",\n \"ProductCode\": \"sp_cdn_ov\",\n \"ProductCodeName\": \"中国境外CDN\",\n \"ResourceId\": \"1300342678_1002522_102391_sv_cdn_ov_hour_flux_AS1_1\",\n \"ResourceName\": \"未命名\",\n \"RealTotalCost\": \"0.07\",\n \"RealCost\": \"0.08\",\n \"CashPayAmount\": \"0.06570339\",\n \"RegionId\": \"1001\",\n \"RegionName\": \"亚太地区(亚太一区)\",\n \"RegionType\": \"international\",\n \"RegionTypeName\": \"国际\",\n \"PayMode\": \"postPay\",\n \"PayModeName\": \"按量计费\",\n \"ProjectId\": \"0\",\n \"ProjectName\": \"默认项目\",\n \"FeeBeginTime\": \"2024-11-01 08:00:00\",\n \"FeeEndTime\": \"2024-11-17 19:59:59\",\n \"DayDiff\": \"17\",\n \"DailyTotalCost\": \"0.00386491\",\n \"ConsumptionTypeName\": \"按量计费小时结\",\n \"OrderId\": \"-\",\n \"VoucherPayAmount\": \"0.00000000\",\n \"IncentivePayAmount\": \"0.00000000\",\n \"TransferPayAmount\": \"0.00000000\",\n \"Extend1\": \"\",\n \"Extend2\": \"\",\n \"Extend3\": \"\",\n \"Extend4\": \"\",\n \"Extend5\": \"\",\n \"InstanceType\": \"-\",\n \"InstanceTypeName\": \"-\",\n \"PayTime\": \"-\",\n \"ZoneName\": \"其他\",\n \"ComponentConfig\": \"海外CDN-按小时结算-流量: 0.00000533 GB\",\n \"Tags\": \"\"\n }\n ],\n \"RequestId\": \"4a3ec37d-7628-4e22-b9ab-08e696bcc1f2\"\n }\n}",
|
312
312
|
"title": "获取按资源汇总消耗详情"
|
313
313
|
}
|
314
314
|
],
|
@@ -849,6 +849,58 @@ def doModifyClusterConfigs(args, parsed_globals):
|
|
849
849
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
850
|
|
851
851
|
|
852
|
+
def doScaleCNOutUpInstance(args, parsed_globals):
|
853
|
+
g_param = parse_global_arg(parsed_globals)
|
854
|
+
|
855
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
856
|
+
cred = credential.CVMRoleCredential()
|
857
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
858
|
+
cred = credential.STSAssumeRoleCredential(
|
859
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
860
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
861
|
+
)
|
862
|
+
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):
|
863
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
864
|
+
else:
|
865
|
+
cred = credential.Credential(
|
866
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
867
|
+
)
|
868
|
+
http_profile = HttpProfile(
|
869
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
870
|
+
reqMethod="POST",
|
871
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
872
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
873
|
+
)
|
874
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
875
|
+
if g_param[OptionsDefine.Language]:
|
876
|
+
profile.language = g_param[OptionsDefine.Language]
|
877
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
878
|
+
client = mod.CdwchClient(cred, g_param[OptionsDefine.Region], profile)
|
879
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
880
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
881
|
+
model = models.ScaleCNOutUpInstanceRequest()
|
882
|
+
model.from_json_string(json.dumps(args))
|
883
|
+
start_time = time.time()
|
884
|
+
while True:
|
885
|
+
rsp = client.ScaleCNOutUpInstance(model)
|
886
|
+
result = rsp.to_json_string()
|
887
|
+
try:
|
888
|
+
json_obj = json.loads(result)
|
889
|
+
except TypeError as e:
|
890
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
891
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
892
|
+
break
|
893
|
+
cur_time = time.time()
|
894
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
895
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
896
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
897
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
898
|
+
else:
|
899
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
900
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
901
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
|
+
|
903
|
+
|
852
904
|
def doDescribeInstanceShards(args, parsed_globals):
|
853
905
|
g_param = parse_global_arg(parsed_globals)
|
854
906
|
|
@@ -1448,6 +1500,7 @@ ACTION_MAP = {
|
|
1448
1500
|
"DescribeInstanceState": doDescribeInstanceState,
|
1449
1501
|
"DescribeClusterConfigs": doDescribeClusterConfigs,
|
1450
1502
|
"ModifyClusterConfigs": doModifyClusterConfigs,
|
1503
|
+
"ScaleCNOutUpInstance": doScaleCNOutUpInstance,
|
1451
1504
|
"DescribeInstanceShards": doDescribeInstanceShards,
|
1452
1505
|
"DescribeCkSqlApis": doDescribeCkSqlApis,
|
1453
1506
|
"DescribeSpec": doDescribeSpec,
|
@@ -175,6 +175,13 @@
|
|
175
175
|
"output": "ResizeDiskResponse",
|
176
176
|
"status": "online"
|
177
177
|
},
|
178
|
+
"ScaleCNOutUpInstance": {
|
179
|
+
"document": "open-api接口提供弹性伸缩云原生集群能力",
|
180
|
+
"input": "ScaleCNOutUpInstanceRequest",
|
181
|
+
"name": "通过接口弹性伸缩云原生集群(openapi)",
|
182
|
+
"output": "ScaleCNOutUpInstanceResponse",
|
183
|
+
"status": "online"
|
184
|
+
},
|
178
185
|
"ScaleOutInstance": {
|
179
186
|
"document": "调整clickhouse节点数量",
|
180
187
|
"input": "ScaleOutInstanceRequest",
|
@@ -3663,6 +3670,99 @@
|
|
3663
3670
|
],
|
3664
3671
|
"usage": "out"
|
3665
3672
|
},
|
3673
|
+
"ScaleCNOutUpInstanceRequest": {
|
3674
|
+
"document": "ScaleCNOutUpInstance请求参数结构体",
|
3675
|
+
"members": [
|
3676
|
+
{
|
3677
|
+
"disabled": false,
|
3678
|
+
"document": "实例唯一ID",
|
3679
|
+
"example": "clickhouse-cn-xxx",
|
3680
|
+
"member": "string",
|
3681
|
+
"name": "InstanceId",
|
3682
|
+
"required": true,
|
3683
|
+
"type": "string"
|
3684
|
+
},
|
3685
|
+
{
|
3686
|
+
"disabled": false,
|
3687
|
+
"document": "warehouse名称",
|
3688
|
+
"example": "xxxx",
|
3689
|
+
"member": "string",
|
3690
|
+
"name": "VirtualCluster",
|
3691
|
+
"required": true,
|
3692
|
+
"type": "string"
|
3693
|
+
},
|
3694
|
+
{
|
3695
|
+
"disabled": false,
|
3696
|
+
"document": "子网id",
|
3697
|
+
"example": "subnet-xxx",
|
3698
|
+
"member": "string",
|
3699
|
+
"name": "UserSubnetID",
|
3700
|
+
"required": true,
|
3701
|
+
"type": "string"
|
3702
|
+
},
|
3703
|
+
{
|
3704
|
+
"disabled": false,
|
3705
|
+
"document": "新的warehouse的个数",
|
3706
|
+
"example": "1",
|
3707
|
+
"member": "int64",
|
3708
|
+
"name": "NewCount",
|
3709
|
+
"required": true,
|
3710
|
+
"type": "int"
|
3711
|
+
},
|
3712
|
+
{
|
3713
|
+
"disabled": false,
|
3714
|
+
"document": "集群的规格2X-Small、X-Small、Small",
|
3715
|
+
"example": "2X-Small",
|
3716
|
+
"member": "string",
|
3717
|
+
"name": "NewSpecName",
|
3718
|
+
"required": true,
|
3719
|
+
"type": "string"
|
3720
|
+
}
|
3721
|
+
],
|
3722
|
+
"type": "object"
|
3723
|
+
},
|
3724
|
+
"ScaleCNOutUpInstanceResponse": {
|
3725
|
+
"document": "ScaleCNOutUpInstance返回参数结构体",
|
3726
|
+
"members": [
|
3727
|
+
{
|
3728
|
+
"disabled": false,
|
3729
|
+
"document": "流程ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
3730
|
+
"example": "123",
|
3731
|
+
"member": "string",
|
3732
|
+
"name": "FlowId",
|
3733
|
+
"output_required": true,
|
3734
|
+
"type": "string",
|
3735
|
+
"value_allowed_null": true
|
3736
|
+
},
|
3737
|
+
{
|
3738
|
+
"disabled": false,
|
3739
|
+
"document": "实例ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
3740
|
+
"example": "clickhouse-cn-xxx",
|
3741
|
+
"member": "string",
|
3742
|
+
"name": "InstanceId",
|
3743
|
+
"output_required": true,
|
3744
|
+
"type": "string",
|
3745
|
+
"value_allowed_null": true
|
3746
|
+
},
|
3747
|
+
{
|
3748
|
+
"disabled": false,
|
3749
|
+
"document": "错误信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
3750
|
+
"example": "xxx",
|
3751
|
+
"member": "string",
|
3752
|
+
"name": "ErrorMsg",
|
3753
|
+
"output_required": true,
|
3754
|
+
"type": "string",
|
3755
|
+
"value_allowed_null": true
|
3756
|
+
},
|
3757
|
+
{
|
3758
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3759
|
+
"member": "string",
|
3760
|
+
"name": "RequestId",
|
3761
|
+
"type": "string"
|
3762
|
+
}
|
3763
|
+
],
|
3764
|
+
"type": "object"
|
3765
|
+
},
|
3666
3766
|
"ScaleOutInstanceRequest": {
|
3667
3767
|
"document": "ScaleOutInstance请求参数结构体",
|
3668
3768
|
"members": [
|
@@ -200,6 +200,14 @@
|
|
200
200
|
"title": "示例"
|
201
201
|
}
|
202
202
|
],
|
203
|
+
"ScaleCNOutUpInstance": [
|
204
|
+
{
|
205
|
+
"document": "",
|
206
|
+
"input": "POST / HTTP/1.1\nHost: cdwch.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ScaleCNOutUpInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"clickhouse-cn-xxxxxx\",\n \"VirtualCluster\": \"warehouse3\",\n \"UserSubnetID\": \"subnet-xxxxxxx\",\n \"NewCount\": 2,\n \"NewSpecName\": \"2X-Small\"\n}",
|
207
|
+
"output": "{\n \"Response\": {\n \"InstanceId\": \"clickhouse-cn-xxxxxx\",\n \"FlowId\": \"\",\n \"RequestId\": \"01111\",\n \"ErrorMsg\": \"addddd\"\n }\n}",
|
208
|
+
"title": "示例"
|
209
|
+
}
|
210
|
+
],
|
203
211
|
"ScaleOutInstance": [
|
204
212
|
{
|
205
213
|
"document": "ck水平扩容实例",
|
@@ -13430,8 +13430,8 @@
|
|
13430
13430
|
"members": [
|
13431
13431
|
{
|
13432
13432
|
"disabled": false,
|
13433
|
-
"document": "
|
13434
|
-
"example": "ckafka-
|
13433
|
+
"document": "ckafka集群实例Id",
|
13434
|
+
"example": "ckafka-test",
|
13435
13435
|
"member": "string",
|
13436
13436
|
"name": "InstanceId",
|
13437
13437
|
"required": true,
|
@@ -13440,19 +13440,19 @@
|
|
13440
13440
|
{
|
13441
13441
|
"disabled": false,
|
13442
13442
|
"document": "预计磁盘,根据磁盘步长,规格向上调整。",
|
13443
|
-
"example": "
|
13443
|
+
"example": "800",
|
13444
13444
|
"member": "int64",
|
13445
13445
|
"name": "DiskSize",
|
13446
|
-
"required":
|
13446
|
+
"required": false,
|
13447
13447
|
"type": "int"
|
13448
13448
|
},
|
13449
13449
|
{
|
13450
13450
|
"disabled": false,
|
13451
13451
|
"document": "预计带宽,根据带宽步长,规格向上调整。",
|
13452
|
-
"example": "
|
13452
|
+
"example": "20",
|
13453
13453
|
"member": "int64",
|
13454
13454
|
"name": "BandWidth",
|
13455
|
-
"required":
|
13455
|
+
"required": false,
|
13456
13456
|
"type": "int"
|
13457
13457
|
},
|
13458
13458
|
{
|
@@ -13473,7 +13473,7 @@
|
|
13473
13473
|
{
|
13474
13474
|
"disabled": false,
|
13475
13475
|
"document": "变更预付费实例配置返回结构",
|
13476
|
-
"example": "
|
13476
|
+
"example": "{\"ReturnCode\":\"0\",\"ReturnMessage\":\"ok[apply success]\",\"Data\":{\"FlowId\":0,\"DealNames\":[\"20230608002033882210000\"],\"InstanceId\":\"ckafka-test\",\"DealNameInstanceIdMapping\":[{\"DealName\":\"20230608002033882210000\",\"InstanceIdList\":[\"ckafka-test\"]}]},\"DeleteRouteTimestamp\":\"1566144000\"}",
|
13477
13477
|
"member": "CreateInstancePreResp",
|
13478
13478
|
"name": "Result",
|
13479
13479
|
"output_required": true,
|
@@ -2469,60 +2469,60 @@
|
|
2469
2469
|
{
|
2470
2470
|
"disabled": false,
|
2471
2471
|
"document": "配置ID",
|
2472
|
-
"example": "",
|
2472
|
+
"example": "无",
|
2473
2473
|
"member": "string",
|
2474
2474
|
"name": "UconfigId",
|
2475
|
-
"
|
2475
|
+
"output_required": true,
|
2476
2476
|
"type": "string",
|
2477
2477
|
"value_allowed_null": false
|
2478
2478
|
},
|
2479
2479
|
{
|
2480
2480
|
"disabled": false,
|
2481
2481
|
"document": "配置类型",
|
2482
|
-
"example": "",
|
2482
|
+
"example": "无",
|
2483
2483
|
"member": "string",
|
2484
2484
|
"name": "ConfigType",
|
2485
|
-
"
|
2485
|
+
"output_required": true,
|
2486
2486
|
"type": "string",
|
2487
2487
|
"value_allowed_null": false
|
2488
2488
|
},
|
2489
2489
|
{
|
2490
2490
|
"disabled": false,
|
2491
2491
|
"document": "配置名字\n注意:此字段可能返回 null,表示取不到有效值。",
|
2492
|
-
"example": "",
|
2492
|
+
"example": "无",
|
2493
2493
|
"member": "string",
|
2494
2494
|
"name": "ConfigName",
|
2495
|
-
"
|
2495
|
+
"output_required": true,
|
2496
2496
|
"type": "string",
|
2497
2497
|
"value_allowed_null": true
|
2498
2498
|
},
|
2499
2499
|
{
|
2500
2500
|
"disabled": false,
|
2501
2501
|
"document": "配置内容",
|
2502
|
-
"example": "",
|
2502
|
+
"example": "无",
|
2503
2503
|
"member": "string",
|
2504
2504
|
"name": "ConfigContent",
|
2505
|
-
"
|
2505
|
+
"output_required": true,
|
2506
2506
|
"type": "string",
|
2507
2507
|
"value_allowed_null": false
|
2508
2508
|
},
|
2509
2509
|
{
|
2510
2510
|
"disabled": false,
|
2511
2511
|
"document": "增加配置时间",
|
2512
|
-
"example": "",
|
2512
|
+
"example": "无",
|
2513
2513
|
"member": "string",
|
2514
2514
|
"name": "CreateTimestamp",
|
2515
|
-
"
|
2515
|
+
"output_required": true,
|
2516
2516
|
"type": "string",
|
2517
2517
|
"value_allowed_null": false
|
2518
2518
|
},
|
2519
2519
|
{
|
2520
2520
|
"disabled": false,
|
2521
2521
|
"document": "修改配置时间",
|
2522
|
-
"example": "",
|
2522
|
+
"example": "无",
|
2523
2523
|
"member": "string",
|
2524
2524
|
"name": "UpdateTimestamp",
|
2525
|
-
"
|
2525
|
+
"output_required": true,
|
2526
2526
|
"type": "string",
|
2527
2527
|
"value_allowed_null": false
|
2528
2528
|
}
|
@@ -60422,7 +60422,7 @@
|
|
60422
60422
|
},
|
60423
60423
|
{
|
60424
60424
|
"disabled": false,
|
60425
|
-
"document": "漏洞标签
|
60425
|
+
"document": "漏洞标签 多个逗号分割\n\n存在EXP:EXP\n在野攻击:KNOWN_EXPLOITED\n本地利用:LOCAL\n必修漏洞:NEED_FIX\n远程利用:NETWORK\n存在POC:POC\n系统重启:RESTART",
|
60426
60426
|
"example": "标签1,标签2",
|
60427
60427
|
"member": "string",
|
60428
60428
|
"name": "Labels",
|
@@ -3424,6 +3424,16 @@
|
|
3424
3424
|
"output_required": false,
|
3425
3425
|
"type": "string",
|
3426
3426
|
"value_allowed_null": true
|
3427
|
+
},
|
3428
|
+
{
|
3429
|
+
"disabled": false,
|
3430
|
+
"document": "数据库类型",
|
3431
|
+
"example": "无",
|
3432
|
+
"member": "string",
|
3433
|
+
"name": "DbMode",
|
3434
|
+
"output_required": false,
|
3435
|
+
"type": "string",
|
3436
|
+
"value_allowed_null": false
|
3427
3437
|
}
|
3428
3438
|
],
|
3429
3439
|
"usage": "out"
|
@@ -5786,8 +5796,8 @@
|
|
5786
5796
|
},
|
5787
5797
|
{
|
5788
5798
|
"disabled": false,
|
5789
|
-
"document": "
|
5790
|
-
"example": "
|
5799
|
+
"document": "Db类型:<li>NORMAL</li><li>SERVERLESS</li>\n注意:此字段可能返回 null,表示取不到有效值。",
|
5800
|
+
"example": "NORMAL",
|
5791
5801
|
"member": "string",
|
5792
5802
|
"name": "DbMode",
|
5793
5803
|
"output_required": true,
|
@@ -156,7 +156,7 @@
|
|
156
156
|
{
|
157
157
|
"document": "查询实例最新的主日志",
|
158
158
|
"input": "https://es.tencentcloudapi.com/?Action=DescribeInstanceLogs\r\n&InstanceId=es-f5mwm28u\r\n&<公共请求参数>",
|
159
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 71633,\n \"InstanceLogList\": [\n {\n \"Time\": \"2019-01-22T10:45:36.220+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"2131414141414\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:
|
159
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 71633,\n \"InstanceLogList\": [\n {\n \"Time\": \"2019-01-22T10:45:36.220+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"2131414141414\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:cdcxxxabc, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.43, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n },\n {\n \"Time\": \"2019-01-22T10:45:35.730+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"2131414141414\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:1a8axxxabc, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.73, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n }\n ],\n \"RequestId\": \"783d9290-dc60-4862-9340-10b632605374\"\n }\n}",
|
160
160
|
"title": "查询ES集群日志"
|
161
161
|
}
|
162
162
|
],
|
@@ -188,7 +188,7 @@
|
|
188
188
|
{
|
189
189
|
"document": "",
|
190
190
|
"input": "https://es.tencentcloudapi.com/?Action=DescribeLogstashInstanceLogs\n&InstanceId=ls-f5mwm28u\n&<公共请求参数>",
|
191
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 71633,\n \"InstanceLogList\": [\n {\n \"Time\": \"2019-01-22T10:45:36.220+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"12123141441\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:
|
191
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 71633,\n \"InstanceLogList\": [\n {\n \"Time\": \"2019-01-22T10:45:36.220+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"12123141441\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:cdcxxxabc, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.43, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n },\n {\n \"Time\": \"2019-01-22T10:45:35.730+08:00\",\n \"NodeID\": \"12123141442\",\n \"Ip\": \"10.0.128.65\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:1a8axxxabc, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.73, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n }\n ],\n \"RequestId\": \"783d9290-dc60-4862-9340-10b632605374\"\n }\n}",
|
192
192
|
"title": "获取Logstash实例日志"
|
193
193
|
}
|
194
194
|
],
|