tccli 3.0.1283.1__py2.py3-none-any.whl → 3.0.1285.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.
Files changed (104) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/acp/v20220105/api.json +23 -23
  3. tccli/services/acp/v20220105/examples.json +2 -8
  4. tccli/services/advisor/v20200721/api.json +4 -2
  5. tccli/services/apm/v20210622/api.json +1 -1
  6. tccli/services/autoscaling/v20180419/api.json +88 -86
  7. tccli/services/bh/bh_client.py +53 -0
  8. tccli/services/bh/v20230418/api.json +199 -0
  9. tccli/services/bh/v20230418/examples.json +8 -0
  10. tccli/services/cdn/v20180606/api.json +4 -2
  11. tccli/services/cdwch/v20200915/api.json +19 -9
  12. tccli/services/cdwch/v20200915/examples.json +1 -1
  13. tccli/services/cdwdoris/v20211228/api.json +18 -0
  14. tccli/services/cfg/v20210820/api.json +48 -24
  15. tccli/services/cfg/v20210820/examples.json +8 -2
  16. tccli/services/clb/v20180317/api.json +21 -3
  17. tccli/services/cmq/v20190304/api.json +92 -92
  18. tccli/services/cynosdb/v20190107/api.json +389 -379
  19. tccli/services/dbbrain/v20191016/api.json +17 -17
  20. tccli/services/dbbrain/v20210527/api.json +22 -22
  21. tccli/services/dcdb/v20180411/api.json +14 -4
  22. tccli/services/dcdb/v20180411/examples.json +1 -1
  23. tccli/services/dlc/v20210125/api.json +130 -58
  24. tccli/services/dlc/v20210125/examples.json +5 -5
  25. tccli/services/domain/v20180808/api.json +160 -160
  26. tccli/services/dsgc/v20190723/api.json +2 -2
  27. tccli/services/dts/v20180330/api.json +19 -19
  28. tccli/services/dts/v20211206/api.json +829 -818
  29. tccli/services/emr/emr_client.py +53 -0
  30. tccli/services/emr/v20190103/api.json +247 -0
  31. tccli/services/emr/v20190103/examples.json +8 -0
  32. tccli/services/es/v20180416/api.json +13 -3
  33. tccli/services/es/v20180416/examples.json +2 -2
  34. tccli/services/ess/ess_client.py +53 -0
  35. tccli/services/ess/v20201111/api.json +122 -1
  36. tccli/services/ess/v20201111/examples.json +26 -0
  37. tccli/services/essbasic/essbasic_client.py +57 -4
  38. tccli/services/essbasic/v20210526/api.json +163 -0
  39. tccli/services/essbasic/v20210526/examples.json +26 -0
  40. tccli/services/fmu/fmu_client.py +8 -167
  41. tccli/services/fmu/v20191213/api.json +0 -292
  42. tccli/services/fmu/v20191213/examples.json +0 -24
  43. tccli/services/goosefs/v20220519/api.json +26 -24
  44. tccli/services/goosefs/v20220519/examples.json +2 -2
  45. tccli/services/iotcloud/v20210408/api.json +27 -27
  46. tccli/services/iotcloud/v20210408/examples.json +6 -6
  47. tccli/services/iotexplorer/iotexplorer_client.py +0 -106
  48. tccli/services/iotexplorer/v20190423/api.json +0 -274
  49. tccli/services/iotexplorer/v20190423/examples.json +0 -16
  50. tccli/services/iss/v20230517/api.json +547 -537
  51. tccli/services/iss/v20230517/examples.json +2 -2
  52. tccli/services/kms/v20190118/api.json +20 -0
  53. tccli/services/lcic/lcic_client.py +114 -8
  54. tccli/services/lcic/v20220817/api.json +108 -0
  55. tccli/services/lcic/v20220817/examples.json +16 -0
  56. tccli/services/lke/v20231130/api.json +8 -8
  57. tccli/services/lke/v20231130/examples.json +1 -1
  58. tccli/services/lowcode/v20210108/api.json +165 -165
  59. tccli/services/lowcode/v20210108/examples.json +5 -5
  60. tccli/services/mariadb/v20170312/api.json +12 -2
  61. tccli/services/mariadb/v20170312/examples.json +4 -4
  62. tccli/services/mongodb/mongodb_client.py +57 -4
  63. tccli/services/mongodb/v20190725/api.json +63 -0
  64. tccli/services/mongodb/v20190725/examples.json +14 -0
  65. tccli/services/monitor/v20180724/api.json +36 -36
  66. tccli/services/monitor/v20180724/examples.json +10 -10
  67. tccli/services/ocr/v20181119/api.json +2 -2
  68. tccli/services/ocr/v20181119/examples.json +2 -2
  69. tccli/services/organization/organization_client.py +53 -0
  70. tccli/services/organization/v20210331/api.json +61 -0
  71. tccli/services/organization/v20210331/examples.json +8 -0
  72. tccli/services/redis/v20180412/api.json +11 -2
  73. tccli/services/redis/v20180412/examples.json +1 -1
  74. tccli/services/scf/v20180416/api.json +40 -0
  75. tccli/services/svp/svp_client.py +57 -4
  76. tccli/services/svp/v20240125/api.json +319 -0
  77. tccli/services/svp/v20240125/examples.json +8 -0
  78. tccli/services/tdmq/tdmq_client.py +4 -57
  79. tccli/services/tdmq/v20200217/api.json +118 -212
  80. tccli/services/tdmq/v20200217/examples.json +0 -8
  81. tccli/services/tds/v20220801/api.json +2 -2
  82. tccli/services/tione/v20211111/api.json +41 -1
  83. tccli/services/trtc/v20190722/api.json +16 -5
  84. tccli/services/tse/v20201207/api.json +207 -104
  85. tccli/services/tsf/tsf_client.py +53 -0
  86. tccli/services/tsf/v20180326/api.json +48 -4
  87. tccli/services/tsf/v20180326/examples.json +8 -0
  88. tccli/services/vclm/v20240523/api.json +20 -2
  89. tccli/services/vdb/v20230616/api.json +62 -62
  90. tccli/services/vdb/v20230616/examples.json +2 -2
  91. tccli/services/vpc/v20170312/api.json +54 -0
  92. tccli/services/vpc/v20170312/examples.json +8 -0
  93. tccli/services/vpc/vpc_client.py +53 -0
  94. tccli/services/waf/v20180125/api.json +143 -0
  95. tccli/services/waf/v20180125/examples.json +16 -0
  96. tccli/services/waf/waf_client.py +106 -0
  97. tccli/services/wedata/v20210820/api.json +1220 -5
  98. tccli/services/wedata/v20210820/examples.json +32 -8
  99. tccli/services/wedata/wedata_client.py +159 -0
  100. {tccli-3.0.1283.1.dist-info → tccli-3.0.1285.1.dist-info}/METADATA +2 -2
  101. {tccli-3.0.1283.1.dist-info → tccli-3.0.1285.1.dist-info}/RECORD +104 -104
  102. {tccli-3.0.1283.1.dist-info → tccli-3.0.1285.1.dist-info}/WHEEL +0 -0
  103. {tccli-3.0.1283.1.dist-info → tccli-3.0.1285.1.dist-info}/entry_points.txt +0 -0
  104. {tccli-3.0.1283.1.dist-info → tccli-3.0.1285.1.dist-info}/license_files/LICENSE +0 -0
