tccli 3.0.1153.1__py2.py3-none-any.whl → 3.0.1155.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 (36) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/billing/v20180709/api.json +1 -1
  3. tccli/services/ccc/v20200210/api.json +3 -3
  4. tccli/services/cdb/v20170320/api.json +1 -1
  5. tccli/services/ckafka/ckafka_client.py +65 -12
  6. tccli/services/ckafka/v20190819/api.json +134 -0
  7. tccli/services/ckafka/v20190819/examples.json +8 -0
  8. tccli/services/clb/v20180317/api.json +1 -1
  9. tccli/services/cloudapp/v20220530/api.json +3 -3
  10. tccli/services/cvm/cvm_client.py +110 -4
  11. tccli/services/cvm/v20170312/api.json +95 -0
  12. tccli/services/cvm/v20170312/examples.json +16 -0
  13. tccli/services/cynosdb/cynosdb_client.py +110 -4
  14. tccli/services/cynosdb/v20190107/api.json +192 -0
  15. tccli/services/cynosdb/v20190107/examples.json +16 -0
  16. tccli/services/es/v20180416/api.json +36 -0
  17. tccli/services/ess/v20201111/api.json +10 -10
  18. tccli/services/essbasic/v20210526/api.json +17 -17
  19. tccli/services/essbasic/v20210526/examples.json +3 -3
  20. tccli/services/faceid/v20180301/api.json +5 -5
  21. tccli/services/hunyuan/v20230901/api.json +79 -4
  22. tccli/services/lighthouse/v20200324/api.json +2 -2
  23. tccli/services/live/v20180801/api.json +1 -1
  24. tccli/services/lke/v20231130/api.json +3 -3
  25. tccli/services/mna/mna_client.py +322 -4
  26. tccli/services/mna/v20210119/api.json +435 -0
  27. tccli/services/mna/v20210119/examples.json +48 -0
  28. tccli/services/oceanus/v20190422/api.json +20 -0
  29. tccli/services/tke/v20180525/api.json +4 -4
  30. tccli/services/trtc/v20190722/api.json +2 -2
  31. tccli/services/vpc/v20170312/api.json +10 -10
  32. {tccli-3.0.1153.1.dist-info → tccli-3.0.1155.1.dist-info}/METADATA +2 -2
  33. {tccli-3.0.1153.1.dist-info → tccli-3.0.1155.1.dist-info}/RECORD +36 -36
  34. {tccli-3.0.1153.1.dist-info → tccli-3.0.1155.1.dist-info}/WHEEL +0 -0
  35. {tccli-3.0.1153.1.dist-info → tccli-3.0.1155.1.dist-info}/entry_points.txt +0 -0
  36. {tccli-3.0.1153.1.dist-info → tccli-3.0.1155.1.dist-info}/license_files/LICENSE +0 -0
@@ -357,6 +357,20 @@
357
357
  "output": "DisassociateSecurityGroupsResponse",
358
358
  "status": "online"
359
359
  },
360
+ "EnterRescueMode": {
361
+ "document": "进入救援模式",
362
+ "input": "EnterRescueModeRequest",
363
+ "name": "进入救援模式",
364
+ "output": "EnterRescueModeResponse",
365
+ "status": "online"
366
+ },
367
+ "ExitRescueMode": {
368
+ "document": "退出救援模式",
369
+ "input": "ExitRescueModeRequest",
370
+ "name": "退出救援模式",
371
+ "output": "ExitRescueModeResponse",
372
+ "status": "online"
373
+ },
360
374
  "ExportImages": {
361
375
  "document": "提供导出自定义镜像到指定COS存储桶的能力",
362
376
  "input": "ExportImagesRequest",
@@ -4702,6 +4716,87 @@
4702
4716
  ],
4703
4717
  "usage": "both"
4704
4718
  },
