tccli 3.0.1236.1__py2.py3-none-any.whl → 3.0.1238.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/aca/__init__.py +4 -0
  4. tccli/services/aca/aca_client.py +578 -0
  5. tccli/services/aca/v20210323/api.json +3715 -0
  6. tccli/services/aca/v20210323/examples.json +69 -0
  7. tccli/services/aiart/v20221229/api.json +18 -9
  8. tccli/services/aiart/v20221229/examples.json +2 -2
  9. tccli/services/apm/v20210622/api.json +25 -22
  10. tccli/services/apm/v20210622/examples.json +16 -22
  11. tccli/services/ba/v20200720/api.json +3 -2
  12. tccli/services/batch/v20170312/api.json +641 -566
  13. tccli/services/batch/v20170312/examples.json +7 -7
  14. tccli/services/bi/v20220105/api.json +9 -0
  15. tccli/services/billing/v20180709/api.json +2 -2
  16. tccli/services/bpaas/v20181217/examples.json +1 -1
  17. tccli/services/cam/v20190116/api.json +116 -99
  18. tccli/services/cam/v20190116/examples.json +11 -11
  19. tccli/services/ccc/v20200210/api.json +40 -1
  20. tccli/services/ccc/v20200210/examples.json +1 -1
  21. tccli/services/cdb/cdb_client.py +53 -0
  22. tccli/services/cdb/v20170320/api.json +257 -207
  23. tccli/services/cdb/v20170320/examples.json +18 -10
  24. tccli/services/cdwch/v20200915/api.json +6 -6
  25. tccli/services/cdwdoris/v20211228/api.json +16 -5
  26. tccli/services/cdwdoris/v20211228/examples.json +1 -1
  27. tccli/services/cfg/v20210820/api.json +29 -13
  28. tccli/services/cfg/v20210820/examples.json +1 -1
  29. tccli/services/cfs/v20190719/api.json +84 -84
  30. tccli/services/cfs/v20190719/examples.json +6 -6
  31. tccli/services/chdfs/v20201112/api.json +18 -17
  32. tccli/services/chdfs/v20201112/examples.json +2 -2
  33. tccli/services/clb/v20180317/api.json +184 -162
  34. tccli/services/cloudapp/v20220530/api.json +11 -1
  35. tccli/services/cloudapp/v20220530/examples.json +3 -3
  36. tccli/services/cloudaudit/v20190319/api.json +64 -53
  37. tccli/services/cloudaudit/v20190319/examples.json +5 -5
  38. tccli/services/cls/v20201016/api.json +21 -21
  39. tccli/services/cls/v20201016/examples.json +1 -1
  40. tccli/services/config/v20220802/api.json +2 -0
  41. tccli/services/config/v20220802/examples.json +2 -2
  42. tccli/services/cvm/v20170312/api.json +5 -5
  43. tccli/services/cynosdb/cynosdb_client.py +53 -0
  44. tccli/services/cynosdb/v20190107/api.json +110 -0
  45. tccli/services/cynosdb/v20190107/examples.json +8 -0
  46. tccli/services/dcdb/v20180411/api.json +390 -387
  47. tccli/services/dcdb/v20180411/examples.json +14 -14
  48. tccli/services/dlc/v20210125/api.json +162 -7
  49. tccli/services/dlc/v20210125/examples.json +1 -1
  50. tccli/services/domain/v20180808/api.json +55 -54
  51. tccli/services/domain/v20180808/examples.json +38 -32
  52. tccli/services/dsgc/v20190723/api.json +1796 -1623
  53. tccli/services/dsgc/v20190723/examples.json +217 -211
  54. tccli/services/dts/v20180330/api.json +143 -106
  55. tccli/services/dts/v20211206/api.json +57 -46
  56. tccli/services/dts/v20211206/examples.json +1 -1
  57. tccli/services/ecm/v20190719/api.json +6 -6
  58. tccli/services/emr/v20190103/api.json +80 -20
  59. tccli/services/ess/ess_client.py +118 -12
  60. tccli/services/ess/v20201111/api.json +320 -37
  61. tccli/services/ess/v20201111/examples.json +19 -3
  62. tccli/services/essbasic/essbasic_client.py +167 -8
  63. tccli/services/essbasic/v20210526/api.json +528 -55
  64. tccli/services/essbasic/v20210526/examples.json +46 -16
  65. tccli/services/facefusion/v20220927/api.json +12 -1
  66. tccli/services/fmu/v20191213/api.json +8 -8
  67. tccli/services/gaap/v20180529/api.json +200 -209
  68. tccli/services/gwlb/v20240906/api.json +16 -16
  69. tccli/services/gwlb/v20240906/examples.json +2 -2
  70. tccli/services/hai/v20230812/api.json +1 -1
  71. tccli/services/hunyuan/v20230901/api.json +6 -6
  72. tccli/services/iss/v20230517/api.json +11 -11
  73. tccli/services/iss/v20230517/examples.json +31 -31
  74. tccli/services/keewidb/v20220308/api.json +92 -82
  75. tccli/services/keewidb/v20220308/examples.json +5 -5
  76. tccli/services/lcic/v20220817/api.json +3 -3
  77. tccli/services/lcic/v20220817/examples.json +2 -2
  78. tccli/services/lighthouse/v20200324/api.json +18 -18
  79. tccli/services/lighthouse/v20200324/examples.json +6 -6
  80. tccli/services/live/v20180801/api.json +32 -14
  81. tccli/services/lke/v20231130/examples.json +1 -1
  82. tccli/services/mariadb/v20170312/api.json +285 -263
  83. tccli/services/mariadb/v20170312/examples.json +12 -12
  84. tccli/services/mongodb/v20180408/api.json +52 -40
  85. tccli/services/mongodb/v20180408/examples.json +4 -4
  86. tccli/services/mongodb/v20190725/api.json +119 -109
  87. tccli/services/mongodb/v20190725/examples.json +5 -5
  88. tccli/services/monitor/monitor_client.py +106 -0
  89. tccli/services/monitor/v20180724/api.json +222 -0
  90. tccli/services/monitor/v20180724/examples.json +17 -1
  91. tccli/services/mps/mps_client.py +228 -16
  92. tccli/services/mps/v20190612/api.json +385 -23
  93. tccli/services/mps/v20190612/examples.json +32 -0
  94. tccli/services/mqtt/v20240516/api.json +1 -1
  95. tccli/services/mqtt/v20240516/examples.json +1 -1
  96. tccli/services/msp/v20180319/api.json +2 -2
  97. tccli/services/ocr/v20181119/api.json +11 -1
  98. tccli/services/omics/v20221128/api.json +14 -2
  99. tccli/services/organization/v20210331/api.json +45 -18
  100. tccli/services/privatedns/v20201028/api.json +90 -81
  101. tccli/services/privatedns/v20201028/examples.json +18 -18
  102. tccli/services/pts/v20210728/api.json +8 -0
  103. tccli/services/redis/redis_client.py +106 -0
  104. tccli/services/redis/v20180412/api.json +178 -16
  105. tccli/services/redis/v20180412/examples.json +16 -0
  106. tccli/services/region/v20220627/api.json +5 -3
  107. tccli/services/region/v20220627/examples.json +1 -1
  108. tccli/services/ssl/v20191205/api.json +6 -4
  109. tccli/services/ssl/v20191205/examples.json +1 -1
  110. tccli/services/sts/v20180813/examples.json +1 -1
  111. tccli/services/tag/v20180813/api.json +4 -5
  112. tccli/services/tcb/v20180608/api.json +36 -16
  113. tccli/services/tdid/v20210519/api.json +30 -38
  114. tccli/services/tdid/v20210519/examples.json +5 -5
  115. tccli/services/tdmq/tdmq_client.py +53 -0
  116. tccli/services/tdmq/v20200217/api.json +64 -1
  117. tccli/services/tdmq/v20200217/examples.json +9 -1
  118. tccli/services/teo/teo_client.py +485 -8
  119. tccli/services/teo/v20220901/api.json +837 -39
  120. tccli/services/teo/v20220901/examples.json +108 -0
  121. tccli/services/thpc/v20211109/api.json +32 -34
  122. tccli/services/thpc/v20220401/api.json +31 -33
  123. tccli/services/thpc/v20230321/api.json +55 -57
  124. tccli/services/thpc/v20230321/examples.json +1 -1
  125. tccli/services/tiia/v20190529/api.json +307 -293
  126. tccli/services/tiia/v20190529/examples.json +41 -41
  127. tccli/services/tione/v20211111/api.json +4 -4
  128. tccli/services/tione/v20211111/examples.json +2 -2
  129. tccli/services/tke/v20180525/api.json +1 -1
  130. tccli/services/trocket/trocket_client.py +53 -0
  131. tccli/services/trocket/v20230308/api.json +119 -3
  132. tccli/services/trocket/v20230308/examples.json +14 -0
  133. tccli/services/tse/v20201207/api.json +188 -120
  134. tccli/services/tse/v20201207/examples.json +30 -30
  135. tccli/services/tsf/v20180326/api.json +826 -745
  136. tccli/services/tsf/v20180326/examples.json +99 -111
  137. tccli/services/vclm/v20240523/api.json +1 -1
  138. tccli/services/vdb/v20230616/api.json +80 -80
  139. tccli/services/vdb/v20230616/examples.json +1 -1
  140. tccli/services/vpc/v20170312/api.json +64 -44
  141. tccli/services/vpc/v20170312/examples.json +6 -6
  142. tccli/services/vrs/v20200824/api.json +3 -2
  143. tccli/services/wedata/v20210820/api.json +550 -40
  144. tccli/services/wedata/v20210820/examples.json +10 -4
  145. {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/METADATA +2 -2
  146. {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/RECORD +149 -145
  147. {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/WHEEL +0 -0
  148. {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/entry_points.txt +0 -0
  149. {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/license_files/LICENSE +0 -0
@@ -106,9 +106,9 @@
106
106
  ],
107
107
  "DescribeCurrentOp": [
108
108
  {
109
- "document": "",
110
- "input": "https://mongodb.tencentcloudapi.com/?Action=DescribeCurrentOp\n&InstanceId=cmgo-p8vnipr5\n&<公共请求参数>",
111
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"CurrentOps\": [\n {\n \"ReplicaSetName\": \"xx\",\n \"NodeName\": \"xx\",\n \"State\": \"xx\",\n \"MicrosecsRunning\": 1,\n \"Query\": \"xx\",\n \"OpId\": 0,\n \"Ns\": \"xx\",\n \"Operation\": \"xx\",\n \"Op\": \"xx\"\n }\n ],\n \"RequestId\": \"xx\"\n }\n}",
109
+ "document": "查询云数据库实例的当前操作",
110
+ "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCurrentOp\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-p8vn****\"\n}",
111
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"CurrentOps\": [\n {\n \"OpId\": 1804858933,\n \"Ns\": \"db.****\",\n \"Query\": \"\",\n \"Op\": \"command\",\n \"ReplicaSetName\": \"salve-1\",\n \"NodeName\": \"salve-1\",\n \"Operation\": \"****\",\n \"State\": \"Primary\",\n \"MicrosecsRunning\": 30353723,\n \"ExecNode\": \"从节点\"\n }\n ],\n \"RequestId\": \"66956cf3-2d10-4c68-87c0-7bd558deae7e\"\n }\n}",
112
112
  "title": "查询云数据库实例的当前操作"
113
113
  }
114
114
  ],
@@ -227,8 +227,8 @@
227
227
  "FlashBackDBInstance": [
228
228
  {
229
229
  "document": "",
230
- "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: FlashBackDBInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-igjysqkr\",\n \"TargetFlashbackTime\": \"2023-08-04 14:00:00\",\n \"TargetDatabases\": [\n {\n \"DBName\": \"my_test\",\n \"Collections\": [\n {\n \"CollectionName\": \"my_test1\",\n \"KeyValues\": [\n {\n \"Key\": \"name\",\n \"Value\": \"abc\"\n }\n ],\n \"TargetResultCollectionName\": \"my_test_bak0804143230\",\n \"FilterKey\": \"name\"\n }\n ]\n }\n ],\n \"TargetInstanceId\": \"cmgo-05173fe7\"\n}",
231
- "output": "{\n \"Response\": {\n \"FlowId\": 1234567,\n \"RequestId\": \"abc\"\n }\n}",
230
+ "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: FlashBackDBInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-igjysqkr\",\n \"TargetFlashbackTime\": \"2023-08-04 14:00:00\",\n \"TargetDatabases\": [\n {\n \"DBName\": \"my_test\",\n \"Collections\": [\n {\n \"CollectionName\": \"my_test1\",\n \"KeyValues\": [\n {\n \"Key\": \"name\",\n \"Value\": \"name-demo\"\n }\n ],\n \"TargetResultCollectionName\": \"my_test_bak0804143230\",\n \"FilterKey\": \"name\"\n }\n ]\n }\n ],\n \"TargetInstanceId\": \"cmgo-0517****\"\n}",
231
+ "output": "{\n \"Response\": {\n \"FlowId\": 1234567,\n \"RequestId\": \"59b477da-6473-4ea8-85b3-7f4473744****\"\n }\n}",
232
232
  "title": "执行按key回档"
233
233
  }
234
234
  ],
@@ -3553,6 +3553,58 @@ def doDeleteSSOAccount(args, parsed_globals):
3553
3553
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3554
3554
 
3555
3555
 
3556
+ def doDescribeRemoteURLs(args, parsed_globals):
3557
+ g_param = parse_global_arg(parsed_globals)
3558
+
3559
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3560
+ cred = credential.CVMRoleCredential()
3561
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3562
+ cred = credential.STSAssumeRoleCredential(
3563
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3564
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3565
+ )
3566
+ 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):
3567
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3568
+ else:
3569
+ cred = credential.Credential(
3570
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3571
+ )
3572
+ http_profile = HttpProfile(
3573
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3574
+ reqMethod="POST",
3575
+ endpoint=g_param[OptionsDefine.Endpoint],
3576
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3577
+ )
3578
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3579
+ if g_param[OptionsDefine.Language]:
3580
+ profile.language = g_param[OptionsDefine.Language]
3581
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3582
+ client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
3583
+ client._sdkVersion += ("_CLI_" + __version__)
3584
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3585
+ model = models.DescribeRemoteURLsRequest()
3586
+ model.from_json_string(json.dumps(args))
3587
+ start_time = time.time()
3588
+ while True:
3589
+ rsp = client.DescribeRemoteURLs(model)
3590
+ result = rsp.to_json_string()
3591
+ try:
3592
+ json_obj = json.loads(result)
3593
+ except TypeError as e:
3594
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3595
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3596
+ break
3597
+ cur_time = time.time()
3598
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3599
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3600
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3601
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3602
+ else:
3603
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3604
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3605
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3606
+
3607
+
3556
3608
  def doDescribeAlarmNotice(args, parsed_globals):
3557
3609
  g_param = parse_global_arg(parsed_globals)
3558
3610
 
@@ -6309,6 +6361,58 @@ def doDescribeRecordingRules(args, parsed_globals):
6309
6361
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6310
6362
 
6311
6363
 
6364
+ def doModifyRemoteURLs(args, parsed_globals):
6365
+ g_param = parse_global_arg(parsed_globals)
6366
+
6367
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6368
+ cred = credential.CVMRoleCredential()
6369
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6370
+ cred = credential.STSAssumeRoleCredential(
6371
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6372
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6373
+ )
6374
+ 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):
6375
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6376
+ else:
6377
+ cred = credential.Credential(
6378
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6379
+ )
6380
+ http_profile = HttpProfile(
6381
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6382
+ reqMethod="POST",
6383
+ endpoint=g_param[OptionsDefine.Endpoint],
6384
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6385
+ )
6386
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6387
+ if g_param[OptionsDefine.Language]:
6388
+ profile.language = g_param[OptionsDefine.Language]
6389
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6390
+ client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
6391
+ client._sdkVersion += ("_CLI_" + __version__)
6392
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6393
+ model = models.ModifyRemoteURLsRequest()
6394
+ model.from_json_string(json.dumps(args))
6395
+ start_time = time.time()
6396
+ while True:
6397
+ rsp = client.ModifyRemoteURLs(model)
6398
+ result = rsp.to_json_string()
6399
+ try:
6400
+ json_obj = json.loads(result)
6401
+ except TypeError as e:
6402
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6403
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6404
+ break
6405
+ cur_time = time.time()
6406
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6407
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6408
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6409
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6410
+ else:
6411
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6412
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6413
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6414
+
6415
+
6312
6416
  def doDescribeGrafanaWhiteList(args, parsed_globals):
6313
6417
  g_param = parse_global_arg(parsed_globals)
6314
6418
 
@@ -8208,6 +8312,7 @@ ACTION_MAP = {
8208
8312
  "DescribeAlarmHistories": doDescribeAlarmHistories,
8209
8313
  "CreateAlarmNotice": doCreateAlarmNotice,
8210
8314
  "DeleteSSOAccount": doDeleteSSOAccount,
8315
+ "DescribeRemoteURLs": doDescribeRemoteURLs,
8211
8316
  "DescribeAlarmNotice": doDescribeAlarmNotice,
8212
8317
  "CreateGrafanaIntegration": doCreateGrafanaIntegration,
8213
8318
  "DescribePrometheusTemp": doDescribePrometheusTemp,
@@ -8261,6 +8366,7 @@ ACTION_MAP = {
8261
8366
  "DescribeAlarmPolicies": doDescribeAlarmPolicies,
8262
8367
  "DescribePrometheusTargetsTMP": doDescribePrometheusTargetsTMP,
8263
8368
  "DescribeRecordingRules": doDescribeRecordingRules,
8369
+ "ModifyRemoteURLs": doModifyRemoteURLs,
8264
8370
  "DescribeGrafanaWhiteList": doDescribeGrafanaWhiteList,
8265
8371
  "DeleteAlarmPolicy": doDeleteAlarmPolicy,
8266
8372
  "CreatePrometheusAlertPolicy": doCreatePrometheusAlertPolicy,
@@ -714,6 +714,13 @@
714
714
  "output": "DescribeRecordingRulesResponse",
715
715
  "status": "online"
716
716
  },
717
+ "DescribeRemoteURLs": {
718
+ "document": "获取多写配置详情",
719
+ "input": "DescribeRemoteURLsRequest",
720
+ "name": "获取多写配置详情",
721
+ "output": "DescribeRemoteURLsResponse",
722
+ "status": "online"
723
+ },
717
724
  "DescribeSSOAccount": {
718
725
  "document": "列出当前grafana实例的所有授权账号",
719
726
  "input": "DescribeSSOAccountRequest",
@@ -896,6 +903,13 @@
896
903
  "output": "ModifyPrometheusTempResponse",
897
904
  "status": "online"
898
905
  },
906
+ "ModifyRemoteURLs": {
907
+ "document": "修改多写配置",
908
+ "input": "ModifyRemoteURLsRequest",
909
+ "name": "修改多写配置",
910
+ "output": "ModifyRemoteURLsResponse",
911
+ "status": "online"
912
+ },
899
913
  "ResumeGrafanaInstance": {
900
914
  "document": "本接口(ResumeGrafanaInstance)用于 Grafana 包年包月实例的停服续费,调用后按原版本续费一个月。仍在运行中的实例无法使用该接口进行续费。",
901
915
  "input": "ResumeGrafanaInstanceRequest",
@@ -2528,6 +2542,32 @@
2528
2542
  ],
2529
2543
  "usage": "both"
2530
2544
  },
2545
+ "BasicAuth": {
2546
+ "document": "url鉴权",
2547
+ "members": [
2548
+ {
2549
+ "disabled": false,
2550
+ "document": "用户名\n注意:此字段可能返回 null,表示取不到有效值。",
2551
+ "example": "cherry",
2552
+ "member": "string",
2553
+ "name": "UserName",
2554
+ "required": false,
2555
+ "type": "string",
2556
+ "value_allowed_null": true
2557
+ },
2558
+ {
2559
+ "disabled": false,
2560
+ "document": "密码\n注意:此字段可能返回 null,表示取不到有效值。",
2561
+ "example": "无",
2562
+ "member": "string",
2563
+ "name": "Password",
2564
+ "required": false,
2565
+ "type": "string",
2566
+ "value_allowed_null": true
2567
+ }
2568
+ ],
2569
+ "usage": "both"
2570
+ },
2531
2571
  "BindPrometheusManagedGrafanaRequest": {
2532
2572
  "document": "BindPrometheusManagedGrafana请求参数结构体",
2533
2573
  "members": [
@@ -12966,6 +13006,52 @@
12966
13006
  ],
12967
13007
  "type": "object"
12968
13008
  },
13009
+ "DescribeRemoteURLsRequest": {
13010
+ "document": "DescribeRemoteURLs请求参数结构体",
13011
+ "members": [
13012
+ {
13013
+ "disabled": false,
13014
+ "document": "实例ID",
13015
+ "example": "prom-jsbr",
13016
+ "member": "string",
13017
+ "name": "InstanceId",
13018
+ "required": true,
13019
+ "type": "string"
13020
+ },
13021
+ {
13022
+ "disabled": false,
13023
+ "document": "url数组",
13024
+ "example": "[\"http://172.30.0.9:9090/api/v1/prom/write\"]",
13025
+ "member": "string",
13026
+ "name": "RemoteURLs",
13027
+ "required": false,
13028
+ "type": "list"
13029
+ }
13030
+ ],
13031
+ "type": "object"
13032
+ },
13033
+ "DescribeRemoteURLsResponse": {
13034
+ "document": "DescribeRemoteURLs返回参数结构体",
13035
+ "members": [
13036
+ {
13037
+ "disabled": false,
13038
+ "document": "多写配置",
13039
+ "example": "无",
13040
+ "member": "RemoteWrite",
13041
+ "name": "RemoteWrites",
13042
+ "output_required": true,
13043
+ "type": "list",
13044
+ "value_allowed_null": false
13045
+ },
13046
+ {
13047
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
13048
+ "member": "string",
13049
+ "name": "RequestId",
13050
+ "type": "string"
13051
+ }
13052
+ ],
13053
+ "type": "object"
13054
+ },
12969
13055
  "DescribeSSOAccountRequest": {
12970
13056
  "document": "DescribeSSOAccount请求参数结构体",
12971
13057
  "members": [
@@ -16169,6 +16255,42 @@
16169
16255
  ],
16170
16256
  "type": "object"
16171
16257
  },
16258
+ "ModifyRemoteURLsRequest": {
16259
+ "document": "ModifyRemoteURLs请求参数结构体",
16260
+ "members": [
16261
+ {
16262
+ "disabled": false,
16263
+ "document": "实例ID",
16264
+ "example": "无",
16265
+ "member": "string",
16266
+ "name": "InstanceId",
16267
+ "required": true,
16268
+ "type": "string"
16269
+ },
16270
+ {
16271
+ "disabled": false,
16272
+ "document": "多写配置",
16273
+ "example": "无",
16274
+ "member": "RemoteWrite",
16275
+ "name": "RemoteWrites",
16276
+ "required": false,
16277
+ "type": "list"
16278
+ }
16279
+ ],
16280
+ "type": "object"
16281
+ },
16282
+ "ModifyRemoteURLsResponse": {
16283
+ "document": "ModifyRemoteURLs返回参数结构体",
16284
+ "members": [
16285
+ {
16286
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
16287
+ "member": "string",
16288
+ "name": "RequestId",
16289
+ "type": "string"
16290
+ }
16291
+ ],
16292
+ "type": "object"
16293
+ },
16172
16294
  "MonitorTypeInfo": {
16173
16295
  "document": "监控类型详细信息",
16174
16296
  "members": [
@@ -19391,6 +19513,106 @@
19391
19513
  ],
19392
19514
  "usage": "out"
19393
19515
  },
19516
+ "RemoteWrite": {
19517
+ "document": "多写配置",
19518
+ "members": [
19519
+ {
19520
+ "disabled": false,
19521
+ "document": "多写url",
19522
+ "example": "http://172.30.0.9:9090/api/v1/prom/write",
19523
+ "member": "string",
19524
+ "name": "URL",
19525
+ "output_required": true,
19526
+ "required": true,
19527
+ "type": "string",
19528
+ "value_allowed_null": false
19529
+ },
19530
+ {
19531
+ "disabled": false,
19532
+ "document": "RelabelConfig\n注意:此字段可能返回 null,表示取不到有效值。",
19533
+ "example": "无",
19534
+ "member": "string",
19535
+ "name": "URLRelabelConfig",
19536
+ "output_required": true,
19537
+ "required": false,
19538
+ "type": "string",
19539
+ "value_allowed_null": true
19540
+ },
19541
+ {
19542
+ "disabled": false,
19543
+ "document": "鉴权\n注意:此字段可能返回 null,表示取不到有效值。",
19544
+ "example": "无",
19545
+ "member": "BasicAuth",
19546
+ "name": "BasicAuth",
19547
+ "output_required": true,
19548
+ "required": false,
19549
+ "type": "object",
19550
+ "value_allowed_null": true
19551
+ },
19552
+ {
19553
+ "disabled": false,
19554
+ "document": "最大block\n注意:此字段可能返回 null,表示取不到有效值。",
19555
+ "example": "无",
19556
+ "member": "string",
19557
+ "name": "MaxBlockSize",
19558
+ "output_required": true,
19559
+ "required": false,
19560
+ "type": "string",
19561
+ "value_allowed_null": true
19562
+ },
19563
+ {
19564
+ "disabled": false,
19565
+ "document": "Label\n注意:此字段可能返回 null,表示取不到有效值。",
19566
+ "example": "无",
19567
+ "member": "string",
19568
+ "name": "Label",
19569
+ "output_required": true,
19570
+ "required": false,
19571
+ "type": "string",
19572
+ "value_allowed_null": true
19573
+ },
19574
+ {
19575
+ "disabled": false,
19576
+ "document": "HTTP 额外添加的头\n注意:此字段可能返回 null,表示取不到有效值。",
19577
+ "example": "无",
19578
+ "member": "RemoteWriteHeader",
19579
+ "name": "Headers",
19580
+ "output_required": false,
19581
+ "required": false,
19582
+ "type": "list",
19583
+ "value_allowed_null": true
19584
+ }
19585
+ ],
19586
+ "usage": "both"
19587
+ },
19588
+ "RemoteWriteHeader": {
19589
+ "document": "Remote Write 协议额外添加的 HTTP 头",
19590
+ "members": [
19591
+ {
19592
+ "disabled": false,
19593
+ "document": "HTTP 头的键\n注意:此字段可能返回 null,表示取不到有效值。",
19594
+ "example": "X-Custom-Header",
19595
+ "member": "string",
19596
+ "name": "Key",
19597
+ "output_required": false,
19598
+ "required": true,
19599
+ "type": "string",
19600
+ "value_allowed_null": true
19601
+ },
19602
+ {
19603
+ "disabled": false,
19604
+ "document": "HTTP 头的值\n注意:此字段可能返回 null,表示取不到有效值。",
19605
+ "example": "custom-value",
19606
+ "member": "string",
19607
+ "name": "Value",
19608
+ "output_required": false,
19609
+ "required": false,
19610
+ "type": "string",
19611
+ "value_allowed_null": true
19612
+ }
19613
+ ],
19614
+ "usage": "both"
19615
+ },
19394
19616
  "ResumeGrafanaInstanceRequest": {
19395
19617
  "document": "ResumeGrafanaInstance请求参数结构体",
19396
19618
  "members": [
@@ -132,7 +132,7 @@
132
132
  "title": "r. 创建 Graphite 集成"
133
133
  },
134
134
  {
135
- "document": "参数说明:\n1. InstanceId 是 Prometheus 实例 ID,必填\n2. Kind 参数固定为 `qcloud-exporter`,必填\n3. Content 参数格式如示例。说明如下:\n3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`\n3.2. kind 是集成类型,必填且这里固定为 `qcloud-exporter`\n3.3. spec.instanceSpec.region 是云产品所在地域,必填,比如采集广州地域的云产品,可以填 `广州` 或 `ap-guangzhou`,该参数最终会转化为指标的 label, 名为 `instance-region`\n3.4. spec.instanceSpec.delaySeconds 表示数据采集延迟,整数,单位是秒,可不填,默认是 0。当值为 0 时,原始数据点的时间戳会被忽略,替换为集成拉取到数据点的时间;当值 >0 时,数据点会保留原始的时间戳,且数据必然会延迟设置的时间\n3.5. spec.instanceSpec.reload_interval_minutes 表示实例刷新间隔,整数,单位是分钟,必填且必须大于等于 10。云产品实例的新增或者云标签的修改,会在刷新实例后反映在指标中,至多需要等待一个实例刷新间隔\n3.6. spec.instanceSpec.useRole 表示是否使用服务角色,布尔类型,必填。当前逻辑一定会使用服务角色,所以必填 `true`\n3.7. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填\n3.8. spec.exporterSpec.[云产品] 表示是否采集对应云产品,布尔类型,`true` 表示采集该云产品。云产品各编码指代含义:`cvm`:云服务器,`cbs`:云硬盘,`lb_public`:负载均衡(公网),`lb_private`:负载均衡(内网),`tgw_set`:负载均衡(独占集群),`cmongo`:数据库MongoDB,`cdb`:数据库MySQL(CDB),`redis`:数据库Redis(CKV版),`redis_mem`:数据库Redis(内存版),`tendis`:Tendis,`xstor`:CTSDB(InfluxDB版),`mariadb`:数据库MariaDB,`postgres`:数据库PostgreSQL,`tdmysql`:TDSQL MySQL版,`cynosdb_mysql`:TDSQL-C MySQL,`sqlserver`:数据库SQL Server,`nat_gateway`:NAT网关,`ckafka`:CKafka,`rocketmq`:RocketMQ(新指标),`lb`:弹性公网IP,`vpngw`:VPN网关,`vpnx`:VPN通道,`vpc_net_detect`:网络探测,`cdn`:CDN,`ov_cdn`:CND(海外),`cos`:COS,`dc`:专线接入-物理专线,`dcx`:专线接入-专用通道,`dcg`:专线接入-专线网关,`lighthouse`:轻量应用服务器,`nacos`:Nacos,`zookeeper`:Zookeeper,`ces`:Elasticsearch,`dts`:数据传输服务,`vbc`:云联网,`gaap`:全球应用加速,`waf`:Web应用防火墙,`cfs`:文件存储,`bwp`:共享带宽包,`scf_v2`:云函数(别名),`vod`:云点播(VOD),`cls`:日志服务(CLS)-日志主题,`apigateway`:API 网关,`ti_traintask`:TI-ONE(任务式建模),`ti_notebook`:TI-ONE(Notebook),`ti_model`:TI-ONE(在线服务),`self`:采集器自监控\n2.9. spec.scrapeSpec.relabelConfigs 用于添加 `metricRelabelings` 配置,选填。该配置是 prometheus-operator 的 relabel 配置,部分字段与 prometheus 原生 relabel 配置不同,具体可参考[官方配置说明](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.RelabelConfig)",
135
+ "document": "参数说明:\n1. InstanceId 是 Prometheus 实例 ID,必填\n2. Kind 参数固定为 `qcloud-exporter`,必填\n3. Content 参数格式如示例。说明如下:\n3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`\n3.2. kind 是集成类型,必填且这里固定为 `qcloud-exporter`\n3.3. spec.instanceSpec.region 是云产品所在地域,必填,比如采集广州地域的云产品,可以填 `广州` 或 `ap-guangzhou`,该参数最终会转化为指标的 label, 名为 `instance-region`\n3.4. spec.instanceSpec.delaySeconds 表示数据采集延迟,整数,单位是秒,可不填,默认是 0。当值为 0 时,原始数据点的时间戳会被忽略,替换为集成拉取到数据点的时间;当值 >0 时,数据点会保留原始的时间戳,且数据必然会延迟设置的时间\n3.5. spec.instanceSpec.reload_interval_minutes 表示实例刷新间隔,整数,单位是分钟,必填且必须大于等于 10。云产品实例的新增或者云标签的修改,会在刷新实例后反映在指标中,至多需要等待一个实例刷新间隔\n3.6. spec.instanceSpec.useRole 表示是否使用服务角色,布尔类型,必填。当前逻辑一定会使用服务角色,所以必填 `true`\n3.7. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填\n3.8. spec.exporterSpec.[云产品] 表示是否采集对应云产品,布尔类型,`true` 表示采集该云产品。云产品各编码指代含义:`cvm`:云服务器,`cbs`:云硬盘,`lb_public`:负载均衡(公网),`lb_private`:负载均衡(内网),`tgw_set`:负载均衡(独占集群),`cmongo`:数据库MongoDB,`cdb`:数据库MySQL(CDB),`redis`:数据库Redis(CKV版),`redis_mem`:数据库Redis(内存版),`tendis`:Tendis,`xstor`:CTSDB(InfluxDB版),`mariadb`:数据库MariaDB,`postgres`:数据库PostgreSQL,`tdmysql`:TDSQL MySQL版,`cynosdb_mysql`:TDSQL-C MySQL,`sqlserver`:数据库SQL Server,`nat_gateway`:NAT网关,`ckafka`:CKafka,`rocketmq`:RocketMQ(新指标),`lb`:弹性公网IP,`vpngw`:VPN网关,`vpnx`:VPN通道,`vpc_net_detect`:网络探测,`cdn`:CDN,`ov_cdn`:CDN(海外),`cos`:COS,`dc`:专线接入-物理专线,`dcx`:专线接入-专用通道,`dcg`:专线接入-专线网关,`lighthouse`:轻量应用服务器,`nacos`:Nacos,`zookeeper`:Zookeeper,`ces`:Elasticsearch,`dts`:数据传输服务,`vbc`:云联网,`gaap`:全球应用加速,`waf`:Web应用防火墙,`cfs`:文件存储,`bwp`:共享带宽包,`scf_v2`:云函数(别名),`vod`:云点播(VOD),`cls`:日志服务(CLS)-日志主题,`apigateway`:API 网关,`ti_traintask`:TI-ONE(任务式建模),`ti_notebook`:TI-ONE(Notebook),`ti_model`:TI-ONE(在线服务),`self`:采集器自监控\n2.9. spec.scrapeSpec.relabelConfigs 用于添加 `metricRelabelings` 配置,选填。该配置是 prometheus-operator 的 relabel 配置,部分字段与 prometheus 原生 relabel 配置不同,具体可参考[官方配置说明](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.RelabelConfig)",
136
136
  "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateExporterIntegration\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-1\",\n \"Kind\": \"qcloud-exporter\",\n \"Content\": \"{\\\"name\\\":\\\"test\\\",\\\"kind\\\":\\\"qcloud-exporter\\\",\\\"spec\\\":{\\\"instanceSpec\\\":{\\\"region\\\":\\\"广州\\\",\\\"delaySeconds\\\":0,\\\"reload_interval_minutes\\\":10,\\\"useRole\\\":true,\\\"labels\\\":{\\\"labelKey\\\":\\\"labelValue\\\",\\\"test\\\":\\\"test\\\"}},\\\"exporterSpec\\\":{\\\"cvm\\\":true,\\\"cbs\\\":true},\\\"scrapeSpec\\\":{\\\"relabelConfigs\\\":\\\"metricRelabelings:\\\\n- action: labeldrop\\\\n regex: tmp_test_label\\\\n\\\"}}}\"\n}",
137
137
  "output": "{\n \"Response\": {\n \"Names\": [\n \"test\"\n ],\n \"RequestId\": \"xyz\"\n }\n}",
138
138
  "title": "a. 创建 云监控 集成"
@@ -984,6 +984,14 @@
984
984
  "title": "查询预聚合规则"
985
985
  }
986
986
  ],
987
+ "DescribeRemoteURLs": [
988
+ {
989
+ "document": "获取多写配置",
990
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRemoteURLs\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-kewhrgvf\",\n \"RemoteURLs\": [\n \"http://172.0.0.1:9090/api/v1/prom/write\"\n ]\n}",
991
+ "output": "{\n \"Response\": {\n \"RemoteWrites\": [\n {\n \"URL\": \"http://172.0.0.1:9090/api/v1/prom/write\",\n \"URLRelabelConfig\": \"source_labels:asd\\n\",\n \"BasicAuth\": {\n \"UserName\": \"user-name\",\n \"Password\": \"sklehrgb\"\n },\n \"MaxBlockSize\": \"1024\",\n \"Label\": \"label-name=label-value\",\n \"Headers\": [\n {\n \"Key\": \"X-Custom-Header\",\n \"Value\": \"custom-value\"\n }\n ]\n }\n ],\n \"RequestId\": \"langy-akrbnf\"\n }\n}",
992
+ "title": "获取多写配置"
993
+ }
994
+ ],
987
995
  "DescribeSSOAccount": [
988
996
  {
989
997
  "document": "列出当前grafana实例的所有授权账号",
@@ -1210,6 +1218,14 @@
1210
1218
  "title": "修改模板描述"
1211
1219
  }
1212
1220
  ],
1221
+ "ModifyRemoteURLs": [
1222
+ {
1223
+ "document": "修改多写配置",
1224
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRemoteURLs\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-m4qf27hg\",\n \"RemoteWrites\": [\n {\n \"URL\": \"http://172.30.0.9:9090/api/v1/prom/write\",\n \"BasicAuth\": {\n \"UserName\": \"cherry\",\n \"Password\": \"xxx\"\n }\n }\n ]\n}",
1225
+ "output": "{\n \"Response\": {\n \"RequestId\": \"\"\n }\n}",
1226
+ "title": "修改多写配置"
1227
+ }
1228
+ ],
1213
1229
  "ResumeGrafanaInstance": [
1214
1230
  {
1215
1231
  "document": "恢复 Grafana 实例",