tccli 3.0.1325.1__py2.py3-none-any.whl → 3.0.1327.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 (56) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ams/v20201229/api.json +9 -9
  3. tccli/services/cdb/v20170320/api.json +9 -9
  4. tccli/services/cdc/v20201214/api.json +5 -5
  5. tccli/services/cfs/v20190719/api.json +19 -19
  6. tccli/services/cfs/v20190719/examples.json +2 -2
  7. tccli/services/clb/clb_client.py +53 -0
  8. tccli/services/clb/v20180317/api.json +100 -0
  9. tccli/services/clb/v20180317/examples.json +8 -0
  10. tccli/services/cme/v20191029/api.json +16 -19
  11. tccli/services/cme/v20191029/examples.json +12 -12
  12. tccli/services/dlc/dlc_client.py +53 -0
  13. tccli/services/dlc/v20210125/api.json +51 -0
  14. tccli/services/dlc/v20210125/examples.json +8 -0
  15. tccli/services/domain/v20180808/api.json +1 -1
  16. tccli/services/emr/v20190103/api.json +29 -0
  17. tccli/services/es/es_client.py +4 -57
  18. tccli/services/es/v20250101/api.json +0 -207
  19. tccli/services/es/v20250101/examples.json +0 -8
  20. tccli/services/ess/v20201111/api.json +4 -4
  21. tccli/services/essbasic/v20210526/api.json +1 -1
  22. tccli/services/gs/gs_client.py +269 -4
  23. tccli/services/gs/v20191118/api.json +412 -7
  24. tccli/services/gs/v20191118/examples.json +42 -2
  25. tccli/services/hai/v20230812/api.json +5 -5
  26. tccli/services/lke/lke_client.py +0 -53
  27. tccli/services/lke/v20231130/api.json +0 -113
  28. tccli/services/lke/v20231130/examples.json +0 -8
  29. tccli/services/lkeap/v20240522/api.json +1 -1
  30. tccli/services/lowcode/v20210108/api.json +60 -0
  31. tccli/services/monitor/monitor_client.py +170 -11
  32. tccli/services/monitor/v20180724/api.json +205 -1
  33. tccli/services/monitor/v20180724/examples.json +24 -0
  34. tccli/services/mrs/v20200910/api.json +4 -4
  35. tccli/services/oceanus/v20190422/api.json +15 -5
  36. tccli/services/oceanus/v20190422/examples.json +8 -2
  37. tccli/services/postgres/postgres_client.py +0 -53
  38. tccli/services/postgres/v20170312/api.json +0 -235
  39. tccli/services/postgres/v20170312/examples.json +0 -8
  40. tccli/services/privatedns/privatedns_client.py +53 -0
  41. tccli/services/privatedns/v20201028/api.json +180 -1
  42. tccli/services/privatedns/v20201028/examples.json +8 -0
  43. tccli/services/pts/v20210728/api.json +18 -0
  44. tccli/services/redis/v20180412/api.json +1 -1
  45. tccli/services/tcss/v20201101/api.json +190 -32
  46. tccli/services/tcss/v20201101/examples.json +6 -6
  47. tccli/services/tms/v20201229/api.json +2 -2
  48. tccli/services/tms/v20201229/examples.json +1 -1
  49. tccli/services/vm/v20210922/api.json +13 -13
  50. tccli/services/vm/v20210922/examples.json +2 -2
  51. tccli/services/vpc/v20170312/api.json +2 -2
  52. {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/METADATA +2 -2
  53. {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/RECORD +56 -56
  54. {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/WHEEL +0 -0
  55. {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/entry_points.txt +0 -0
  56. {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/license_files/LICENSE +0 -0
@@ -1683,6 +1683,58 @@ def doDeleteAlertRules(args, parsed_globals):
1683
1683
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1684
1684
 
1685
1685
 
1686
+ def doDescribePolicyGroupList(args, parsed_globals):
1687
+ g_param = parse_global_arg(parsed_globals)
1688
+
1689
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1690
+ cred = credential.CVMRoleCredential()
1691
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1692
+ cred = credential.STSAssumeRoleCredential(
1693
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1694
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1695
+ )
1696
+ 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):
1697
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1698
+ else:
1699
+ cred = credential.Credential(
1700
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1701
+ )
1702
+ http_profile = HttpProfile(
1703
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1704
+ reqMethod="POST",
1705
+ endpoint=g_param[OptionsDefine.Endpoint],
1706
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1707
+ )
1708
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1709
+ if g_param[OptionsDefine.Language]:
1710
+ profile.language = g_param[OptionsDefine.Language]
1711
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1712
+ client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
1713
+ client._sdkVersion += ("_CLI_" + __version__)
1714
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1715
+ model = models.DescribePolicyGroupListRequest()
1716
+ model.from_json_string(json.dumps(args))
1717
+ start_time = time.time()
1718
+ while True:
1719
+ rsp = client.DescribePolicyGroupList(model)
1720
+ result = rsp.to_json_string()
1721
+ try:
1722
+ json_obj = json.loads(result)
1723
+ except TypeError as e:
1724
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1725
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1726
+ break
1727
+ cur_time = time.time()
1728
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1729
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1730
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1731
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1732
+ else:
1733
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1734
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1735
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1736
+
1737
+
1686
1738
  def doDescribeBaseMetrics(args, parsed_globals):
1687
1739
  g_param = parse_global_arg(parsed_globals)
1688
1740
 
@@ -2671,7 +2723,7 @@ def doCreateConditionsTemplate(args, parsed_globals):
2671
2723
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2672
2724
 
2673
2725
 
2674
- def doGetPrometheusAgentManagementCommand(args, parsed_globals):
2726
+ def doDescribeExternalClusterUninstallCommand(args, parsed_globals):
2675
2727
  g_param = parse_global_arg(parsed_globals)
2676
2728
 
2677
2729
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2700,11 +2752,11 @@ def doGetPrometheusAgentManagementCommand(args, parsed_globals):
2700
2752
  client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
2701
2753
  client._sdkVersion += ("_CLI_" + __version__)
2702
2754
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2703
- model = models.GetPrometheusAgentManagementCommandRequest()
2755
+ model = models.DescribeExternalClusterUninstallCommandRequest()
2704
2756
  model.from_json_string(json.dumps(args))
2705
2757
  start_time = time.time()
2706
2758
  while True:
2707
- rsp = client.GetPrometheusAgentManagementCommand(model)
2759
+ rsp = client.DescribeExternalClusterUninstallCommand(model)
2708
2760
  result = rsp.to_json_string()
2709
2761
  try:
2710
2762
  json_obj = json.loads(result)
@@ -2723,7 +2775,7 @@ def doGetPrometheusAgentManagementCommand(args, parsed_globals):
2723
2775
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2724
2776
 
2725
2777
 
2726
- def doDescribePrometheusAgents(args, parsed_globals):
2778
+ def doGetPrometheusAgentManagementCommand(args, parsed_globals):
2727
2779
  g_param = parse_global_arg(parsed_globals)
2728
2780
 
2729
2781
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2752,11 +2804,11 @@ def doDescribePrometheusAgents(args, parsed_globals):
2752
2804
  client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
2753
2805
  client._sdkVersion += ("_CLI_" + __version__)
2754
2806
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2755
- model = models.DescribePrometheusAgentsRequest()
2807
+ model = models.GetPrometheusAgentManagementCommandRequest()
2756
2808
  model.from_json_string(json.dumps(args))
2757
2809
  start_time = time.time()
2758
2810
  while True:
2759
- rsp = client.DescribePrometheusAgents(model)
2811
+ rsp = client.GetPrometheusAgentManagementCommand(model)
2760
2812
  result = rsp.to_json_string()
2761
2813
  try:
2762
2814
  json_obj = json.loads(result)
@@ -6363,7 +6415,7 @@ def doUpdateGrafanaWhiteList(args, parsed_globals):
6363
6415
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6364
6416
 
6365
6417
 
6366
- def doDescribePolicyGroupList(args, parsed_globals):
6418
+ def doDescribePrometheusAgents(args, parsed_globals):
6367
6419
  g_param = parse_global_arg(parsed_globals)
6368
6420
 
6369
6421
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6392,11 +6444,11 @@ def doDescribePolicyGroupList(args, parsed_globals):
6392
6444
  client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
6393
6445
  client._sdkVersion += ("_CLI_" + __version__)
6394
6446
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6395
- model = models.DescribePolicyGroupListRequest()
6447
+ model = models.DescribePrometheusAgentsRequest()
6396
6448
  model.from_json_string(json.dumps(args))
6397
6449
  start_time = time.time()
6398
6450
  while True:
6399
- rsp = client.DescribePolicyGroupList(model)
6451
+ rsp = client.DescribePrometheusAgents(model)
6400
6452
  result = rsp.to_json_string()
6401
6453
  try:
6402
6454
  json_obj = json.loads(result)
@@ -7143,6 +7195,58 @@ def doGetMonitorData(args, parsed_globals):
7143
7195
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7144
7196
 
7145
7197
 
7198
+ def doCreateExternalCluster(args, parsed_globals):
7199
+ g_param = parse_global_arg(parsed_globals)
7200
+
7201
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7202
+ cred = credential.CVMRoleCredential()
7203
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7204
+ cred = credential.STSAssumeRoleCredential(
7205
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7206
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7207
+ )
7208
+ 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):
7209
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7210
+ else:
7211
+ cred = credential.Credential(
7212
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7213
+ )
7214
+ http_profile = HttpProfile(
7215
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7216
+ reqMethod="POST",
7217
+ endpoint=g_param[OptionsDefine.Endpoint],
7218
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7219
+ )
7220
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7221
+ if g_param[OptionsDefine.Language]:
7222
+ profile.language = g_param[OptionsDefine.Language]
7223
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7224
+ client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
7225
+ client._sdkVersion += ("_CLI_" + __version__)
7226
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
7227
+ model = models.CreateExternalClusterRequest()
7228
+ model.from_json_string(json.dumps(args))
7229
+ start_time = time.time()
7230
+ while True:
7231
+ rsp = client.CreateExternalCluster(model)
7232
+ result = rsp.to_json_string()
7233
+ try:
7234
+ json_obj = json.loads(result)
7235
+ except TypeError as e:
7236
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
7237
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7238
+ break
7239
+ cur_time = time.time()
7240
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7241
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7242
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7243
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7244
+ else:
7245
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7246
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7247
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7248
+
7249
+
7146
7250
  def doUpdateDNSConfig(args, parsed_globals):
7147
7251
  g_param = parse_global_arg(parsed_globals)
7148
7252
 
@@ -8443,6 +8547,58 @@ def doModifyPrometheusConfig(args, parsed_globals):
8443
8547
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8444
8548
 
8445
8549
 
8550
+ def doDescribeExternalClusterRegisterCommand(args, parsed_globals):
8551
+ g_param = parse_global_arg(parsed_globals)
8552
+
8553
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
8554
+ cred = credential.CVMRoleCredential()
8555
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
8556
+ cred = credential.STSAssumeRoleCredential(
8557
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8558
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8559
+ )
8560
+ 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):
8561
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8562
+ else:
8563
+ cred = credential.Credential(
8564
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
8565
+ )
8566
+ http_profile = HttpProfile(
8567
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
8568
+ reqMethod="POST",
8569
+ endpoint=g_param[OptionsDefine.Endpoint],
8570
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8571
+ )
8572
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8573
+ if g_param[OptionsDefine.Language]:
8574
+ profile.language = g_param[OptionsDefine.Language]
8575
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
8576
+ client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
8577
+ client._sdkVersion += ("_CLI_" + __version__)
8578
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
8579
+ model = models.DescribeExternalClusterRegisterCommandRequest()
8580
+ model.from_json_string(json.dumps(args))
8581
+ start_time = time.time()
8582
+ while True:
8583
+ rsp = client.DescribeExternalClusterRegisterCommand(model)
8584
+ result = rsp.to_json_string()
8585
+ try:
8586
+ json_obj = json.loads(result)
8587
+ except TypeError as e:
8588
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
8589
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
8590
+ break
8591
+ cur_time = time.time()
8592
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
8593
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
8594
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
8595
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
8596
+ else:
8597
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
8598
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
8599
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8600
+
8601
+
8446
8602
  def doDescribeAlarmPolicy(args, parsed_globals):
8447
8603
  g_param = parse_global_arg(parsed_globals)
8448
8604
 
@@ -8540,6 +8696,7 @@ ACTION_MAP = {
8540
8696
  "DeletePrometheusScrapeJobs": doDeletePrometheusScrapeJobs,
8541
8697
  "EnableGrafanaSSO": doEnableGrafanaSSO,
8542
8698
  "DeleteAlertRules": doDeleteAlertRules,
8699
+ "DescribePolicyGroupList": doDescribePolicyGroupList,
8543
8700
  "DescribeBaseMetrics": doDescribeBaseMetrics,
8544
8701
  "DescribeAlarmEvents": doDescribeAlarmEvents,
8545
8702
  "DescribePhoneAlarmFlowTotalCount": doDescribePhoneAlarmFlowTotalCount,
@@ -8559,8 +8716,8 @@ ACTION_MAP = {
8559
8716
  "UpdateGrafanaEnvironments": doUpdateGrafanaEnvironments,
8560
8717
  "DescribePolicyConditionList": doDescribePolicyConditionList,
8561
8718
  "CreateConditionsTemplate": doCreateConditionsTemplate,
8719
+ "DescribeExternalClusterUninstallCommand": doDescribeExternalClusterUninstallCommand,
8562
8720
  "GetPrometheusAgentManagementCommand": doGetPrometheusAgentManagementCommand,
8563
- "DescribePrometheusAgents": doDescribePrometheusAgents,
8564
8721
  "UpdatePrometheusScrapeJob": doUpdatePrometheusScrapeJob,
8565
8722
  "DescribePrometheusInstanceInitStatus": doDescribePrometheusInstanceInitStatus,
8566
8723
  "UpgradeGrafanaInstance": doUpgradeGrafanaInstance,
@@ -8630,7 +8787,7 @@ ACTION_MAP = {
8630
8787
  "CreateRecordingRule": doCreateRecordingRule,
8631
8788
  "DescribeAlertRules": doDescribeAlertRules,
8632
8789
  "UpdateGrafanaWhiteList": doUpdateGrafanaWhiteList,
8633
- "DescribePolicyGroupList": doDescribePolicyGroupList,
8790
+ "DescribePrometheusAgents": doDescribePrometheusAgents,
8634
8791
  "DescribeAlarmPolicies": doDescribeAlarmPolicies,
8635
8792
  "DescribePrometheusTargetsTMP": doDescribePrometheusTargetsTMP,
8636
8793
  "DescribeRecordingRules": doDescribeRecordingRules,
@@ -8645,6 +8802,7 @@ ACTION_MAP = {
8645
8802
  "ModifyPrometheusInstanceAttributes": doModifyPrometheusInstanceAttributes,
8646
8803
  "ModifyAlarmPolicyTasks": doModifyAlarmPolicyTasks,
8647
8804
  "GetMonitorData": doGetMonitorData,
8805
+ "CreateExternalCluster": doCreateExternalCluster,
8648
8806
  "UpdateDNSConfig": doUpdateDNSConfig,
8649
8807
  "DescribeServiceDiscovery": doDescribeServiceDiscovery,
8650
8808
  "RunPrometheusInstance": doRunPrometheusInstance,
@@ -8670,6 +8828,7 @@ ACTION_MAP = {
8670
8828
  "DescribeClusterAgentCreatingProgress": doDescribeClusterAgentCreatingProgress,
8671
8829
  "DescribeGrafanaIntegrations": doDescribeGrafanaIntegrations,
8672
8830
  "ModifyPrometheusConfig": doModifyPrometheusConfig,
8831
+ "DescribeExternalClusterRegisterCommand": doDescribeExternalClusterRegisterCommand,
8673
8832
  "DescribeAlarmPolicy": doDescribeAlarmPolicy,
8674
8833
 
8675
8834
  }
@@ -70,6 +70,13 @@
70
70
  "output": "CreateExporterIntegrationResponse",
71
71
  "status": "online"
72
72
  },
73
+ "CreateExternalCluster": {
74
+ "document": "注册外部集群到云上 TMP 实例",
75
+ "input": "CreateExternalClusterRequest",
76
+ "name": "注册外部 k8s 集群",
77
+ "output": "CreateExternalClusterResponse",
78
+ "status": "online"
79
+ },
73
80
  "CreateGrafanaInstance": {
74
81
  "document": "本接口(CreateGrafanaInstance)用于创建 Grafana 包年包月实例,默认基础版、到期自动续费、不可使用代金券。",
75
82
  "input": "CreateGrafanaInstanceRequest",
@@ -455,6 +462,20 @@
455
462
  "output": "DescribeExporterIntegrationsResponse",
456
463
  "status": "online"
457
464
  },
465
+ "DescribeExternalClusterRegisterCommand": {
466
+ "document": "查看外部集群注册命令",
467
+ "input": "DescribeExternalClusterRegisterCommandRequest",
468
+ "name": "查看外部集群注册命令",
469
+ "output": "DescribeExternalClusterRegisterCommandResponse",
470
+ "status": "online"
471
+ },
472
+ "DescribeExternalClusterUninstallCommand": {
473
+ "document": "查看外部集群 Agent 卸载命令",
474
+ "input": "DescribeExternalClusterUninstallCommandRequest",
475
+ "name": "查看外部集群 Agent 卸载命令",
476
+ "output": "DescribeExternalClusterUninstallCommandResponse",
477
+ "status": "online"
478
+ },
458
479
  "DescribeGrafanaChannels": {
459
480
  "document": "列出 Grafana 所有告警通道",
460
481
  "input": "DescribeGrafanaChannelsRequest",
@@ -4138,6 +4159,97 @@
4138
4159
  ],
4139
4160
  "type": "object"
4140
4161
  },
4162
+ "CreateExternalClusterRequest": {
4163
+ "document": "CreateExternalCluster请求参数结构体",
4164
+ "members": [
4165
+ {
4166
+ "disabled": false,
4167
+ "document": "实例 ID",
4168
+ "example": "prom-abcd",
4169
+ "member": "string",
4170
+ "name": "InstanceId",
4171
+ "required": true,
4172
+ "type": "string"
4173
+ },
4174
+ {
4175
+ "disabled": false,
4176
+ "document": "集群所在地域",
4177
+ "example": "ap-shanghai",
4178
+ "member": "string",
4179
+ "name": "ClusterRegion",
4180
+ "required": true,
4181
+ "type": "string"
4182
+ },
4183
+ {
4184
+ "disabled": false,
4185
+ "document": "集群名称",
4186
+ "example": "cluster name",
4187
+ "member": "string",
4188
+ "name": "ClusterName",
4189
+ "required": false,
4190
+ "type": "string"
4191
+ },
4192
+ {
4193
+ "disabled": false,
4194
+ "document": "集群 ID",
4195
+ "example": "ecls-abcd",
4196
+ "member": "string",
4197
+ "name": "ClusterId",
4198
+ "required": false,
4199
+ "type": "string"
4200
+ },
4201
+ {
4202
+ "disabled": false,
4203
+ "document": "外部标签",
4204
+ "example": "[{\"Name\": \"cluster_name\", \"Value\": \"ai\"}]",
4205
+ "member": "Label",
4206
+ "name": "ExternalLabels",
4207
+ "required": false,
4208
+ "type": "list"
4209
+ },
4210
+ {
4211
+ "disabled": false,
4212
+ "document": "是否打开预聚合规则",
4213
+ "example": "bool",
4214
+ "member": "bool",
4215
+ "name": "OpenDefaultRecord",
4216
+ "required": false,
4217
+ "type": "bool"
4218
+ },
4219
+ {
4220
+ "disabled": false,
4221
+ "document": "是否开启公网",
4222
+ "example": "bool",
4223
+ "member": "bool",
4224
+ "name": "EnableExternal",
4225
+ "required": false,
4226
+ "type": "bool"
4227
+ }
4228
+ ],
4229
+ "type": "object"
4230
+ },
4231
+ "CreateExternalClusterResponse": {
4232
+ "document": "CreateExternalCluster返回参数结构体",
4233
+ "members": [
4234
+ {
4235
+ "disabled": false,
4236
+ "document": "集群 ID",
4237
+ "example": "ecls-abcd",
4238
+ "member": "string",
4239
+ "name": "ClusterId",
4240
+ "output_required": false,
4241
+ "type": "string",
4242
+ "value_allowed_null": false
4243
+ },
4244
+ {
4245
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4246
+ "member": "string",
4247
+ "name": "RequestId",
4248
+ "type": "string"
4249
+ }
4250
+ ],
4251
+ "type": "object"
4252
+ },
4141
4253
  "CreateGrafanaInstanceRequest": {
4142
4254
  "document": "CreateGrafanaInstance请求参数结构体",
4143
4255
  "members": [
@@ -8666,6 +8778,98 @@
8666
8778
  ],
8667
8779
  "type": "object"
8668
8780
  },
8781
+ "DescribeExternalClusterRegisterCommandRequest": {
8782
+ "document": "DescribeExternalClusterRegisterCommand请求参数结构体",
8783
+ "members": [
8784
+ {
8785
+ "disabled": false,
8786
+ "document": "实例 ID",
8787
+ "example": "prom-abcd",
8788
+ "member": "string",
8789
+ "name": "InstanceId",
8790
+ "required": true,
8791
+ "type": "string"
8792
+ },
8793
+ {
8794
+ "disabled": false,
8795
+ "document": "集群 ID",
8796
+ "example": "ecls-abcd",
8797
+ "member": "string",
8798
+ "name": "ClusterId",
8799
+ "required": true,
8800
+ "type": "string"
8801
+ }
8802
+ ],
8803
+ "type": "object"
8804
+ },
8805
+ "DescribeExternalClusterRegisterCommandResponse": {
8806
+ "document": "DescribeExternalClusterRegisterCommand返回参数结构体",
8807
+ "members": [
8808
+ {
8809
+ "disabled": false,
8810
+ "document": "注册命令",
8811
+ "example": "--- apiVersion: v1 kind: Namespace metadata: name: prom-abcd --- apiVersion: v1 kind: ServiceAccount metadata: name: proxy-agent-installer namespace: prom-abcd --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: install-proxy-agent roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: proxy-agent-installer namespace: prom-abcd --- apiVersion: batch/v1 kind: Job metadata: name: proxy-agent-installer namespace: prom-abcd spec: backoffLimit: 5 ttlSecondsAfterFinished: 60 template: spec: tolerations: - operator: Exists serviceAccountName: proxy-agent-installer containers: - name: installer image: ccr.ccs.tencentyun.com/cloudmonitor/agent-installer:v0.0.3 args: - upgrade - tmp - ./ - --install - -n - prom-abcd - --set - proxyAgent.enabled=true - --set - proxyAgent.instanceId=prom-abcd - --set - proxyAgent.instanceToken=token - --set - proxyAgent.clusterId=ecls-abcd - --set - proxyAgent.clusterType=external - --set - proxyAgent.serverAddress=1.1.1.1:8008 - --set - proxyAgent.image=ccr.ccs.tencentyun.com/cloudmonitor/multi-proxy:v1.0.12 restartPolicy: Never",
8812
+ "member": "string",
8813
+ "name": "Command",
8814
+ "output_required": true,
8815
+ "type": "string",
8816
+ "value_allowed_null": false
8817
+ },
8818
+ {
8819
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
8820
+ "member": "string",
8821
+ "name": "RequestId",
8822
+ "type": "string"
8823
+ }
8824
+ ],
8825
+ "type": "object"
8826
+ },
8827
+ "DescribeExternalClusterUninstallCommandRequest": {
8828
+ "document": "DescribeExternalClusterUninstallCommand请求参数结构体",
8829
+ "members": [
8830
+ {
8831
+ "disabled": false,
8832
+ "document": "实例 ID",
8833
+ "example": "prom-abcd",
8834
+ "member": "string",
8835
+ "name": "InstanceId",
8836
+ "required": true,
8837
+ "type": "string"
8838
+ },
8839
+ {
8840
+ "disabled": false,
8841
+ "document": "集群 ID",
8842
+ "example": "ecls-abcd",
8843
+ "member": "string",
8844
+ "name": "ClusterId",
8845
+ "required": true,
8846
+ "type": "string"
8847
+ }
8848
+ ],
8849
+ "type": "object"
8850
+ },
8851
+ "DescribeExternalClusterUninstallCommandResponse": {
8852
+ "document": "DescribeExternalClusterUninstallCommand返回参数结构体",
8853
+ "members": [
8854
+ {
8855
+ "disabled": false,
8856
+ "document": "卸载命令",
8857
+ "example": "apiVersion: batch/v1 kind: Job metadata: name: uninstaller spec: template: spec: containers: - name: uninstaller image: ccr.ccs.tencentyun.com/cloudmonitor/agent-installer:v0.0.8",
8858
+ "member": "string",
8859
+ "name": "Command",
8860
+ "output_required": true,
8861
+ "type": "string",
8862
+ "value_allowed_null": false
8863
+ },
8864
+ {
8865
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
8866
+ "member": "string",
8867
+ "name": "RequestId",
8868
+ "type": "string"
8869
+ }
8870
+ ],
8871
+ "type": "object"
8872
+ },
8669
8873
  "DescribeGrafanaChannelsRequest": {
8670
8874
  "document": "DescribeGrafanaChannels请求参数结构体",
8671
8875
  "members": [
@@ -18263,7 +18467,7 @@
18263
18467
  },
18264
18468
  {
18265
18469
  "disabled": false,
18266
- "document": "集群类型。可填入tke、eks、tkeedge、tdcc,分别代表标准集群、弹性集群、边缘集群、注册集群",
18470
+ "document": "集群类型。可填入tke、eks、tkeedge、tdcc、external,分别代表标准集群、弹性集群、边缘集群、注册集群 和外部集群",
18267
18471
  "example": "tke",
18268
18472
  "member": "string",
18269
18473
  "name": "ClusterType",
@@ -194,6 +194,14 @@
194
194
  "title": "e. 创建 Ingress NGINX Controller 集成"
195
195
  }
196
196
  ],
197
+ "CreateExternalCluster": [
198
+ {
199
+ "document": "",
200
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateExternalCluster\n<公共请求参数>\n\n{\n \"ClusterName\": \"test-cluster\",\n \"InstanceId\": \"prom-abcd\",\n \"ClusterRegion\": \"ap-shanghai\"\n}",
201
+ "output": "{\n \"Response\": {\n \"ClusterId\": \"ecls-abc\",\n \"RequestId\": \"abcd-abcd\"\n }\n}",
202
+ "title": "组测集群到云上"
203
+ }
204
+ ],
197
205
  "CreateGrafanaInstance": [
198
206
  {
199
207
  "document": "创建Grafana实例",
@@ -676,6 +684,22 @@
676
684
  "title": "查询 exporter 集成列表"
677
685
  }
678
686
  ],
687
+ "DescribeExternalClusterRegisterCommand": [
688
+ {
689
+ "document": "",
690
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExternalClusterRegisterCommand\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-abcd\",\n \"ClusterId\": \"ecls-abcd\"\n}",
691
+ "output": "{\n \"Response\": {\n \"Command\": \"\\n---\\napiVersion: v1\\nkind: Namespace\\nmetadata:\\n name: prom-abcd\\n---\\napiVersion: v1\\nkind: ServiceAccount\\nmetadata:\\n name: proxy-agent-installer\\n namespace: prom-abcd\\n---\\napiVersion: rbac.authorization.k8s.io/v1\\nkind: ClusterRoleBinding\\nmetadata:\\n name: install-proxy-agent\\nroleRef:\\n apiGroup: rbac.authorization.k8s.io\\n kind: ClusterRole\\n name: cluster-admin\\nsubjects:\\n- kind: ServiceAccount\\n name: proxy-agent-installer\\n namespace: prom-abcd\\n---\\napiVersion: batch/v1\\nkind: Job\\nmetadata:\\n name: proxy-agent-installer\\n namespace: prom-abcd\\nspec:\\n backoffLimit: 5\\n ttlSecondsAfterFinished: 60\\n template:\\n spec:\\n tolerations:\\n - operator: Exists\\n serviceAccountName: proxy-agent-installer\\n containers:\\n - name: installer\\n image: ccr.ccs.tencentyun.com/cloudmonitor/agent-installer:v0.0.3\\n args:\\n - upgrade \\n - tmp\\n - ./\\n - --install\\n - -n\\n - prom-abcd\\n - --set\\n - proxyAgent.enabled=true\\n - --set \\n - proxyAgent.instanceId=prom-abcd\\n - --set\\n - proxyAgent.instanceToken=token\\n - --set\\n - proxyAgent.clusterId=ecls-abcd\\n - --set\\n - proxyAgent.clusterType=external\\n - --set\\n - proxyAgent.serverAddress=1.1.1.1:8008\\n - --set\\n - proxyAgent.image=ccr.ccs.tencentyun.com/cloudmonitor/multi-proxy:v1.0.12\\n - --set\\n - kubeStateMetrics.enabled=true\\n - --set\\n - kubeStateMetrics.image=ccr.ccs.tencentyun.com/cloudmonitor/tmp-kube-state-metrics:v2.6.0-shard\\n - --set\\n - nodeExporter.enabled=true\\n - --set\\n - nodeExporter.image=ccr.ccs.tencentyun.com/tkeimages/node-exporter:v1.3.1\\n restartPolicy: Never\\n\",\n \"RequestId\": \"r3mh2ud5r9568u-e4n3tdamu8uqkwvfu\"\n }\n}",
692
+ "title": "查看外部集群注册命令"
693
+ }
694
+ ],
695
+ "DescribeExternalClusterUninstallCommand": [
696
+ {
697
+ "document": "",
698
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExternalClusterUninstallCommand\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-abcd\",\n \"ClusterId\": \"ecls-abcd\"\n}",
699
+ "output": "{\n \"Response\": {\n \"Command\": \"\\n---\\napiVersion: v1\\nkind: ServiceAccount\\nmetadata:\\n name: tmp-uninstaller\\n namespace: default\\n---\\napiVersion: rbac.authorization.k8s.io/v1\\nkind: ClusterRoleBinding\\nmetadata:\\n name: tmp-uninstaller\\nroleRef:\\n apiGroup: rbac.authorization.k8s.io\\n kind: ClusterRole\\n name: cluster-admin\\nsubjects:\\n- kind: ServiceAccount\\n name: tmp-uninstaller\\n namespace: default\\n---\\napiVersion: batch/v1\\nkind: Job\\nmetadata:\\n name: tmp-uninstaller\\n namespace: default\\nspec:\\n backoffLimit: 2\\n ttlSecondsAfterFinished: 10\\n template:\\n spec:\\n tolerations:\\n - operator: Exists\\n serviceAccountName: tmp-uninstaller\\n containers:\\n - name: uninstaller\\n image: ccr.ccs.tencentyun.com/cloudmonitor/agent-installer:v0.0.9\\n command:\\n - uninstall\\n args:\\n - all \\n - prom-abcd\\n restartPolicy: Never\\n\",\n \"RequestId\": \"bfa18d10-fe18-4f0e-b7e8-18857f951655\"\n }\n}",
700
+ "title": "查看外部集群 Agent 卸载命令"
701
+ }
702
+ ],
679
703
  "DescribeGrafanaChannels": [
680
704
  {
681
705
  "document": "",
@@ -15,14 +15,14 @@
15
15
  "status": "online"
16
16
  },
17
17
  "ImageMaskAsync": {
18
- "document": "图片脱敏-异步接口",
18
+ "document": "图片脱敏-异步接口\n短时间大批量调用(例如>100上传/10分钟),如果遇到错误码“FalledOperation.AsyncQueueFullError”,请于数分钟后再次尝试提交。",
19
19
  "input": "ImageMaskAsyncRequest",
20
20
  "name": "图片脱敏-异步接口",
21
21
  "output": "ImageMaskAsyncResponse",
22
22
  "status": "online"
23
23
  },
24
24
  "ImageMaskAsyncGetResult": {
25
- "document": "图片脱敏-异步获取结果接口",
25
+ "document": "图片脱敏-异步获取结果接口\n请于上传请求后24小时内获取结果。",
26
26
  "input": "ImageMaskAsyncGetResultRequest",
27
27
  "name": "图片脱敏-异步获取结果接口",
28
28
  "output": "ImageMaskAsyncGetResultResponse",
@@ -6272,7 +6272,7 @@
6272
6272
  "members": [
6273
6273
  {
6274
6274
  "disabled": false,
6275
- "document": "异步任务ID",
6275
+ "document": "异步任务ID\n1.因上传图片TaskID 仅 24 小时内有效,请于提交任务获取TaskID后24小时内调用ImageMaskAsyncGetResult接口获取结果.\n2.建议在获取到TaskID 后,5-10分钟后再调用 ImageMaskAsyncGetResult 接口获取脱敏结果。",
6276
6276
  "example": "1cf14582-bd61-4ea2-93ca-c63eaa8d427a",
6277
6277
  "member": "string",
6278
6278
  "name": "TaskID",
@@ -6342,7 +6342,7 @@
6342
6342
  "members": [
6343
6343
  {
6344
6344
  "disabled": false,
6345
- "document": "加密任务ID",
6345
+ "document": "加密任务ID\n1.因此TaskID 仅 24 小时内有效,请于提交任务获取TaskID后24小时内调用ImageMaskAsyncGetResult接口获取结果.\n2.建议在获取到TaskID 后,5-10分钟后再调用 ImageMaskAsyncGetResult 接口获取脱敏结果。",
6346
6346
  "example": "1cf14582-bd61-4ea2-93ca-c63eaa8d427a",
6347
6347
  "member": "string",
6348
6348
  "name": "TaskID",
@@ -127,7 +127,7 @@
127
127
  "status": "online"
128
128
  },
129
129
  "DescribeJobEvents": {
130
- "document": "获取指定作业的事件,包括作业启动停止、运行失败、快照失败、作业异常等各种事件类型",
130
+ "document": "请求参数不包含 \"RunningOrderIds\"时,接口获取指定作业的事件,包括作业启动停止、运行失败、快照失败、作业异常等各种事件类型;请求参数不包含 \"RunningOrderIds\"时,接口为查询作业实例ID接口,获取作业实例",
131
131
  "input": "DescribeJobEventsRequest",
132
132
  "name": "获取指定作业的事件",
133
133
  "output": "DescribeJobEventsResponse",
@@ -3113,10 +3113,10 @@
3113
3113
  {
3114
3114
  "disabled": false,
3115
3115
  "document": "该作业指定范围内的事件列表\n注意:此字段可能返回 null,表示取不到有效值。",
3116
- "example": "[]",
3116
+ "example": "[ ]",
3117
3117
  "member": "JobEvent",
3118
3118
  "name": "Events",
3119
- "required": true,
3119
+ "output_required": true,
3120
3120
  "type": "list",
3121
3121
  "value_allowed_null": true
3122
3122
  },
@@ -3126,7 +3126,7 @@
3126
3126
  "example": "[3,2,1]",
3127
3127
  "member": "uint64",
3128
3128
  "name": "RunningOrderIds",
3129
- "required": true,
3129
+ "output_required": true,
3130
3130
  "type": "list",
3131
3131
  "value_allowed_null": true
3132
3132
  },
@@ -3136,10 +3136,20 @@
3136
3136
  "example": "10",
3137
3137
  "member": "uint64",
3138
3138
  "name": "TotalCount",
3139
- "required": true,
3139
+ "output_required": true,
3140
3140
  "type": "int",
3141
3141
  "value_allowed_null": true
3142
3142
  },
3143
+ {
3144
+ "disabled": false,
3145
+ "document": "实例对应的版本\n注意:此字段可能返回 null,表示取不到有效值。",
3146
+ "example": "[1,2,3]",
3147
+ "member": "uint64",
3148
+ "name": "Versions",
3149
+ "output_required": false,
3150
+ "type": "list",
3151
+ "value_allowed_null": true
3152
+ },
3143
3153
  {
3144
3154
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3145
3155
  "member": "string",