4719
+ "EnterRescueModeRequest": {
4720
+ "document": "EnterRescueMode请求参数结构体",
4721
+ "members": [
4722
+ {
4723
+ "disabled": false,
4724
+ "document": "需要进入救援模式的实例id",
4725
+ "example": "'ins-abcdefg'",
4726
+ "member": "string",
4727
+ "name": "InstanceId",
4728
+ "required": true,
4729
+ "type": "string"
4730
+ },
4731
+ {
4732
+ "disabled": false,
4733
+ "document": "救援模式下系统密码",
4734
+ "example": "'hello123456789'",
4735
+ "member": "string",
4736
+ "name": "Password",
4737
+ "required": true,
4738
+ "type": "string"
4739
+ },
4740
+ {
4741
+ "disabled": false,
4742
+ "document": "救援模式下系统用户名",
4743
+ "example": "'root'",
4744
+ "member": "string",
4745
+ "name": "Username",
4746
+ "required": false,
4747
+ "type": "string"
4748
+ },
4749
+ {
4750
+ "disabled": false,
4751
+ "document": "是否强制关机",
4752
+ "example": "False",
4753
+ "member": "bool",
4754
+ "name": "ForceStop",
4755
+ "required": false,
4756
+ "type": "bool"
4757
+ }
4758
+ ],
4759
+ "type": "object"
4760
+ },
4761
+ "EnterRescueModeResponse": {
4762
+ "document": "EnterRescueMode返回参数结构体",
4763
+ "members": [
4764
+ {
4765
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4766
+ "member": "string",
4767
+ "name": "RequestId",
4768
+ "type": "string"
4769
+ }
4770
+ ],
4771
+ "type": "object"
4772
+ },
4773
+ "ExitRescueModeRequest": {
4774
+ "document": "ExitRescueMode请求参数结构体",
4775
+ "members": [
4776
+ {
4777
+ "disabled": false,
4778
+ "document": "退出救援模式的实例id",
4779
+ "example": "instance_Id",
4780
+ "member": "string",
4781
+ "name": "InstanceId",
4782
+ "required": true,
4783
+ "type": "string"
4784
+ }
4785
+ ],
4786
+ "type": "object"
4787
+ },
4788
+ "ExitRescueModeResponse": {
4789
+ "document": "ExitRescueMode返回参数结构体",
4790
+ "members": [
4791
+ {
4792
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4793
+ "member": "string",
4794
+ "name": "RequestId",
4795
+ "type": "string"
4796
+ }
4797
+ ],
4798
+ "type": "object"
4799
+ },
4705
4800
  "ExportImagesRequest": {
4706
4801
  "document": "ExportImages请求参数结构体",
4707
4802
  "members": [
@@ -438,6 +438,22 @@
438
438
  "title": "解绑实例安全组"
439
439
  }
440
440
  ],