@@ -3917,6 +3917,58 @@ def doModifyInstanceBasic(args, parsed_globals):
3917
3917
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3918
3918
 
3919
3919
 
3920
+ def doModifyInspectionSettings(args, parsed_globals):
3921
+ g_param = parse_global_arg(parsed_globals)
3922
+
3923
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3924
+ cred = credential.CVMRoleCredential()
3925
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3926
+ cred = credential.STSAssumeRoleCredential(
3927
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3928
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3929
+ )
3930
+ 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):
3931
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3932
+ else:
3933
+ cred = credential.Credential(
3934
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3935
+ )
3936
+ http_profile = HttpProfile(
3937
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3938
+ reqMethod="POST",
3939
+ endpoint=g_param[OptionsDefine.Endpoint],
3940
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3941
+ )
3942
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3943
+ if g_param[OptionsDefine.Language]:
3944
+ profile.language = g_param[OptionsDefine.Language]
3945
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3946
+ client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
3947
+ client._sdkVersion += ("_CLI_" + __version__)
3948
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3949
+ model = models.ModifyInspectionSettingsRequest()
3950
+ model.from_json_string(json.dumps(args))
3951
+ start_time = time.time()
3952
+ while True:
3953
+ rsp = client.ModifyInspectionSettings(model)
3954
+ result = rsp.to_json_string()
3955
+ try:
3956
+ json_obj = json.loads(result)
3957
+ except TypeError as e:
3958
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3959
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3960
+ break
3961
+ cur_time = time.time()
3962
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3963
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3964
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3965
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3966
+ else:
3967
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3968
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3969
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3970
+
3971
+
3920
3972
  def doModifyPodNum(args, parsed_globals):
3921
3973
  g_param = parse_global_arg(parsed_globals)
3922
3974
 
@@ -4159,6 +4211,7 @@ ACTION_MAP = {
4159
4211
  "DescribeInsightList": doDescribeInsightList,
4160
4212
  "DescribeEmrOverviewMetrics": doDescribeEmrOverviewMetrics,
4161
4213
  "ModifyInstanceBasic": doModifyInstanceBasic,
4214
+ "ModifyInspectionSettings": doModifyInspectionSettings,
4162
4215
  "ModifyPodNum": doModifyPodNum,
4163
4216
  "ScaleOutCluster": doScaleOutCluster,
4164
4217
  "RunJobFlow": doRunJobFlow,
@@ -378,6 +378,13 @@
378
378
  "output": "ModifyGlobalConfigResponse",
379
379
  "status": "online"
380
380
  },
