tccli 3.0.1196.1__py2.py3-none-any.whl → 3.0.1198.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 (29) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apigateway/apigateway_client.py +57 -4
  3. tccli/services/apigateway/v20180808/api.json +24 -0
  4. tccli/services/apigateway/v20180808/examples.json +8 -0
  5. tccli/services/cvm/v20170312/api.json +24 -24
  6. tccli/services/emr/emr_client.py +114 -8
  7. tccli/services/emr/v20190103/api.json +296 -3
  8. tccli/services/emr/v20190103/examples.json +16 -0
  9. tccli/services/ess/v20201111/api.json +19 -1
  10. tccli/services/ess/v20201111/examples.json +1 -1
  11. tccli/services/essbasic/v20210526/api.json +18 -0
  12. tccli/services/essbasic/v20210526/examples.json +1 -1
  13. tccli/services/faceid/v20180301/api.json +9 -0
  14. tccli/services/hunyuan/v20230901/api.json +1 -1
  15. tccli/services/organization/organization_client.py +106 -0
  16. tccli/services/organization/v20210331/api.json +324 -27
  17. tccli/services/organization/v20210331/examples.json +17 -1
  18. tccli/services/postgres/postgres_client.py +106 -0
  19. tccli/services/postgres/v20170312/api.json +236 -9
  20. tccli/services/postgres/v20170312/examples.json +24 -2
  21. tccli/services/sms/v20190711/api.json +8 -8
  22. tccli/services/sms/v20210111/api.json +13 -13
  23. tccli/services/teo/v20220901/api.json +6 -6
  24. tccli/services/vod/v20180717/api.json +3 -3
  25. {tccli-3.0.1196.1.dist-info → tccli-3.0.1198.1.dist-info}/METADATA +2 -2
  26. {tccli-3.0.1196.1.dist-info → tccli-3.0.1198.1.dist-info}/RECORD +29 -29
  27. {tccli-3.0.1196.1.dist-info → tccli-3.0.1198.1.dist-info}/WHEEL +0 -0
  28. {tccli-3.0.1196.1.dist-info → tccli-3.0.1198.1.dist-info}/entry_points.txt +0 -0
  29. {tccli-3.0.1196.1.dist-info → tccli-3.0.1198.1.dist-info}/license_files/LICENSE +0 -0
@@ -1733,6 +1733,58 @@ def doCreateServerlessDBInstance(args, parsed_globals):
1733
1733
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1734
1734
 
1735
1735
 
1736
+ def doCreateDatabase(args, parsed_globals):
1737
+ g_param = parse_global_arg(parsed_globals)
1738
+
1739
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1740
+ cred = credential.CVMRoleCredential()
1741
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1742
+ cred = credential.STSAssumeRoleCredential(
1743
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1744
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1745
+ )
1746
+ 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):
1747
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1748
+ else:
1749
+ cred = credential.Credential(
1750
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1751
+ )
1752
+ http_profile = HttpProfile(
1753
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1754
+ reqMethod="POST",
1755
+ endpoint=g_param[OptionsDefine.Endpoint],
1756
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1757
+ )
1758
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1759
+ if g_param[OptionsDefine.Language]:
1760
+ profile.language = g_param[OptionsDefine.Language]
1761
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1762
+ client = mod.PostgresClient(cred, g_param[OptionsDefine.Region], profile)
1763
+ client._sdkVersion += ("_CLI_" + __version__)
1764
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1765
+ model = models.CreateDatabaseRequest()
1766
+ model.from_json_string(json.dumps(args))
1767
+ start_time = time.time()
1768
+ while True:
1769
+ rsp = client.CreateDatabase(model)
1770
+ result = rsp.to_json_string()
1771
+ try:
1772
+ json_obj = json.loads(result)
1773
+ except TypeError as e:
1774
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1775
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1776
+ break
1777
+ cur_time = time.time()
1778
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1779
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1780
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1781
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1782
+ else:
1783
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1784
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1785
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
+
1787
+
1736
1788
  def doCreateAccount(args, parsed_globals):
1737
1789
  g_param = parse_global_arg(parsed_globals)
1738
1790
 
@@ -4333,6 +4385,58 @@ def doOpenDBExtranetAccess(args, parsed_globals):
4333
4385
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4334
4386
 
