tccli 3.0.1237.1__py2.py3-none-any.whl → 3.0.1239.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 (146) 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 +10 -7
  10. tccli/services/batch/v20170312/api.json +641 -566
  11. tccli/services/batch/v20170312/examples.json +7 -7
  12. tccli/services/bi/v20220105/api.json +9 -0
  13. tccli/services/bpaas/v20181217/examples.json +1 -1
  14. tccli/services/cam/v20190116/api.json +32 -30
  15. tccli/services/cam/v20190116/examples.json +4 -4
  16. tccli/services/ccc/v20200210/api.json +31 -1
  17. tccli/services/ccc/v20200210/examples.json +1 -1
  18. tccli/services/cdb/v20170320/api.json +944 -856
  19. tccli/services/cdb/v20170320/examples.json +47 -47
  20. tccli/services/cdwch/v20200915/api.json +6 -6
  21. tccli/services/cdwdoris/v20211228/api.json +32 -12
  22. tccli/services/cdwdoris/v20211228/examples.json +1 -1
  23. tccli/services/cfg/v20210820/api.json +8 -13
  24. tccli/services/cfg/v20210820/examples.json +1 -1
  25. tccli/services/cfs/v20190719/api.json +84 -84
  26. tccli/services/cfs/v20190719/examples.json +6 -6
  27. tccli/services/chdfs/v20201112/api.json +113 -95
  28. tccli/services/chdfs/v20201112/examples.json +16 -16
  29. tccli/services/clb/v20180317/api.json +186 -164
  30. tccli/services/cloudapp/v20220530/api.json +1 -1
  31. tccli/services/cloudapp/v20220530/examples.json +3 -3
  32. tccli/services/cloudaudit/v20190319/api.json +21 -17
  33. tccli/services/cloudaudit/v20190319/examples.json +3 -3
  34. tccli/services/cls/v20201016/api.json +21 -21
  35. tccli/services/cls/v20201016/examples.json +1 -1
  36. tccli/services/config/v20220802/api.json +2 -0
  37. tccli/services/config/v20220802/examples.json +2 -2
  38. tccli/services/cynosdb/v20190107/api.json +370 -365
  39. tccli/services/cynosdb/v20190107/examples.json +39 -39
  40. tccli/services/dbbrain/v20191016/api.json +206 -188
  41. tccli/services/dbbrain/v20191016/examples.json +10 -10
  42. tccli/services/dbbrain/v20210527/api.json +274 -267
  43. tccli/services/dbbrain/v20210527/examples.json +25 -25
  44. tccli/services/dc/v20180410/api.json +101 -41
  45. tccli/services/dc/v20180410/examples.json +5 -5
  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 +37 -37
  51. tccli/services/domain/v20180808/examples.json +16 -10
  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 +152 -115
  55. tccli/services/dts/v20180330/examples.json +4 -4
  56. tccli/services/dts/v20211206/api.json +83 -72
  57. tccli/services/dts/v20211206/examples.json +5 -5
  58. tccli/services/eb/v20210416/api.json +2 -2
  59. tccli/services/eb/v20210416/examples.json +2 -2
  60. tccli/services/ecm/v20190719/api.json +273 -230
  61. tccli/services/ecm/v20190719/examples.json +21 -21
  62. tccli/services/emr/v20190103/api.json +80 -20
  63. tccli/services/ess/ess_client.py +61 -8
  64. tccli/services/ess/v20201111/api.json +287 -39
  65. tccli/services/ess/v20201111/examples.json +11 -3
  66. tccli/services/essbasic/essbasic_client.py +167 -8
  67. tccli/services/essbasic/v20210526/api.json +545 -54
  68. tccli/services/essbasic/v20210526/examples.json +46 -16
  69. tccli/services/facefusion/v20220927/api.json +14 -3
  70. tccli/services/fmu/v20191213/api.json +8 -8
  71. tccli/services/gaap/v20180529/api.json +222 -231
  72. tccli/services/hai/v20230812/api.json +1 -1
  73. tccli/services/hunyuan/v20230901/api.json +21 -2
  74. tccli/services/iss/v20230517/api.json +11 -11
  75. tccli/services/iss/v20230517/examples.json +31 -31
  76. tccli/services/keewidb/v20220308/api.json +92 -82
  77. tccli/services/keewidb/v20220308/examples.json +5 -5
  78. tccli/services/lcic/v20220817/api.json +1 -1
  79. tccli/services/lighthouse/v20200324/api.json +22 -22
  80. tccli/services/lighthouse/v20200324/examples.json +5 -5
  81. tccli/services/live/v20180801/api.json +87 -69
  82. tccli/services/live/v20180801/examples.json +37 -37
  83. tccli/services/lke/v20231130/examples.json +1 -1
  84. tccli/services/mariadb/v20170312/api.json +285 -263
  85. tccli/services/mariadb/v20170312/examples.json +12 -12
  86. tccli/services/mongodb/v20180408/api.json +104 -104
  87. tccli/services/mongodb/v20190725/api.json +116 -103
  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 +16 -0
  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/msp/v20180319/api.json +2 -2
  95. tccli/services/ocr/v20181119/api.json +13 -3
  96. tccli/services/ocr/v20181119/examples.json +1 -1
  97. tccli/services/omics/v20221128/api.json +14 -2
  98. tccli/services/organization/v20210331/api.json +45 -18
  99. tccli/services/privatedns/v20201028/api.json +90 -81
  100. tccli/services/privatedns/v20201028/examples.json +18 -18
  101. tccli/services/redis/redis_client.py +106 -0
  102. tccli/services/redis/v20180412/api.json +179 -17
  103. tccli/services/redis/v20180412/examples.json +16 -0
  104. tccli/services/region/v20220627/api.json +5 -3
  105. tccli/services/region/v20220627/examples.json +1 -1
  106. tccli/services/sqlserver/v20180328/api.json +611 -450
  107. tccli/services/sqlserver/v20180328/examples.json +16 -16
  108. tccli/services/ssl/v20191205/api.json +6 -4
  109. tccli/services/tag/v20180813/api.json +4 -5
  110. tccli/services/tbaas/v20180416/api.json +47 -49
  111. tccli/services/tbaas/v20180416/examples.json +4 -4
  112. tccli/services/tcb/v20180608/api.json +36 -16
  113. tccli/services/tdmq/tdmq_client.py +106 -0
  114. tccli/services/tdmq/v20200217/api.json +125 -1
  115. tccli/services/tdmq/v20200217/examples.json +17 -1
  116. tccli/services/teo/teo_client.py +485 -8
  117. tccli/services/teo/v20220901/api.json +837 -39
  118. tccli/services/teo/v20220901/examples.json +108 -0
  119. tccli/services/thpc/v20211109/api.json +32 -34
  120. tccli/services/thpc/v20220401/api.json +31 -33
  121. tccli/services/thpc/v20230321/api.json +55 -57
  122. tccli/services/thpc/v20230321/examples.json +1 -1
  123. tccli/services/tiia/v20190529/api.json +307 -293
  124. tccli/services/tiia/v20190529/examples.json +41 -41
  125. tccli/services/tione/v20211111/api.json +4 -4
  126. tccli/services/tione/v20211111/examples.json +2 -2
  127. tccli/services/tke/v20180525/api.json +1 -1
  128. tccli/services/trocket/trocket_client.py +224 -12
  129. tccli/services/trocket/v20230308/api.json +787 -147
  130. tccli/services/trocket/v20230308/examples.json +38 -0
  131. tccli/services/tse/v20201207/api.json +188 -120
  132. tccli/services/tse/v20201207/examples.json +30 -30
  133. tccli/services/tsf/v20180326/api.json +864 -781
  134. tccli/services/tsf/v20180326/examples.json +114 -126
  135. tccli/services/vclm/v20240523/api.json +1 -1
  136. tccli/services/vdb/v20230616/api.json +80 -80
  137. tccli/services/vdb/v20230616/examples.json +1 -1
  138. tccli/services/vod/v20180717/api.json +21 -3
  139. tccli/services/vod/v20180717/examples.json +2 -2
  140. tccli/services/vpc/v20170312/api.json +45 -44
  141. tccli/services/vpc/v20170312/examples.json +9 -9
  142. {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/METADATA +2 -2
  143. {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/RECORD +146 -142
  144. {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/WHEEL +0 -0
  145. {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/entry_points.txt +0 -0
  146. {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/license_files/LICENSE +0 -0
@@ -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": [
@@ -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 实例",