381
+ "ModifyInspectionSettings": {
382
+ "document": "设置巡检任务配置",
383
+ "input": "ModifyInspectionSettingsRequest",
384
+ "name": "设置巡检任务配置",
385
+ "output": "ModifyInspectionSettingsResponse",
386
+ "status": "online"
387
+ },
381
388
  "ModifyInstanceBasic": {
382
389
  "document": "修改集群名称",
383
390
  "input": "ModifyInstanceBasicRequest",
@@ -10165,6 +10172,72 @@
10165
10172
  ],
10166
10173
  "usage": "both"
10167
10174
  },
10175
+ "InspectionTaskSettings": {
10176
+ "document": "设置巡检任务配置",
10177
+ "members": [
10178
+ {
10179
+ "disabled": false,
10180
+ "document": "巡检任务的唯一标记",
10181
+ "example": "",
10182
+ "member": "string",
10183
+ "name": "TaskType",
10184
+ "required": true,
10185
+ "type": "string",
10186
+ "value_allowed_null": false
10187
+ },
10188
+ {
10189
+ "disabled": false,
10190
+ "document": "巡检任务组名称",
10191
+ "example": "",
10192
+ "member": "string",
10193
+ "name": "Group",
10194
+ "required": false,
10195
+ "type": "string",
10196
+ "value_allowed_null": false
10197
+ },
10198
+ {
10199
+ "disabled": false,
10200
+ "document": "巡检任务名称",
10201
+ "example": "",
10202
+ "member": "string",
10203
+ "name": "Name",
10204
+ "required": false,
10205
+ "type": "string",
10206
+ "value_allowed_null": false
10207
+ },
10208
+ {
10209
+ "disabled": false,
10210
+ "document": "巡检任务参数设置",
10211
+ "example": "",
10212
+ "member": "TaskSettings",
10213
+ "name": "TaskSettings",
10214
+ "required": false,
10215
+ "type": "list",
10216
+ "value_allowed_null": false
10217
+ },
10218
+ {
10219
+ "disabled": false,
10220
+ "document": "是否选中,”true“ ”false“",
10221
+ "example": "",
10222
+ "member": "string",
10223
+ "name": "Selected",
10224
+ "required": false,
10225
+ "type": "string",
10226
+ "value_allowed_null": false
10227
+ },
10228
+ {
10229
+ "disabled": false,
10230
+ "document": "是否开启监控",
10231
+ "example": "",
10232
+ "member": "string",
10233
+ "name": "Enable",
10234
+ "required": false,
10235
+ "type": "string",
10236
+ "value_allowed_null": false
10237
+ }
10238
+ ],
10239
+ "usage": "in"
10240
+ },
10168
10241
  "InstanceChargePrepaid": {
10169
10242
  "document": "实例预付费参数,只有在付费类型为PREPAID时生效。",
10170
10243
  "members": [
@@ -11158,6 +11231,134 @@
11158
11231
  ],
11159
11232
  "type": "object"
11160
11233
  },