4335
4387
 
4388
+ def doModifyDatabaseOwner(args, parsed_globals):
4389
+ g_param = parse_global_arg(parsed_globals)
4390
+
4391
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4392
+ cred = credential.CVMRoleCredential()
4393
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4394
+ cred = credential.STSAssumeRoleCredential(
4395
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4396
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4397
+ )
4398
+ 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):
4399
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4400
+ else:
4401
+ cred = credential.Credential(
4402
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4403
+ )
4404
+ http_profile = HttpProfile(
4405
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4406
+ reqMethod="POST",
4407
+ endpoint=g_param[OptionsDefine.Endpoint],
4408
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4409
+ )
4410
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4411
+ if g_param[OptionsDefine.Language]:
4412
+ profile.language = g_param[OptionsDefine.Language]
4413
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4414
+ client = mod.PostgresClient(cred, g_param[OptionsDefine.Region], profile)
4415
+ client._sdkVersion += ("_CLI_" + __version__)
4416
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4417
+ model = models.ModifyDatabaseOwnerRequest()
4418
+ model.from_json_string(json.dumps(args))
4419
+ start_time = time.time()
4420
+ while True:
4421
+ rsp = client.ModifyDatabaseOwner(model)
4422
+ result = rsp.to_json_string()
4423
+ try:
4424
+ json_obj = json.loads(result)
4425
+ except TypeError as e:
4426
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4427
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4428
+ break
4429
+ cur_time = time.time()
4430
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4431
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4432
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4433
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4434
+ else:
4435
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4436
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4437
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4438
+
4439
+
4336
4440
  def doDeleteAccount(args, parsed_globals):
4337
4441
  g_param = parse_global_arg(parsed_globals)
4338
4442
 
@@ -5157,6 +5261,7 @@ ACTION_MAP = {
5157
5261
  "CloseServerlessDBExtranetAccess": doCloseServerlessDBExtranetAccess,
5158
5262
  "ModifyDBInstanceDeployment": doModifyDBInstanceDeployment,
5159
5263
  "CreateServerlessDBInstance": doCreateServerlessDBInstance,
5264
+ "CreateDatabase": doCreateDatabase,
5160
5265
  "CreateAccount": doCreateAccount,
5161
5266
  "ModifyDBInstanceParameters": doModifyDBInstanceParameters,
5162
5267
  "DescribeBaseBackups": doDescribeBaseBackups,
@@ -5207,6 +5312,7 @@ ACTION_MAP = {
5207
5312
  "DescribeBackupPlans": doDescribeBackupPlans,
5208
5313
  "ModifySwitchTimePeriod": doModifySwitchTimePeriod,
5209
5314
  "OpenDBExtranetAccess": doOpenDBExtranetAccess,
5315
+ "ModifyDatabaseOwner": doModifyDatabaseOwner,
5210
5316
  "DeleteAccount": doDeleteAccount,
5211
5317
  "ModifyBackupPlan": doModifyBackupPlan,
5212
5318
  "InitDBInstances": doInitDBInstances,
@@ -56,6 +56,13 @@
56
56
  "output": "CreateDBInstancesResponse",
57
57
  "status": "online"
58
58
  },
59
+ "CreateDatabase": {
60
+ "document": "此接口用于创建数据库,需指定数据库名及所有者。",
61
+ "input": "CreateDatabaseRequest",
62
+ "name": "创建数据库",
63
+ "output": "CreateDatabaseResponse",
64
+ "status": "online"
65
+ },
59
66
  "CreateInstances": {
60
67
  "document": "本接口 (CreateInstances) 用于创建一个或者多个PostgreSQL实例,通过此接口创建的实例无需进行初始化,可直接使用。\n<li>实例创建成功后将自动开机启动,实例状态变为“运行中”。</li>\n<li>预付费实例的购买会预先扣除本次实例购买所需金额,按小时后付费实例购买会预先冻结本次实例购买一小时内所需金额,在调用本接口前请确保账户余额充足。</li>",
61
68
  "input": "CreateInstancesRequest",
@@ -567,6 +574,13 @@
567
574
  "output": "ModifyDBInstancesProjectResponse",
568
575
  "status": "online"
569
576
  },
577
+ "ModifyDatabaseOwner": {
578
+ "document": "修改数据库所有者",
579
+ "input": "ModifyDatabaseOwnerRequest",
580
+ "name": "修改数据库所有者",
581
+ "output": "ModifyDatabaseOwnerResponse",
582
+ "status": "online"
583
+ },
570
584
  "ModifyParameterTemplate": {
571
585
  "document": "本接口(ModifyParameterTemplate)主要用于修改参数模板名称,描述等配置,也可用于管理参数模板中的参数列表。",
572
586
  "input": "ModifyParameterTemplateRequest",
@@ -2018,6 +2032,78 @@
2018
2032
  ],
2019
2033
  "type": "object"
2020
2034
  },
