tccli 3.0.1187.1__py2.py3-none-any.whl → 3.0.1189.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/aiart/aiart_client.py +53 -0
- tccli/services/aiart/v20221229/api.json +107 -0
- tccli/services/aiart/v20221229/examples.json +8 -0
- tccli/services/apm/v20210622/api.json +3 -1
- tccli/services/billing/v20180709/api.json +3 -0
- tccli/services/billing/v20180709/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +19 -4
- tccli/services/ckafka/v20190819/api.json +5 -5
- tccli/services/cvm/cvm_client.py +53 -0
- tccli/services/cvm/v20170312/api.json +107 -0
- tccli/services/cvm/v20170312/examples.json +8 -0
- tccli/services/dc/v20180410/api.json +19 -19
- tccli/services/dc/v20180410/examples.json +5 -5
- tccli/services/dcdb/dcdb_client.py +106 -0
- tccli/services/dcdb/v20180411/api.json +338 -2
- tccli/services/dcdb/v20180411/examples.json +28 -0
- tccli/services/dlc/dlc_client.py +106 -0
- tccli/services/dlc/v20210125/api.json +87 -0
- tccli/services/dlc/v20210125/examples.json +16 -0
- tccli/services/dnspod/dnspod_client.py +53 -0
- tccli/services/dnspod/v20210323/api.json +118 -0
- tccli/services/dnspod/v20210323/examples.json +8 -0
- tccli/services/dts/v20211206/api.json +1 -0
- tccli/services/emr/emr_client.py +322 -4
- tccli/services/emr/v20190103/api.json +862 -10
- tccli/services/emr/v20190103/examples.json +54 -0
- tccli/services/es/es_client.py +53 -0
- tccli/services/es/v20180416/api.json +155 -0
- tccli/services/es/v20180416/examples.json +14 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +147 -0
- tccli/services/ess/v20201111/examples.json +8 -0
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +120 -0
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/mariadb/mariadb_client.py +110 -4
- tccli/services/mariadb/v20170312/api.json +339 -3
- tccli/services/mariadb/v20170312/examples.json +16 -0
- tccli/services/ocr/v20181119/api.json +12 -2
- tccli/services/rce/v20201103/api.json +2 -2
- tccli/services/redis/redis_client.py +110 -4
- tccli/services/redis/v20180412/api.json +209 -0
- tccli/services/redis/v20180412/examples.json +16 -0
- tccli/services/sms/v20190711/api.json +2 -2
- tccli/services/sms/v20210111/api.json +2 -2
- tccli/services/teo/v20220901/api.json +14 -14
- tccli/services/trtc/v20190722/api.json +11 -0
- tccli/services/tse/v20201207/api.json +18 -18
- tccli/services/tsf/v20180326/api.json +74 -29
- tccli/services/vclm/v20240523/api.json +2 -2
- tccli/services/vdb/v20230616/api.json +491 -0
- tccli/services/vdb/v20230616/examples.json +46 -0
- tccli/services/vdb/vdb_client.py +265 -0
- tccli/services/vpc/v20170312/api.json +5 -5
- tccli/services/vtc/v20240223/api.json +2 -2
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/RECORD +61 -61
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/license_files/LICENSE +0 -0
@@ -32,6 +32,14 @@
|
|
32
32
|
"title": "创建实例"
|
33
33
|
}
|
34
34
|
],
|
35
|
+
"CreateSLInstance": [
|
36
|
+
{
|
37
|
+
"document": "Lite Hbase 创建实例",
|
38
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSLInstance\n<公共请求参数>\n\n{\n \"InstanceName\": \"sl-haoyuhua-test-create\",\n \"PayMode\": 0,\n \"DiskType\": \"CLOUD_PREMIUM\",\n \"DiskSize\": 100,\n \"NodeType\": \"4C16G\",\n \"ZoneSettings\": [\n {\n \"Zone\": \"ap-guangzhou-2\",\n \"VPCSettings\": {\n \"VpcId\": \"vpc-dcfhrh73\",\n \"SubnetId\": \"subnet-5bhc4kly\"\n },\n \"NodeNum\": 1\n },\n {\n \"Zone\": \"ap-guangzhou-2\",\n \"VPCSettings\": {\n \"VpcId\": \"vpc-dcfhrh73\",\n \"SubnetId\": \"subnet-5bhc4kly\"\n },\n \"NodeNum\": 1\n },\n {\n \"Zone\": \"ap-guangzhou-2\",\n \"VPCSettings\": {\n \"VpcId\": \"vpc-dcfhrh73\",\n \"SubnetId\": \"subnet-5bhc4kly\"\n },\n \"NodeNum\": 1\n }\n ],\n \"Tags\": []\n}",
|
39
|
+
"output": "{\n \"Response\": {\n \"InstanceId\": \"emr-8qrmc34c\",\n \"RequestId\": \"983e4dae-1cb4-40cb-8476-3231a6849696\"\n }\n}",
|
40
|
+
"title": "Lite Hbase 创建实例"
|
41
|
+
}
|
42
|
+
],
|
35
43
|
"DeleteAutoScaleStrategy": [
|
36
44
|
{
|
37
45
|
"document": "",
|
@@ -192,6 +200,30 @@
|
|
192
200
|
"title": "test"
|
193
201
|
}
|
194
202
|
],
|
203
|
+
"DescribeResourceScheduleDiffDetail": [
|
204
|
+
{
|
205
|
+
"document": "",
|
206
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeResourceScheduleDiffDetail\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-xxx\",\n \"Scheduler\": \"fair\"\n}",
|
207
|
+
"output": "{\n \"Response\": {\n \"Details\": [\n {\n \"Count\": 1,\n \"Header\": [\n {\n \"Id\": \"Attribute\",\n \"Name\": \"属性\"\n },\n {\n \"Id\": \"InEffect\",\n \"Name\": \"当前生效值\"\n },\n {\n \"Id\": \"PendingEffectiveness\",\n \"Name\": \"待生效值\"\n },\n {\n \"Id\": \"Operation\",\n \"Name\": \"操作\"\n }\n ],\n \"Name\": \"全局配置\",\n \"Rows\": [\n {\n \"Attribute\": \"Scheduler\",\n \"InEffect\": \"fair\",\n \"Operation\": \"更新\",\n \"PendingEffectiveness\": \"capacity\"\n }\n ]\n },\n {\n \"Count\": 1,\n \"Header\": [\n {\n \"Id\": \"Attribute\",\n \"Name\": \"属性\"\n },\n {\n \"Id\": \"InEffect\",\n \"Name\": \"当前生效值\"\n },\n {\n \"Id\": \"PendingEffectiveness\",\n \"Name\": \"待生效值\"\n },\n {\n \"Id\": \"Operation\",\n \"Name\": \"操作\"\n }\n ],\n \"Name\": \"标签开关\",\n \"Rows\": [\n {\n \"Attribute\": \"LabelDir\",\n \"InEffect\": \"\",\n \"Operation\": \"更新\",\n \"PendingEffectiveness\": \"\"\n }\n ]\n }\n ],\n \"RequestId\": \"50ed72af-1cc9-4566-8080-3594994aea80\"\n }\n}",
|
208
|
+
"title": "YARN资源调度-变更详情"
|
209
|
+
}
|
210
|
+
],
|
211
|
+
"DescribeSLInstance": [
|
212
|
+
{
|
213
|
+
"document": "Lite HBase 查询实例信息",
|
214
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSLInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-3o9tms4i\"\n}",
|
215
|
+
"output": "{\n \"Response\": {\n \"DiskSize\": 100,\n \"DiskType\": \"性能云存储\",\n \"InstanceName\": \"sl-haoyuhua-test-create\",\n \"NodeType\": \"4C16G\",\n \"PayMode\": 0,\n \"RequestId\": \"a316989f-9316-4205-a2a3-64ab841aee14\",\n \"ZoneSettings\": [\n {\n \"NodeNum\": 1,\n \"VPCSettings\": {\n \"SubnetId\": \"subnet-5bhc4kly\",\n \"VpcId\": \"vpc-dcfhrh73\"\n },\n \"Zone\": \"ap-guangzhou-2\"\n },\n {\n \"NodeNum\": 1,\n \"VPCSettings\": {\n \"SubnetId\": \"subnet-5bhc4kly\",\n \"VpcId\": \"vpc-dcfhrh73\"\n },\n \"Zone\": \"ap-guangzhou-2\"\n },\n {\n \"NodeNum\": 1,\n \"VPCSettings\": {\n \"SubnetId\": \"subnet-5bhc4kly\",\n \"VpcId\": \"vpc-dcfhrh73\"\n },\n \"Zone\": \"ap-guangzhou-2\"\n }\n ]\n }\n}",
|
216
|
+
"title": "Lite HBase 查询实例信息"
|
217
|
+
}
|
218
|
+
],
|
219
|
+
"DescribeSLInstanceList": [
|
220
|
+
{
|
221
|
+
"document": "Lite HBase 查询实例列表",
|
222
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSLInstanceList\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 10,\n \"OrderField\": \"AddTime\",\n \"Asc\": 1,\n \"DisplayStrategy\": \"clusterList\",\n \"Filters\": []\n}",
|
223
|
+
"output": "{\n \"Response\": {\n \"InstancesList\": [\n {\n \"AddTime\": \"2024-03-14 17:40:19\",\n \"AppId\": 251233704,\n \"ClusterId\": \"emr-2ecolb9q\",\n \"ClusterName\": \"EMR-haosen\",\n \"Id\": 126358006,\n \"PayMode\": 0,\n \"RegionId\": 1,\n \"Status\": 3,\n \"StatusDesc\": \"集群生产中\",\n \"SubnetId\": 2666622,\n \"Tags\": [],\n \"VpcId\": 11406751,\n \"Zone\": \"ap-guangzhou-2\",\n \"ZoneId\": 100002\n }\n ],\n \"RequestId\": \"fde6361c-205a-45e5-8bec-34b9100fc5b0\",\n \"TotalCnt\": 1\n }\n}",
|
224
|
+
"title": "Lite HBase 查询实例列表"
|
225
|
+
}
|
226
|
+
],
|
195
227
|
"DescribeServiceNodeInfos": [
|
196
228
|
{
|
197
229
|
"document": "查询服务进程信息",
|
@@ -340,6 +372,14 @@
|
|
340
372
|
"title": "test"
|
341
373
|
}
|
342
374
|
],
|
375
|
+
"ModifySLInstance": [
|
376
|
+
{
|
377
|
+
"document": "Lite HBase 修改实例节点数",
|
378
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySLInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-3o9tms4i\",\n \"Zone\": \"ap-guangzhou-2\",\n \"NodeNum\": 2\n}",
|
379
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"7837b979-fcc2-4bfb-b81b-88a532345b82\"\n }\n}",
|
380
|
+
"title": "Lite HBase 修改实例节点数"
|
381
|
+
}
|
382
|
+
],
|
343
383
|
"ModifyUserManagerPwd": [
|
344
384
|
{
|
345
385
|
"document": "test",
|
@@ -428,6 +468,20 @@
|
|
428
468
|
"title": "销毁实例"
|
429
469
|
}
|
430
470
|
],
|
471
|
+
"TerminateSLInstance": [
|
472
|
+
{
|
473
|
+
"document": "",
|
474
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: TerminateSLInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-6vexh3oi\"\n}",
|
475
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"f4163a60-4801-449b-83d0-6f9ec2c7a07f\"\n }\n}",
|
476
|
+
"title": "销毁EMR Serverless实例"
|
477
|
+
},
|
478
|
+
{
|
479
|
+
"document": "Lite HBase 销毁实例",
|
480
|
+
"input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: TerminateSLInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-8qrmc34c\"\n}",
|
481
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a0b8ffca-02eb-47ea-9c93-a4c8db4e4585\"\n }\n}",
|
482
|
+
"title": "Lite HBase 销毁实例"
|
483
|
+
}
|
484
|
+
],
|
431
485
|
"TerminateTasks": [
|
432
486
|
{
|
433
487
|
"document": "销毁TASK节点",
|
tccli/services/es/es_client.py
CHANGED
@@ -1577,6 +1577,58 @@ def doDescribeInstanceOperations(args, parsed_globals):
|
|
1577
1577
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1578
1578
|
|
1579
1579
|
|
1580
|
+
def doDescribeSpaceKibanaTools(args, parsed_globals):
|
1581
|
+
g_param = parse_global_arg(parsed_globals)
|
1582
|
+
|
1583
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1584
|
+
cred = credential.CVMRoleCredential()
|
1585
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1586
|
+
cred = credential.STSAssumeRoleCredential(
|
1587
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1588
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1589
|
+
)
|
1590
|
+
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):
|
1591
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1592
|
+
else:
|
1593
|
+
cred = credential.Credential(
|
1594
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1595
|
+
)
|
1596
|
+
http_profile = HttpProfile(
|
1597
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1598
|
+
reqMethod="POST",
|
1599
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1600
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1601
|
+
)
|
1602
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1603
|
+
if g_param[OptionsDefine.Language]:
|
1604
|
+
profile.language = g_param[OptionsDefine.Language]
|
1605
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1606
|
+
client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
|
1607
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1608
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1609
|
+
model = models.DescribeSpaceKibanaToolsRequest()
|
1610
|
+
model.from_json_string(json.dumps(args))
|
1611
|
+
start_time = time.time()
|
1612
|
+
while True:
|
1613
|
+
rsp = client.DescribeSpaceKibanaTools(model)
|
1614
|
+
result = rsp.to_json_string()
|
1615
|
+
try:
|
1616
|
+
json_obj = json.loads(result)
|
1617
|
+
except TypeError as e:
|
1618
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1619
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1620
|
+
break
|
1621
|
+
cur_time = time.time()
|
1622
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1623
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1624
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1625
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1626
|
+
else:
|
1627
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1628
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1629
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
|
+
|
1631
|
+
|
1580
1632
|
def doDescribeLogstashPipelines(args, parsed_globals):
|
1581
1633
|
g_param = parse_global_arg(parsed_globals)
|
1582
1634
|
|
@@ -2970,6 +3022,7 @@ ACTION_MAP = {
|
|
2970
3022
|
"DescribeViews": doDescribeViews,
|
2971
3023
|
"UpdateLogstashInstance": doUpdateLogstashInstance,
|
2972
3024
|
"DescribeInstanceOperations": doDescribeInstanceOperations,
|
3025
|
+
"DescribeSpaceKibanaTools": doDescribeSpaceKibanaTools,
|
2973
3026
|
"DescribeLogstashPipelines": doDescribeLogstashPipelines,
|
2974
3027
|
"DescribeLogstashInstances": doDescribeLogstashInstances,
|
2975
3028
|
"DescribeIndexList": doDescribeIndexList,
|
@@ -196,6 +196,13 @@
|
|
196
196
|
"output": "DescribeServerlessSpacesResponse",
|
197
197
|
"status": "online"
|
198
198
|
},
|
199
|
+
"DescribeSpaceKibanaTools": {
|
200
|
+
"document": "space维度的kibana获取登录token",
|
201
|
+
"input": "DescribeSpaceKibanaToolsRequest",
|
202
|
+
"name": "space维度的kibana获取登录token",
|
203
|
+
"output": "DescribeSpaceKibanaToolsResponse",
|
204
|
+
"status": "online"
|
205
|
+
},
|
199
206
|
"DescribeUserCosSnapshotList": {
|
200
207
|
"document": "查询快照信息接口",
|
201
208
|
"input": "DescribeUserCosSnapshotListRequest",
|
@@ -3444,6 +3451,15 @@
|
|
3444
3451
|
"name": "DurationType",
|
3445
3452
|
"required": false,
|
3446
3453
|
"type": "int"
|
3454
|
+
},
|
3455
|
+
{
|
3456
|
+
"disabled": false,
|
3457
|
+
"document": "索引数据",
|
3458
|
+
"example": "[\"index-4y85drgw\"]",
|
3459
|
+
"member": "string",
|
3460
|
+
"name": "BatchIndexList",
|
3461
|
+
"required": false,
|
3462
|
+
"type": "list"
|
3447
3463
|
}
|
3448
3464
|
],
|
3449
3465
|
"type": "object"
|
@@ -3501,6 +3517,16 @@
|
|
3501
3517
|
"type": "int",
|
3502
3518
|
"value_allowed_null": false
|
3503
3519
|
},
|
3520
|
+
{
|
3521
|
+
"disabled": false,
|
3522
|
+
"document": "指标数据数据\n注意:此字段可能返回 null,表示取不到有效值。",
|
3523
|
+
"example": "无",
|
3524
|
+
"member": "MetricMapByIndexId",
|
3525
|
+
"name": "MetricMapList",
|
3526
|
+
"output_required": false,
|
3527
|
+
"type": "list",
|
3528
|
+
"value_allowed_null": true
|
3529
|
+
},
|
3504
3530
|
{
|
3505
3531
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3506
3532
|
"member": "string",
|
@@ -3712,6 +3738,53 @@
|
|
3712
3738
|
],
|
3713
3739
|
"type": "object"
|
3714
3740
|
},
|
3741
|
+
"DescribeSpaceKibanaToolsRequest": {
|
3742
|
+
"document": "DescribeSpaceKibanaTools请求参数结构体",
|
3743
|
+
"members": [
|
3744
|
+
{
|
3745
|
+
"disabled": false,
|
3746
|
+
"document": "space的ID",
|
3747
|
+
"example": "space-xxx",
|
3748
|
+
"member": "string",
|
3749
|
+
"name": "SpaceId",
|
3750
|
+
"required": true,
|
3751
|
+
"type": "string"
|
3752
|
+
}
|
3753
|
+
],
|
3754
|
+
"type": "object"
|
3755
|
+
},
|
3756
|
+
"DescribeSpaceKibanaToolsResponse": {
|
3757
|
+
"document": "DescribeSpaceKibanaTools返回参数结构体",
|
3758
|
+
"members": [
|
3759
|
+
{
|
3760
|
+
"disabled": false,
|
3761
|
+
"document": "该token用于登录内嵌kibana",
|
3762
|
+
"example": "无",
|
3763
|
+
"member": "string",
|
3764
|
+
"name": "KibanaToken",
|
3765
|
+
"output_required": true,
|
3766
|
+
"type": "string",
|
3767
|
+
"value_allowed_null": false
|
3768
|
+
},
|
3769
|
+
{
|
3770
|
+
"disabled": false,
|
3771
|
+
"document": "token的过期时间",
|
3772
|
+
"example": "无",
|
3773
|
+
"member": "int64",
|
3774
|
+
"name": "ExpireTime",
|
3775
|
+
"output_required": true,
|
3776
|
+
"type": "int",
|
3777
|
+
"value_allowed_null": false
|
3778
|
+
},
|
3779
|
+
{
|
3780
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3781
|
+
"member": "string",
|
3782
|
+
"name": "RequestId",
|
3783
|
+
"type": "string"
|
3784
|
+
}
|
3785
|
+
],
|
3786
|
+
"type": "object"
|
3787
|
+
},
|
3715
3788
|
"DescribeUserCosSnapshotListRequest": {
|
3716
3789
|
"document": "DescribeUserCosSnapshotList请求参数结构体",
|
3717
3790
|
"members": [
|
@@ -7347,6 +7420,62 @@
|
|
7347
7420
|
],
|
7348
7421
|
"usage": "out"
|
7349
7422
|
},
|
7423
|
+
"MetricAllData": {
|
7424
|
+
"document": "全部指标数据",
|
7425
|
+
"members": [
|
7426
|
+
{
|
7427
|
+
"disabled": false,
|
7428
|
+
"document": "索引流量",
|
7429
|
+
"example": "12.34454",
|
7430
|
+
"member": "float",
|
7431
|
+
"name": "IndexTraffic",
|
7432
|
+
"output_required": true,
|
7433
|
+
"type": "float",
|
7434
|
+
"value_allowed_null": false
|
7435
|
+
},
|
7436
|
+
{
|
7437
|
+
"disabled": false,
|
7438
|
+
"document": "存储大小",
|
7439
|
+
"example": "12.3432",
|
7440
|
+
"member": "float",
|
7441
|
+
"name": "Storage",
|
7442
|
+
"output_required": true,
|
7443
|
+
"type": "float",
|
7444
|
+
"value_allowed_null": false
|
7445
|
+
},
|
7446
|
+
{
|
7447
|
+
"disabled": false,
|
7448
|
+
"document": "读请求次数",
|
7449
|
+
"example": "21",
|
7450
|
+
"member": "int64",
|
7451
|
+
"name": "ReadReqTimes",
|
7452
|
+
"output_required": true,
|
7453
|
+
"type": "int",
|
7454
|
+
"value_allowed_null": false
|
7455
|
+
},
|
7456
|
+
{
|
7457
|
+
"disabled": false,
|
7458
|
+
"document": "写请求次数",
|
7459
|
+
"example": "32",
|
7460
|
+
"member": "int64",
|
7461
|
+
"name": "WriteReqTimes",
|
7462
|
+
"output_required": true,
|
7463
|
+
"type": "int",
|
7464
|
+
"value_allowed_null": false
|
7465
|
+
},
|
7466
|
+
{
|
7467
|
+
"disabled": false,
|
7468
|
+
"document": "文档数量",
|
7469
|
+
"example": "32",
|
7470
|
+
"member": "int64",
|
7471
|
+
"name": "DocCount",
|
7472
|
+
"output_required": true,
|
7473
|
+
"type": "int",
|
7474
|
+
"value_allowed_null": false
|
7475
|
+
}
|
7476
|
+
],
|
7477
|
+
"usage": "out"
|
7478
|
+
},
|
7350
7479
|
"MetricDetail": {
|
7351
7480
|
"document": "智能运维指标详情",
|
7352
7481
|
"members": [
|
@@ -7373,6 +7502,32 @@
|
|
7373
7502
|
],
|
7374
7503
|
"usage": "out"
|
7375
7504
|
},
|
7505
|
+
"MetricMapByIndexId": {
|
7506
|
+
"document": "指标数据map",
|
7507
|
+
"members": [
|
7508
|
+
{
|
7509
|
+
"disabled": false,
|
7510
|
+
"document": "实例id",
|
7511
|
+
"example": "无",
|
7512
|
+
"member": "string",
|
7513
|
+
"name": "IndexId",
|
7514
|
+
"output_required": true,
|
7515
|
+
"type": "string",
|
7516
|
+
"value_allowed_null": false
|
7517
|
+
},
|
7518
|
+
{
|
7519
|
+
"disabled": false,
|
7520
|
+
"document": "指标数据",
|
7521
|
+
"example": "无",
|
7522
|
+
"member": "MetricAllData",
|
7523
|
+
"name": "MetricAllData",
|
7524
|
+
"output_required": true,
|
7525
|
+
"type": "object",
|
7526
|
+
"value_allowed_null": false
|
7527
|
+
}
|
7528
|
+
],
|
7529
|
+
"usage": "out"
|
7530
|
+
},
|
7376
7531
|
"ModifyEsVipSecurityGroupRequest": {
|
7377
7532
|
"document": "ModifyEsVipSecurityGroup请求参数结构体",
|
7378
7533
|
"members": [
|
@@ -224,6 +224,20 @@
|
|
224
224
|
"title": "获取Serverless索引空间列表"
|
225
225
|
}
|
226
226
|
],
|
227
|
+
"DescribeSpaceKibanaTools": [
|
228
|
+
{
|
229
|
+
"document": "索引获取token登录space维度的kibana",
|
230
|
+
"input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKibanaTools\n<公共请求参数>\n\n{\n \"SpaceId\": \"abc\"\n}",
|
231
|
+
"output": "{\n \"Response\": {\n \"KibanaToken\": \"abc\",\n \"ExpireTime\": 0,\n \"RequestId\": \"abc\"\n }\n}",
|
232
|
+
"title": "索引获取token"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"document": "用于登录space维度的内嵌的kibana",
|
236
|
+
"input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateServerlessInstanceUser\n<公共请求参数>\n\n{\n \"SpaceId\": \"abc\"\n}",
|
237
|
+
"output": "{\n \"Response\": {\n \"KibanaToken\": \"abc\",\n \"ExpireTime\": 0,\n \"RequestId\": \"abc\"\n }\n}",
|
238
|
+
"title": "kibana内嵌登录token获取"
|
239
|
+
}
|
240
|
+
],
|
227
241
|
"DescribeUserCosSnapshotList": [
|
228
242
|
{
|
229
243
|
"document": "",
|
tccli/services/ess/ess_client.py
CHANGED
@@ -1317,6 +1317,58 @@ def doCreateUserAutoSignSealUrl(args, parsed_globals):
|
|
1317
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1318
|
|
1319
1319
|
|
1320
|
+
def doDescribeOrganizationAuthStatus(args, parsed_globals):
|
1321
|
+
g_param = parse_global_arg(parsed_globals)
|
1322
|
+
|
1323
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1324
|
+
cred = credential.CVMRoleCredential()
|
1325
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1326
|
+
cred = credential.STSAssumeRoleCredential(
|
1327
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1328
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1329
|
+
)
|
1330
|
+
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):
|
1331
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1332
|
+
else:
|
1333
|
+
cred = credential.Credential(
|
1334
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1335
|
+
)
|
1336
|
+
http_profile = HttpProfile(
|
1337
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1338
|
+
reqMethod="POST",
|
1339
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1340
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1341
|
+
)
|
1342
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1343
|
+
if g_param[OptionsDefine.Language]:
|
1344
|
+
profile.language = g_param[OptionsDefine.Language]
|
1345
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1346
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1348
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
+
model = models.DescribeOrganizationAuthStatusRequest()
|
1350
|
+
model.from_json_string(json.dumps(args))
|
1351
|
+
start_time = time.time()
|
1352
|
+
while True:
|
1353
|
+
rsp = client.DescribeOrganizationAuthStatus(model)
|
1354
|
+
result = rsp.to_json_string()
|
1355
|
+
try:
|
1356
|
+
json_obj = json.loads(result)
|
1357
|
+
except TypeError as e:
|
1358
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1359
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1360
|
+
break
|
1361
|
+
cur_time = time.time()
|
1362
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1363
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1364
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1365
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1366
|
+
else:
|
1367
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1368
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1369
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
|
+
|
1371
|
+
|
1320
1372
|
def doRenewAutoSignLicense(args, parsed_globals):
|
1321
1373
|
g_param = parse_global_arg(parsed_globals)
|
1322
1374
|
|
@@ -4733,6 +4785,7 @@ ACTION_MAP = {
|
|
4733
4785
|
"DescribeFlowEvidenceReport": doDescribeFlowEvidenceReport,
|
4734
4786
|
"DeleteIntegrationEmployees": doDeleteIntegrationEmployees,
|
4735
4787
|
"CreateUserAutoSignSealUrl": doCreateUserAutoSignSealUrl,
|
4788
|
+
"DescribeOrganizationAuthStatus": doDescribeOrganizationAuthStatus,
|
4736
4789
|
"RenewAutoSignLicense": doRenewAutoSignLicense,
|
4737
4790
|
"VerifyPdf": doVerifyPdf,
|
4738
4791
|
"BindEmployeeUserIdWithClientOpenId": doBindEmployeeUserIdWithClientOpenId,
|
@@ -490,6 +490,13 @@
|
|
490
490
|
"output": "DescribeIntegrationRolesResponse",
|
491
491
|
"status": "online"
|
492
492
|
},
|
493
|
+
"DescribeOrganizationAuthStatus": {
|
494
|
+
"document": "查询企业认证状态- 仅通过[CreateOrganizationAuthUrl](https://qian.tencent.com/developers/companyApis/organizations/CreateOrganizationAuthUrl) 和[CreateBatchOrganizationRegistrationTasks](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)这两个接口进行引导认证的企业,调用方企业可以依据这个接口,查询认证状态。",
|
495
|
+
"input": "DescribeOrganizationAuthStatusRequest",
|
496
|
+
"name": "查询企业认证状态",
|
497
|
+
"output": "DescribeOrganizationAuthStatusResponse",
|
498
|
+
"status": "online"
|
499
|
+
},
|
493
500
|
"DescribeOrganizationGroupOrganizations": {
|
494
501
|
"document": "此API接口用来查询加入集团的成员企业信息\n适用场景:子企业在加入集团后,主企业可能通过此接口获取到所有的子企业列表,方便进行展示和统计",
|
495
502
|
"input": "DescribeOrganizationGroupOrganizationsRequest",
|
@@ -1148,6 +1155,52 @@
|
|
1148
1155
|
],
|
1149
1156
|
"usage": "both"
|
1150
1157
|
},
|
1158
|
+
"AuthRecord": {
|
1159
|
+
"document": "企业认证信息",
|
1160
|
+
"members": [
|
1161
|
+
{
|
1162
|
+
"disabled": false,
|
1163
|
+
"document": "经办人姓名。",
|
1164
|
+
"example": "典*谦",
|
1165
|
+
"member": "string",
|
1166
|
+
"name": "OperatorName",
|
1167
|
+
"output_required": false,
|
1168
|
+
"type": "string",
|
1169
|
+
"value_allowed_null": false
|
1170
|
+
},
|
1171
|
+
{
|
1172
|
+
"disabled": false,
|
1173
|
+
"document": "经办人手机号。",
|
1174
|
+
"example": "132****0000",
|
1175
|
+
"member": "string",
|
1176
|
+
"name": "OperatorMobile",
|
1177
|
+
"output_required": false,
|
1178
|
+
"type": "string",
|
1179
|
+
"value_allowed_null": false
|
1180
|
+
},
|
1181
|
+
{
|
1182
|
+
"disabled": false,
|
1183
|
+
"document": "认证授权方式:\n<ul><li> **0**:未选择授权方式(默认值)</li>\n<li> **1**:上传授权书</li>\n<li> **2**:法人授权</li>\n<li> **3**:法人认证</li></ul>",
|
1184
|
+
"example": "1",
|
1185
|
+
"member": "int64",
|
1186
|
+
"name": "AuthType",
|
1187
|
+
"output_required": false,
|
1188
|
+
"type": "int",
|
1189
|
+
"value_allowed_null": false
|
1190
|
+
},
|
1191
|
+
{
|
1192
|
+
"disabled": false,
|
1193
|
+
"document": "企业认证授权书审核状态:\n<ul><li> **0**:未提交授权书(默认值)</li>\n<li> **1**:审核通过</li>\n<li> **2**:审核驳回</li>\n<li> **3**:审核中</li>\n<li> **4**:AI识别中</li>\n<li> **5**:客户确认AI信息</li></ul>",
|
1194
|
+
"example": "1",
|
1195
|
+
"member": "int64",
|
1196
|
+
"name": "AuditStatus",
|
1197
|
+
"output_required": false,
|
1198
|
+
"type": "int",
|
1199
|
+
"value_allowed_null": false
|
1200
|
+
}
|
1201
|
+
],
|
1202
|
+
"usage": "out"
|
1203
|
+
},
|
1151
1204
|
"AuthorizedUser": {
|
1152
1205
|
"document": "授权用户",
|
1153
1206
|
"members": [
|
@@ -8782,6 +8835,100 @@
|
|
8782
8835
|
],
|
8783
8836
|
"type": "object"
|
8784
8837
|
},
|
8838
|
+
"DescribeOrganizationAuthStatusRequest": {
|
8839
|
+
"document": "DescribeOrganizationAuthStatus请求参数结构体",
|
8840
|
+
"members": [
|
8841
|
+
{
|
8842
|
+
"disabled": false,
|
8843
|
+
"document": "执行本接口操作的员工信息。使用此接口时,必须填写userId。 支持填入集团子公司经办人 userId 代发合同。 注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`",
|
8844
|
+
"example": "无",
|
8845
|
+
"member": "UserInfo",
|
8846
|
+
"name": "Operator",
|
8847
|
+
"required": true,
|
8848
|
+
"type": "object"
|
8849
|
+
},
|
8850
|
+
{
|
8851
|
+
"disabled": false,
|
8852
|
+
"document": "组织机构名称。 请确认该名称与企业营业执照中注册的名称一致。 如果名称中包含英文括号(),请使用中文括号()代替。",
|
8853
|
+
"example": "无",
|
8854
|
+
"member": "string",
|
8855
|
+
"name": "OrganizationName",
|
8856
|
+
"required": false,
|
8857
|
+
"type": "string"
|
8858
|
+
},
|
8859
|
+
{
|
8860
|
+
"disabled": false,
|
8861
|
+
"document": "企业统一社会信用代码\n注意:OrganizationName和UniformSocialCreditCode不能同时为空",
|
8862
|
+
"example": "无",
|
8863
|
+
"member": "string",
|
8864
|
+
"name": "UniformSocialCreditCode",
|
8865
|
+
"required": false,
|
8866
|
+
"type": "string"
|
8867
|
+
},
|
8868
|
+
{
|
8869
|
+
"disabled": false,
|
8870
|
+
"document": "法人姓名",
|
8871
|
+
"example": "无",
|
8872
|
+
"member": "string",
|
8873
|
+
"name": "LegalName",
|
8874
|
+
"required": false,
|
8875
|
+
"type": "string"
|
8876
|
+
}
|
8877
|
+
],
|
8878
|
+
"type": "object"
|
8879
|
+
},
|
8880
|
+
"DescribeOrganizationAuthStatusResponse": {
|
8881
|
+
"document": "DescribeOrganizationAuthStatus返回参数结构体",
|
8882
|
+
"members": [
|
8883
|
+
{
|
8884
|
+
"disabled": false,
|
8885
|
+
"document": "企业是否已认证",
|
8886
|
+
"example": "无",
|
8887
|
+
"member": "bool",
|
8888
|
+
"name": "IsVerified",
|
8889
|
+
"output_required": true,
|
8890
|
+
"type": "bool",
|
8891
|
+
"value_allowed_null": false
|
8892
|
+
},
|
8893
|
+
{
|
8894
|
+
"disabled": false,
|
8895
|
+
"document": "企业认证状态 0-未认证 1-认证中 2-已认证",
|
8896
|
+
"example": "无",
|
8897
|
+
"member": "int64",
|
8898
|
+
"name": "AuthStatus",
|
8899
|
+
"output_required": true,
|
8900
|
+
"type": "int",
|
8901
|
+
"value_allowed_null": false
|
8902
|
+
},
|
8903
|
+
{
|
8904
|
+
"disabled": false,
|
8905
|
+
"document": "企业认证信息",
|
8906
|
+
"example": "无",
|
8907
|
+
"member": "AuthRecord",
|
8908
|
+
"name": "AuthRecords",
|
8909
|
+
"output_required": false,
|
8910
|
+
"type": "list",
|
8911
|
+
"value_allowed_null": false
|
8912
|
+
},
|
8913
|
+
{
|
8914
|
+
"disabled": false,
|
8915
|
+
"document": "企业在腾讯电子签平台的唯一身份标识,为32位字符串。\n可登录腾讯电子签控制台,在 \"更多\"->\"企业设置\"->\"企业中心\"- 中查看企业电子签账号。\np.s. 只有当前企业认证成功的时候返回",
|
8916
|
+
"example": "无",
|
8917
|
+
"member": "string",
|
8918
|
+
"name": "OrganizationId",
|
8919
|
+
"output_required": false,
|
8920
|
+
"type": "string",
|
8921
|
+
"value_allowed_null": false
|
8922
|
+
},
|
8923
|
+
{
|
8924
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
8925
|
+
"member": "string",
|
8926
|
+
"name": "RequestId",
|
8927
|
+
"type": "string"
|
8928
|
+
}
|
8929
|
+
],
|
8930
|
+
"type": "object"
|
8931
|
+
},
|
8785
8932
|
"DescribeOrganizationGroupOrganizationsRequest": {
|
8786
8933
|
"document": "DescribeOrganizationGroupOrganizations请求参数结构体",
|
8787
8934
|
"members": [
|
@@ -1436,6 +1436,14 @@
|
|
1436
1436
|
"title": "示例-查询企业角色列表(返回角色对应的权限树)"
|
1437
1437
|
}
|
1438
1438
|
],
|
1439
|
+
"DescribeOrganizationAuthStatus": [
|
1440
|
+
{
|
1441
|
+
"document": "查询企业认证状态",
|
1442
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationAuthStatus\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDRCLUUgygq2xun5UuO4zjEwg0vjoimj\"\n },\n \"UniformSocialCreditCode\": \"\",\n \"LegalName\": \"\",\n \"OrganizationName\": \"测试企业\"\n}",
|
1443
|
+
"output": "{\n \"Response\": {\n \"AuthRecords\": [\n {\n \"AuditStatus\": 0,\n \"AuthType\": 3,\n \"OperatorMobile\": \"132****0000\",\n \"OperatorName\": \"典*谦\"\n }\n ],\n \"AuthStatus\": 2,\n \"IsVerified\": true,\n \"RequestId\": \"s1687254031099376002\"\n }\n}",
|
1444
|
+
"title": "查询企业认证状态"
|
1445
|
+
}
|
1446
|
+
],
|
1439
1447
|
"DescribeOrganizationGroupOrganizations": [
|
1440
1448
|
{
|
1441
1449
|
"document": "查询集团下所有成员企业",
|