11234
+ "ModifyInspectionSettingsRequest": {
11235
+ "document": "ModifyInspectionSettings请求参数结构体",
11236
+ "members": [
11237
+ {
11238
+ "disabled": false,
11239
+ "document": "实例ID",
11240
+ "example": "emr-mwyixwxp",
11241
+ "member": "string",
11242
+ "name": "InstanceId",
11243
+ "required": true,
11244
+ "type": "string"
11245
+ },
11246
+ {
11247
+ "disabled": false,
11248
+ "document": "巡检类型,FixedTime/RealTime",
11249
+ "example": "RealTime",
11250
+ "member": "string",
11251
+ "name": "Type",
11252
+ "required": true,
11253
+ "type": "string"
11254
+ },
11255
+ {
11256
+ "disabled": false,
11257
+ "document": "任务配置",
11258
+ "example": "[{ \"Name\": \"元数据库异常\", \"Group\": \"节点\", \"TaskType\": \"MetaDBPingFail\", \"Selected\": \"true\", \"TaskSettings\": [] }]",
11259
+ "member": "InspectionTaskSettings",
11260
+ "name": "Settings",
11261
+ "required": true,
11262
+ "type": "list"
11263
+ },
11264
+ {
11265
+ "disabled": false,
11266
+ "document": "开始时间戳",
11267
+ "example": "1741795200",
11268
+ "member": "int64",
11269
+ "name": "StartTime",
11270
+ "required": false,
11271
+ "type": "int"
11272
+ },
11273
+ {
11274
+ "disabled": false,
11275
+ "document": "结束时间戳",
11276
+ "example": "1741837980",
11277
+ "member": "int64",
11278
+ "name": "EndTime",
11279
+ "required": false,
11280
+ "type": "int"
11281
+ },
11282
+ {
11283
+ "disabled": false,
11284
+ "document": "巡检周期,eg EveryDay EveryWeek EveryMonth",
11285
+ "example": "None",
11286
+ "member": "string",
11287
+ "name": "Strategy",
11288
+ "required": false,
11289
+ "type": "string"
11290
+ },
11291
+ {
11292
+ "disabled": false,
11293
+ "document": "每天的开始的时间",
11294
+ "example": "15:04:05",
11295
+ "member": "string",
11296
+ "name": "Clock",
11297
+ "required": false,
11298
+ "type": "string"
11299
+ },
11300
+ {
11301
+ "disabled": false,
11302
+ "document": "每周的周几",
11303
+ "example": "1",
11304
+ "member": "string",
11305
+ "name": "DayOfWeek",
11306
+ "required": false,
11307
+ "type": "string"
11308
+ },
11309
+ {
11310
+ "disabled": false,
11311
+ "document": "每月的第几号",
11312
+ "example": "2",
11313
+ "member": "string",
11314
+ "name": "DayOfMonth",
11315
+ "required": false,
11316
+ "type": "string"
11317
+ },
11318
+ {
11319
+ "disabled": false,
11320
+ "document": "巡检作业Id",
11321
+ "example": "500",
11322
+ "member": "string",
11323
+ "name": "JobId",
11324
+ "required": false,
11325
+ "type": "string"
11326
+ }
11327
+ ],
11328
+ "type": "object"
11329
+ },
11330
+ "ModifyInspectionSettingsResponse": {
11331
+ "document": "ModifyInspectionSettings返回参数结构体",
11332
+ "members": [
11333
+ {
11334
+ "disabled": false,
11335
+ "document": "返回值描述",
11336
+ "example": "OK",
11337
+ "member": "string",
11338
+ "name": "Info",
11339
+ "output_required": true,
11340
+ "type": "string",
11341
+ "value_allowed_null": false
11342
+ },
11343
+ {
11344
+ "disabled": false,
11345
+ "document": "返回成功修改的巡检任务Id",
11346
+ "example": "123",
11347
+ "member": "string",
11348
+ "name": "JobId",
11349
+ "output_required": true,
11350
+ "type": "string",
11351
+ "value_allowed_null": false
11352
+ },
11353
+ {
11354
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11355
+ "member": "string",
11356
+ "name": "RequestId",
11357
+ "type": "string"
11358
+ }
11359
+ ],
11360
+ "type": "object"
11361
+ },
11161
11362
  "ModifyInstanceBasicRequest": {
11162
11363
  "document": "ModifyInstanceBasic请求参数结构体",
11163
11364
  "members": [
@@ -17630,6 +17831,52 @@
17630
17831
  ],
17631
17832
  "usage": "both"
17632
17833
  },
17834
+ "TaskSettings": {
17835
+ "document": "巡检任务参数",
17836
+ "members": [
17837
+ {
17838
+ "disabled": false,
17839
+ "document": "参数名称",
17840
+ "example": "",
17841
+ "member": "string",
17842
+ "name": "Name",
17843
+ "required": false,
17844
+ "type": "string",
17845
+ "value_allowed_null": false
17846
+ },
17847
+ {
17848
+ "disabled": false,
17849
+ "document": "参数值",
17850
+ "example": "",
17851
+ "member": "string",
17852
+ "name": "Value",
17853
+ "required": false,
17854
+ "type": "string",
17855
+ "value_allowed_null": false
17856
+ },
17857
+ {
17858
+ "disabled": false,
17859
+ "document": "参数唯一标记",
17860
+ "example": "",
17861
+ "member": "string",
17862
+ "name": "Key",
17863
+ "required": false,
17864
+ "type": "string",
17865
+ "value_allowed_null": false
17866
+ },
17867
+ {
17868
+ "disabled": false,
17869
+ "document": "是否可编辑,”true\" \"false\"",
17870
+ "example": "",
17871
+ "member": "string",
17872
+ "name": "Editable",
17873
+ "required": false,
17874
+ "type": "string",
17875
+ "value_allowed_null": false
17876
+ }
17877
+ ],
17878
+ "usage": "in"
17879
+ },
17633
17880
  "TerminateClusterNodesRequest": {
17634
17881
  "document": "TerminateClusterNodes请求参数结构体",
17635
17882
  "members": [
@@ -432,6 +432,14 @@
432
432
  "title": "修改YARN资源调度的全局配置"
433
433
  }
434
434
  ],