2035
+ "CreateDatabaseRequest": {
2036
+ "document": "CreateDatabase请求参数结构体",
2037
+ "members": [
2038
+ {
2039
+ "disabled": false,
2040
+ "document": "实例ID,形如postgres-6fego161",
2041
+ "example": "postgres-6bwgamo3",
2042
+ "member": "string",
2043
+ "name": "DBInstanceId",
2044
+ "required": true,
2045
+ "type": "string"
2046
+ },
2047
+ {
2048
+ "disabled": false,
2049
+ "document": "创建的数据库名",
2050
+ "example": "mydatabase",
2051
+ "member": "string",
2052
+ "name": "DatabaseName",
2053
+ "required": true,
2054
+ "type": "string"
2055
+ },
2056
+ {
2057
+ "disabled": false,
2058
+ "document": "数据库的所有者",
2059
+ "example": "test",
2060
+ "member": "string",
2061
+ "name": "DatabaseOwner",
2062
+ "required": true,
2063
+ "type": "string"
2064
+ },
2065
+ {
2066
+ "disabled": false,
2067
+ "document": "数据库的字符编码",
2068
+ "example": "UTF8",
2069
+ "member": "string",
2070
+ "name": "Encoding",
2071
+ "required": false,
2072
+ "type": "string"
2073
+ },
2074
+ {
2075
+ "disabled": false,
2076
+ "document": "数据库的排序规则",
2077
+ "example": "C",
2078
+ "member": "string",
2079
+ "name": "Collate",
2080
+ "required": false,
2081
+ "type": "string"
2082
+ },
2083
+ {
2084
+ "disabled": false,
2085
+ "document": "数据库的字符分类",
2086
+ "example": "C",
2087
+ "member": "string",
2088
+ "name": "Ctype",
2089
+ "required": false,
2090
+ "type": "string"
2091
+ }
2092
+ ],
2093
+ "type": "object"
2094
+ },
2095
+ "CreateDatabaseResponse": {
2096
+ "document": "CreateDatabase返回参数结构体",
2097
+ "members": [
2098
+ {
2099
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2100
+ "member": "string",
2101
+ "name": "RequestId",
2102
+ "type": "string"
2103
+ }
2104
+ ],
2105
+ "type": "object"
2106
+ },
2021
2107
  "CreateInstancesRequest": {
2022
2108
  "document": "CreateInstances请求参数结构体",
2023
2109
  "members": [
@@ -2450,7 +2536,7 @@
2450
2536
  },
2451
2537
  {
2452
2538
  "disabled": false,
2453
- "document": "购买时长,单位:月。\n<li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36\n<li>后付费:只支持1",
2539
+ "document": "购买时长,单位:月。\n<li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>\n<li>后付费:只支持1</li>",
2454
2540
  "example": "1",
2455
2541
  "member": "uint64",
2456
2542
  "name": "Period",
@@ -2459,7 +2545,7 @@
2459
2545
  },
2460
2546
  {
2461
2547
  "disabled": false,
2462
- "document": "私有网络ID,形如vpc-xxxxxxxx。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。",
2548
+ "document": "私有网络ID,形如vpc-xxxxxxxx(该参数当前必传)。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。",
2463
2549
  "example": "VpcId",
2464
2550
  "member": "string",
2465
2551
  "name": "VpcId",
@@ -2468,7 +2554,7 @@
2468
2554
  },
2469
2555
  {
2470
2556
  "disabled": false,
2471
- "document": "私有网络子网ID,形如subnet-xxxxxxxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。",
2557
+ "document": "私有网络子网ID,形如subnet-xxxxxxxx(该参数当前必传)。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。",
2472
2558
  "example": "SubnetId",
2473
2559
  "member": "string",
2474
2560
  "name": "SubnetId",
@@ -2477,7 +2563,7 @@
2477
2563
  },
2478
2564
  {
2479
2565
  "disabled": false,
2480
- "document": "实例计费类型,目前支持:\n<li>PREPAID:预付费,即包年包月。\n<li>POSTPAID_BY_HOUR:后付费,即按量计费。\n默认值:PREPAID。如果主实例为后付费,只读实例必须也为后付费。",
2566
+ "document": "实例计费类型,目前支持:\n<li>PREPAID:预付费,即包年包月。</li>\n<li>POSTPAID_BY_HOUR:后付费,即按量计费。</li>\n默认值:PREPAID。如果主实例为后付费,只读实例必须也为后付费。",
2481
2567
  "example": "InstanceChargeType",
2482
2568
  "member": "string",
2483
2569
  "name": "InstanceChargeType",
@@ -2486,7 +2572,7 @@
2486
2572
  },
2487
2573
  {
2488
2574
  "disabled": false,
2489
- "document": "是否自动使用代金券:\n<li>0:否\n<li>1:是\n默认值:0",
2575
+ "document": "是否自动使用代金券:\n<li>0:否</li>\n<li>1:是</li>\n默认值:0",
2490
2576
  "example": "1",
2491
2577
  "member": "uint64",
2492
2578
  "name": "AutoVoucher",
@@ -2504,7 +2590,7 @@
2504
2590
  },
2505
2591
  {
2506
2592
  "disabled": false,
2507
- "document": "续费标记:\n<li>0:手动续费\n<li>1:自动续费\n默认值:0",
2593
+ "document": "续费标记:\n<li>0:手动续费</li>\n<li>1:自动续费</li>\n默认值:0",
2508
2594
  "example": "1",
2509
2595
  "member": "int64",
2510
2596
  "name": "AutoRenewFlag",
@@ -2558,7 +2644,7 @@
2558
2644
  },
2559
2645
  {
2560
2646
  "disabled": false,
2561
- "document": "是否需要支持Ipv6:\n<li>0:否\n<li>1:是\n默认值:0",
2647
+ "document": "是否需要支持Ipv6:\n<li>0:否</li>\n<li>1:是</li>\n默认值:0",
2562
2648
  "example": "1",
2563
2649
  "member": "uint64",
2564
2650
  "name": "NeedSupportIpv6",
@@ -3547,7 +3633,7 @@
3547
3633
  "usage": "out"
3548
3634
  },
3549
3635
  "DBNode": {
3550
- "document": "描述实例节点信息,包括节点类型、节点所在可用区。",
3636
+ "document": "描述实例节点信息,包括节点类型、节点所在可用区、节点所在专属集群。",
3551
3637
  "members": [
3552
3638
  {
3553
3639
  "disabled": false,
@@ -3574,6 +3660,92 @@
3574
3660
  ],
3575
3661
  "usage": "both"
3576
3662
  },
3663
+ "Database": {
3664
+ "document": "描述数据库详细信息,包括所有者、字符编码等",
3665
+ "members": [
3666
+ {
3667
+ "disabled": false,
3668
+ "document": "数据库名\n注意:此字段可能返回 null,表示取不到有效值。",
3669
+ "example": "postgres",
3670
+ "member": "string",
3671
+ "name": "DatabaseName",
3672
+ "output_required": true,
3673
+ "type": "string",
3674
+ "value_allowed_null": true
3675
+ },
3676
+ {
3677
+ "disabled": false,
3678
+ "document": "数据库所有者\n注意:此字段可能返回 null,表示取不到有效值。",
3679
+ "example": "postgres",
3680
+ "member": "string",
3681
+ "name": "DatabaseOwner",
3682
+ "output_required": true,
3683
+ "type": "string",
3684
+ "value_allowed_null": true
3685
+ },
3686
+ {
3687
+ "disabled": false,
3688
+ "document": "数据库字符编码\n注意:此字段可能返回 null,表示取不到有效值。",
3689
+ "example": "UTF8",
3690
+ "member": "string",
3691
+ "name": "Encoding",
3692
+ "output_required": true,
3693
+ "type": "string",
3694
+ "value_allowed_null": true
3695
+ },
3696
+ {
3697
+ "disabled": false,
3698
+ "document": "数据库排序规则\n注意:此字段可能返回 null,表示取不到有效值。",
3699
+ "example": "C",
3700
+ "member": "string",
3701
+ "name": "Collate",
3702
+ "output_required": true,
3703
+ "type": "string",
3704
+ "value_allowed_null": true
3705
+ },
3706
+ {
3707
+ "disabled": false,
3708
+ "document": "数据库字符分类\n注意:此字段可能返回 null,表示取不到有效值。",
3709
+ "example": "C",
3710
+ "member": "string",
3711
+ "name": "Ctype",
3712
+ "output_required": true,
3713
+ "type": "string",
3714
+ "value_allowed_null": true
3715
+ },
3716
+ {
3717
+ "disabled": false,
3718
+ "document": "数据库是否允许连接\n注意:此字段可能返回 null,表示取不到有效值。",
3719
+ "example": "false",
3720
+ "member": "bool",
3721
+ "name": "AllowConn",
3722
+ "output_required": true,
3723
+ "type": "bool",
3724
+ "value_allowed_null": true
3725
+ },
3726
+ {
3727
+ "disabled": false,
3728
+ "document": "数据库最大连接数,-1表示无限制\n注意:此字段可能返回 null,表示取不到有效值。",
3729
+ "example": "-1",
3730
+ "member": "int64",
3731
+ "name": "ConnLimit",
3732
+ "output_required": true,
3733
+ "type": "int",
3734
+ "value_allowed_null": true
3735
+ },
3736
+ {
3737
+ "disabled": false,
3738
+ "document": "数据库权限列表\n注意:此字段可能返回 null,表示取不到有效值。",
3739
+ "example": "postgres=CTc/postgres",
3740
+ "member": "string",
3741
+ "name": "Privileges",
3742
+ "output_required": true,
3743
+ "type": "string",
3744
+ "value_allowed_null": true
3745
+ }
3746
+ ],
3747
+ "usage": "out"
3748
+ },
3577
3749
  "DatabaseObject": {
3578
3750
  "document": "描述数据库中某个对象所属的类型、是在哪个数据库、模式、表中的对象。",
3579
3751
  "members": [
@@ -5186,7 +5358,7 @@
5186
5358
  "members": [
5187
5359
  {
5188
5360
  "disabled": false,
5189
- "document": "按照一个或者多个过滤条件进行查询,目前支持的过滤条件有:\ndb-instance-id:按照实例ID过滤,类型为string\ndb-instance-name:按照实例名过滤,类型为string\ndb-project-id:按照项目ID过滤,类型为integer\ndb-pay-mode:按照实例付费模式过滤,类型为string\ndb-tag-key:按照标签键过滤,类型为string\ndb-private-ip: 按照实例私有网络IP过滤,类型为string\ndb-public-address: 按照实例外网地址过滤,类型为string",
5361
+ "document": "按照一个或者多个过滤条件进行查询,目前支持的过滤条件有:\ndb-instance-id:按照实例ID过滤,类型为string\ndb-instance-name:按照实例名过滤,类型为string\ndb-project-id:按照项目ID过滤,类型为integer\ndb-pay-mode:按照实例付费模式过滤,类型为string\ndb-tag-key:按照标签键过滤,类型为string\ndb-private-ip: 按照实例私有网络IP过滤,类型为string\ndb-public-address: 按照实例外网地址过滤,类型为string\ndb-dedicated-cluster-id: 按照私有集群Id过滤,类型为string",
5190
5362
  "example": "[ { \"Values\": [ \"postgres-xxxxxxxx\" ], \"Name\": \"db-instance-id\" } ]",
5191
5363
  "member": "Filter",
5192
5364
  "name": "Filters",
@@ -5650,6 +5822,16 @@
5650
5822
  "type": "int",
5651
5823
  "value_allowed_null": false
5652
5824
  },
5825
+ {
5826
+ "disabled": false,
5827
+ "document": "数据库详情列表",
5828
+ "example": "[{\"Privileges\":\"=Tc/postgres,postgres=CTc/postgres,pg_tencentdb_superuser=C/postgres\",\"AllowConn\":true,\"Collate\":\"C\",\"ConnLimit\":-1,\"Ctype\":\"C\",\"Encoding\":\"UTF8\",\"Name\":\"postgres\",\"Owner\":\"postgres\"}, {\"Privileges\":\"\",\"AllowConn\":true,\"Collate\":\"C\",\"ConnLimit\":-1,\"Ctype\":\"C\",\"Encoding\":\"UTF8\",\"Name\":\"testdatabase\",\"Owner\":\"test\"}]",
5829
+ "member": "Database",
5830
+ "name": "Databases",
5831
+ "output_required": true,
5832
+ "type": "list",
5833
+ "value_allowed_null": false
5834
+ },
5653
5835
  {
5654
5836
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5655
5837
  "member": "string",
@@ -8374,6 +8556,51 @@
8374
8556
  ],
8375
8557
  "type": "object"
8376
8558
  },
8559
+ "ModifyDatabaseOwnerRequest": {
8560
+ "document": "ModifyDatabaseOwner请求参数结构体",
8561
+ "members": [
8562
+ {
8563
+ "disabled": false,
8564
+ "document": "实例ID",
8565
+ "example": "postgres-mnhbbw99",
8566
+ "member": "string",
8567
+ "name": "DBInstanceId",
8568
+ "required": true,
8569
+ "type": "string"
8570
+ },
8571
+ {
8572
+ "disabled": false,
8573
+ "document": "数据库名称",
8574
+ "example": "testdatabase",
8575
+ "member": "string",
8576
+ "name": "DatabaseName",
8577
+ "required": true,
8578
+ "type": "string"
8579
+ },
8580
+ {
8581
+ "disabled": false,
8582
+ "document": "数据库新所有者",
8583
+ "example": "test",
8584
+ "member": "string",
8585
+ "name": "DatabaseOwner",
8586
+ "required": true,
8587
+ "type": "string"
8588
+ }
8589
+ ],
8590
+ "type": "object"
8591
+ },
8592
+ "ModifyDatabaseOwnerResponse": {
8593
+ "document": "ModifyDatabaseOwner返回参数结构体",
8594
+ "members": [
8595
+ {
8596
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
8597
+ "member": "string",
8598
+ "name": "RequestId",
8599
+ "type": "string"
8600
+ }
8601
+ ],
8602
+ "type": "object"
8603
+ },
8377
8604
  "ModifyParameterTemplateRequest": {
8378
8605
  "document": "ModifyParameterTemplate请求参数结构体",
8379
8606
  "members": [
@@ -70,6 +70,20 @@
70
70
  "title": "创建PostgreSQL实例"
71
71
  }
72
72
  ],
73
+ "CreateDatabase": [
74
+ {
75
+ "document": "",
76
+ "input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDatabase\n<公共请求参数>\n\n{\n \"DBInstanceId\": \"postgres-5cz25tr5\",\n \"DatabaseName\": \"mydatabase\",\n \"DatabaseOwner\": \"test\"\n}",
77
+ "output": "{\n \"Response\": {\n \"RequestId\": \"28004847-7a50-4740-a536-19ee9db9ccc0\"\n }\n}",
78
+ "title": "创建数据库"
79
+ },
80
+ {
81
+ "document": "",
82
+ "input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDatabase\n<公共请求参数>\n\n{\n \"DBInstanceId\": \"postgres-5cz25tr5\",\n \"DatabaseName\": \"mydatabase\",\n \"DatabaseOwner\": \"test\",\n \"Encoding\": \"UTF8\",\n \"Collate\": \"zh_CN.utf8\",\n \"Ctype\": \"zh_CN.utf8\"\n}",
83
+ "output": "{\n \"Response\": {\n \"RequestId\": \"28004847-7a50-4740-a536-19ee9db9ccc0\"\n }\n}",
84
+ "title": "创建指定字符编码、排序规则及字符分类的数据库"
85
+ }
86
+ ],
73
87
  "CreateInstances": [
74
88
  {
75
89
  "document": "创建12.4版本中最新内核版的PostgreSQL实例",
@@ -434,13 +448,13 @@
434
448
  {
435
449
  "document": "不做筛选,全量拉取实例的数据库列表。",
436
450
  "input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDatabases\n<公共请求参数>\n\n{\n \"DBInstanceId\": \"postgres-hf8jo5pr\"\n}",
437
- "output": "{\n \"Response\": {\n \"Items\": [\n \"postgres\",\n \"postgres_bak_1715086333\",\n \"postgres_bak_1715140150\",\n \"rds\",\n \"postgres_bak_1715152994\"\n ],\n \"RequestId\": \"4045d7a9-5330-4c2c-b968-475570200a97\",\n \"TotalCount\": 5\n }\n}",
451
+ "output": "{\n \"Response\": {\n \"Items\": [\n \"postgres\",\n \"postgres_bak_1715086333\",\n \"postgres_bak_1715140150\",\n \"rds\",\n \"postgres_bak_1715152994\"\n ],\n \"Databases\": [\n {\n \"DatabaseName\": \"postgres\",\n \"DatabaseOwner\": \"postgres\",\n \"Encoding\": \"UTF8\",\n \"Collate\": \"C\",\n \"Ctype\": \"C\",\n \"AllowConn\": true,\n \"ConnLimit\": -1,\n \"Privileges\": \"=Tc/postgres,postgres=CTc/postgres,pg_tencentdb_superuser=C/postgres\"\n },\n {\n \"DatabaseName\": \"postgres_bak_1715086333\",\n \"DatabaseOwner\": \"postgres\",\n \"Encoding\": \"UTF8\",\n \"Collate\": \"C\",\n \"Ctype\": \"C\",\n \"AllowConn\": true,\n \"ConnLimit\": -1,\n \"Privileges\": \"\"\n },\n {\n \"DatabaseName\": \"postgres_bak_1715140150\",\n \"DatabaseOwner\": \"postgres\",\n \"Encoding\": \"UTF8\",\n \"Collate\": \"C\",\n \"Ctype\": \"C\",\n \"AllowConn\": true,\n \"ConnLimit\": -1,\n \"Privileges\": \"\"\n },\n {\n \"DatabaseName\": \"rds\",\n \"DatabaseOwner\": \"postgres\",\n \"Encoding\": \"UTF8\",\n \"Collate\": \"C\",\n \"Ctype\": \"C\",\n \"AllowConn\": true,\n \"ConnLimit\": -1,\n \"Privileges\": \"\"\n },\n {\n \"DatabaseName\": \"postgres_bak_1715152994\",\n \"DatabaseOwner\": \"postgres\",\n \"Encoding\": \"UTF8\",\n \"Collate\": \"C\",\n \"Ctype\": \"C\",\n \"AllowConn\": true,\n \"ConnLimit\": -1,\n \"Privileges\": \"\"\n }\n ],\n \"RequestId\": \"4045d7a9-5330-4c2c-b968-475570200a97\",\n \"TotalCount\": 5\n }\n}",
438
452
  "title": "获取实例所有数据库"
439
453
  },
440
454
  {
441
455
  "document": "使用筛选条件,返回部分数据库列表。",
442
456
  "input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDatabases\n<公共请求参数>\n\n{\n \"DBInstanceId\": \"postgres-hf8jo5pr\",\n \"Filters\": [\n {\n \"Name\": \"database-name\",\n \"Values\": [\n \"postgres\"\n ]\n }\n ],\n \"Offset\": 1,\n \"Limit\": 2\n}",
443
- "output": "{\n \"Response\": {\n \"Items\": [\n \"postgres_bak_1715086333\",\n \"postgres_bak_1715140150\"\n ],\n \"RequestId\": \"25cc2555-14a2-454f-af08-6bd691315335\",\n \"TotalCount\": 5\n }\n}",
457
+ "output": "{\n \"Response\": {\n \"Items\": [\n \"postgres_bak_1715086333\",\n \"postgres_bak_1715140150\"\n ],\n \"Databases\": [\n {\n \"DatabaseName\": \"postgres_bak_1715086333\",\n \"DatabaseOwner\": \"postgres\",\n \"Encoding\": \"UTF8\",\n \"Collate\": \"C\",\n \"Ctype\": \"C\",\n \"AllowConn\": true,\n \"ConnLimit\": -1,\n \"Privileges\": \"\"\n },\n {\n \"DatabaseName\": \"postgres_bak_1715140150\",\n \"DatabaseOwner\": \"postgres\",\n \"Encoding\": \"UTF8\",\n \"Collate\": \"C\",\n \"Ctype\": \"C\",\n \"AllowConn\": true,\n \"ConnLimit\": -1,\n \"Privileges\": \"\"\n }\n ],\n \"RequestId\": \"25cc2555-14a2-454f-af08-6bd691315335\",\n \"TotalCount\": 5\n }\n}",
444
458
  "title": "获取实例部分数据库"
445
459
  }
446
460
  ],
@@ -768,6 +782,14 @@
768
782
  "title": "批量修改实例项目"
769
783
  }
770
784
  ],
785
+ "ModifyDatabaseOwner": [
786
+ {
787
+ "document": "",
788
+ "input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDatabaseOwner\n<公共请求参数>\n\n{\n \"DBInstanceId\": \"postgres-mnhbbw99\",\n \"DatabaseName\": \"testdatabase\",\n \"DatabaseOwner\": \"test\"\n}",
789
+ "output": "{\n \"Response\": {\n \"RequestId\": \"a11906eb-75b4-43c4-8d3e-aa6b2991c8f5\"\n }\n}",
790
+ "title": "修改数据库所有者"
791
+ }
792
+ ],
771
793
  "ModifyParameterTemplate": [
772
794
  {
773
795
  "document": "无",
@@ -437,7 +437,7 @@
437
437
  {
438
438
  "disabled": false,
439
439
  "document": "开始时间,yyyymmddhh 需要拉取的起始时间,精确到小时。",
440
- "example": "2016090800",
440
+ "example": "2024090800",
441
441
  "member": "uint64",
442
442
  "name": "StartDateTime",
443
443
  "required": true,
@@ -445,8 +445,8 @@
445
445
  },
446
446
  {
447
447
  "disabled": false,
448
- "document": "结束时间,yyyymmddhh 需要拉取的截止时间,精确到小时。\n注:EndDataTime 必须大于 StartDateTime。",
449
- "example": "2016090823",
448
+ "document": "结束时间,yyyymmddhh 需要拉取的截止时间,精确到小时。\n注:EndDataTime 必须大于等于 StartDateTime。",
449
+ "example": "2024090823",
450
450
  "member": "uint64",
451
451
  "name": "EndDataTime",
452
452
  "required": true,
@@ -1725,7 +1725,7 @@
1725
1725
  {
1726
1726
  "disabled": false,
1727
1727
  "document": "拉取起始时间,yyyymmddhh 需要拉取的起始时间,精确到小时。",
1728
- "example": "2016090800",
1728
+ "example": "2024090800",
1729
1729
  "member": "uint64",
1730
1730
  "name": "StartDateTime",
1731
1731
  "required": true,
@@ -1733,8 +1733,8 @@
1733
1733
  },
1734
1734
  {
1735
1735
  "disabled": false,
1736
- "document": "结束时间,yyyymmddhh 需要拉取的截止时间,精确到小时\n注:EndDataTime 必须大于 StartDateTime。",
1737
- "example": "2016090823",
1736
+ "document": "结束时间,yyyymmddhh 需要拉取的截止时间,精确到小时\n注:EndDataTime 必须大于等于 StartDateTime。",
1737
+ "example": "2024090823",
1738
1738
  "member": "uint64",
1739
1739
  "name": "EndDataTime",
1740
1740
  "required": true,
@@ -1912,7 +1912,7 @@
1912
1912
  },
1913
1913
  {
1914
1914
  "disabled": false,
1915
- "document": "最大上限(需要拉取的套餐包个数)",
1915
+ "document": "最大上限(需要拉取的套餐包个数)。\n注:Limit默认最大值为500,可结合Offset实现分页查询。",
1916
1916
  "example": "2",
1917
1917
  "member": "uint64",
1918
1918
  "name": "Limit",
@@ -1921,7 +1921,7 @@
1921
1921
  },
1922
1922
  {
1923
1923
  "disabled": false,
1924
- "document": "偏移量。\n注:目前固定设置为0。",
1924
+ "document": "偏移量。",
1925
1925
  "example": "0",
1926
1926
  "member": "uint64",
1927
1927
  "name": "Offset",