441
+ "EnterRescueMode": [
442
+ {
443
+ "document": "",
444
+ "input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnterRescueMode\n<公共请求参数>\n\n{\n \"InstanceId\": \"instance_Id\",\n \"Password\": \"\\\"uu7797UUX\\\"\"\n}",
445
+ "output": "{\n \"Response\": {\n \"RequestId\": \"5920380e-277a-420a-a221-0caac3eb7159\"\n }\n}",
446
+ "title": "进入救援模式"
447
+ }
448
+ ],
449
+ "ExitRescueMode": [
450
+ {
451
+ "document": "",
452
+ "input": "https://cvm.tencentcloudapi.com/?Action=ExitRescueMode\n&InstanceId=instance_Id\n&<公共请求参数>",
453
+ "output": "{\n \"Response\": {\n \"RequestId\": \"5920380e-277a-420a-a221-0caac3eb7159\"\n }\n}",
454
+ "title": "退出救援模式"
455
+ }
456
+ ],
441
457
  "ExportImages": [
442
458
  {
443
459
  "document": "导出自定义镜像",
@@ -797,7 +797,7 @@ def doCloseProxy(args, parsed_globals):
797
797
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
798
798
 
799
799
 
800
- def doDescribeProxySpecs(args, parsed_globals):
800
+ def doExportResourcePackageDeductDetails(args, parsed_globals):
801
801
  g_param = parse_global_arg(parsed_globals)
802
802
 
803
803
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -826,11 +826,11 @@ def doDescribeProxySpecs(args, parsed_globals):
826
826
  client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
827
827
  client._sdkVersion += ("_CLI_" + __version__)
828
828
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
829
- model = models.DescribeProxySpecsRequest()
829
+ model = models.ExportResourcePackageDeductDetailsRequest()
830
830
  model.from_json_string(json.dumps(args))
831
831
  start_time = time.time()
832
832
  while True:
833
- rsp = client.DescribeProxySpecs(model)
833
+ rsp = client.ExportResourcePackageDeductDetails(model)
834
834
  result = rsp.to_json_string()
835
835
  try:
836
836
  json_obj = json.loads(result)
@@ -2409,6 +2409,58 @@ def doIsolateCluster(args, parsed_globals):
2409
2409
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2410
2410
 
2411
2411
 
2412
+ def doDescribeProxySpecs(args, parsed_globals):
2413
+ g_param = parse_global_arg(parsed_globals)
2414
+
2415
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2416
+ cred = credential.CVMRoleCredential()
2417
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2418
+ cred = credential.STSAssumeRoleCredential(
2419
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2420
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2421
+ )
2422
+ 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):
2423
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2424
+ else:
2425
+ cred = credential.Credential(
2426
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2427
+ )
2428
+ http_profile = HttpProfile(
2429
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2430
+ reqMethod="POST",
2431
+ endpoint=g_param[OptionsDefine.Endpoint],
2432
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2433
+ )
2434
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2435
+ if g_param[OptionsDefine.Language]:
2436
+ profile.language = g_param[OptionsDefine.Language]
2437
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2438
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
2439
+ client._sdkVersion += ("_CLI_" + __version__)
2440
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2441
+ model = models.DescribeProxySpecsRequest()
2442
+ model.from_json_string(json.dumps(args))
2443
+ start_time = time.time()
2444
+ while True:
2445
+ rsp = client.DescribeProxySpecs(model)
2446
+ result = rsp.to_json_string()
2447
+ try:
2448
+ json_obj = json.loads(result)
2449
+ except TypeError as e:
2450
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2451
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2452
+ break
2453
+ cur_time = time.time()
2454
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2455
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2456
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2457
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2458
+ else:
2459
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2460
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2461
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2462
+
2463
+
2412
2464
  def doRestartInstance(args, parsed_globals):
2413
2465
  g_param = parse_global_arg(parsed_globals)
2414
2466
 
@@ -2773,6 +2825,58 @@ def doModifyParamTemplate(args, parsed_globals):
2773
2825
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2774
2826
 
2775
2827
 
2828
+ def doModifyResourcePackagesDeductionPriority(args, parsed_globals):
2829
+ g_param = parse_global_arg(parsed_globals)
2830
+
2831
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2832
+ cred = credential.CVMRoleCredential()
2833
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2834
+ cred = credential.STSAssumeRoleCredential(
2835
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2836
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2837
+ )
2838
+ 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):
2839
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2840
+ else:
2841
+ cred = credential.Credential(
2842
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2843
+ )
2844
+ http_profile = HttpProfile(
2845
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2846
+ reqMethod="POST",
2847
+ endpoint=g_param[OptionsDefine.Endpoint],
2848
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2849
+ )
2850
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2851
+ if g_param[OptionsDefine.Language]:
2852
+ profile.language = g_param[OptionsDefine.Language]
2853
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2854
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
2855
+ client._sdkVersion += ("_CLI_" + __version__)
2856
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2857
+ model = models.ModifyResourcePackagesDeductionPriorityRequest()
2858
+ model.from_json_string(json.dumps(args))
2859
+ start_time = time.time()
2860
+ while True:
2861
+ rsp = client.ModifyResourcePackagesDeductionPriority(model)
2862
+ result = rsp.to_json_string()
2863
+ try:
2864
+ json_obj = json.loads(result)
2865
+ except TypeError as e:
2866
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2867
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2868
+ break
2869
+ cur_time = time.time()
2870
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2871
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2872
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2873
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2874
+ else:
2875
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2876
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2877
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
+
2879
+
2776
2880
  def doDescribeInstanceParams(args, parsed_globals):
2777
2881
  g_param = parse_global_arg(parsed_globals)
2778
2882
 