435
+ "ModifyInspectionSettings": [
436
+ {
437
+ "document": "",
438
+ "input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInspectionSettings\n\n{\n \"StartTime\": 1741795200,\n \"EndTime\": 1741837980,\n \"InstanceId\": \"emr-mwyixwxp\",\n \"Type\": \"RealTime\",\n \"Settings\": [\n {\n \"Name\": \"CPU利用率连续高于阈值\",\n \"Group\": \"节点\",\n \"TaskType\": \"CpuUsageMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"阈值\",\n \"Value\": \"85\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"CPU IOwait平均值高于阈值\",\n \"Group\": \"节点\",\n \"TaskType\": \"CpuIOWaitAvgMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"阈值\",\n \"Value\": \"60\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"内存使用率持续高于阈值\",\n \"Group\": \"节点\",\n \"TaskType\": \"MemoryFreeException\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"阈值\",\n \"Value\": \"85\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"系统进程总数连续高于阈值\",\n \"Group\": \"节点\",\n \"TaskType\": \"ProcessCntMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"阈值\",\n \"Value\": \"10000\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"元数据库异常\",\n \"Group\": \"节点\",\n \"TaskType\": \"MetaDBPingFail\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"HDFS存储空间使用率持续高于阈值\",\n \"Group\": \"HDFS\",\n \"TaskType\": \"HDFSCapacityUsedRateMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"阈值\",\n \"Value\": \"85\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"NameNode 发生主备切换\",\n \"Group\": \"HDFS\",\n \"TaskType\": \"HDFSNameNodeSwitch\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"NameNode 发生full GC\",\n \"Group\": \"HDFS\",\n \"TaskType\": \"NameNodeFullGC\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"NameNode JVM内存使用率持续高于阈值\",\n \"Group\": \"HDFS\",\n \"TaskType\": \"NameNodeJvmMemoryUsageMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"阈值\",\n \"Value\": \"85\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"ResourceManager 发生主备切换\",\n \"Group\": \"YARN\",\n \"TaskType\": \"YarnRMSwitch\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"ResourceManager 发生full GC\",\n \"Group\": \"YARN\",\n \"TaskType\": \"YarnRmFullGCMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"ResourceManager JVM内存使用率持续高于阈值\",\n \"Group\": \"YARN\",\n \"TaskType\": \"YarnRmJvmMemoryUsageMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"RM JVM内存使用率\",\n \"Value\": \"85\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"集群处于RIT Region个数持续高于阈值\",\n \"Group\": \"HBASE\",\n \"TaskType\": \"HbaseRitRegionNumMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"Rit Region个数\",\n \"Value\": \"1\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"60\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"HMaster JVM内存使用率持续高于阈值\",\n \"Group\": \"HBASE\",\n \"TaskType\": \"HbaseHmJvmMemoryUsageMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"HMaster JVM内存使用率\",\n \"Value\": \"85\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"HiveServer2 发生full GC\",\n \"Group\": \"HIVE\",\n \"TaskType\": \"HiveServer2FullGC\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"HiveServer2 JVM内存使用率持续高于阈值\",\n \"Group\": \"HIVE\",\n \"TaskType\": \"HiveServer2JvmMemoryUsageMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"HiveServer2 JVM内存使用率\",\n \"Value\": \"85\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"Impala Beeswax API客户端连接数高于阈值\",\n \"Group\": \"IMPALA\",\n \"TaskType\": \"ImpalaThriftServerBeeswaxFrontendConnMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"Impala Beeswax API客户端连接数\",\n \"Value\": \"64\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"Impala HS2客户端连接数高于阈值\",\n \"Group\": \"IMPALA\",\n \"TaskType\": \"ImpalaThriftServerHS2ConnMoreThanThrshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"Impala HS2客户端连接数\",\n \"Value\": \"64\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"JVM OLD区异常\",\n \"Group\": \"集群\",\n \"TaskType\": \"JVMOldException\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"单盘INODES使用率持续高于阈值\",\n \"Group\": \"节点\",\n \"TaskType\": \"SingleDiskInMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"阈值\",\n \"Value\": \"85\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"单盘IO设备利用率持续高于阈值\",\n \"Group\": \"节点\",\n \"TaskType\": \"SingleDiskUtilMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"阈值\",\n \"Value\": \"85\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"单盘空间使用率持续高于阈值\",\n \"Group\": \"节点\",\n \"TaskType\": \"SingleDiskSpaceMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"阈值\",\n \"Value\": \"85\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"HBASE 两个HMaster服务状态均为Standby\",\n \"Group\": \"HBASE\",\n \"TaskType\": \"HmStandbyStatusMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"两个HMaster节点同时处于StandBy状态持续90秒以上,指标区间(秒)\",\n \"Value\": \"300\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"HDFS 两个NameNode服务状态均为Standby\",\n \"Group\": \"HDFS\",\n \"TaskType\": \"NNStandbyStatusMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"两个NameNode节点同时处于StandBy状态持续90秒以上,指标区间(秒)\",\n \"Value\": \"300\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"子机UTC时间和NTP时间差值高于阈值\",\n \"Group\": \"节点\",\n \"TaskType\": \"NodeUTCNTPTimeOffsetMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"阈值\",\n \"Value\": \"30000\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"HDFS NameNode进入安全模式\",\n \"Group\": \"HDFS\",\n \"TaskType\": \"HDFSNameNodeEnterSafeMode\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"HDFS MissingBlocks数量持续高于阈值\",\n \"Group\": \"HDFS\",\n \"TaskType\": \"HDFSMissingBlocksNumMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"阈值\",\n \"Value\": \"1\",\n \"Editable\": \"true\"\n },\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"1800\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"节点故障\",\n \"Group\": \"节点\",\n \"TaskType\": \"NodeFailure\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"节点磁盘IO异常\",\n \"Group\": \"节点\",\n \"TaskType\": \"DiskIOError\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"服务角色健康状态异常\",\n \"Group\": \"集群\",\n \"TaskType\": \"ProcessDetectionAbnormal\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"持续时间(秒)\",\n \"Value\": \"300\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"自动伸缩策略执行失败\",\n \"Group\": \"集群\",\n \"TaskType\": \"AutoScaleStrategyFailure\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"自动伸缩策略执行超时\",\n \"Group\": \"集群\",\n \"TaskType\": \"AutoScaleStrategyTimeOut\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"HMaster 发生主备切换\",\n \"Group\": \"HBASE\",\n \"TaskType\": \"HMasterSwitch\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"Zookeeper 发生Leader切换\",\n \"Group\": \"ZOOKEEPER\",\n \"TaskType\": \"ZKLeaderSwitch\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"YARN ResourceManager无active状态\",\n \"Group\": \"YARN\",\n \"TaskType\": \"YarnRmNoActiveStatusMoreThanThreshold\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"WindowSize\",\n \"Name\": \"Yarn无active状态的ResourceManager服务,持续时间(秒)\",\n \"Value\": \"90\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"进程被OOMKiller kill\",\n \"Group\": \"集群\",\n \"TaskType\": \"ProcessOutOfMemory\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"实例硬盘异常待授权\",\n \"Group\": \"节点\",\n \"TaskType\": \"InstanceDiskErrorInquiring\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"实例运行异常待授权\",\n \"Group\": \"节点\",\n \"TaskType\": \"InstanceRunningAbnormallyInquiring\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"子机nvme设备error\",\n \"Group\": \"节点\",\n \"TaskType\": \"NvmeError\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"机器重启\",\n \"Group\": \"节点\",\n \"TaskType\": \"GuestReboot\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"内存OOM\",\n \"Group\": \"节点\",\n \"TaskType\": \"GuestOom\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"内核故障\",\n \"Group\": \"节点\",\n \"TaskType\": \"GuestCoreError\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"磁盘只读\",\n \"Group\": \"节点\",\n \"TaskType\": \"CvmDiskReadonly\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"ping不可达\",\n \"Group\": \"节点\",\n \"TaskType\": \"PingUnreachable\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"开启外网环境下安全组端口存在风险\",\n \"Group\": \"集群\",\n \"TaskType\": \"NetworkSecurityHighRiskPortDetection\",\n \"Selected\": \"true\",\n \"TaskSettings\": []\n },\n {\n \"Name\": \"HDFS目录满\",\n \"Group\": \"HDFS\",\n \"TaskType\": \"HdfsDirFull\",\n \"Selected\": \"true\",\n \"TaskSettings\": [\n {\n \"Key\": \"Threshold\",\n \"Name\": \"百分比阈值\",\n \"Value\": \"95\",\n \"Editable\": \"true\"\n }\n ]\n },\n {\n \"Name\": \"Trino全表扫描分区表\",\n \"Group\": \"TRINO\",\n \"TaskType\": \"TrinoFullScanPartTable\",\n \"Selected\": \"false\",\n \"TaskSettings\": []\n }\n ]\n}",
439
+ "output": "{\n \"Response\": {\n \"Info\": \"OK\",\n \"JobId\": \"499\",\n \"RequestId\": \"c1ff0d96-48a7-47ef-bdde-ab6bf1fc5f15\"\n }\n}",
440
+ "title": "设置巡检任务配置"
441
+ }
442
+ ],
435
443
  "ModifyInstanceBasic": [
436
444
  {
437
445
  "document": "",
@@ -9163,6 +9163,16 @@
9163
9163
  "type": "string",
9164
9164
  "value_allowed_null": true
9165
9165
  },
9166
+ {
9167
+ "disabled": false,
9168
+ "document": "索引元数据JSON\n注意:此字段可能返回 null,表示取不到有效值。",
9169
+ "example": "{\\\"mappings\\\":{\\\"properties\\\":{\\\"filed1\\\":{\\\"analyzer\\\":\\\"custom_analyzer\\\",\\\"type\\\":\\\"text\\\"}}}}",
9170
+ "member": "string",
9171
+ "name": "IndexMetaJson",
9172
+ "output_required": true,
9173
+ "type": "string",
9174
+ "value_allowed_null": true
9175
+ },
9166
9176
  {
9167
9177
  "disabled": false,
9168
9178
  "document": "索引文档数\n注意:此字段可能返回 null,表示取不到有效值。",
@@ -11425,7 +11435,7 @@
11425
11435
  {
11426
11436
  "disabled": false,
11427
11437
  "document": "是否自动使用代金券<li>0:不自动使用</li><li>1:自动使用</li>默认值0",
11428
- "example": "111",
11438
+ "example": "1",
11429
11439
  "member": "int64",
11430
11440
  "name": "AutoVoucher",
11431
11441
  "required": false,
@@ -11434,7 +11444,7 @@
11434
11444
  {
11435
11445
  "disabled": false,
11436
11446
  "document": "代金券ID列表(目前仅支持指定一张代金券)",
11437
- "example": "111",
11447
+ "example": "12231",
11438
11448
  "member": "string",
11439
11449
  "name": "VoucherIds",
11440
11450
  "required": false,
@@ -11467,7 +11477,7 @@
11467
11477
  {
11468
11478
  "disabled": false,
11469
11479
  "document": "订单号\n注意:此字段可能返回 null,表示取不到有效值。",
11470
- "example": "123",
11480
+ "example": "2023123321",
11471
11481
  "member": "string",
11472
11482
  "name": "DealName",
11473
11483
  "output_required": true,
@@ -220,7 +220,7 @@
220
220
  {
221
221
  "document": "Serverless获取索引列表",
222
222
  "input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeServerlessInstances\n<公共请求参数>\n\n{\n \"IndexNames\": [\n \"test\"\n ],\n \"InstanceIds\": [\n \"index-abcdefgh\"\n ],\n \"Limit\": 0,\n \"Offset\": 10\n}",
223
- "output": "{\n \"Response\": {\n \"IndexMetaFields\": [\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-2v3kt0yr\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"curl-datalink-mdo5a8bf\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:34:55\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-2v3kt0yr.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-2v3kt0yr.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-2s8pkoa7\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"beats-tke-datalink-mdo5a8bf\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:34:20\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-2s8pkoa7.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-2s8pkoa7.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-7th48x7l\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"beats-cvm-datalink-mdo5a8bf\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:33:48\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-7th48x7l.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-7th48x7l.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-brjddwvb\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"tke-data-link-mdo5a8bf\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:30:26\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-brjddwvb.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-brjddwvb.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-k75a66tp\",\n \"SpaceId\": \"space-0gyg87rx\",\n \"SpaceName\": \"price-test\",\n \"IndexName\": \"ychenjiang-test2-0gyg87rx\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:29:47\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-ld5dkwwx\",\n \"SubnetUid\": \"subnet-267c2gvq\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-k75a66tp.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-k75a66tp.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-o8otig09\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"cvm-datalink-mdo5a8bf\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:23:02\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-o8otig09.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-o8otig09.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-gh5rrdhr\",\n \"SpaceId\": \"space-0gyg87rx\",\n \"SpaceName\": \"price-test\",\n \"IndexName\": \"faegagag-0gyg87rx\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 12:04:48\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-gh5rrdhr.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-gh5rrdhr.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-65q7dsff\",\n \"SpaceId\": \"space-0gyg87rx\",\n \"SpaceName\": \"price-test\",\n \"IndexName\": \"haoa-test3334-0gyg87rx\",\n \"IndexStorage\": 6422689,\n \"IndexCreateTime\": \"2023-11-23 11:53:04\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-ld5dkwwx\",\n \"SubnetUid\": \"subnet-267c2gvq\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-65q7dsff.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-65q7dsff.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-irah4s23\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"cvm-source-mdo5a8bf\",\n \"IndexStorage\": 204964,\n \"IndexCreateTime\": \"2023-11-23 11:39:28\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-irah4s23.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-irah4s23.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-8s7iinrd\",\n \"SpaceId\": \"space-0gyg87rx\",\n \"SpaceName\": \"price-test\",\n \"IndexName\": \"haoa-test44-0gyg87rx\",\n \"IndexStorage\": 6072662,\n \"IndexCreateTime\": \"2023-11-23 11:15:47\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-ld5dkwwx\",\n \"SubnetUid\": \"subnet-267c2gvq\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-8s7iinrd.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-8s7iinrd.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n }\n ],\n \"TotalCount\": 20,\n \"RequestId\": \"a75f987c-5f03-4fec-bbb8-be132b57666b\"\n }\n}",
223
+ "output": "{\n \"Response\": {\n \"IndexMetaFields\": [\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-2v3kt0yr\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"curl-datalink-mdo5a8bf\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:34:55\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-2v3kt0yr.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-2v3kt0yr.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-2s8pkoa7\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"beats-tke-datalink-mdo5a8bf\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:34:20\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-2s8pkoa7.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-2s8pkoa7.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-7th48x7l\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"beats-cvm-datalink-mdo5a8bf\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:33:48\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-7th48x7l.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-7th48x7l.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-brjddwvb\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"tke-data-link-mdo5a8bf\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:30:26\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-brjddwvb.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-brjddwvb.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-k75a66tp\",\n \"SpaceId\": \"space-0gyg87rx\",\n \"SpaceName\": \"price-test\",\n \"IndexName\": \"ychenjiang-test2-0gyg87rx\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:29:47\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-ld5dkwwx\",\n \"SubnetUid\": \"subnet-267c2gvq\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-k75a66tp.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-k75a66tp.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-o8otig09\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"cvm-datalink-mdo5a8bf\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:23:02\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-o8otig09.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-o8otig09.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-gh5rrdhr\",\n \"SpaceId\": \"space-0gyg87rx\",\n \"SpaceName\": \"price-test\",\n \"IndexName\": \"faegagag-0gyg87rx\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 12:04:48\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-gh5rrdhr.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-gh5rrdhr.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-65q7dsff\",\n \"SpaceId\": \"space-0gyg87rx\",\n \"SpaceName\": \"price-test\",\n \"IndexName\": \"haoa-test3334-0gyg87rx\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 6422689,\n \"IndexCreateTime\": \"2023-11-23 11:53:04\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-ld5dkwwx\",\n \"SubnetUid\": \"subnet-267c2gvq\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-65q7dsff.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-65q7dsff.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-irah4s23\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"cvm-source-mdo5a8bf\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 204964,\n \"IndexCreateTime\": \"2023-11-23 11:39:28\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-irah4s23.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-irah4s23.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-8s7iinrd\",\n \"SpaceId\": \"space-0gyg87rx\",\n \"SpaceName\": \"price-test\",\n \"IndexName\": \"haoa-test44-0gyg87rx\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 6072662,\n \"IndexCreateTime\": \"2023-11-23 11:15:47\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-ld5dkwwx\",\n \"SubnetUid\": \"subnet-267c2gvq\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-8s7iinrd.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-8s7iinrd.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n }\n ],\n \"TotalCount\": 20,\n \"RequestId\": \"a75f987c-5f03-4fec-bbb8-be132b57666b\"\n }\n}",
224
224
  "title": "Serverless获取索引列表"
225
225
  }
226
226
  ],
@@ -401,7 +401,7 @@
401
401
  "UpdateDictionaries": [
402
402
  {
403
403
  "document": "更新ES集群词典",
404
- "input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateDictionaries\n<公共请求参数>\n\n{\n \"IkStopwords\": [\n \"abc\"\n ],\n \"Synonym\": [\n \"abc\"\n ],\n \"InstanceId\": \"abc\",\n \"UpdateType\": 0,\n \"ForceRestart\": true,\n \"QQDict\": [\n \"abc\"\n ],\n \"IkMainDicts\": [\n \"abc\"\n ]\n}",
404
+ "input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateDictionaries\n<公共请求参数>\n\n{\n \"IkStopwords\": [\n \"stop\"\n ],\n \"Synonym\": [\n \"syno\"\n ],\n \"InstanceId\": \"es-esadfeas\",\n \"UpdateType\": 0,\n \"ForceRestart\": true,\n \"QQDict\": [\n \"qqDict\"\n ],\n \"IkMainDicts\": [\n \"mainDict\"\n ]\n}",
405
405
  "output": "{\n \"Response\": {\n \"RequestId\": \"c96a110c-7493-452d-a99b-683d07xxxxxx\"\n }\n}",
406
406
  "title": "更新ES集群词典"
407
407
  }
@@ -3813,6 +3813,58 @@ def doCreateDynamicFlowApprover(args, parsed_globals):
3813
3813
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3814
3814
 
3815
3815
 
3816
+ def doDescribeUserFlowType(args, parsed_globals):
3817
+ g_param = parse_global_arg(parsed_globals)
3818
+
3819
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3820
+ cred = credential.CVMRoleCredential()
3821
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3822
+ cred = credential.STSAssumeRoleCredential(
3823
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3824
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3825
+ )
3826
+ 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):
3827
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3828
+ else:
3829
+ cred = credential.Credential(
3830
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3831
+ )
3832
+ http_profile = HttpProfile(
3833
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3834
+ reqMethod="POST",
3835
+ endpoint=g_param[OptionsDefine.Endpoint],
3836
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3837
+ )
3838
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3839
+ if g_param[OptionsDefine.Language]:
3840
+ profile.language = g_param[OptionsDefine.Language]
3841
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3842
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
3843
+ client._sdkVersion += ("_CLI_" + __version__)
3844
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3845
+ model = models.DescribeUserFlowTypeRequest()
3846
+ model.from_json_string(json.dumps(args))
3847
+ start_time = time.time()
3848
+ while True:
3849
+ rsp = client.DescribeUserFlowType(model)
3850
+ result = rsp.to_json_string()
3851
+ try:
3852
+ json_obj = json.loads(result)
3853
+ except TypeError as e:
3854
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3855
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3856
+ break
3857
+ cur_time = time.time()
3858
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3859
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3860
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3861
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3862
+ else:
3863
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3864
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3865
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3866
+
3867
+
3816
3868
  def doCreateIntegrationEmployees(args, parsed_globals):
3817
3869
  g_param = parse_global_arg(parsed_globals)
3818
3870
 
@@ -5353,6 +5405,7 @@ ACTION_MAP = {
5353
5405
  "DescribeFlowComponents": doDescribeFlowComponents,
5354
5406
  "CreateWebThemeConfig": doCreateWebThemeConfig,
5355
5407
  "CreateDynamicFlowApprover": doCreateDynamicFlowApprover,
5408
+ "DescribeUserFlowType": doDescribeUserFlowType,
5356
5409
  "CreateIntegrationEmployees": doCreateIntegrationEmployees,
5357
5410
  "DeleteOrganizationAuthorizations": doDeleteOrganizationAuthorizations,
5358
5411
  "CreateBatchQuickSignUrl": doCreateBatchQuickSignUrl,