tccli 3.0.1124.1__py2.py3-none-any.whl → 3.0.1126.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +13 -10
- tccli/services/cynosdb/v20190107/examples.json +5 -5
- tccli/services/dlc/dlc_client.py +602 -72
- tccli/services/dlc/v20210125/api.json +856 -25
- tccli/services/dlc/v20210125/examples.json +86 -0
- tccli/services/domain/v20180808/api.json +702 -40
- tccli/services/domain/v20180808/examples.json +13 -13
- tccli/services/dts/v20180330/api.json +62 -37
- tccli/services/dts/v20180330/examples.json +1 -1
- tccli/services/eb/v20210416/api.json +63 -45
- tccli/services/eb/v20210416/examples.json +3 -9
- tccli/services/emr/v20190103/api.json +20 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/iotexplorer/v20190423/api.json +10 -10
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/mongodb/v20190725/api.json +18 -13
- tccli/services/monitor/v20180724/api.json +3 -2
- tccli/services/monitor/v20180724/examples.json +2 -2
- tccli/services/ocr/v20181119/api.json +4 -4
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/postgres/postgres_client.py +57 -4
- tccli/services/postgres/v20170312/api.json +415 -284
- tccli/services/postgres/v20170312/examples.json +29 -15
- tccli/services/redis/redis_client.py +53 -0
- tccli/services/redis/v20180412/api.json +151 -0
- tccli/services/redis/v20180412/examples.json +8 -0
- tccli/services/rum/v20210622/examples.json +2 -2
- tccli/services/smh/v20210712/api.json +2 -2
- tccli/services/teo/teo_client.py +216 -4
- tccli/services/teo/v20220901/api.json +380 -5
- tccli/services/teo/v20220901/examples.json +32 -0
- tccli/services/tione/v20211111/api.json +70 -3
- tccli/services/tione/v20211111/examples.json +1 -1
- tccli/services/tse/tse_client.py +53 -0
- tccli/services/tse/v20201207/api.json +43 -0
- tccli/services/tse/v20201207/examples.json +8 -0
- tccli/services/vtc/v20240223/api.json +20 -0
- tccli/services/wedata/v20210820/api.json +20 -0
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1126.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1126.1.dist-info}/RECORD +46 -46
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1126.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1126.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1126.1.dist-info}/license_files/LICENSE +0 -0
@@ -278,7 +278,7 @@
|
|
278
278
|
{
|
279
279
|
"document": "",
|
280
280
|
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBInstanceAttribute\n<公共请求参数>\n\n{\n \"DBInstanceId\": \"postgres-xxxxxxxx\"\n}",
|
281
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"08fdf411-5d39-44f2-8e1d-a58ee60b237d\",\n \"DBInstance\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-2\",\n \"AppId\": 100000000,\n \"Uid\": 1000001,\n \"ProjectId\": 0,\n \"VpcId\": \"vpc-xxxxxxxx\",\n \"SubnetId\": \"subnet-xxxxxxxx\",\n \"DBInstanceId\": \"postgres-xxxxxxxx\",\n \"MasterDBInstanceId\": \"postgres-xxxxxxxx\",\n \"Type\": 1,\n \"DBInstanceName\": \"未命名\",\n \"DBInstanceStatus\": \"running\",\n \"DBInstanceMemory\": 4,\n \"DBInstanceStorage\": 20,\n \"DBInstanceCpu\": 2,\n \"DBInstanceClass\": \"cdb.pg.z1.4g\",\n \"DBInstanceType\": \"primary\",\n \"DBInstanceVersion\": \"standard\",\n \"DBInstanceNetInfo\": [\n {\n \"Address\": \"\",\n \"Ip\": \"10.10.10.220\",\n \"Port\": 5432,\n \"Status\": \"opened\",\n \"NetType\": \"private\",\n \"VpcId\": \"vpc-xxxxxxxx\",\n \"SubnetId\": \"subnet-xxxxxxxx\"\n },\n {\n \"Address\": \"\",\n \"Ip\": \"\",\n \"Port\": 0,\n \"Status\": \"initing\",\n \"NetType\": \"public\",\n \"VpcId\": \"\",\n \"SubnetId\": \"\"\n }\n ],\n \"DBCharset\": \"UTF8\",\n \"IsSupportTDE\": 0,\n \"DBVersion\": \"10.4\",\n \"DBMajorVersion\": \"10\",\n \"DBKernelVersion\": \"v10.4_r1.0\",\n \"CreateTime\": \"2017-12-28 19:23:19\",\n \"UpdateTime\": \"2018-01-18 15:54:32\",\n \"ExpireTime\": \"2018-01-28 19:23:23\",\n \"IsolatedTime\": \"0000-00-00 00:00:00\",\n \"OfflineTime\": \"2019-12-28 19:23:19\",\n \"PayType\": \"prepaid\",\n \"AutoRenew\": 1,\n \"ReadOnlyInstanceNum\": 1,\n \"StatusInReadonlyGroup\": \"running\",\n \"SupportIpv6\": 0,\n \"TagList\": [\n {\n \"TagKey\": \"tag1\",\n \"TagValue\": \"v1\"\n }\n ],\n \"NetworkAccessList\": [],\n \"DBNodeSet\": [\n {\n \"Role\": \"Primary\",\n \"Zone\": \"ap-guangzhou-2\"\n },\n {\n \"Role\": \"Standby\",\n \"Zone\": \"ap-guangzhou-3\"\n }\n ]\n }\n }\n}",
|
281
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"08fdf411-5d39-44f2-8e1d-a58ee60b237d\",\n \"DBInstance\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-2\",\n \"AppId\": 100000000,\n \"Uid\": 1000001,\n \"ProjectId\": 0,\n \"VpcId\": \"vpc-xxxxxxxx\",\n \"SubnetId\": \"subnet-xxxxxxxx\",\n \"DBInstanceId\": \"postgres-xxxxxxxx\",\n \"MasterDBInstanceId\": \"postgres-xxxxxxxx\",\n \"Type\": \"1\",\n \"DBInstanceName\": \"未命名\",\n \"DBInstanceStatus\": \"running\",\n \"DBInstanceMemory\": 4,\n \"DBInstanceStorage\": 20,\n \"DBInstanceCpu\": 2,\n \"DBInstanceClass\": \"cdb.pg.z1.4g\",\n \"DBInstanceType\": \"primary\",\n \"DBInstanceVersion\": \"standard\",\n \"DBInstanceNetInfo\": [\n {\n \"Address\": \"\",\n \"Ip\": \"10.10.10.220\",\n \"Port\": 5432,\n \"Status\": \"opened\",\n \"NetType\": \"private\",\n \"VpcId\": \"vpc-xxxxxxxx\",\n \"SubnetId\": \"subnet-xxxxxxxx\",\n \"ProtocolType\": \"\"\n },\n {\n \"Address\": \"\",\n \"Ip\": \"\",\n \"Port\": 0,\n \"Status\": \"initing\",\n \"NetType\": \"public\",\n \"VpcId\": \"\",\n \"SubnetId\": \"\",\n \"ProtocolType\": \"\"\n }\n ],\n \"DBCharset\": \"UTF8\",\n \"IsSupportTDE\": 0,\n \"DBVersion\": \"10.4\",\n \"DBEngine\": \"postgresql\",\n \"DBEngineConfig\": \"\",\n \"DBMajorVersion\": \"10\",\n \"DBKernelVersion\": \"v10.4_r1.0\",\n \"CreateTime\": \"2017-12-28 19:23:19\",\n \"UpdateTime\": \"2018-01-18 15:54:32\",\n \"ExpireTime\": \"2018-01-28 19:23:23\",\n \"IsolatedTime\": \"0000-00-00 00:00:00\",\n \"OfflineTime\": \"2019-12-28 19:23:19\",\n \"PayType\": \"prepaid\",\n \"AutoRenew\": 1,\n \"ReadOnlyInstanceNum\": 1,\n \"StatusInReadonlyGroup\": \"running\",\n \"SupportIpv6\": 0,\n \"TagList\": [\n {\n \"TagKey\": \"tag1\",\n \"TagValue\": \"v1\"\n }\n ],\n \"NetworkAccessList\": [],\n \"DBNodeSet\": [\n {\n \"Role\": \"Primary\",\n \"Zone\": \"ap-guangzhou-2\"\n },\n {\n \"Role\": \"Standby\",\n \"Zone\": \"ap-guangzhou-3\"\n }\n ]\n }\n }\n}",
|
282
282
|
"title": "查询实例的详细信息"
|
283
283
|
}
|
284
284
|
],
|
@@ -326,15 +326,15 @@
|
|
326
326
|
],
|
327
327
|
"DescribeDBInstances": [
|
328
328
|
{
|
329
|
-
"document": "",
|
329
|
+
"document": "按指定分页查询实例列表",
|
330
330
|
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBInstances\n<公共请求参数>\n\n{\n \"Limit\": \"10\",\n \"Offset\": \"0\"\n}",
|
331
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"DBInstanceSet\": [\n {\n \"
|
331
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"DBInstanceSet\": [\n {\n \"AppId\": 123456789,\n \"AutoRenew\": 1,\n \"CreateTime\": \"2022-03-16 18:12:10\",\n \"DBCharset\": \"UTF8\",\n \"DBEngine\": \"postgresql\",\n \"DBEngineConfig\": \"\",\n \"DBInstanceClass\": \"cdb.pg.ts1.8g\",\n \"DBInstanceCpu\": 4,\n \"DBInstanceId\": \"postgres-xxxxxx\",\n \"DBInstanceMemory\": 8,\n \"DBInstanceName\": \"test\",\n \"DBInstanceNetInfo\": [\n {\n \"Address\": \"\",\n \"Ip\": \"xx.xx.xx.xx\",\n \"NetType\": \"private\",\n \"Port\": 5432,\n \"ProtocolType\": \"postgresql\",\n \"Status\": \"opened\",\n \"SubnetId\": \"subnet-xxxx\",\n \"VpcId\": \"vpc-xxxx\"\n },\n {\n \"Address\": \"\",\n \"Ip\": \"\",\n \"NetType\": \"public\",\n \"Port\": 0,\n \"ProtocolType\": \"\",\n \"Status\": \"initing\",\n \"SubnetId\": \"\",\n \"VpcId\": \"\"\n }\n ],\n \"DBInstanceStatus\": \"running\",\n \"DBInstanceStorage\": 20,\n \"DBInstanceType\": \"primary\",\n \"DBInstanceVersion\": \"standard\",\n \"DBKernelVersion\": \"v13.3_r1.1\",\n \"DBMajorVersion\": \"13\",\n \"DBNodeSet\": [\n {\n \"Role\": \"Primary\",\n \"Zone\": \"ap-guangzhou-6\"\n },\n {\n \"Role\": \"Standby\",\n \"Zone\": \"ap-guangzhou-6\"\n }\n ],\n \"DBVersion\": \"13.3\",\n \"ExpireTime\": \"2023-04-16 18:14:49\",\n \"IsSupportTDE\": 0,\n \"IsolatedTime\": \"0000-00-00 00:00:00\",\n \"MasterDBInstanceId\": \"\",\n \"NetworkAccessList\": null,\n \"OfflineTime\": \"0001-01-08 00:00:00\",\n \"PayType\": \"prepaid\",\n \"ProjectId\": 0,\n \"ReadOnlyInstanceNum\": 0,\n \"Region\": \"ap-guangzhou\",\n \"StatusInReadonlyGroup\": \"\",\n \"SubnetId\": \"subnet-xxxx\",\n \"SupportIpv6\": 0,\n \"TagList\": [\n {\n \"TagKey\": \"tag_key_test\",\n \"TagValue\": \"tag_value_test\"\n }\n ],\n \"Type\": \"TS85\",\n \"Uid\": 1234,\n \"UpdateTime\": \"2023-03-15 17:31:58\",\n \"VpcId\": \"vpc-xxxx\",\n \"Zone\": \"ap-guangzhou-6\"\n }\n ],\n \"RequestId\": \"d849664a-191c-48bf-b42f-444caa189557\"\n }\n}",
|
332
332
|
"title": "查询所有实例列表"
|
333
333
|
},
|
334
334
|
{
|
335
|
-
"document": "例如:查询实例ID为postgres-
|
336
|
-
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBInstances\n<公共请求参数>\n\n{\n \"Limit\": \"10\",\n \"Filters\": [\n {\n \"Values\": [\n \"postgres-
|
337
|
-
"output": "{\n \"Response\": {\n \"
|
335
|
+
"document": "例如:查询实例ID为postgres-xxxxx的实例信息",
|
336
|
+
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBInstances\n<公共请求参数>\n\n{\n \"Limit\": \"10\",\n \"Filters\": [\n {\n \"Values\": [\n \"postgres-xxxxx\"\n ],\n \"Name\": \"db-instance-id\"\n }\n ],\n \"Offset\": \"0\"\n}",
|
337
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"DBInstanceSet\": [\n {\n \"AppId\": 123456789,\n \"AutoRenew\": 1,\n \"CreateTime\": \"2022-03-16 18:12:10\",\n \"DBCharset\": \"UTF8\",\n \"DBEngine\": \"postgresql\",\n \"DBEngineConfig\": \"\",\n \"DBInstanceClass\": \"cdb.pg.ts1.8g\",\n \"DBInstanceCpu\": 4,\n \"DBInstanceId\": \"postgres-xxxxx\",\n \"DBInstanceMemory\": 8,\n \"DBInstanceName\": \"test\",\n \"DBInstanceNetInfo\": [\n {\n \"Address\": \"\",\n \"Ip\": \"xx.xx.xx.xx\",\n \"NetType\": \"private\",\n \"Port\": 5432,\n \"ProtocolType\": \"postgresql\",\n \"Status\": \"opened\",\n \"SubnetId\": \"subnet-xxxx\",\n \"VpcId\": \"vpc-xxxx\"\n },\n {\n \"Address\": \"\",\n \"Ip\": \"\",\n \"NetType\": \"public\",\n \"Port\": 0,\n \"ProtocolType\": \"\",\n \"Status\": \"initing\",\n \"SubnetId\": \"\",\n \"VpcId\": \"\"\n }\n ],\n \"DBInstanceStatus\": \"running\",\n \"DBInstanceStorage\": 20,\n \"DBInstanceType\": \"primary\",\n \"DBInstanceVersion\": \"standard\",\n \"DBKernelVersion\": \"v13.3_r1.1\",\n \"DBMajorVersion\": \"13\",\n \"DBNodeSet\": [\n {\n \"Role\": \"Primary\",\n \"Zone\": \"ap-guangzhou-6\"\n },\n {\n \"Role\": \"Standby\",\n \"Zone\": \"ap-guangzhou-6\"\n }\n ],\n \"DBVersion\": \"13.3\",\n \"ExpireTime\": \"2023-04-16 18:14:49\",\n \"IsSupportTDE\": 0,\n \"IsolatedTime\": \"0000-00-00 00:00:00\",\n \"MasterDBInstanceId\": \"\",\n \"NetworkAccessList\": null,\n \"OfflineTime\": \"0001-01-08 00:00:00\",\n \"PayType\": \"prepaid\",\n \"ProjectId\": 0,\n \"ReadOnlyInstanceNum\": 0,\n \"Region\": \"ap-guangzhou\",\n \"StatusInReadonlyGroup\": \"\",\n \"SubnetId\": \"subnet-xxxx\",\n \"SupportIpv6\": 0,\n \"TagList\": [\n {\n \"TagKey\": \"tag_key_test\",\n \"TagValue\": \"tag_value_test\"\n }\n ],\n \"Type\": \"TS85\",\n \"Uid\": 1234,\n \"UpdateTime\": \"2023-03-15 17:31:58\",\n \"VpcId\": \"vpc-xxxx\",\n \"Zone\": \"ap-guangzhou-6\"\n }\n ],\n \"RequestId\": \"d849664a-191c-48bf-b42f-444caa189557\"\n }\n}",
|
338
338
|
"title": "根据实例ID查询实例信息"
|
339
339
|
}
|
340
340
|
],
|
@@ -366,13 +366,13 @@
|
|
366
366
|
{
|
367
367
|
"document": "不做筛选,全量拉取实例的数据库列表。",
|
368
368
|
"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}",
|
369
|
-
"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 }\n}",
|
369
|
+
"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}",
|
370
370
|
"title": "获取实例所有数据库"
|
371
371
|
},
|
372
372
|
{
|
373
373
|
"document": "使用筛选条件,返回部分数据库列表。",
|
374
|
-
"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}",
|
375
|
-
"output": "{\n \"Response\": {\n \"Items\": [\n \"postgres_bak_1715086333\",\n \"postgres_bak_1715140150\"\n ],\n \"RequestId\": \"25cc2555-14a2-454f-af08-6bd691315335\"\n }\n}",
|
374
|
+
"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}",
|
375
|
+
"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}",
|
376
376
|
"title": "获取实例部分数据库"
|
377
377
|
}
|
378
378
|
],
|
@@ -380,7 +380,7 @@
|
|
380
380
|
{
|
381
381
|
"document": "无",
|
382
382
|
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDefaultParameters\n<公共请求参数>\n\n{\n \"DBMajorVersion\": \"13\",\n \"DBEngine\": \"postgresql\"\n}",
|
383
|
-
"output": "{\n \"Response\": {\n \"TotalCount\":
|
383
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"b6cf4dfc-09ce-4ee4-9c3e-0979e105bb4d\",\n \"TotalCount\": 4,\n \"ParamInfoSet\": [\n {\n \"Advanced\": false,\n \"ClassificationCN\": \"查询优化\",\n \"ClassificationEN\": \"Query Tuning\",\n \"CurrentValue\": \"\",\n \"DefaultValue\": \"500000\",\n \"EnumValue\": [],\n \"ID\": 14092,\n \"LastModifyTime\": \"\",\n \"Max\": 123124123,\n \"Min\": -1,\n \"Name\": \"jit_inline_above_cost\",\n \"NeedReboot\": false,\n \"ParamDescriptionCH\": \"设置JIT编译尝试内联函数和操作符的查询代价阈值,如果查询代价超过这个值,JIT编译就会尝试内联\",\n \"ParamDescriptionEN\": \"Perform JIT inlining if query is more expensive.-1 disables inlining.\",\n \"ParamValueType\": \"real\",\n \"SpecRelated\": false,\n \"SpecRelationSet\": null,\n \"StandbyRelated\": 0,\n \"Unit\": \"\",\n \"VersionRelationSet\": null\n },\n {\n \"Advanced\": false,\n \"ClassificationCN\": \"AUTOVACUUM\",\n \"ClassificationEN\": \"Autovacuum\",\n \"CurrentValue\": \"\",\n \"DefaultValue\": \"400000000\",\n \"EnumValue\": [],\n \"ID\": 14131,\n \"LastModifyTime\": \"\",\n \"Max\": 2000000000,\n \"Min\": 10000,\n \"Name\": \"autovacuum_multixact_freeze_max_age\",\n \"NeedReboot\": true,\n \"ParamDescriptionCH\": \"设置表上多事务场景下的最大年龄,达到这个阀值将触发 autovacuum进程,从而避免 wraparound.\",\n \"ParamDescriptionEN\": \"Multixact age at which to autovacuum a table to prevent multixact wraparound.\",\n \"ParamValueType\": \"integer\",\n \"SpecRelated\": false,\n \"SpecRelationSet\": null,\n \"StandbyRelated\": 0,\n \"Unit\": \"\",\n \"VersionRelationSet\": null\n },\n {\n \"Advanced\": false,\n \"ClassificationCN\": \"客户端连接默认值\",\n \"ClassificationEN\": \"Client Connection Defaults\",\n \"CurrentValue\": \"\",\n \"DefaultValue\": \"\\\"$user\\\", public\",\n \"EnumValue\": [],\n \"ID\": 14173,\n \"LastModifyTime\": \"\",\n \"Max\": 0,\n \"Min\": 0,\n \"Name\": \"search_path\",\n \"NeedReboot\": false,\n \"ParamDescriptionCH\": \"默认的search_path\",\n \"ParamDescriptionEN\": \"Sets the schema search order for names that are not schema-qualified.\",\n \"ParamValueType\": \"string\",\n \"SpecRelated\": false,\n \"SpecRelationSet\": null,\n \"StandbyRelated\": 0,\n \"Unit\": \"\",\n \"VersionRelationSet\": null\n },\n {\n \"Advanced\": false,\n \"ClassificationCN\": \"客户端连接默认值\",\n \"ClassificationEN\": \"Client Connection Defaults\",\n \"CurrentValue\": \"\",\n \"DefaultValue\": \"150000000\",\n \"EnumValue\": [],\n \"ID\": 14175,\n \"LastModifyTime\": \"\",\n \"Max\": 2000000000,\n \"Min\": 0,\n \"Name\": \"vacuum_multixact_freeze_table_age\",\n \"NeedReboot\": false,\n \"ParamDescriptionCH\": \"当表的pg_class.relfrozenxid域达到该设置指定的年龄时,VACUUM会执行一次全表扫描。 积极的扫描不同于常规的VACUUM,因为它会访问每个可能包含未冻结XID或MXID的页面,而不仅仅是那些可能包含死元组的页面\",\n \"ParamDescriptionEN\": \"Multixact age at which VACUUM should scan whole table to freeze tuples.\",\n \"ParamValueType\": \"integer\",\n \"SpecRelated\": false,\n \"SpecRelationSet\": null,\n \"StandbyRelated\": 0,\n \"Unit\": \"\",\n \"VersionRelationSet\": null\n }\n ]\n }\n}",
|
384
384
|
"title": "查询某个参数模板支持添加的所有参数的信息"
|
385
385
|
}
|
386
386
|
],
|
@@ -412,14 +412,14 @@
|
|
412
412
|
{
|
413
413
|
"document": "无",
|
414
414
|
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeParameterTemplateAttributes\n<公共请求参数>\n\n{\n \"TemplateId\": \"c0456ace-31d1-54b1-a270-befa6bf960a5\"\n}",
|
415
|
-
"output": "{\n \"Response\": {\n \"DBEngine\": \"postgresql\",\n \"DBMajorVersion\": \"12\",\n \"ParamInfoSet\": [\n {\n \"Advanced\": false,\n \"ClassificationCN\": \"WAL\",\n \"ClassificationEN\": \"Write-Ahead Log\",\n \"CurrentValue\": \"logical\",\n \"DefaultValue\": \"replica\",\n \"EnumValue\": [\n \"replica\",\n \"logical\"\n ],\n \"ID\": 854,\n \"LastModifyTime\": \"\",\n \"Max\": 0,\n \"Min\": 0,\n \"Name\": \"wal_level\",\n \"NeedReboot\": true,\n \"ParamDescriptionCH\": \"此参数决定记录到日志的信息,不允许设置为minimal\",\n \"ParamDescriptionEN\": \"Set the level of information written to the WAL.\",\n \"ParamValueType\": \"enum\",\n \"SpecRelated\": false,\n \"StandbyRelated\": 0,\n \"Unit\": \"\"\n },\n {\n \"Advanced\": false,\n \"ClassificationCN\": \"资源使用\",\n \"ClassificationEN\": \"Resource Usage\",\n \"CurrentValue\": \"12\",\n \"DefaultValue\": \"8\",\n \"EnumValue\": null,\n \"ID\": 755,\n \"LastModifyTime\": \"\",\n \"Max\": 262143,\n \"Min\": 0,\n \"Name\": \"max_worker_processes\",\n \"NeedReboot\": true,\n \"ParamDescriptionCH\": \"系统能够支持的后台进程的最大数量\",\n \"ParamDescriptionEN\": \"Maximum number of concurrent worker processes.\",\n \"ParamValueType\": \"integer\",\n \"SpecRelated\": true,\n \"StandbyRelated\": 1,\n \"Unit\": \"\"\n }\n ],\n \"RequestId\": \"e4f0f472-8bef-4404-b3fa-57ed6b6378b8\",\n \"TemplateDescription\": \"test-modify\",\n \"TemplateId\": \"c0456ace-31d1-54b1-a270-befa6bf960a5\",\n \"TemplateName\": \"test-modify_1\",\n \"TotalCount\": 2\n }\n}",
|
415
|
+
"output": "{\n \"Response\": {\n \"DBEngine\": \"postgresql\",\n \"DBMajorVersion\": \"12\",\n \"ParamInfoSet\": [\n {\n \"Advanced\": false,\n \"ClassificationCN\": \"WAL\",\n \"ClassificationEN\": \"Write-Ahead Log\",\n \"CurrentValue\": \"logical\",\n \"DefaultValue\": \"replica\",\n \"EnumValue\": [\n \"replica\",\n \"logical\"\n ],\n \"ID\": 854,\n \"LastModifyTime\": \"\",\n \"Max\": 0,\n \"Min\": 0,\n \"Name\": \"wal_level\",\n \"NeedReboot\": true,\n \"ParamDescriptionCH\": \"此参数决定记录到日志的信息,不允许设置为minimal\",\n \"ParamDescriptionEN\": \"Set the level of information written to the WAL.\",\n \"ParamValueType\": \"enum\",\n \"VersionRelationSet\": [],\n \"SpecRelated\": false,\n \"StandbyRelated\": 0,\n \"Unit\": \"\",\n \"SpecRelationSet\": []\n },\n {\n \"Advanced\": false,\n \"ClassificationCN\": \"资源使用\",\n \"ClassificationEN\": \"Resource Usage\",\n \"CurrentValue\": \"12\",\n \"DefaultValue\": \"8\",\n \"EnumValue\": null,\n \"ID\": 755,\n \"LastModifyTime\": \"\",\n \"Max\": 262143,\n \"Min\": 0,\n \"Name\": \"max_worker_processes\",\n \"NeedReboot\": true,\n \"ParamDescriptionCH\": \"系统能够支持的后台进程的最大数量\",\n \"ParamDescriptionEN\": \"Maximum number of concurrent worker processes.\",\n \"ParamValueType\": \"integer\",\n \"VersionRelationSet\": [\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 300,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n },\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 400,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n },\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 400,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n },\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 500,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n },\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 900,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n },\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 900,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n },\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 900,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n },\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 300,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n },\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 400,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n },\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 500,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n },\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 500,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n },\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 1300,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n },\n {\n \"DBKernelVersion\": \"\",\n \"EnumValue\": null,\n \"Max\": 1300,\n \"Min\": 4,\n \"Name\": \"max_worker_processes\",\n \"Unit\": \"null\",\n \"Value\": \"8\"\n }\n ],\n \"SpecRelated\": true,\n \"StandbyRelated\": 1,\n \"Unit\": \"\",\n \"SpecRelationSet\": []\n }\n ],\n \"RequestId\": \"e4f0f472-8bef-4404-b3fa-57ed6b6378b8\",\n \"TemplateDescription\": \"test-modify\",\n \"TemplateId\": \"c0456ace-31d1-54b1-a270-befa6bf960a5\",\n \"TemplateName\": \"test-modify_1\",\n \"TotalCount\": 2\n }\n}",
|
416
416
|
"title": "查询参数模板详情"
|
417
417
|
}
|
418
418
|
],
|
419
419
|
"DescribeParameterTemplates": [
|
420
420
|
{
|
421
421
|
"document": "无",
|
422
|
-
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeParameterTemplates\n<公共请求参数>\n\n{\n \"
|
422
|
+
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeParameterTemplates\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"TemplateName\",\n \"Values\": [\n \"test\"\n ]\n }\n ],\n \"Limit\": 0,\n \"Offset\": 10,\n \"OrderBy\": \"CreateTime\",\n \"OrderByType\": \"desc\"\n}",
|
423
423
|
"output": "{\n \"Response\": {\n \"ParameterTemplateSet\": [\n {\n \"DBEngine\": \"postgresql\",\n \"DBMajorVersion\": \"13\",\n \"TemplateDescription\": \"test1\",\n \"TemplateId\": \"674538e8-4a03-5103-896c-9785c960bf02\",\n \"TemplateName\": \"test1\"\n },\n {\n \"DBEngine\": \"postgresql\",\n \"DBMajorVersion\": \"13\",\n \"TemplateDescription\": \"test2\",\n \"TemplateId\": \"423984bb-97fe-5693-a74f-63cc8dfb6c5d\",\n \"TemplateName\": \"test2\"\n }\n ],\n \"RequestId\": \"6224e7ed-d7d8-494c-835f-e1612345383f\",\n \"TotalCount\": 2\n }\n}",
|
424
424
|
"title": "查询参数模板信息"
|
425
425
|
}
|
@@ -466,7 +466,7 @@
|
|
466
466
|
],
|
467
467
|
"DescribeSlowQueryAnalysis": [
|
468
468
|
{
|
469
|
-
"document": "",
|
469
|
+
"document": "获取指定时间范围内实例的慢查询统计分析结果。\n",
|
470
470
|
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSlowQueryAnalysis\n<公共请求参数>\n\n{\n \"StartTime\": \"2021-06-17 20:00:07\",\n \"EndTime\": \"2021-06-17 20:15:07\",\n \"Limit\": 10,\n \"Offset\": 0,\n \"DBInstanceId\": \"postgres-nbvqjlhf\"\n}",
|
471
471
|
"output": "{\n \"Response\": {\n \"Detail\": {\n \"AnalysisItems\": [\n {\n \"AvgCostTime\": 101.01300048828125,\n \"ClientAddr\": \"\",\n \"CostPercent\": 11.703700311890035,\n \"CostTime\": 101.01300048828125,\n \"DatabaseName\": \"postgres\",\n \"FirstTime\": \"2021-07-27 03:12:01\",\n \"LastTime\": \"2021-07-27 03:12:01\",\n \"MaxCostTime\": 101.01300048828125,\n \"MinCostTime\": 101.01300048828125,\n \"NormalQuery\": \"select $1 from information_schema.tables where table_schema = $2 and table_name = $3\",\n \"UserName\": \"postgres\"\n }\n ],\n \"TotalCallNum\": 6,\n \"TotalTime\": 863.0860137939453\n },\n \"RequestId\": \"221334ddc4f\",\n \"TotalCount\": 5\n }\n}",
|
472
472
|
"title": "慢查询统计分析接口实例"
|
@@ -474,10 +474,10 @@
|
|
474
474
|
],
|
475
475
|
"DescribeSlowQueryList": [
|
476
476
|
{
|
477
|
-
"document": "",
|
477
|
+
"document": "获取指定时间范围内实例的慢日志。\n",
|
478
478
|
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSlowQueryList\n<公共请求参数>\n\n{\n \"StartTime\": \"2021-07-22 10:00:07\",\n \"EndTime\": \"2021-07-27 20:15:07\",\n \"Limit\": 10,\n \"Offset\": 0,\n \"DBInstanceId\": \"postgres-nbvqjlhf\"\n}",
|
479
479
|
"output": "{\n \"Response\": {\n \"DurationAnalysis\": [\n {\n \"Count\": 0,\n \"TimeSegment\": \"10-20s\"\n },\n {\n \"Count\": 0,\n \"TimeSegment\": \"40-50s\"\n },\n {\n \"Count\": 0,\n \"TimeSegment\": \"50s-\"\n },\n {\n \"Count\": 0,\n \"TimeSegment\": \"5-6s\"\n },\n {\n \"Count\": 0,\n \"TimeSegment\": \"6-7s\"\n },\n {\n \"Count\": 0,\n \"TimeSegment\": \"2-3s\"\n },\n {\n \"Count\": 0,\n \"TimeSegment\": \"20-30s\"\n },\n {\n \"Count\": 0,\n \"TimeSegment\": \"3-4s\"\n },\n {\n \"Count\": 0,\n \"TimeSegment\": \"4-5s\"\n },\n {\n \"Count\": 0,\n \"TimeSegment\": \"7-8s\"\n },\n {\n \"Count\": 0,\n \"TimeSegment\": \"8-9s\"\n },\n {\n \"Count\": 0,\n \"TimeSegment\": \"9-10s\"\n },\n {\n \"Count\": 0,\n \"TimeSegment\": \"30-40s\"\n },\n {\n \"Count\": 6,\n \"TimeSegment\": \"1-2s\"\n }\n ],\n \"RawSlowQueryList\": [\n {\n \"ClientAddr\": \"[local]\",\n \"DatabaseName\": \"postgres\",\n \"Duration\": 101.013,\n \"RawQuery\": \"select 1 from information_schema.tables where table_schema = 'pg_catalog' and table_name = 'pg_file_settings'\",\n \"SessionStartTime\": \"2021-07-27 03:12:01 CST\",\n \"UserName\": \"postgres\"\n },\n {\n \"ClientAddr\": \"::1:34301\",\n \"DatabaseName\": \"postgres\",\n \"Duration\": 155.283,\n \"RawQuery\": \"select count(*)::text as value from pg_stat_activity where now()-backend_start < '5 second';\",\n \"SessionStartTime\": \"2021-07-25 02:25:09 CST\",\n \"UserName\": \"postgres\"\n },\n {\n \"ClientAddr\": \"::1:34295\",\n \"DatabaseName\": \"postgres\",\n \"Duration\": 168.119,\n \"RawQuery\": \"select count(*)::text as value from pg_stat_activity where state='active';\",\n \"SessionStartTime\": \"2021-07-25 02:25:09 CST\",\n \"UserName\": \"postgres\"\n },\n {\n \"ClientAddr\": \"::1:34296\",\n \"DatabaseName\": \"postgres\",\n \"Duration\": 168.757,\n \"RawQuery\": \"select count(*)::text as value from pg_stat_activity where wait_event_type is not null\",\n \"SessionStartTime\": \"2021-07-25 02:25:09 CST\",\n \"UserName\": \"postgres\"\n },\n {\n \"ClientAddr\": \"::1:34298\",\n \"DatabaseName\": \"postgres\",\n \"Duration\": 165.119,\n \"RawQuery\": \"select application_name,COALESCE(pg_catalog.pg_wal_lsn_diff(sent_lsn, replay_lsn),0) from pg_stat_replication;\",\n \"SessionStartTime\": \"2021-07-25 02:25:09 CST\",\n \"UserName\": \"postgres\"\n },\n {\n \"ClientAddr\": \"::1:34297\",\n \"DatabaseName\": \"postgres\",\n \"Duration\": 104.795,\n \"RawQuery\": \"select count(*)::text as value from pg_stat_activity where state='idle';\",\n \"SessionStartTime\": \"2021-07-25 02:25:09 CST\",\n \"UserName\": \"postgres\"\n }\n ],\n \"RequestId\": \"221334ddcf\",\n \"TotalCount\": 6\n }\n}",
|
480
|
-
"title": "
|
480
|
+
"title": "慢日志列表查询示例"
|
481
481
|
}
|
482
482
|
],
|
483
483
|
"DescribeZones": [
|
@@ -776,6 +776,20 @@
|
|
776
776
|
"title": "重启实例"
|
777
777
|
}
|
778
778
|
],
|
779
|
+
"RestoreDBInstanceObjects": [
|
780
|
+
{
|
781
|
+
"document": "在原实例上指定恢复时间,恢复某些数据库相关对象。例如在postgres-abcd1234实例上,恢复时间点2024-03-25 01:27:35上的test数据库。",
|
782
|
+
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RestoreDBInstance\n<公共请求参数>\n\n{\n \"DBInstanceId\": \"postgres-abcd1234\",\n \"RestoreTargetTime\": \"2024-03-25 01:27:35\",\n \"RestoreObjects\": [\n \"test\"\n ]\n}",
|
783
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6ace8140-6b9e-4e81-a8ad-ef3f92b2aa90\"\n }\n}",
|
784
|
+
"title": "指定恢复时间,恢复数据库对象"
|
785
|
+
},
|
786
|
+
{
|
787
|
+
"document": "在原实例上选定备份集,恢复某些数据库相关对象。例如在postgres-abcd1234实例上,使用备份集28aa61ac-1b1f-566a-bedb-6e918024be02恢复test数据库。",
|
788
|
+
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RestoreDBInstance\n<公共请求参数>\n\n{\n \"DBInstanceId\": \"postgres-abcd1234\",\n \"BackupSetId\": \"28aa61ac-1b1f-566a-bedb-6e918024be02\",\n \"RestoreObjects\": [\n \"test\"\n ]\n}",
|
789
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3d49f48c-7d27-4820-8724-ed5b15787373\"\n }\n}",
|
790
|
+
"title": "选定备份集,恢复数据库对象"
|
791
|
+
}
|
792
|
+
],
|
779
793
|
"SetAutoRenewFlag": [
|
780
794
|
{
|
781
795
|
"document": "",
|
@@ -797,6 +797,58 @@ def doDescribeInstanceSecurityGroup(args, parsed_globals):
|
|
797
797
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
798
798
|
|
799
799
|
|
800
|
+
def doDescribeBackupDetail(args, parsed_globals):
|
801
|
+
g_param = parse_global_arg(parsed_globals)
|
802
|
+
|
803
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
804
|
+
cred = credential.CVMRoleCredential()
|
805
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
806
|
+
cred = credential.STSAssumeRoleCredential(
|
807
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
808
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
809
|
+
)
|
810
|
+
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):
|
811
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
812
|
+
else:
|
813
|
+
cred = credential.Credential(
|
814
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
815
|
+
)
|
816
|
+
http_profile = HttpProfile(
|
817
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
818
|
+
reqMethod="POST",
|
819
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
820
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
821
|
+
)
|
822
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
823
|
+
if g_param[OptionsDefine.Language]:
|
824
|
+
profile.language = g_param[OptionsDefine.Language]
|
825
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
826
|
+
client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
|
827
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
828
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
829
|
+
model = models.DescribeBackupDetailRequest()
|
830
|
+
model.from_json_string(json.dumps(args))
|
831
|
+
start_time = time.time()
|
832
|
+
while True:
|
833
|
+
rsp = client.DescribeBackupDetail(model)
|
834
|
+
result = rsp.to_json_string()
|
835
|
+
try:
|
836
|
+
json_obj = json.loads(result)
|
837
|
+
except TypeError as e:
|
838
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
839
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
840
|
+
break
|
841
|
+
cur_time = time.time()
|
842
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
843
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
844
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
845
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
846
|
+
else:
|
847
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
848
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
849
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
|
+
|
851
|
+
|
800
852
|
def doUpgradeVersionToMultiAvailabilityZones(args, parsed_globals):
|
801
853
|
g_param = parse_global_arg(parsed_globals)
|
802
854
|
|
@@ -5087,6 +5139,7 @@ ACTION_MAP = {
|
|
5087
5139
|
"ModifyBackupDownloadRestriction": doModifyBackupDownloadRestriction,
|
5088
5140
|
"DescribeParamTemplates": doDescribeParamTemplates,
|
5089
5141
|
"DescribeInstanceSecurityGroup": doDescribeInstanceSecurityGroup,
|
5142
|
+
"DescribeBackupDetail": doDescribeBackupDetail,
|
5090
5143
|
"UpgradeVersionToMultiAvailabilityZones": doUpgradeVersionToMultiAvailabilityZones,
|
5091
5144
|
"ModifyInstanceParams": doModifyInstanceParams,
|
5092
5145
|
"ClearInstance": doClearInstance,
|
@@ -133,6 +133,13 @@
|
|
133
133
|
"output": "DescribeAutoBackupConfigResponse",
|
134
134
|
"status": "online"
|
135
135
|
},
|
136
|
+
"DescribeBackupDetail": {
|
137
|
+
"document": "本接口(DescribeBackupDetail)用于查询实例的备份信息详情。",
|
138
|
+
"input": "DescribeBackupDetailRequest",
|
139
|
+
"name": "查询备份信息详情",
|
140
|
+
"output": "DescribeBackupDetailResponse",
|
141
|
+
"status": "online"
|
142
|
+
},
|
136
143
|
"DescribeBackupDownloadRestriction": {
|
137
144
|
"document": "本接口(DescribeBackupDownloadRestriction)用于查询当前地域数据库备份文件的下载地址。",
|
138
145
|
"input": "DescribeBackupDownloadRestrictionRequest",
|
@@ -2367,6 +2374,150 @@
|
|
2367
2374
|
],
|
2368
2375
|
"type": "object"
|
2369
2376
|
},
|
2377
|
+
"DescribeBackupDetailRequest": {
|
2378
|
+
"document": "DescribeBackupDetail请求参数结构体",
|
2379
|
+
"members": [
|
2380
|
+
{
|
2381
|
+
"disabled": false,
|
2382
|
+
"document": "实例 ID。",
|
2383
|
+
"example": "crs-4y9t57vt",
|
2384
|
+
"member": "string",
|
2385
|
+
"name": "InstanceId",
|
2386
|
+
"required": true,
|
2387
|
+
"type": "string"
|
2388
|
+
},
|
2389
|
+
{
|
2390
|
+
"disabled": false,
|
2391
|
+
"document": "备份 ID,可通过接口 [DescribeInstanceBackups](https://cloud.tencent.com/document/product/239/20011) 返回的参数 **RedisBackupSet** 获取。",
|
2392
|
+
"example": "678362566696298532848117",
|
2393
|
+
"member": "string",
|
2394
|
+
"name": "BackupId",
|
2395
|
+
"required": true,
|
2396
|
+
"type": "string"
|
2397
|
+
}
|
2398
|
+
],
|
2399
|
+
"type": "object"
|
2400
|
+
},
|
2401
|
+
"DescribeBackupDetailResponse": {
|
2402
|
+
"document": "DescribeBackupDetail返回参数结构体",
|
2403
|
+
"members": [
|
2404
|
+
{
|
2405
|
+
"disabled": false,
|
2406
|
+
"document": "备份 ID。",
|
2407
|
+
"example": "678362566696298532848117",
|
2408
|
+
"member": "string",
|
2409
|
+
"name": "BackupId",
|
2410
|
+
"type": "string",
|
2411
|
+
"value_allowed_null": false
|
2412
|
+
},
|
2413
|
+
{
|
2414
|
+
"disabled": false,
|
2415
|
+
"document": "备份开始时间。",
|
2416
|
+
"example": "\"2022-03-24 11:52:20\"",
|
2417
|
+
"member": "string",
|
2418
|
+
"name": "StartTime",
|
2419
|
+
"type": "string",
|
2420
|
+
"value_allowed_null": false
|
2421
|
+
},
|
2422
|
+
{
|
2423
|
+
"disabled": false,
|
2424
|
+
"document": "备份结束时间。",
|
2425
|
+
"example": "\"2022-03-24 11:59:16\"",
|
2426
|
+
"member": "string",
|
2427
|
+
"name": "EndTime",
|
2428
|
+
"type": "string",
|
2429
|
+
"value_allowed_null": false
|
2430
|
+
},
|
2431
|
+
{
|
2432
|
+
"disabled": false,
|
2433
|
+
"document": "备份方式。 \n\n- 1:手动备份。\n- 0:自动备份。",
|
2434
|
+
"example": "\"1\"",
|
2435
|
+
"member": "string",
|
2436
|
+
"name": "BackupType",
|
2437
|
+
"type": "string",
|
2438
|
+
"value_allowed_null": false
|
2439
|
+
},
|
2440
|
+
{
|
2441
|
+
"disabled": false,
|
2442
|
+
"document": "备份状态。 \n\n- 1:备份被其它流程锁定。\n- 2:备份正常,没有被任何流程锁定。\n- -1:备份已过期。\n- 3:备份正在被导出。\n- 4:备份导出成功。",
|
2443
|
+
"example": "2",
|
2444
|
+
"member": "int64",
|
2445
|
+
"name": "Status",
|
2446
|
+
"type": "int",
|
2447
|
+
"value_allowed_null": false
|
2448
|
+
},
|
2449
|
+
{
|
2450
|
+
"disabled": false,
|
2451
|
+
"document": "备份的备注信息。",
|
2452
|
+
"example": "\"\"",
|
2453
|
+
"member": "string",
|
2454
|
+
"name": "Remark",
|
2455
|
+
"type": "string",
|
2456
|
+
"value_allowed_null": false
|
2457
|
+
},
|
2458
|
+
{
|
2459
|
+
"disabled": false,
|
2460
|
+
"document": "备份是否被锁定。\n\n- 0:未被锁定。\n- 1:已被锁定。",
|
2461
|
+
"example": "0",
|
2462
|
+
"member": "int64",
|
2463
|
+
"name": "Locked",
|
2464
|
+
"type": "int",
|
2465
|
+
"value_allowed_null": false
|
2466
|
+
},
|
2467
|
+
{
|
2468
|
+
"disabled": false,
|
2469
|
+
"document": "备份文件大小。单位:Byte。",
|
2470
|
+
"example": "10240",
|
2471
|
+
"member": "int64",
|
2472
|
+
"name": "BackupSize",
|
2473
|
+
"type": "int",
|
2474
|
+
"value_allowed_null": false
|
2475
|
+
},
|
2476
|
+
{
|
2477
|
+
"disabled": false,
|
2478
|
+
"document": "实例类型。",
|
2479
|
+
"example": "6",
|
2480
|
+
"member": "int64",
|
2481
|
+
"name": "InstanceType",
|
2482
|
+
"type": "int",
|
2483
|
+
"value_allowed_null": false
|
2484
|
+
},
|
2485
|
+
{
|
2486
|
+
"disabled": false,
|
2487
|
+
"document": "单分片内存规格大小,单位:MB。",
|
2488
|
+
"example": "4096",
|
2489
|
+
"member": "int64",
|
2490
|
+
"name": "MemSize",
|
2491
|
+
"type": "int",
|
2492
|
+
"value_allowed_null": false
|
2493
|
+
},
|
2494
|
+
{
|
2495
|
+
"disabled": false,
|
2496
|
+
"document": "分片数量。",
|
2497
|
+
"example": "3",
|
2498
|
+
"member": "int64",
|
2499
|
+
"name": "ShardNum",
|
2500
|
+
"type": "int",
|
2501
|
+
"value_allowed_null": false
|
2502
|
+
},
|
2503
|
+
{
|
2504
|
+
"disabled": false,
|
2505
|
+
"document": "副本数量。",
|
2506
|
+
"example": "1",
|
2507
|
+
"member": "int64",
|
2508
|
+
"name": "ReplicasNum",
|
2509
|
+
"type": "int",
|
2510
|
+
"value_allowed_null": false
|
2511
|
+
},
|
2512
|
+
{
|
2513
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2514
|
+
"member": "string",
|
2515
|
+
"name": "RequestId",
|
2516
|
+
"type": "string"
|
2517
|
+
}
|
2518
|
+
],
|
2519
|
+
"type": "object"
|
2520
|
+
},
|
2370
2521
|
"DescribeBackupDownloadRestrictionRequest": {
|
2371
2522
|
"document": "DescribeBackupDownloadRestriction请求参数结构体",
|
2372
2523
|
"members": [],
|
@@ -158,6 +158,14 @@
|
|
158
158
|
"title": "请求示例"
|
159
159
|
}
|
160
160
|
],
|
161
|
+
"DescribeBackupDetail": [
|
162
|
+
{
|
163
|
+
"document": "通过该接口查询指定实例备份 ID 的备份信息。",
|
164
|
+
"input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupDetail\n<公共请求参数>\n\n{\n \"InstanceId\": \"crs-g9my5vt7\",\n \"BackupId\": \"154571841-1165701309-438602494\"\n}",
|
165
|
+
"output": "{\n \"Response\": {\n \"BackupId\": \"154571841-1165701309-438602494\",\n \"BackupSize\": 528,\n \"BackupType\": \"0\",\n \"EndTime\": \"2022-12-19 19:42:20\",\n \"InstanceType\": 9,\n \"Locked\": 0,\n \"MemSize\": 2048,\n \"Remark\": \"test005\",\n \"ReplicasNum\": 1,\n \"RequestId\": \"add15b91-8f3c-4ff3-ba52-7c64c9c435ba\",\n \"ShardNum\": 3,\n \"StartTime\": \"2022-12-19 19:41:42\",\n \"Status\": 2\n }\n}",
|
166
|
+
"title": "查询备份信息详情"
|
167
|
+
}
|
168
|
+
],
|
161
169
|
"DescribeBackupDownloadRestriction": [
|
162
170
|
{
|
163
171
|
"document": "通过该接口查询当前地域用户设置的备份文件的下载来源限制。",
|
@@ -479,13 +479,13 @@
|
|
479
479
|
"ModifyProjectLimit": [
|
480
480
|
{
|
481
481
|
"document": "",
|
482
|
-
"input": "POST / HTTP/1.1\nHost: rum.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyProjectLimit\n<公共请求参数>\n\n{\n \"ProjectInterface\": \"
|
482
|
+
"input": "POST / HTTP/1.1\nHost: rum.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyProjectLimit\n<公共请求参数>\n\n{\n \"ProjectInterface\": \"log\",\n \"ProjectID\": 8,\n \"ReportRate\": 10,\n \"ReportType\": 1\n}",
|
483
483
|
"output": "{\n \"Response\": {\n \"Msg\": \"success\",\n \"RequestId\": \"a62c0f90-5ed0-4f3e-b285-8e4885a5ca45\"\n }\n}",
|
484
484
|
"title": "新增抽样"
|
485
485
|
},
|
486
486
|
{
|
487
487
|
"document": "新增修改限流",
|
488
|
-
"input": "https://rum.tencentcloudapi.com/?Action=ModifyProjectLimit\n&ProjectID=1\n&ProjectInterface=
|
488
|
+
"input": "https://rum.tencentcloudapi.com/?Action=ModifyProjectLimit\n&ProjectID=1\n&ProjectInterface=log\n&ReportRate=10\n&ReportType=1\n&ID=1\n&<公共请求参数>",
|
489
489
|
"output": "{\n \"Response\": {\n \"Msg\": \"invalid ModifyProjectLimitRequest.ProjectInterface: value must be in list [log speed performance webvitals pv event custom miniProgramData]\",\n \"RequestId\": \"57e7f631-73d0-4926-b659-d4ef64818312\"\n }\n}",
|
490
490
|
"title": "新增修改限流"
|
491
491
|
}
|
@@ -524,7 +524,7 @@
|
|
524
524
|
"example": "无",
|
525
525
|
"member": "TrafficPackage",
|
526
526
|
"name": "List",
|
527
|
-
"
|
527
|
+
"output_required": true,
|
528
528
|
"type": "list",
|
529
529
|
"value_allowed_null": false
|
530
530
|
},
|
@@ -534,7 +534,7 @@
|
|
534
534
|
"example": "5",
|
535
535
|
"member": "uint64",
|
536
536
|
"name": "TotalCount",
|
537
|
-
"
|
537
|
+
"output_required": true,
|
538
538
|
"type": "int",
|
539
539
|
"value_allowed_null": false
|
540
540
|
},
|