@@ -7427,7 +7531,7 @@ ACTION_MAP = {
7427
7531
  "CreateAuditLogFile": doCreateAuditLogFile,
7428
7532
  "RenewClusters": doRenewClusters,
7429
7533
  "CloseProxy": doCloseProxy,
7430
- "DescribeProxySpecs": doDescribeProxySpecs,
7534
+ "ExportResourcePackageDeductDetails": doExportResourcePackageDeductDetails,
7431
7535
  "DescribeClusterDetail": doDescribeClusterDetail,
7432
7536
  "DescribeTasks": doDescribeTasks,
7433
7537
  "DescribeBackupConfig": doDescribeBackupConfig,
@@ -7458,6 +7562,7 @@ ACTION_MAP = {
7458
7562
  "CreateBackup": doCreateBackup,
7459
7563
  "OfflineInstance": doOfflineInstance,
7460
7564
  "IsolateCluster": doIsolateCluster,
7565
+ "DescribeProxySpecs": doDescribeProxySpecs,
7461
7566
  "RestartInstance": doRestartInstance,
7462
7567
  "UpgradeProxy": doUpgradeProxy,
7463
7568
  "DescribeClusters": doDescribeClusters,
@@ -7465,6 +7570,7 @@ ACTION_MAP = {
7465
7570
  "DescribeProjectSecurityGroups": doDescribeProjectSecurityGroups,
7466
7571
  "ModifyClusterDatabase": doModifyClusterDatabase,
7467
7572
  "ModifyParamTemplate": doModifyParamTemplate,
7573
+ "ModifyResourcePackagesDeductionPriority": doModifyResourcePackagesDeductionPriority,
7468
7574
  "DescribeInstanceParams": doDescribeInstanceParams,
7469
7575
  "DescribeInstanceSlowQueries": doDescribeInstanceSlowQueries,
7470
7576
  "DescribeClusterDatabases": doDescribeClusterDatabases,
@@ -560,6 +560,13 @@
560
560
  "output": "ExportInstanceSlowQueriesResponse",
561
561
  "status": "online"
562
562
  },
563
+ "ExportResourcePackageDeductDetails": {
564
+ "document": "资源包使用明细导出",
565
+ "input": "ExportResourcePackageDeductDetailsRequest",
566
+ "name": "资源包使用明细导出",
567
+ "output": "ExportResourcePackageDeductDetailsResponse",
568
+ "status": "online"
569
+ },
563
570
  "GrantAccountPrivileges": {
564
571
  "document": "批量授权账号权限",
565
572
  "input": "GrantAccountPrivilegesRequest",
@@ -770,6 +777,13 @@
770
777
  "output": "ModifyResourcePackageNameResponse",
771
778
  "status": "online"
772
779
  },
780
+ "ModifyResourcePackagesDeductionPriority": {
781
+ "document": "修改已绑定资源包抵扣优先级",
782
+ "input": "ModifyResourcePackagesDeductionPriorityRequest",
783
+ "name": "修改已绑定资源包抵扣优先级",
784
+ "output": "ModifyResourcePackagesDeductionPriorityResponse",
785
+ "status": "online"
786
+ },
773
787
  "ModifyVipVport": {
774
788
  "document": "修改实例组ip,端口",
775
789
  "input": "ModifyVipVportRequest",
@@ -11870,6 +11884,115 @@
11870
11884
  ],
11871
11885
  "type": "object"
11872
11886
  },
11887
+ "ExportResourcePackageDeductDetailsRequest": {
11888
+ "document": "ExportResourcePackageDeductDetails请求参数结构体",
11889
+ "members": [
11890
+ {
11891
+ "disabled": false,
11892
+ "document": "需要导出的资源包ID",
11893
+ "example": "package-abcd1234",
11894
+ "member": "string",
11895
+ "name": "PackageId",
11896
+ "required": true,
11897
+ "type": "string"
11898
+ },
11899
+ {
11900
+ "disabled": false,
11901
+ "document": "使用资源包容量的cynos集群ID",
11902
+ "example": "无",
11903
+ "member": "string",
11904
+ "name": "ClusterIds",
11905
+ "required": false,
11906
+ "type": "list"
11907
+ },
11908
+ {
11909
+ "disabled": false,
11910
+ "document": "排序字段,目前支持:createTime(资源包被抵扣时间),successDeductSpec(资源包抵扣量)",
11911
+ "example": "createTime",
11912
+ "member": "string",
11913
+ "name": "OrderBy",
11914
+ "required": false,
11915
+ "type": "string"
11916
+ },
11917
+ {
11918
+ "disabled": false,
11919
+ "document": "排序类型,支持ASC、DESC、asc、desc",
11920
+ "example": "desc",
11921
+ "member": "string",
11922
+ "name": "OrderByType",
11923
+ "required": false,
11924
+ "type": "string"
11925
+ },
11926
+ {
11927
+ "disabled": false,
11928
+ "document": "开始时间",
11929
+ "example": "2022-01-01 01:01:01",
11930
+ "member": "string",
11931
+ "name": "StartTime",
11932
+ "required": false,
11933
+ "type": "string"
11934
+ },
11935
+ {
11936
+ "disabled": false,
11937
+ "document": "结束时间",
11938
+ "example": "2022-01-01 01:01:01",
11939
+ "member": "string",
11940
+ "name": "EndTime",
11941
+ "required": false,
11942
+ "type": "string"
11943
+ },
11944
+ {
11945
+ "disabled": false,
11946
+ "document": "单次最大导出数据行数,目前最大支持2000行",
11947
+ "example": "100",
11948
+ "member": "string",
11949
+ "name": "Limit",
11950
+ "required": false,
11951
+ "type": "string"
11952
+ },
11953
+ {
11954
+ "disabled": false,
11955
+ "document": "偏移量页数",
11956
+ "example": "10",
11957
+ "member": "string",
11958
+ "name": "Offset",
11959
+ "required": false,
11960
+ "type": "string"
11961
+ },
11962
+ {
11963
+ "disabled": false,
11964
+ "document": "导出数据格式,目前仅支持csv格式,留作扩展",
11965
+ "example": "csv",
11966
+ "member": "string",
11967
+ "name": "FileType",
11968
+ "required": false,
11969
+ "type": "string"
11970
+ }
11971
+ ],
11972
+ "type": "object"
11973
+ },
11974
+ "ExportResourcePackageDeductDetailsResponse": {
11975
+ "document": "ExportResourcePackageDeductDetails返回参数结构体",
11976
+ "members": [
11977
+ {
11978
+ "disabled": false,
11979
+ "document": "文件详情",
11980
+ "example": "2022-01-01 01:01:01,package-abcd1234,200.00,1298.98,cynosdbmysql-cdba4312\\n",
11981
+ "member": "string",
11982
+ "name": "FileContent",
11983
+ "output_required": false,
11984
+ "type": "string",
11985
+ "value_allowed_null": false
11986
+ },
11987
+ {
11988
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11989
+ "member": "string",
11990
+ "name": "RequestId",
11991
+ "type": "string"
11992
+ }
11993
+ ],
11994
+ "type": "object"
11995
+ },
11873
11996
  "GrantAccountPrivilegesRequest": {
11874
11997
  "document": "GrantAccountPrivileges请求参数结构体",
11875
11998
  "members": [
@@ -14909,6 +15032,51 @@
14909
15032
  ],
14910
15033
  "type": "object"
14911
15034
  },
15035
+ "ModifyResourcePackagesDeductionPriorityRequest": {
15036
+ "document": "ModifyResourcePackagesDeductionPriority请求参数结构体",
15037
+ "members": [
15038
+ {
15039
+ "disabled": false,
15040
+ "document": "需要修改优先级的资源包类型,CCU:计算资源包,DISK:存储资源包",
15041
+ "example": "CCU",
15042
+ "member": "string",
15043
+ "name": "PackageType",
15044
+ "required": true,
15045
+ "type": "string"
15046
+ },
15047
+ {
15048
+ "disabled": false,
15049
+ "document": "修改后的抵扣优先级对于哪个cynos资源生效",
15050
+ "example": "cynosdbmysql-abcd1234",
15051
+ "member": "string",
15052
+ "name": "ClusterId",
15053
+ "required": true,
15054
+ "type": "string"
15055
+ },
15056
+ {
15057
+ "disabled": false,
15058
+ "document": "资源包抵扣优先级",
15059
+ "example": "无",
15060
+ "member": "PackagePriority",
15061
+ "name": "DeductionPriorities",
15062
+ "required": true,
15063
+ "type": "list"
15064
+ }
15065
+ ],
15066
+ "type": "object"
15067
+ },
15068
+ "ModifyResourcePackagesDeductionPriorityResponse": {
15069
+ "document": "ModifyResourcePackagesDeductionPriority返回参数结构体",
15070
+ "members": [
15071
+ {
15072
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
15073
+ "member": "string",
15074
+ "name": "RequestId",
15075
+ "type": "string"
15076
+ }
15077
+ ],
15078
+ "type": "object"
15079
+ },
14912
15080
  "ModifyVipVportRequest": {
14913
15081
  "document": "ModifyVipVport请求参数结构体",
14914
15082
  "members": [
@@ -15911,6 +16079,30 @@
15911
16079
  ],
15912
16080
  "usage": "out"
15913
16081
  },
16082
+ "PackagePriority": {
16083
+ "document": "资源包抵扣优先级",
16084
+ "members": [
16085
+ {
16086
+ "disabled": false,
16087
+ "document": "需要自定义抵扣优先级的资源包",
16088
+ "example": "package-abcd1234",
16089
+ "member": "string",
16090
+ "name": "PackageId",
16091
+ "required": false,
16092
+ "type": "string"
16093
+ },
16094
+ {
16095
+ "disabled": false,
16096
+ "document": "自定义的抵扣优先级",
16097
+ "example": "1",
16098
+ "member": "int64",
16099
+ "name": "DeductionPriority",
16100
+ "required": false,
16101
+ "type": "int"
16102
+ }
16103
+ ],
16104
+ "usage": "in"
16105
+ },
15914
16106
  "ParamDetail": {
15915
16107
  "document": "实例参数详细描述",
15916
16108
  "members": [
@@ -664,6 +664,14 @@
664
664
  "title": "导出实例慢日志"
665
665
  }
666
666
  ],
667
+ "ExportResourcePackageDeductDetails": [
668
+ {
669
+ "document": "资源包使用明细导出",
670
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ExportResourcePackageDeductDetails\n<公共请求参数>\n\n{\n \"PackageId\": \"package-abcd1234\",\n \"ClusterIds\": [\n \"cynosdbmysql-bcdz3214\"\n ],\n \"OrderBy\": \"createTime\",\n \"OrderByType\": \"desc\",\n \"StartTime\": \"2022-01-01 01:01:01\",\n \"EndTime\": \"2024-01-01 01:01:01\",\n \"Limit\": \"100\",\n \"Offset\": \"0\"\n}",
671
+ "output": "{\n \"Response\": {\n \"FileContent\": \"2022-01-01 01:01:01,package-abcd1234,200.00,1298.98,cynosdbmysql-cdba4312\\n2022-01-01 01:02:01,package-abcd1234,200.00,1498.98,cynosdbmysql-cdba4354\",\n \"RequestId\": \"abc\"\n }\n}",
672
+ "title": "ExportResourcePackageDeductDetails"
673
+ }
674
+ ],
667
675
  "GrantAccountPrivileges": [
668
676
  {
669
677
  "document": "批量授权账号权限",
@@ -904,6 +912,14 @@
904
912
  "title": "修改资源包名称"
905
913
  }
906
914
  ],
915
+ "ModifyResourcePackagesDeductionPriority": [
916
+ {
917
+ "document": "修改已绑定资源包抵扣优先级",
918
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyResourcePackagesDeductionPriority\n<公共请求参数>\n\n{\n \"PackageType\": \"CCU\",\n \"ClusterId\": \"cynosdbmysql-abcd1234\",\n \"DeductionPriorities\": [\n {\n \"PackageId\": \"package-abcd1234\",\n \"DeductionPriority\": 1\n }\n ]\n}",
919
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
920
+ "title": "ModifyResourcePackagesDeductionPriority"
921
+ }
922
+ ],
907
923
  "ModifyVipVport": [
908
924
  {
909
925
  "document": "",
@@ -8091,6 +8091,24 @@
8091
8091
  "name": "CvmDelayOnlineTime",
8092
8092
  "required": false,
8093
8093
  "type": "int"
8094
+ },
8095
+ {
8096
+ "disabled": false,
8097
+ "document": "分片迁移并发数",
8098
+ "example": "2",
8099
+ "member": "uint64",
8100
+ "name": "ShardAllocationConcurrents",
8101
+ "required": false,
8102
+ "type": "int"
8103
+ },
8104
+ {
8105
+ "disabled": false,
8106
+ "document": "分片迁移并发速度",
8107
+ "example": "40",
8108
+ "member": "uint64",
8109
+ "name": "ShardAllocationBytes",
8110
+ "required": false,
8111
+ "type": "int"
8094
8112
  }
8095
8113
  ],
8096
8114
  "type": "object"
@@ -10165,6 +10183,24 @@
10165
10183
  "name": "CvmDelayOnlineTime",
10166
10184
  "required": false,
10167
10185
  "type": "int"
10186
+ },
10187
+ {
10188
+ "disabled": false,
10189
+ "document": "分片迁移并发数",
10190
+ "example": "2",
10191
+ "member": "uint64",
10192
+ "name": "ShardAllocationConcurrents",
10193
+ "required": false,
10194
+ "type": "int"
10195
+ },
10196
+ {
10197
+ "disabled": false,
10198
+ "document": "分片迁移并发速度",
10199
+ "example": "40",
10200
+ "member": "uint64",
10201
+ "name": "ShardAllocationBytes",
10202
+ "required": false,
10203
+ "type": "int"
10168
10204
  }
10169
10205
  ],
10170
10206
  "type": "object"