tccli 3.0.1341.1__py2.py3-none-any.whl → 3.0.1343.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/plugins/sso/__init__.py +14 -0
- tccli/plugins/sso/login.py +23 -6
- tccli/plugins/sso/texts.py +4 -0
- tccli/services/__init__.py +3 -0
- tccli/services/ams/v20201229/api.json +195 -185
- tccli/services/apm/apm_client.py +53 -0
- tccli/services/apm/v20210622/api.json +117 -0
- tccli/services/apm/v20210622/examples.json +8 -0
- tccli/services/cdb/v20170320/api.json +17 -17
- tccli/services/cdb/v20170320/examples.json +2 -2
- tccli/services/ctem/__init__.py +4 -0
- tccli/services/ctem/ctem_client.py +1479 -0
- tccli/services/ctem/v20231128/api.json +6138 -0
- tccli/services/ctem/v20231128/examples.json +205 -0
- tccli/services/dlc/v20210125/api.json +19 -7
- tccli/services/ecm/v20190719/api.json +14 -14
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +10 -1
- tccli/services/ims/v20201229/api.json +30 -30
- tccli/services/iotexplorer/v20190423/api.json +2 -2
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/iotvideo/v20201215/api.json +2 -2
- tccli/services/iotvideo/v20201215/examples.json +1 -1
- tccli/services/iotvideo/v20211125/api.json +1 -1
- tccli/services/iotvideo/v20211125/examples.json +1 -1
- tccli/services/lke/v20231130/api.json +22 -1
- tccli/services/mongodb/mongodb_client.py +57 -4
- tccli/services/mongodb/v20190725/api.json +199 -0
- tccli/services/mongodb/v20190725/examples.json +8 -0
- tccli/services/mps/v20190612/api.json +113 -25
- tccli/services/mqtt/mqtt_client.py +53 -0
- tccli/services/mqtt/v20240516/api.json +150 -0
- tccli/services/mqtt/v20240516/examples.json +8 -0
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/redis/v20180412/api.json +3 -3
- tccli/services/redis/v20180412/examples.json +19 -1
- tccli/services/teo/teo_client.py +269 -4
- tccli/services/teo/v20220901/api.json +469 -0
- tccli/services/teo/v20220901/examples.json +76 -0
- tccli/services/tke/v20180525/api.json +10 -0
- tccli/services/tms/v20201229/api.json +59 -59
- tccli/services/trocket/v20230308/api.json +71 -71
- tccli/services/trocket/v20230308/examples.json +4 -4
- tccli/services/vm/v20210922/api.json +363 -333
- tccli/services/wedata/v20210820/api.json +128 -0
- tccli/services/wedata/v20210820/examples.json +8 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1341.1.dist-info → tccli-3.0.1343.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1341.1.dist-info → tccli-3.0.1343.1.dist-info}/RECORD +54 -50
- {tccli-3.0.1341.1.dist-info → tccli-3.0.1343.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1341.1.dist-info → tccli-3.0.1343.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1341.1.dist-info → tccli-3.0.1343.1.dist-info}/license_files/LICENSE +0 -0
@@ -451,33 +451,33 @@
|
|
451
451
|
"members": [
|
452
452
|
{
|
453
453
|
"disabled": false,
|
454
|
-
"document": "该字段用于返回识别对象的ID
|
454
|
+
"document": "该字段用于返回识别对象的ID以方便识别和区分。",
|
455
455
|
"example": "0",
|
456
456
|
"member": "int64",
|
457
457
|
"name": "Id",
|
458
458
|
"output_required": true,
|
459
459
|
"type": "int",
|
460
|
-
"value_allowed_null":
|
460
|
+
"value_allowed_null": false
|
461
461
|
},
|
462
462
|
{
|
463
463
|
"disabled": false,
|
464
|
-
"document": "
|
464
|
+
"document": "该字段用于返回时命中的子标签名称。",
|
465
465
|
"example": "PornSum",
|
466
466
|
"member": "string",
|
467
467
|
"name": "Name",
|
468
468
|
"output_required": true,
|
469
469
|
"type": "string",
|
470
|
-
"value_allowed_null":
|
470
|
+
"value_allowed_null": false
|
471
471
|
},
|
472
472
|
{
|
473
473
|
"disabled": false,
|
474
|
-
"document": "该字段用于返回对应子标签命中的分值,取值为**0-100**,如:*Porn-SexBehavior 99* 则代表相应识别内容命中色情-性行为标签的分值为99
|
474
|
+
"document": "该字段用于返回对应子标签命中的分值,取值为**0-100**,如:*Porn-SexBehavior 99* 则代表相应识别内容命中色情-性行为标签的分值为99。",
|
475
475
|
"example": "89",
|
476
476
|
"member": "uint64",
|
477
477
|
"name": "Score",
|
478
478
|
"output_required": true,
|
479
479
|
"type": "int",
|
480
|
-
"value_allowed_null":
|
480
|
+
"value_allowed_null": false
|
481
481
|
}
|
482
482
|
],
|
483
483
|
"usage": "out"
|
@@ -537,13 +537,13 @@
|
|
537
537
|
},
|
538
538
|
{
|
539
539
|
"disabled": false,
|
540
|
-
"document": "
|
540
|
+
"document": "该字段用于返回分类模型命中子标签的详细信息,如:序号、命中标签名称、分数等信息。",
|
541
541
|
"example": "无",
|
542
542
|
"member": "LabelDetailItem",
|
543
543
|
"name": "Details",
|
544
544
|
"output_required": true,
|
545
545
|
"type": "list",
|
546
|
-
"value_allowed_null":
|
546
|
+
"value_allowed_null": false
|
547
547
|
}
|
548
548
|
],
|
549
549
|
"usage": "out"
|
@@ -679,13 +679,13 @@
|
|
679
679
|
},
|
680
680
|
{
|
681
681
|
"disabled": false,
|
682
|
-
"document": "该字段用于返回黑白库比对结果的详细信息,如:序号、库名称、恶意标签等信息;详细返回信息敬请参考对应数据结构([LibDetail](https://cloud.tencent.com/document/product/1125/53274#LibDetail)
|
682
|
+
"document": "该字段用于返回黑白库比对结果的详细信息,如:序号、库名称、恶意标签等信息;详细返回信息敬请参考对应数据结构([LibDetail](https://cloud.tencent.com/document/product/1125/53274#LibDetail))的描述文档",
|
683
683
|
"example": "无",
|
684
684
|
"member": "LibDetail",
|
685
685
|
"name": "Details",
|
686
686
|
"output_required": true,
|
687
687
|
"type": "list",
|
688
|
-
"value_allowed_null":
|
688
|
+
"value_allowed_null": false
|
689
689
|
}
|
690
690
|
],
|
691
691
|
"usage": "out"
|
@@ -811,13 +811,13 @@
|
|
811
811
|
},
|
812
812
|
{
|
813
813
|
"disabled": false,
|
814
|
-
"document": "该参数用于返回命中的人脸id
|
814
|
+
"document": "该参数用于返回命中的人脸id",
|
815
815
|
"example": "xxx-xxx-xxx",
|
816
816
|
"member": "string",
|
817
817
|
"name": "ObjectId",
|
818
818
|
"output_required": true,
|
819
819
|
"type": "string",
|
820
|
-
"value_allowed_null":
|
820
|
+
"value_allowed_null": false
|
821
821
|
}
|
822
822
|
],
|
823
823
|
"usage": "out"
|
@@ -877,23 +877,23 @@
|
|
877
877
|
},
|
878
878
|
{
|
879
879
|
"disabled": false,
|
880
|
-
"document": "
|
880
|
+
"document": "该标签用于返回所识别出的实体名称。",
|
881
881
|
"example": "[\"QRCODE\"]",
|
882
882
|
"member": "string",
|
883
883
|
"name": "Names",
|
884
884
|
"output_required": true,
|
885
885
|
"type": "list",
|
886
|
-
"value_allowed_null":
|
886
|
+
"value_allowed_null": false
|
887
887
|
},
|
888
888
|
{
|
889
889
|
"disabled": false,
|
890
|
-
"document": "该标签用于返回所识别出实体的详细信息,如:序号、命中标签名称、位置坐标等信息,详细返回内容敬请参考相应数据结构([ObjectDetail\n](https://cloud.tencent.com/document/api/1125/53274#ObjectDetail)
|
890
|
+
"document": "该标签用于返回所识别出实体的详细信息,如:序号、命中标签名称、位置坐标等信息,详细返回内容敬请参考相应数据结构([ObjectDetail\n](https://cloud.tencent.com/document/api/1125/53274#ObjectDetail))。",
|
891
891
|
"example": "无",
|
892
892
|
"member": "ObjectDetail",
|
893
893
|
"name": "Details",
|
894
894
|
"output_required": true,
|
895
895
|
"type": "list",
|
896
|
-
"value_allowed_null":
|
896
|
+
"value_allowed_null": false
|
897
897
|
}
|
898
898
|
],
|
899
899
|
"usage": "out"
|
@@ -999,13 +999,13 @@
|
|
999
999
|
},
|
1000
1000
|
{
|
1001
1001
|
"disabled": false,
|
1002
|
-
"document": "该字段用于返回OCR
|
1002
|
+
"document": "该字段用于返回OCR识别出的结果的详细内容,如:文本内容、对应标签、识别框位置等信息。",
|
1003
1003
|
"example": "无",
|
1004
1004
|
"member": "OcrTextDetail",
|
1005
1005
|
"name": "Details",
|
1006
1006
|
"output_required": true,
|
1007
1007
|
"type": "list",
|
1008
|
-
"value_allowed_null":
|
1008
|
+
"value_allowed_null": false
|
1009
1009
|
},
|
1010
1010
|
{
|
1011
1011
|
"disabled": false,
|
@@ -1157,23 +1157,23 @@
|
|
1157
1157
|
"members": [
|
1158
1158
|
{
|
1159
1159
|
"disabled": false,
|
1160
|
-
"document": "当前可能的取值:Scene
|
1160
|
+
"document": "当前可能的取值:Scene(图片场景模型)",
|
1161
1161
|
"example": "Scene",
|
1162
1162
|
"member": "string",
|
1163
1163
|
"name": "Label",
|
1164
|
-
"
|
1164
|
+
"output_required": true,
|
1165
1165
|
"type": "string",
|
1166
|
-
"value_allowed_null":
|
1166
|
+
"value_allowed_null": false
|
1167
1167
|
},
|
1168
1168
|
{
|
1169
1169
|
"disabled": false,
|
1170
|
-
"document": "Label
|
1170
|
+
"document": "Label对应模型下的识别标签信息",
|
1171
1171
|
"example": "无",
|
1172
1172
|
"member": "RecognitionTag",
|
1173
1173
|
"name": "Tags",
|
1174
|
-
"
|
1174
|
+
"output_required": true,
|
1175
1175
|
"type": "list",
|
1176
|
-
"value_allowed_null":
|
1176
|
+
"value_allowed_null": false
|
1177
1177
|
}
|
1178
1178
|
],
|
1179
1179
|
"usage": "out"
|
@@ -1183,33 +1183,33 @@
|
|
1183
1183
|
"members": [
|
1184
1184
|
{
|
1185
1185
|
"disabled": false,
|
1186
|
-
"document": "
|
1186
|
+
"document": "标签名称",
|
1187
1187
|
"example": "Ad",
|
1188
1188
|
"member": "string",
|
1189
1189
|
"name": "Name",
|
1190
1190
|
"output_required": true,
|
1191
1191
|
"type": "string",
|
1192
|
-
"value_allowed_null":
|
1192
|
+
"value_allowed_null": false
|
1193
1193
|
},
|
1194
1194
|
{
|
1195
1195
|
"disabled": false,
|
1196
|
-
"document": "置信分:0~100
|
1196
|
+
"document": "置信分:0~100,数值越大表示置信度越高",
|
1197
1197
|
"example": "89",
|
1198
1198
|
"member": "int64",
|
1199
1199
|
"name": "Score",
|
1200
1200
|
"output_required": true,
|
1201
1201
|
"type": "int",
|
1202
|
-
"value_allowed_null":
|
1202
|
+
"value_allowed_null": false
|
1203
1203
|
},
|
1204
1204
|
{
|
1205
1205
|
"disabled": false,
|
1206
|
-
"document": "
|
1206
|
+
"document": "标签位置信息,若模型无位置信息,则可能为零值",
|
1207
1207
|
"example": "无",
|
1208
1208
|
"member": "Location",
|
1209
1209
|
"name": "Location",
|
1210
1210
|
"output_required": true,
|
1211
1211
|
"type": "object",
|
1212
|
-
"value_allowed_null":
|
1212
|
+
"value_allowed_null": false
|
1213
1213
|
}
|
1214
1214
|
],
|
1215
1215
|
"usage": "out"
|
@@ -10524,7 +10524,7 @@
|
|
10524
10524
|
},
|
10525
10525
|
{
|
10526
10526
|
"disabled": false,
|
10527
|
-
"document": "
|
10527
|
+
"document": "播放链接过期时间(时间戳,单位秒)",
|
10528
10528
|
"example": "1619331648",
|
10529
10529
|
"member": "uint64",
|
10530
10530
|
"name": "ExpireTime",
|
@@ -11980,7 +11980,7 @@
|
|
11980
11980
|
},
|
11981
11981
|
{
|
11982
11982
|
"disabled": false,
|
11983
|
-
"document": "是否需要返回总结,默认为
|
11983
|
+
"document": "是否需要返回总结,默认为True; 开启后会加大接口响应时长",
|
11984
11984
|
"example": "false",
|
11985
11985
|
"member": "bool",
|
11986
11986
|
"name": "EnableSummary",
|
@@ -928,7 +928,7 @@
|
|
928
928
|
{
|
929
929
|
"document": "",
|
930
930
|
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GenerateSignedVideoURL\n<公共请求参数>\n\n{\n \"ExpireTime\": 1619331648,\n \"VideoURL\": \"http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8\"\n}",
|
931
|
-
"output": "{\n \"Response\": {\n \"SignedVideoURL\": \"http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8?sign=x\",\n \"RequestId\": \"
|
931
|
+
"output": "{\n \"Response\": {\n \"SignedVideoURL\": \"http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8?sign=x\",\n \"RequestId\": \"request-id\"\n }\n}",
|
932
932
|
"title": "获取视频防盗链播放URL"
|
933
933
|
}
|
934
934
|
],
|
@@ -5868,7 +5868,7 @@
|
|
5868
5868
|
},
|
5869
5869
|
{
|
5870
5870
|
"disabled": false,
|
5871
|
-
"document": "
|
5871
|
+
"document": "播放链接过期时间(时间戳,单位秒)",
|
5872
5872
|
"example": "1619331648",
|
5873
5873
|
"member": "uint64",
|
5874
5874
|
"name": "ExpireTime",
|
@@ -5887,7 +5887,7 @@
|
|
5887
5887
|
"example": "http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8?sign=x",
|
5888
5888
|
"member": "string",
|
5889
5889
|
"name": "SignedVideoURL",
|
5890
|
-
"
|
5890
|
+
"output_required": true,
|
5891
5891
|
"type": "string",
|
5892
5892
|
"value_allowed_null": false
|
5893
5893
|
},
|
@@ -452,7 +452,7 @@
|
|
452
452
|
{
|
453
453
|
"document": "",
|
454
454
|
"input": "POST / HTTP/1.1\nHost: iotvideo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GenerateSignedVideoURL\n<公共请求参数>\n\n{\n \"ExpireTime\": 1619331648,\n \"VideoURL\": \"http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8\"\n}",
|
455
|
-
"output": "{\n \"Response\": {\n \"SignedVideoURL\": \"http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8?sign=x\",\n \"RequestId\": \"
|
455
|
+
"output": "{\n \"Response\": {\n \"SignedVideoURL\": \"http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8?sign=x\",\n \"RequestId\": \"requestid\"\n }\n}",
|
456
456
|
"title": "获取视频防盗链播放URL"
|
457
457
|
}
|
458
458
|
],
|
@@ -668,7 +668,7 @@
|
|
668
668
|
{
|
669
669
|
"document": "",
|
670
670
|
"input": "POST / HTTP/1.1\nHost: iotvideo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GenerateSignedVideoURL\n<公共请求参数>\n\n{\n \"ExpireTime\": 1619331648,\n \"VideoURL\": \"http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8\"\n}",
|
671
|
-
"output": "{\n \"Response\": {\n \"SignedVideoURL\": \"http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8?sign=x\",\n \"RequestId\": \"
|
671
|
+
"output": "{\n \"Response\": {\n \"SignedVideoURL\": \"http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8?sign=x\",\n \"RequestId\": \"requestid\"\n }\n}",
|
672
672
|
"title": "获取视频防盗链播放URL"
|
673
673
|
}
|
674
674
|
],
|
@@ -9858,6 +9858,16 @@
|
|
9858
9858
|
"output_required": false,
|
9859
9859
|
"type": "float",
|
9860
9860
|
"value_allowed_null": true
|
9861
|
+
},
|
9862
|
+
{
|
9863
|
+
"disabled": false,
|
9864
|
+
"document": "知识库类型:0默认1共享",
|
9865
|
+
"example": "1",
|
9866
|
+
"member": "int64",
|
9867
|
+
"name": "KnowledgeType",
|
9868
|
+
"output_required": false,
|
9869
|
+
"type": "int",
|
9870
|
+
"value_allowed_null": false
|
9861
9871
|
}
|
9862
9872
|
],
|
9863
9873
|
"usage": "out"
|
@@ -9911,7 +9921,7 @@
|
|
9911
9921
|
},
|
9912
9922
|
{
|
9913
9923
|
"disabled": false,
|
9914
|
-
"document": "
|
9924
|
+
"document": "废弃\n注意:此字段可能返回 null,表示取不到有效值。",
|
9915
9925
|
"example": "无",
|
9916
9926
|
"member": "bool",
|
9917
9927
|
"name": "IsSharedKnowledge",
|
@@ -9919,6 +9929,17 @@
|
|
9919
9929
|
"required": false,
|
9920
9930
|
"type": "bool",
|
9921
9931
|
"value_allowed_null": true
|
9932
|
+
},
|
9933
|
+
{
|
9934
|
+
"disabled": false,
|
9935
|
+
"document": "知识库类型:0默认1共享",
|
9936
|
+
"example": "1",
|
9937
|
+
"member": "int64",
|
9938
|
+
"name": "KnowledgeType",
|
9939
|
+
"output_required": false,
|
9940
|
+
"required": false,
|
9941
|
+
"type": "int",
|
9942
|
+
"value_allowed_null": false
|
9922
9943
|
}
|
9923
9944
|
],
|
9924
9945
|
"usage": "both"
|
@@ -799,7 +799,7 @@ def doSetAutoRenew(args, parsed_globals):
|
|
799
799
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
800
800
|
|
801
801
|
|
802
|
-
def
|
802
|
+
def doDescribeDetailedSlowLogs(args, parsed_globals):
|
803
803
|
g_param = parse_global_arg(parsed_globals)
|
804
804
|
|
805
805
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -828,11 +828,11 @@ def doIsolateDBInstance(args, parsed_globals):
|
|
828
828
|
client = mod.MongodbClient(cred, g_param[OptionsDefine.Region], profile)
|
829
829
|
client._sdkVersion += ("_CLI_" + __version__)
|
830
830
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
831
|
-
model = models.
|
831
|
+
model = models.DescribeDetailedSlowLogsRequest()
|
832
832
|
model.from_json_string(json.dumps(args))
|
833
833
|
start_time = time.time()
|
834
834
|
while True:
|
835
|
-
rsp = client.
|
835
|
+
rsp = client.DescribeDetailedSlowLogs(model)
|
836
836
|
result = rsp.to_json_string()
|
837
837
|
try:
|
838
838
|
json_obj = json.loads(result)
|
@@ -2723,6 +2723,58 @@ def doKillOps(args, parsed_globals):
|
|
2723
2723
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2724
2724
|
|
2725
2725
|
|
2726
|
+
def doIsolateDBInstance(args, parsed_globals):
|
2727
|
+
g_param = parse_global_arg(parsed_globals)
|
2728
|
+
|
2729
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2730
|
+
cred = credential.CVMRoleCredential()
|
2731
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2732
|
+
cred = credential.STSAssumeRoleCredential(
|
2733
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2734
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2735
|
+
)
|
2736
|
+
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):
|
2737
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2738
|
+
else:
|
2739
|
+
cred = credential.Credential(
|
2740
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2741
|
+
)
|
2742
|
+
http_profile = HttpProfile(
|
2743
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2744
|
+
reqMethod="POST",
|
2745
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2746
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2747
|
+
)
|
2748
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2749
|
+
if g_param[OptionsDefine.Language]:
|
2750
|
+
profile.language = g_param[OptionsDefine.Language]
|
2751
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2752
|
+
client = mod.MongodbClient(cred, g_param[OptionsDefine.Region], profile)
|
2753
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2754
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2755
|
+
model = models.IsolateDBInstanceRequest()
|
2756
|
+
model.from_json_string(json.dumps(args))
|
2757
|
+
start_time = time.time()
|
2758
|
+
while True:
|
2759
|
+
rsp = client.IsolateDBInstance(model)
|
2760
|
+
result = rsp.to_json_string()
|
2761
|
+
try:
|
2762
|
+
json_obj = json.loads(result)
|
2763
|
+
except TypeError as e:
|
2764
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2765
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2766
|
+
break
|
2767
|
+
cur_time = time.time()
|
2768
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2769
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2770
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2771
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2772
|
+
else:
|
2773
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2774
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2775
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2776
|
+
|
2777
|
+
|
2726
2778
|
def doEnableTransparentDataEncryption(args, parsed_globals):
|
2727
2779
|
g_param = parse_global_arg(parsed_globals)
|
2728
2780
|
|
@@ -3011,7 +3063,7 @@ ACTION_MAP = {
|
|
3011
3063
|
"UpgradeDBInstance": doUpgradeDBInstance,
|
3012
3064
|
"DescribeDBBackups": doDescribeDBBackups,
|
3013
3065
|
"SetAutoRenew": doSetAutoRenew,
|
3014
|
-
"
|
3066
|
+
"DescribeDetailedSlowLogs": doDescribeDetailedSlowLogs,
|
3015
3067
|
"SetBackupRules": doSetBackupRules,
|
3016
3068
|
"InquirePriceModifyDBInstanceSpec": doInquirePriceModifyDBInstanceSpec,
|
3017
3069
|
"RestartNodes": doRestartNodes,
|
@@ -3048,6 +3100,7 @@ ACTION_MAP = {
|
|
3048
3100
|
"ModifyInstanceParams": doModifyInstanceParams,
|
3049
3101
|
"DescribeDBInstanceParamTplDetail": doDescribeDBInstanceParamTplDetail,
|
3050
3102
|
"KillOps": doKillOps,
|
3103
|
+
"IsolateDBInstance": doIsolateDBInstance,
|
3051
3104
|
"EnableTransparentDataEncryption": doEnableTransparentDataEncryption,
|
3052
3105
|
"CreateBackupDBInstance": doCreateBackupDBInstance,
|
3053
3106
|
"InquirePriceRenewDBInstances": doInquirePriceRenewDBInstances,
|
@@ -154,6 +154,13 @@
|
|
154
154
|
"output": "DescribeDBInstancesResponse",
|
155
155
|
"status": "online"
|
156
156
|
},
|
157
|
+
"DescribeDetailedSlowLogs": {
|
158
|
+
"document": "查询实例慢日志详情",
|
159
|
+
"input": "DescribeDetailedSlowLogsRequest",
|
160
|
+
"name": "查询实例慢日志详情",
|
161
|
+
"output": "DescribeDetailedSlowLogsResponse",
|
162
|
+
"status": "online"
|
163
|
+
},
|
157
164
|
"DescribeInstanceParams": {
|
158
165
|
"document": "本接口(DescribeInstanceParams)用于查询当前实例可修改的参数列表。",
|
159
166
|
"input": "DescribeInstanceParamsRequest",
|
@@ -3028,6 +3035,152 @@
|
|
3028
3035
|
],
|
3029
3036
|
"type": "object"
|
3030
3037
|
},
|
3038
|
+
"DescribeDetailedSlowLogsRequest": {
|
3039
|
+
"document": "DescribeDetailedSlowLogs请求参数结构体",
|
3040
|
+
"members": [
|
3041
|
+
{
|
3042
|
+
"disabled": false,
|
3043
|
+
"document": "实例id",
|
3044
|
+
"example": "cmgo-xxxx",
|
3045
|
+
"member": "string",
|
3046
|
+
"name": "InstanceId",
|
3047
|
+
"required": true,
|
3048
|
+
"type": "string"
|
3049
|
+
},
|
3050
|
+
{
|
3051
|
+
"disabled": false,
|
3052
|
+
"document": "待查询慢日志的开始时间",
|
3053
|
+
"example": "2025-01-02 13:14:15",
|
3054
|
+
"member": "string",
|
3055
|
+
"name": "StartTime",
|
3056
|
+
"required": true,
|
3057
|
+
"type": "string"
|
3058
|
+
},
|
3059
|
+
{
|
3060
|
+
"disabled": false,
|
3061
|
+
"document": "待慢日志的结束时间",
|
3062
|
+
"example": "2025-01-02 13:14:15",
|
3063
|
+
"member": "string",
|
3064
|
+
"name": "EndTime",
|
3065
|
+
"required": true,
|
3066
|
+
"type": "string"
|
3067
|
+
},
|
3068
|
+
{
|
3069
|
+
"disabled": false,
|
3070
|
+
"document": "过滤执行时间大于此值的慢日志,单位ms,默认值100",
|
3071
|
+
"example": "100",
|
3072
|
+
"member": "int64",
|
3073
|
+
"name": "ExecTime",
|
3074
|
+
"required": false,
|
3075
|
+
"type": "int"
|
3076
|
+
},
|
3077
|
+
{
|
3078
|
+
"disabled": false,
|
3079
|
+
"document": "过滤慢日志的命令类型",
|
3080
|
+
"example": "find",
|
3081
|
+
"member": "string",
|
3082
|
+
"name": "Commands",
|
3083
|
+
"required": false,
|
3084
|
+
"type": "list"
|
3085
|
+
},
|
3086
|
+
{
|
3087
|
+
"disabled": false,
|
3088
|
+
"document": "全文搜索关键字,多个关键字间为或关系",
|
3089
|
+
"example": "[\"aaa\",\"bbb\"]",
|
3090
|
+
"member": "string",
|
3091
|
+
"name": "Texts",
|
3092
|
+
"required": false,
|
3093
|
+
"type": "list"
|
3094
|
+
},
|
3095
|
+
{
|
3096
|
+
"disabled": false,
|
3097
|
+
"document": "根据节点名过滤",
|
3098
|
+
"example": "[\"cmgo-xxxx-node-primary\"]",
|
3099
|
+
"member": "string",
|
3100
|
+
"name": "NodeNames",
|
3101
|
+
"required": false,
|
3102
|
+
"type": "list"
|
3103
|
+
},
|
3104
|
+
{
|
3105
|
+
"disabled": false,
|
3106
|
+
"document": "根据queryHash过滤",
|
3107
|
+
"example": "[\"abcdef\"]",
|
3108
|
+
"member": "string",
|
3109
|
+
"name": "QueryHash",
|
3110
|
+
"required": false,
|
3111
|
+
"type": "list"
|
3112
|
+
},
|
3113
|
+
{
|
3114
|
+
"disabled": false,
|
3115
|
+
"document": "分页偏移量",
|
3116
|
+
"example": "1",
|
3117
|
+
"member": "int64",
|
3118
|
+
"name": "Offset",
|
3119
|
+
"required": false,
|
3120
|
+
"type": "int"
|
3121
|
+
},
|
3122
|
+
{
|
3123
|
+
"disabled": false,
|
3124
|
+
"document": "返回条数",
|
3125
|
+
"example": "10",
|
3126
|
+
"member": "int64",
|
3127
|
+
"name": "Limit",
|
3128
|
+
"required": false,
|
3129
|
+
"type": "int"
|
3130
|
+
},
|
3131
|
+
{
|
3132
|
+
"disabled": false,
|
3133
|
+
"document": "排序条件,只支持StartTime(按慢日志生成时间)和ExecTime(慢日志执行时间)",
|
3134
|
+
"example": "ExecTime",
|
3135
|
+
"member": "string",
|
3136
|
+
"name": "OrderBy",
|
3137
|
+
"required": false,
|
3138
|
+
"type": "string"
|
3139
|
+
},
|
3140
|
+
{
|
3141
|
+
"disabled": false,
|
3142
|
+
"document": "排序。desc倒排,asc正排",
|
3143
|
+
"example": "desc",
|
3144
|
+
"member": "string",
|
3145
|
+
"name": "OrderByType",
|
3146
|
+
"required": false,
|
3147
|
+
"type": "string"
|
3148
|
+
}
|
3149
|
+
],
|
3150
|
+
"type": "object"
|
3151
|
+
},
|
3152
|
+
"DescribeDetailedSlowLogsResponse": {
|
3153
|
+
"document": "DescribeDetailedSlowLogs返回参数结构体",
|
3154
|
+
"members": [
|
3155
|
+
{
|
3156
|
+
"disabled": false,
|
3157
|
+
"document": "满足条件的慢日志数量",
|
3158
|
+
"example": "100",
|
3159
|
+
"member": "int64",
|
3160
|
+
"name": "TotalCount",
|
3161
|
+
"output_required": false,
|
3162
|
+
"type": "int",
|
3163
|
+
"value_allowed_null": false
|
3164
|
+
},
|
3165
|
+
{
|
3166
|
+
"disabled": false,
|
3167
|
+
"document": "慢日志详情",
|
3168
|
+
"example": "无",
|
3169
|
+
"member": "SlowLogItem",
|
3170
|
+
"name": "DetailedSlowLogs",
|
3171
|
+
"output_required": false,
|
3172
|
+
"type": "list",
|
3173
|
+
"value_allowed_null": false
|
3174
|
+
},
|
3175
|
+
{
|
3176
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3177
|
+
"member": "string",
|
3178
|
+
"name": "RequestId",
|
3179
|
+
"type": "string"
|
3180
|
+
}
|
3181
|
+
],
|
3182
|
+
"type": "object"
|
3183
|
+
},
|
3031
3184
|
"DescribeInstanceParamsRequest": {
|
3032
3185
|
"document": "DescribeInstanceParams请求参数结构体",
|
3033
3186
|
"members": [
|
@@ -6368,6 +6521,42 @@
|
|
6368
6521
|
],
|
6369
6522
|
"usage": "out"
|
6370
6523
|
},
|
6524
|
+
"SlowLogItem": {
|
6525
|
+
"document": "慢日志详情",
|
6526
|
+
"members": [
|
6527
|
+
{
|
6528
|
+
"disabled": false,
|
6529
|
+
"document": "慢日志",
|
6530
|
+
"example": "无",
|
6531
|
+
"member": "string",
|
6532
|
+
"name": "Log",
|
6533
|
+
"output_required": false,
|
6534
|
+
"type": "string",
|
6535
|
+
"value_allowed_null": false
|
6536
|
+
},
|
6537
|
+
{
|
6538
|
+
"disabled": false,
|
6539
|
+
"document": "节点名称",
|
6540
|
+
"example": "无",
|
6541
|
+
"member": "string",
|
6542
|
+
"name": "NodeName",
|
6543
|
+
"output_required": false,
|
6544
|
+
"type": "string",
|
6545
|
+
"value_allowed_null": false
|
6546
|
+
},
|
6547
|
+
{
|
6548
|
+
"disabled": false,
|
6549
|
+
"document": "queryHash",
|
6550
|
+
"example": "无",
|
6551
|
+
"member": "string",
|
6552
|
+
"name": "QueryHash",
|
6553
|
+
"output_required": false,
|
6554
|
+
"type": "string",
|
6555
|
+
"value_allowed_null": false
|
6556
|
+
}
|
6557
|
+
],
|
6558
|
+
"usage": "out"
|
6559
|
+
},
|
6371
6560
|
"SlowLogPattern": {
|
6372
6561
|
"document": "用于描述MongoDB数据库慢日志统计信息",
|
6373
6562
|
"members": [
|
@@ -6381,6 +6570,16 @@
|
|
6381
6570
|
"type": "string",
|
6382
6571
|
"value_allowed_null": false
|
6383
6572
|
},
|
6573
|
+
{
|
6574
|
+
"disabled": false,
|
6575
|
+
"document": "queryHash",
|
6576
|
+
"example": "abcdefg",
|
6577
|
+
"member": "string",
|
6578
|
+
"name": "QueryHash",
|
6579
|
+
"output_required": false,
|
6580
|
+
"type": "string",
|
6581
|
+
"value_allowed_null": false
|
6582
|
+
},
|
6384
6583
|
{
|
6385
6584
|
"disabled": false,
|
6386
6585
|
"document": "最大执行时间",
|