tccli 3.0.1308.1__py2.py3-none-any.whl → 3.0.1310.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/apm/v20210622/api.json +18 -0
- tccli/services/asr/v20190614/api.json +9 -0
- tccli/services/bh/v20230418/api.json +193 -2
- tccli/services/bh/v20230418/examples.json +2 -2
- tccli/services/cat/cat_client.py +53 -0
- tccli/services/cat/v20180409/api.json +80 -0
- tccli/services/cat/v20180409/examples.json +8 -0
- tccli/services/cdb/cdb_client.py +0 -53
- tccli/services/cdb/v20170320/api.json +0 -64
- tccli/services/cdb/v20170320/examples.json +0 -8
- tccli/services/cdwch/v20200915/examples.json +1 -1
- tccli/services/cfs/v20190719/api.json +9 -0
- tccli/services/cfw/v20190904/api.json +11 -1
- tccli/services/cfw/v20190904/examples.json +2 -2
- tccli/services/dsgc/v20190723/api.json +28 -18
- tccli/services/dsgc/v20190723/examples.json +1 -1
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +103 -4
- tccli/services/ess/v20201111/examples.json +14 -0
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +110 -2
- tccli/services/essbasic/v20210526/examples.json +14 -0
- tccli/services/gaap/gaap_client.py +12 -171
- tccli/services/gaap/v20180529/api.json +0 -325
- tccli/services/gaap/v20180529/examples.json +0 -24
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +162 -7
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/iai/v20180301/api.json +12 -12
- tccli/services/iai/v20180301/examples.json +8 -2
- tccli/services/iss/v20230517/examples.json +1 -1
- tccli/services/keewidb/v20220308/api.json +1 -1
- tccli/services/keewidb/v20220308/examples.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +2 -2
- tccli/services/mongodb/v20190725/api.json +1 -1
- tccli/services/partners/partners_client.py +57 -4
- tccli/services/partners/v20180321/api.json +151 -0
- tccli/services/partners/v20180321/examples.json +14 -0
- tccli/services/postgres/v20170312/api.json +7 -7
- tccli/services/redis/v20180412/api.json +12 -12
- tccli/services/redis/v20180412/examples.json +4 -4
- tccli/services/tcbr/v20220217/api.json +94 -0
- tccli/services/tdmq/v20200217/api.json +4 -4
- tccli/services/teo/v20220901/api.json +9 -9
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/thpc/v20230321/api.json +2 -2
- tccli/services/tmt/v20180321/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +11 -11
- tccli/services/vpc/v20170312/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +183 -29
- tccli/services/waf/v20180125/examples.json +7 -1
- tccli/services/wedata/v20210820/api.json +1519 -0
- tccli/services/wedata/v20210820/examples.json +65 -1
- tccli/services/wedata/wedata_client.py +424 -0
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/RECORD +60 -60
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1310.1'
|
@@ -2318,6 +2318,24 @@
|
|
2318
2318
|
"name": "IsMemoryHijackingAnalysis",
|
2319
2319
|
"required": false,
|
2320
2320
|
"type": "int"
|
2321
|
+
},
|
2322
|
+
{
|
2323
|
+
"disabled": false,
|
2324
|
+
"document": "0=全文索引,1=键值索引",
|
2325
|
+
"example": "0",
|
2326
|
+
"member": "int64",
|
2327
|
+
"name": "LogIndexType",
|
2328
|
+
"required": false,
|
2329
|
+
"type": "int"
|
2330
|
+
},
|
2331
|
+
{
|
2332
|
+
"disabled": false,
|
2333
|
+
"document": "traceId的索引key",
|
2334
|
+
"example": "trace_id",
|
2335
|
+
"member": "string",
|
2336
|
+
"name": "LogTraceIdKey",
|
2337
|
+
"required": false,
|
2338
|
+
"type": "string"
|
2321
2339
|
}
|
2322
2340
|
],
|
2323
2341
|
"type": "object"
|
@@ -811,6 +811,15 @@
|
|
811
811
|
"name": "KeyWordLibIdList",
|
812
812
|
"required": false,
|
813
813
|
"type": "list"
|
814
|
+
},
|
815
|
+
{
|
816
|
+
"disabled": false,
|
817
|
+
"document": "替换词汇表id, 适用于热词和自学习场景也无法解决的极端case词组, 会对识别结果强制替换。具体可参考[配置控制台](https://console.cloud.tencent.com/asr/replaceword);强制替换功能可能会影响正常识别结果,请谨慎使用",
|
818
|
+
"example": "26910027******d9fa530f9f39dcd35d8",
|
819
|
+
"member": "string",
|
820
|
+
"name": "ReplaceTextId",
|
821
|
+
"required": false,
|
822
|
+
"type": "string"
|
814
823
|
}
|
815
824
|
],
|
816
825
|
"type": "object"
|
@@ -3504,6 +3504,51 @@
|
|
3504
3504
|
"name": "CdcClusterId",
|
3505
3505
|
"required": false,
|
3506
3506
|
"type": "string"
|
3507
|
+
},
|
3508
|
+
{
|
3509
|
+
"disabled": false,
|
3510
|
+
"document": "开通堡垒机指定共享的clbId",
|
3511
|
+
"example": "lb-xefesef",
|
3512
|
+
"member": "string",
|
3513
|
+
"name": "ShareClbId",
|
3514
|
+
"required": false,
|
3515
|
+
"type": "string"
|
3516
|
+
},
|
3517
|
+
{
|
3518
|
+
"disabled": false,
|
3519
|
+
"document": "0-关闭web访问堡垒机,1-开启web访问堡垒机",
|
3520
|
+
"example": "1",
|
3521
|
+
"member": "uint64",
|
3522
|
+
"name": "WebAccess",
|
3523
|
+
"required": false,
|
3524
|
+
"type": "int"
|
3525
|
+
},
|
3526
|
+
{
|
3527
|
+
"disabled": false,
|
3528
|
+
"document": "0-关闭客户端访问堡垒机,1-开启客户端访问堡垒机",
|
3529
|
+
"example": "1",
|
3530
|
+
"member": "uint64",
|
3531
|
+
"name": "ClientAccess",
|
3532
|
+
"required": false,
|
3533
|
+
"type": "int"
|
3534
|
+
},
|
3535
|
+
{
|
3536
|
+
"disabled": false,
|
3537
|
+
"document": "0-关闭内网访问堡垒机,1-开启内网访问堡垒机",
|
3538
|
+
"example": "0",
|
3539
|
+
"member": "uint64",
|
3540
|
+
"name": "IntranetAccess",
|
3541
|
+
"required": false,
|
3542
|
+
"type": "int"
|
3543
|
+
},
|
3544
|
+
{
|
3545
|
+
"disabled": false,
|
3546
|
+
"document": "0-关闭公网访问堡垒机,1-开启公网访问堡垒机",
|
3547
|
+
"example": "1",
|
3548
|
+
"member": "uint64",
|
3549
|
+
"name": "ExternalAccess",
|
3550
|
+
"required": false,
|
3551
|
+
"type": "int"
|
3507
3552
|
}
|
3508
3553
|
],
|
3509
3554
|
"type": "object"
|
@@ -4101,6 +4146,16 @@
|
|
4101
4146
|
"type": "int",
|
4102
4147
|
"value_allowed_null": false
|
4103
4148
|
},
|
4149
|
+
{
|
4150
|
+
"disabled": false,
|
4151
|
+
"document": "账号信息列表",
|
4152
|
+
"example": "[{ \"BoundPrivateKey\": true, \"Account\": \"root\", \"Id\": 1, \"BoundPassword\": true, \"DeviceId\": 1 } ]",
|
4153
|
+
"member": "DeviceAccount",
|
4154
|
+
"name": "DeviceAccountSet",
|
4155
|
+
"output_required": true,
|
4156
|
+
"type": "list",
|
4157
|
+
"value_allowed_null": false
|
4158
|
+
},
|
4104
4159
|
{
|
4105
4160
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4106
4161
|
"member": "string",
|
@@ -5472,6 +5527,62 @@
|
|
5472
5527
|
],
|
5473
5528
|
"usage": "out"
|
5474
5529
|
},
|
5530
|
+
"DeviceAccount": {
|
5531
|
+
"document": "主机账号",
|
5532
|
+
"members": [
|
5533
|
+
{
|
5534
|
+
"disabled": false,
|
5535
|
+
"document": "账号ID",
|
5536
|
+
"example": "1",
|
5537
|
+
"member": "uint64",
|
5538
|
+
"name": "Id",
|
5539
|
+
"output_required": true,
|
5540
|
+
"type": "int",
|
5541
|
+
"value_allowed_null": false
|
5542
|
+
},
|
5543
|
+
{
|
5544
|
+
"disabled": false,
|
5545
|
+
"document": "主机ID",
|
5546
|
+
"example": "1",
|
5547
|
+
"member": "uint64",
|
5548
|
+
"name": "DeviceId",
|
5549
|
+
"output_required": true,
|
5550
|
+
"type": "int",
|
5551
|
+
"value_allowed_null": false
|
5552
|
+
},
|
5553
|
+
{
|
5554
|
+
"disabled": false,
|
5555
|
+
"document": "账号名",
|
5556
|
+
"example": "admin",
|
5557
|
+
"member": "string",
|
5558
|
+
"name": "Account",
|
5559
|
+
"output_required": true,
|
5560
|
+
"type": "string",
|
5561
|
+
"value_allowed_null": false
|
5562
|
+
},
|
5563
|
+
{
|
5564
|
+
"disabled": false,
|
5565
|
+
"document": "true-已托管密码,false-未托管密码",
|
5566
|
+
"example": "true",
|
5567
|
+
"member": "bool",
|
5568
|
+
"name": "BoundPassword",
|
5569
|
+
"output_required": true,
|
5570
|
+
"type": "bool",
|
5571
|
+
"value_allowed_null": false
|
5572
|
+
},
|
5573
|
+
{
|
5574
|
+
"disabled": false,
|
5575
|
+
"document": "true-已托管私钥,false-未托管私钥",
|
5576
|
+
"example": "true",
|
5577
|
+
"member": "bool",
|
5578
|
+
"name": "BoundPrivateKey",
|
5579
|
+
"output_required": true,
|
5580
|
+
"type": "bool",
|
5581
|
+
"value_allowed_null": false
|
5582
|
+
}
|
5583
|
+
],
|
5584
|
+
"usage": "out"
|
5585
|
+
},
|
5475
5586
|
"Domain": {
|
5476
5587
|
"document": "网络域",
|
5477
5588
|
"members": [
|
@@ -6709,8 +6820,8 @@
|
|
6709
6820
|
"type": "string"
|
6710
6821
|
},
|
6711
6822
|
{
|
6712
|
-
"disabled":
|
6713
|
-
"document": "
|
6823
|
+
"disabled": true,
|
6824
|
+
"document": "状态",
|
6714
6825
|
"example": "0",
|
6715
6826
|
"member": "string",
|
6716
6827
|
"name": "Status",
|
@@ -7604,6 +7715,86 @@
|
|
7604
7715
|
"output_required": false,
|
7605
7716
|
"type": "string",
|
7606
7717
|
"value_allowed_null": false
|
7718
|
+
},
|
7719
|
+
{
|
7720
|
+
"disabled": false,
|
7721
|
+
"document": "是否共享clb,true-共享clb,false-独享clb",
|
7722
|
+
"example": "false",
|
7723
|
+
"member": "bool",
|
7724
|
+
"name": "ShareClb",
|
7725
|
+
"output_required": false,
|
7726
|
+
"type": "bool",
|
7727
|
+
"value_allowed_null": false
|
7728
|
+
},
|
7729
|
+
{
|
7730
|
+
"disabled": false,
|
7731
|
+
"document": "共享clb id",
|
7732
|
+
"example": "lb-5fa81478",
|
7733
|
+
"member": "string",
|
7734
|
+
"name": "OpenClbId",
|
7735
|
+
"output_required": false,
|
7736
|
+
"type": "string",
|
7737
|
+
"value_allowed_null": false
|
7738
|
+
},
|
7739
|
+
{
|
7740
|
+
"disabled": false,
|
7741
|
+
"document": "运营商信息",
|
7742
|
+
"example": "CMCC/CTCC/CUCC",
|
7743
|
+
"member": "string",
|
7744
|
+
"name": "LbVipIsp",
|
7745
|
+
"output_required": false,
|
7746
|
+
"type": "string",
|
7747
|
+
"value_allowed_null": false
|
7748
|
+
},
|
7749
|
+
{
|
7750
|
+
"disabled": false,
|
7751
|
+
"document": "linux资产命令行运维端口",
|
7752
|
+
"example": "10001",
|
7753
|
+
"member": "int64",
|
7754
|
+
"name": "TUICmdPort",
|
7755
|
+
"output_required": false,
|
7756
|
+
"type": "int",
|
7757
|
+
"value_allowed_null": false
|
7758
|
+
},
|
7759
|
+
{
|
7760
|
+
"disabled": false,
|
7761
|
+
"document": "linux资产直连端口",
|
7762
|
+
"example": "10002",
|
7763
|
+
"member": "int64",
|
7764
|
+
"name": "TUIDirectPort",
|
7765
|
+
"output_required": false,
|
7766
|
+
"type": "int",
|
7767
|
+
"value_allowed_null": false
|
7768
|
+
},
|
7769
|
+
{
|
7770
|
+
"disabled": false,
|
7771
|
+
"document": "1 默认值,web访问开启,0 web访问关闭,2 web访问开通中,3 web访问关闭中",
|
7772
|
+
"example": "1",
|
7773
|
+
"member": "uint64",
|
7774
|
+
"name": "WebAccess",
|
7775
|
+
"output_required": false,
|
7776
|
+
"type": "int",
|
7777
|
+
"value_allowed_null": false
|
7778
|
+
},
|
7779
|
+
{
|
7780
|
+
"disabled": false,
|
7781
|
+
"document": "1 默认值,客户单访问开启,0 客户端访问关闭,2 客户端访问开通中,3 客户端访问关闭中",
|
7782
|
+
"example": "1",
|
7783
|
+
"member": "uint64",
|
7784
|
+
"name": "ClientAccess",
|
7785
|
+
"output_required": false,
|
7786
|
+
"type": "int",
|
7787
|
+
"value_allowed_null": false
|
7788
|
+
},
|
7789
|
+
{
|
7790
|
+
"disabled": false,
|
7791
|
+
"document": "1 默认值,外网访问开启,0 外网访问关闭,2 外网访问开通中,3 外网访问关闭中",
|
7792
|
+
"example": "1",
|
7793
|
+
"member": "uint64",
|
7794
|
+
"name": "ExternalAccess",
|
7795
|
+
"output_required": false,
|
7796
|
+
"type": "int",
|
7797
|
+
"value_allowed_null": false
|
7607
7798
|
}
|
7608
7799
|
],
|
7609
7800
|
"usage": "out"
|
@@ -309,8 +309,8 @@
|
|
309
309
|
"DescribeDeviceAccounts": [
|
310
310
|
{
|
311
311
|
"document": "查询主机账号列表",
|
312
|
-
"input": "POST / HTTP/1.1\nHost: bh.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDeviceAccounts\n<公共请求参数>\n\n{\n \"DeviceId\": 1,\n \"Account\": \"
|
313
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"c7c79e35-65b9-4c2a-beea-a038fdf8c082\"\n }\n}",
|
312
|
+
"input": "POST / HTTP/1.1\nHost: bh.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDeviceAccounts\n<公共请求参数>\n\n{\n \"DeviceId\": 1,\n \"Account\": \"root\"\n}",
|
313
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"c7c79e35-65b9-4c2a-beea-a038fdf8c082\",\n \"DeviceAccountSet\": [\n {\n \"BoundPrivateKey\": true,\n \"Account\": \"root\",\n \"Id\": 1,\n \"BoundPassword\": true,\n \"DeviceId\": 1\n }\n ]\n }\n}",
|
314
314
|
"title": "查询主机账号列表"
|
315
315
|
}
|
316
316
|
],
|
tccli/services/cat/cat_client.py
CHANGED
@@ -225,6 +225,58 @@ def doUpdateProbeTaskAttributes(args, parsed_globals):
|
|
225
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
226
|
|
227
227
|
|
228
|
+
def doDescribeProbeMetricTagValues(args, parsed_globals):
|
229
|
+
g_param = parse_global_arg(parsed_globals)
|
230
|
+
|
231
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
232
|
+
cred = credential.CVMRoleCredential()
|
233
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
234
|
+
cred = credential.STSAssumeRoleCredential(
|
235
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
236
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
237
|
+
)
|
238
|
+
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):
|
239
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
240
|
+
else:
|
241
|
+
cred = credential.Credential(
|
242
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
243
|
+
)
|
244
|
+
http_profile = HttpProfile(
|
245
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
246
|
+
reqMethod="POST",
|
247
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
248
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
249
|
+
)
|
250
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
251
|
+
if g_param[OptionsDefine.Language]:
|
252
|
+
profile.language = g_param[OptionsDefine.Language]
|
253
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
254
|
+
client = mod.CatClient(cred, g_param[OptionsDefine.Region], profile)
|
255
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
256
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
+
model = models.DescribeProbeMetricTagValuesRequest()
|
258
|
+
model.from_json_string(json.dumps(args))
|
259
|
+
start_time = time.time()
|
260
|
+
while True:
|
261
|
+
rsp = client.DescribeProbeMetricTagValues(model)
|
262
|
+
result = rsp.to_json_string()
|
263
|
+
try:
|
264
|
+
json_obj = json.loads(result)
|
265
|
+
except TypeError as e:
|
266
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
267
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
268
|
+
break
|
269
|
+
cur_time = time.time()
|
270
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
271
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
272
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
273
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
274
|
+
else:
|
275
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
276
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
277
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
|
+
|
279
|
+
|
228
280
|
def doDescribeNodes(args, parsed_globals):
|
229
281
|
g_param = parse_global_arg(parsed_globals)
|
230
282
|
|
@@ -708,6 +760,7 @@ ACTION_MAP = {
|
|
708
760
|
"DescribeProbeMetricData": doDescribeProbeMetricData,
|
709
761
|
"DescribeProbeTasks": doDescribeProbeTasks,
|
710
762
|
"UpdateProbeTaskAttributes": doUpdateProbeTaskAttributes,
|
763
|
+
"DescribeProbeMetricTagValues": doDescribeProbeMetricTagValues,
|
711
764
|
"DescribeNodes": doDescribeNodes,
|
712
765
|
"CreateProbeTasks": doCreateProbeTasks,
|
713
766
|
"DescribeProbeNodes": doDescribeProbeNodes,
|
@@ -49,6 +49,13 @@
|
|
49
49
|
"output": "DescribeProbeMetricDataResponse",
|
50
50
|
"status": "online"
|
51
51
|
},
|
52
|
+
"DescribeProbeMetricTagValues": {
|
53
|
+
"document": "查询同个任务类型下的维度标签值,包括查询用户任务信息,具体任务下的多个维度标签信息。(通过为DescribeProbeMetricData接口的Filters参数添加维度筛选条件,可实现多维数据分析)",
|
54
|
+
"input": "DescribeProbeMetricTagValuesRequest",
|
55
|
+
"name": "查询云拨测维度标签值",
|
56
|
+
"output": "DescribeProbeMetricTagValuesResponse",
|
57
|
+
"status": "online"
|
58
|
+
},
|
52
59
|
"DescribeProbeNodes": {
|
53
60
|
"document": "查询拨测节点",
|
54
61
|
"input": "DescribeProbeNodesRequest",
|
@@ -842,6 +849,79 @@
|
|
842
849
|
],
|
843
850
|
"type": "object"
|
844
851
|
},
|
852
|
+
"DescribeProbeMetricTagValuesRequest": {
|
853
|
+
"document": "DescribeProbeMetricTagValues请求参数结构体",
|
854
|
+
"members": [
|
855
|
+
{
|
856
|
+
"disabled": false,
|
857
|
+
"document": "分析任务类型,支持以下几种类型:\nAnalyzeTaskType_Network:网络质量\nAnalyzeTaskType_Browse:页面性能 \nAnalyzeTaskType_Transport:端口性能\nAnalyzeTaskType_UploadDownload:文件传输\nAnalyzeTaskType_MediaStream:音视频体验\n",
|
858
|
+
"example": "AnalyzeTaskType_UploadDownload",
|
859
|
+
"member": "string",
|
860
|
+
"name": "AnalyzeTaskType",
|
861
|
+
"required": false,
|
862
|
+
"type": "string"
|
863
|
+
},
|
864
|
+
{
|
865
|
+
"disabled": false,
|
866
|
+
"document": "维度标签值,参考:\nhost:任务域名\nerrorInfo:状态类型\narea:拨测点地区\noperator:拨测点运营商\ntaskId:任务ID",
|
867
|
+
"example": "host",
|
868
|
+
"member": "string",
|
869
|
+
"name": "Key",
|
870
|
+
"required": false,
|
871
|
+
"type": "string"
|
872
|
+
},
|
873
|
+
{
|
874
|
+
"disabled": false,
|
875
|
+
"document": "过滤条件,可以传单个过滤条件也可以拼接多个参数,支持正则匹配",
|
876
|
+
"example": "host = 'www.qq.com' and taskId =~ /^(task-probe123)$/",
|
877
|
+
"member": "string",
|
878
|
+
"name": "Filter",
|
879
|
+
"required": false,
|
880
|
+
"type": "string"
|
881
|
+
},
|
882
|
+
{
|
883
|
+
"disabled": false,
|
884
|
+
"document": "过滤条件数组",
|
885
|
+
"example": "[\"\"]",
|
886
|
+
"member": "string",
|
887
|
+
"name": "Filters",
|
888
|
+
"required": false,
|
889
|
+
"type": "list"
|
890
|
+
},
|
891
|
+
{
|
892
|
+
"disabled": false,
|
893
|
+
"document": "时间范围",
|
894
|
+
"example": "time >= now()-1h",
|
895
|
+
"member": "string",
|
896
|
+
"name": "TimeRange",
|
897
|
+
"required": false,
|
898
|
+
"type": "string"
|
899
|
+
}
|
900
|
+
],
|
901
|
+
"type": "object"
|
902
|
+
},
|
903
|
+
"DescribeProbeMetricTagValuesResponse": {
|
904
|
+
"document": "DescribeProbeMetricTagValues返回参数结构体",
|
905
|
+
"members": [
|
906
|
+
{
|
907
|
+
"disabled": false,
|
908
|
+
"document": "标签值序列化后的字符串",
|
909
|
+
"example": "无",
|
910
|
+
"member": "string",
|
911
|
+
"name": "TagValueSet",
|
912
|
+
"output_required": true,
|
913
|
+
"type": "string",
|
914
|
+
"value_allowed_null": false
|
915
|
+
},
|
916
|
+
{
|
917
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
918
|
+
"member": "string",
|
919
|
+
"name": "RequestId",
|
920
|
+
"type": "string"
|
921
|
+
}
|
922
|
+
],
|
923
|
+
"type": "object"
|
924
|
+
},
|
845
925
|
"DescribeProbeNodesRequest": {
|
846
926
|
"document": "DescribeProbeNodes请求参数结构体",
|
847
927
|
"members": [
|
@@ -74,6 +74,14 @@
|
|
74
74
|
"title": "请求浏览数据"
|
75
75
|
}
|
76
76
|
],
|
77
|
+
"DescribeProbeMetricTagValues": [
|
78
|
+
{
|
79
|
+
"document": "请求域名数据\n",
|
80
|
+
"input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProbeMetricTagValues\n<公共请求参数>\n\n{\n \"AnalyzeTaskType\": \"AnalyzeTaskType_Network\",\n \"Key\": \"area\",\n \"Filter\": \"host = 'baidu.com'\",\n \"TimeRange\": \"now()-30d\"\n}",
|
81
|
+
"output": "{\n \"Response\": {\n \"TagValueSet\": \"{\\\"name\\\":\\\"netenv_request_gauge\\\",\\\"columns\\\":[\\\"key\\\",\\\"value\\\"],\\\"values\\\":[[\\\"area\\\",\\\"上海\\\"]],\\\"tags\\\":null}\",\n \"RequestId\": \"asd\"\n }\n}",
|
82
|
+
"title": "请求域名数据"
|
83
|
+
}
|
84
|
+
],
|
77
85
|
"DescribeProbeNodes": [
|
78
86
|
{
|
79
87
|
"document": "查询拨测节点\n",
|
tccli/services/cdb/cdb_client.py
CHANGED
@@ -6517,58 +6517,6 @@ def doRestartDBInstances(args, parsed_globals):
|
|
6517
6517
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6518
6518
|
|
6519
6519
|
|
6520
|
-
def doDescribeCpuExpandStrategy(args, parsed_globals):
|
6521
|
-
g_param = parse_global_arg(parsed_globals)
|
6522
|
-
|
6523
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6524
|
-
cred = credential.CVMRoleCredential()
|
6525
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6526
|
-
cred = credential.STSAssumeRoleCredential(
|
6527
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6528
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6529
|
-
)
|
6530
|
-
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):
|
6531
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6532
|
-
else:
|
6533
|
-
cred = credential.Credential(
|
6534
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6535
|
-
)
|
6536
|
-
http_profile = HttpProfile(
|
6537
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6538
|
-
reqMethod="POST",
|
6539
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
6540
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6541
|
-
)
|
6542
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6543
|
-
if g_param[OptionsDefine.Language]:
|
6544
|
-
profile.language = g_param[OptionsDefine.Language]
|
6545
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6546
|
-
client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
|
6547
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
6548
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6549
|
-
model = models.DescribeCpuExpandStrategyRequest()
|
6550
|
-
model.from_json_string(json.dumps(args))
|
6551
|
-
start_time = time.time()
|
6552
|
-
while True:
|
6553
|
-
rsp = client.DescribeCpuExpandStrategy(model)
|
6554
|
-
result = rsp.to_json_string()
|
6555
|
-
try:
|
6556
|
-
json_obj = json.loads(result)
|
6557
|
-
except TypeError as e:
|
6558
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6559
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6560
|
-
break
|
6561
|
-
cur_time = time.time()
|
6562
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6563
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6564
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6565
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6566
|
-
else:
|
6567
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6568
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6569
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6570
|
-
|
6571
|
-
|
6572
6520
|
def doReloadBalanceProxyNode(args, parsed_globals):
|
6573
6521
|
g_param = parse_global_arg(parsed_globals)
|
6574
6522
|
|
@@ -9149,7 +9097,6 @@ ACTION_MAP = {
|
|
9149
9097
|
"CreateRotationPassword": doCreateRotationPassword,
|
9150
9098
|
"CreateDBImportJob": doCreateDBImportJob,
|
9151
9099
|
"RestartDBInstances": doRestartDBInstances,
|
9152
|
-
"DescribeCpuExpandStrategy": doDescribeCpuExpandStrategy,
|
9153
9100
|
"ReloadBalanceProxyNode": doReloadBalanceProxyNode,
|
9154
9101
|
"ModifyRoGroupInfo": doModifyRoGroupInfo,
|
9155
9102
|
"DescribeBackupDownloadRestriction": doDescribeBackupDownloadRestriction,
|
@@ -455,13 +455,6 @@
|
|
455
455
|
"output": "DescribeClusterInfoResponse",
|
456
456
|
"status": "online"
|
457
457
|
},
|
458
|
-
"DescribeCpuExpandStrategy": {
|
459
|
-
"document": "DescribeCpuExpandStrategy\n\n通过该 API 可以查询实例的 CPU 弹性扩容策略",
|
460
|
-
"input": "DescribeCpuExpandStrategyRequest",
|
461
|
-
"name": "查询实例的 CPU 弹性扩容策略",
|
462
|
-
"output": "DescribeCpuExpandStrategyResponse",
|
463
|
-
"status": "deprecated"
|
464
|
-
},
|
465
458
|
"DescribeDBFeatures": {
|
466
459
|
"document": "本接口(DescribeDBFeatures)用于查询云数据库版本属性,包括是否支持数据库加密、数据库审计等功能。",
|
467
460
|
"input": "DescribeDBFeaturesRequest",
|
@@ -9523,63 +9516,6 @@
|
|
9523
9516
|
],
|
9524
9517
|
"type": "object"
|
9525
9518
|
},
|
9526
|
-
"DescribeCpuExpandStrategyRequest": {
|
9527
|
-
"document": "DescribeCpuExpandStrategy请求参数结构体",
|
9528
|
-
"members": [
|
9529
|
-
{
|
9530
|
-
"disabled": false,
|
9531
|
-
"document": "实例 ID 。",
|
9532
|
-
"example": "cdb-xxdasd",
|
9533
|
-
"member": "string",
|
9534
|
-
"name": "InstanceId",
|
9535
|
-
"required": true,
|
9536
|
-
"type": "string"
|
9537
|
-
}
|
9538
|
-
],
|
9539
|
-
"type": "object"
|
9540
|
-
},
|
9541
|
-
"DescribeCpuExpandStrategyResponse": {
|
9542
|
-
"document": "DescribeCpuExpandStrategy返回参数结构体",
|
9543
|
-
"members": [
|
9544
|
-
{
|
9545
|
-
"disabled": false,
|
9546
|
-
"document": "策略类型。可选值 auto、manual。",
|
9547
|
-
"example": "auto",
|
9548
|
-
"member": "string",
|
9549
|
-
"name": "Type",
|
9550
|
-
"output_required": true,
|
9551
|
-
"type": "string",
|
9552
|
-
"value_allowed_null": false
|
9553
|
-
},
|
9554
|
-
{
|
9555
|
-
"disabled": false,
|
9556
|
-
"document": "手动扩容的 CPU 。Type为 manual 时有效。",
|
9557
|
-
"example": "4",
|
9558
|
-
"member": "string",
|
9559
|
-
"name": "ExpandCpu",
|
9560
|
-
"output_required": true,
|
9561
|
-
"type": "string",
|
9562
|
-
"value_allowed_null": false
|
9563
|
-
},
|
9564
|
-
{
|
9565
|
-
"disabled": true,
|
9566
|
-
"document": "自动扩容策略。Type 为 auto 时有效",
|
9567
|
-
"example": "略",
|
9568
|
-
"member": "string",
|
9569
|
-
"name": "AutoStrategy",
|
9570
|
-
"output_required": true,
|
9571
|
-
"type": "string",
|
9572
|
-
"value_allowed_null": false
|
9573
|
-
},
|
9574
|
-
{
|
9575
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
9576
|
-
"member": "string",
|
9577
|
-
"name": "RequestId",
|
9578
|
-
"type": "string"
|
9579
|
-
}
|
9580
|
-
],
|
9581
|
-
"type": "object"
|
9582
|
-
},
|
9583
9519
|
"DescribeDBFeaturesRequest": {
|
9584
9520
|
"document": "DescribeDBFeatures请求参数结构体",
|
9585
9521
|
"members": [
|
@@ -556,14 +556,6 @@
|
|
556
556
|
"title": "查询云盘版实例信息"
|
557
557
|
}
|
558
558
|
],
|
559
|
-
"DescribeCpuExpandStrategy": [
|
560
|
-
{
|
561
|
-
"document": "用于查询实例的弹性扩容配置。",
|
562
|
-
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCpuExpandStrategy\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-sad1dsfa\"\n}",
|
563
|
-
"output": "{\n \"Response\": {\n \"Type\": \"auto\",\n \"ExpandCpu\": \"4\",\n \"AutoStrategy\": \"auto\",\n \"RequestId\": \"dasdqw13-dasdhd3-123v-1234-v432\"\n }\n}",
|
564
|
-
"title": "查询实例的弹性扩容配置"
|
565
|
-
}
|
566
|
-
],
|
567
559
|
"DescribeDBFeatures": [
|
568
560
|
{
|
569
561
|
"document": "查询实例特性,诸如内核小版本、是否开启审计等。",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"CreateInstanceNew": [
|
20
20
|
{
|
21
21
|
"document": "创建集群API",
|
22
|
-
"input": "POST / HTTP/1.1\nHost: cdwch.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateInstanceNew\n<公共请求参数>\n\n{\n \"InstanceName\": \"xzq-test-按量-hazk2节点\",\n \"MountDiskType\": 0,\n \"HAZk\": true,\n \"Zone\": \"ap-beijing-2\",\n \"DataSpec\": {\n \"SpecName\": \"
|
22
|
+
"input": "POST / HTTP/1.1\nHost: cdwch.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateInstanceNew\n<公共请求参数>\n\n{\n \"InstanceName\": \"xzq-test-按量-hazk2节点\",\n \"MountDiskType\": 0,\n \"HAZk\": true,\n \"Zone\": \"ap-beijing-2\",\n \"DataSpec\": {\n \"SpecName\": \"S_16_64_H\",\n \"Count\": 2,\n \"DiskSize\": 200\n },\n \"CommonSpec\": {\n \"SpecName\": \"S_4_16_H\",\n \"Count\": 3,\n \"DiskSize\": 100\n },\n \"HaFlag\": false,\n \"UserVPCId\": \"vpc-8visjoh9\",\n \"UserSubnetId\": \"subnet-03ij1dki\",\n \"ProductVersion\": \"23.8.9.1\",\n \"ChargeProperties\": {\n \"ChargeType\": \"POSTPAID_BY_HOUR\"\n }\n}",
|
23
23
|
"output": "{\n \"Response\": {\n \"InstanceId\": \"cdwch-aijqera\",\n \"FlowId\": \"1231\",\n \"RequestId\": \"lweinasd-28kamasd-xasdas\",\n \"ErrorMsg\": \"\"\n }\n}",
|
24
24
|
"title": "test"
|
25
25
|
}
|
@@ -1037,6 +1037,15 @@
|
|
1037
1037
|
"name": "EnableAutoScaleUp",
|
1038
1038
|
"required": false,
|
1039
1039
|
"type": "bool"
|
1040
|
+
},
|
1041
|
+
{
|
1042
|
+
"disabled": false,
|
1043
|
+
"document": "v1.5:创建普通版的通用文件系统;\nv3.1:创建增强版的通用文件系统\n说明:增强版的通用系统需要开通白名单才能使用,如有需要请提交工单与我们联系。",
|
1044
|
+
"example": "v1.5",
|
1045
|
+
"member": "string",
|
1046
|
+
"name": "CfsVersion",
|
1047
|
+
"required": false,
|
1048
|
+
"type": "string"
|
1040
1049
|
}
|
1041
1050
|
],
|
1042
1051
|
"type": "object"
|