tccli 3.0.1125.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.
@@ -91,7 +91,7 @@
91
91
  "DeleteBidding": [
92
92
  {
93
93
  "document": "删除记录",
94
- "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteBidding\n<公共请求参数>\n\n{}",
94
+ "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteBidding\n<公共请求参数>\n\n{\n \"BusinessID\": \"xxxx\"\n}",
95
95
  "output": "{\n \"Response\": {\n \"RequestId\": \"e5ae6a11-ad75-4196-8176-9d72bc287eda\"\n }\n}",
96
96
  "title": "删除记录"
97
97
  }
@@ -155,48 +155,48 @@
155
155
  "DescribeBiddingAppointDetail": [
156
156
  {
157
157
  "document": "我预定的域名-预约详情",
158
- "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingAppointDetail\n<公共请求参数>\n\n{}",
159
- "output": "{\n \"Response\": {\n \"RequestId\": \"e0d60073-3fbb-4216-ba20-7ccad80d030a\",\n \"Status\": 7\n }\n}",
158
+ "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingAppointDetail\n<公共请求参数>\n\n{\n \"BusinessID\": \"xxxx\"\n}",
159
+ "output": "{\n \"Response\": {\n \"AppointBondPrice\": 70,\n \"AppointEndTime\": \"2023-10-28 09:53:48\",\n \"AppointNum\": 1,\n \"AppointPrice\": 105,\n \"AppointStartTime\": \"2023-10-18 09:53:48\",\n \"DeleteTime\": \"2023-11-28 09:53:48\",\n \"Domain\": \"sasdfzcccc2216.com\",\n \"ExpireTime\": \"2023-09-28 09:53:48\",\n \"RegTime\": \"2022-09-28 09:53:48\",\n \"RequestId\": \"e0d60073-3fbb-4216-ba20-7ccad80d030a\",\n \"Status\": 7\n }\n}",
160
160
  "title": "我预定的域名-预约详情"
161
161
  }
162
162
  ],
163
163
  "DescribeBiddingAppointList": [
164
164
  {
165
165
  "document": "我的预约列表",
166
- "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingAppointList\n<公共请求参数>\n\n{\n \"PageSize\": 20\n}",
167
- "output": "{\n \"Response\": {\n \"RequestId\": \"02f51803-507c-40ad-b26a-9a0178fa7ffc\"\n }\n}",
166
+ "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingAppointList\n<公共请求参数>\n\n{\n \"PageNumber\": 1,\n \"PageSize\": 20\n}",
167
+ "output": "{\n \"Response\": {\n \"AppointList\": [\n {\n \"AppointBondPrice\": 70,\n \"AppointEndTime\": \"2023-10-28T09:53:48+08:00\",\n \"AppointNum\": 1,\n \"AppointPrice\": 105,\n \"BusinessID\": \"xxxx\",\n \"Domain\": \"sasdfzcccc2216.com\",\n \"Status\": 1\n }\n ],\n \"RequestId\": \"02f51803-507c-40ad-b26a-9a0178fa7ffc\",\n \"Total\": 1\n }\n}",
168
168
  "title": "我的预约列表"
169
169
  }
170
170
  ],
171
171
  "DescribeBiddingDetail": [
172
172
  {
173
173
  "document": "我竞价的域名-竞价详情",
174
- "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingDetail\n<公共请求参数>\n\n{}",
175
- "output": "{\n \"Response\": {\n \"RequestId\": \"5fdc5b55-514b-42f8-85a3-e269db61f752\"\n }\n}",
174
+ "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingDetail\n<公共请求参数>\n\n{\n \"BusinessID\": \"xxxx\"\n}",
175
+ "output": "{\n \"Response\": {\n \"BiddingBondPrice\": 80,\n \"BiddingBondRefund\": \"no\",\n \"BiddingEndTime\": \"2023-11-04 09:53:48\",\n \"BiddingFlag\": 1,\n \"BiddingNum\": 1,\n \"BiddingPrice\": 150,\n \"BiddingStartTime\": \"2023-10-28 09:53:48\",\n \"CurrentNickname\": \"feng\",\n \"CurrentPrice\": 120,\n \"DeleteTime\": \"2023-11-28 09:53:48\",\n \"Domain\": \"sasdfzcccc2216.com\",\n \"ExpireTime\": \"2023-09-28 09:53:48\",\n \"RegTime\": \"2022-09-28 09:53:48\",\n \"RequestId\": \"5fdc5b55-514b-42f8-85a3-e269db61f752\",\n \"Status\": 2\n }\n}",
176
176
  "title": "我竞价的域名-竞价详情"
177
177
  }
178
178
  ],
179
179
  "DescribeBiddingList": [
180
180
  {
181
181
  "document": "我的竞价列表",
182
- "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingList\n<公共请求参数>\n\n{\n \"PageSize\": 20\n}",
183
- "output": "{\n \"Response\": {\n \"RequestId\": \"560e00d9-ddf1-4d4b-a3d8-461eb8c8e40c\"\n }\n}",
182
+ "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingList\n<公共请求参数>\n\n{\n \"PageNumber\": 1,\n \"PageSize\": 20\n}",
183
+ "output": "{\n \"Response\": {\n \"BiddingList\": [\n {\n \"BiddingBondPrice\": 0,\n \"BiddingEndTime\": \"2023-11-04 09:53:48\",\n \"BiddingFlag\": 0,\n \"BiddingNum\": 1,\n \"BiddingPrice\": 0,\n \"BusinessID\": \"xxxx\",\n \"CurrentNickname\": \"feng\",\n \"CurrentPrice\": 120,\n \"Domain\": \"sasdfzcccc2216.com\",\n \"Status\": 7\n },\n {\n \"BiddingBondPrice\": 80,\n \"BiddingEndTime\": \"2023-11-04 09:53:48\",\n \"BiddingFlag\": 1,\n \"BiddingNum\": 1,\n \"BiddingPrice\": 150,\n \"BusinessID\": \"xxxx\",\n \"CurrentNickname\": \"feng\",\n \"CurrentPrice\": 120,\n \"Domain\": \"sasdfzcccc2216.com\",\n \"Status\": 2\n }\n ],\n \"RequestId\": \"560e00d9-ddf1-4d4b-a3d8-461eb8c8e40c\",\n \"Total\": 2\n }\n}",
184
184
  "title": "我的竞价列表"
185
185
  }
186
186
  ],
187
187
  "DescribeBiddingSuccessfulDetail": [
188
188
  {
189
189
  "document": "我得标的域名-得标详情",
190
- "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingSuccessfulDetail\n<公共请求参数>\n\n{}",
191
- "output": "{\n \"Response\": {\n \"BiddingBondRefund\": \"no\",\n \"RequestId\": \"7a179528-6d80-495b-8e6c-14b935eccec9\",\n \"Status\": 5\n }\n}",
190
+ "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingSuccessfulDetail\n<公共请求参数>\n\n{\n \"BusinessID\": \"xxxx\"\n}",
191
+ "output": "{\n \"Response\": {\n \"BiddingBondPrice\": 80,\n \"BiddingBondRefund\": \"no\",\n \"DeleteTime\": \"2023-11-28 09:53:48\",\n \"Domain\": \"sasdfzcccc2216.com\",\n \"ExpireTime\": \"2023-09-28 09:53:48\",\n \"PayEndTime\": \"2023-11-07 09:53:48\",\n \"RegTime\": \"2022-09-28 09:53:48\",\n \"RequestId\": \"7a179528-6d80-495b-8e6c-14b935eccec9\",\n \"Status\": 5,\n \"SuccessfulPrice\": 200,\n \"SuccessfulTime\": \"2023-10-25 16:00:00\"\n }\n}",
192
192
  "title": "我得标的域名-得标详情"
193
193
  }
194
194
  ],
195
195
  "DescribeBiddingSuccessfulList": [
196
196
  {
197
197
  "document": "我得标的域名",
198
- "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingSuccessfulList\n<公共请求参数>\n\n{\n \"PageSize\": 10\n}",
199
- "output": "{\n \"Response\": {\n \"RequestId\": \"340187d9-be66-43e7-a837-80049dad20ec\"\n }\n}",
198
+ "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingSuccessfulList\n<公共请求参数>\n\n{\n \"PageNumber\": 1,\n \"PageSize\": 10\n}",
199
+ "output": "{\n \"Response\": {\n \"RequestId\": \"340187d9-be66-43e7-a837-80049dad20ec\",\n \"SuccessfulList\": [\n {}\n ],\n \"Total\": 1\n }\n}",
200
200
  "title": "我得标的域名"
201
201
  }
202
202
  ],
@@ -10082,6 +10082,16 @@
10082
10082
  "type": "int",
10083
10083
  "value_allowed_null": true
10084
10084
  },
10085
+ {
10086
+ "disabled": false,
10087
+ "document": "查询流程状态,流程额外信息\n注意:此字段可能返回 null,表示取不到有效值。",
10088
+ "example": "无",
10089
+ "member": "string",
10090
+ "name": "TraceId",
10091
+ "output_required": false,
10092
+ "type": "string",
10093
+ "value_allowed_null": true
10094
+ },
10085
10095
  {
10086
10096
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
10087
10097
  "member": "string",
@@ -10402,6 +10412,16 @@
10402
10412
  "type": "string",
10403
10413
  "value_allowed_null": true
10404
10414
  },
10415
+ {
10416
+ "disabled": false,
10417
+ "document": "扩容TraceId\n注意:此字段可能返回 null,表示取不到有效值。",
10418
+ "example": "\"\"",
10419
+ "member": "string",
10420
+ "name": "TraceId",
10421
+ "output_required": false,
10422
+ "type": "string",
10423
+ "value_allowed_null": true
10424
+ },
10405
10425
  {
10406
10426
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
10407
10427
  "member": "string",
@@ -6054,7 +6054,7 @@
6054
6054
  "example": "无",
6055
6055
  "member": "BindProductInfo",
6056
6056
  "name": "Products",
6057
- "required": true,
6057
+ "output_required": true,
6058
6058
  "type": "list",
6059
6059
  "value_allowed_null": false
6060
6060
  },
@@ -6064,7 +6064,7 @@
6064
6064
  "example": "1",
6065
6065
  "member": "uint64",
6066
6066
  "name": "Total",
6067
- "required": true,
6067
+ "output_required": true,
6068
6068
  "type": "int",
6069
6069
  "value_allowed_null": false
6070
6070
  },
@@ -12560,40 +12560,40 @@
12560
12560
  {
12561
12561
  "disabled": false,
12562
12562
  "document": "规则名称",
12563
- "example": "",
12563
+ "example": "",
12564
12564
  "member": "string",
12565
12565
  "name": "RuleName",
12566
- "required": true,
12566
+ "output_required": true,
12567
12567
  "type": "string",
12568
12568
  "value_allowed_null": false
12569
12569
  },
12570
12570
  {
12571
12571
  "disabled": false,
12572
12572
  "document": "规则描述",
12573
- "example": "",
12573
+ "example": "",
12574
12574
  "member": "string",
12575
12575
  "name": "Description",
12576
- "required": true,
12576
+ "output_required": true,
12577
12577
  "type": "string",
12578
12578
  "value_allowed_null": false
12579
12579
  },
12580
12580
  {
12581
12581
  "disabled": false,
12582
12582
  "document": "创建时间",
12583
- "example": "",
12583
+ "example": "",
12584
12584
  "member": "int64",
12585
12585
  "name": "CreatedAt",
12586
- "required": true,
12586
+ "output_required": true,
12587
12587
  "type": "int",
12588
12588
  "value_allowed_null": false
12589
12589
  },
12590
12590
  {
12591
12591
  "disabled": false,
12592
12592
  "document": "规则是否禁用",
12593
- "example": "",
12593
+ "example": "",
12594
12594
  "member": "bool",
12595
12595
  "name": "RuleDisabled",
12596
- "required": true,
12596
+ "output_required": true,
12597
12597
  "type": "bool",
12598
12598
  "value_allowed_null": false
12599
12599
  }
@@ -574,7 +574,7 @@
574
574
  {
575
575
  "document": "",
576
576
  "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGatewaySubProducts\n<公共请求参数>\n\n{\n \"GatewayProductId\": \"M5QJPYQ\",\n \"ProjectId\": \"pri_211\",\n \"Limit\": \"10\",\n \"Offset\": \"0\"\n}",
577
- "output": "{\n \"Response\": {\n \"Total\": 1,\n \"Products\": [\n {\n \"DevStatus\": \"xx\",\n \"NetType\": \"xx\",\n \"DataProtocol\": 1,\n \"ProjectId\": \"xx\",\n \"ProductName\": \"xx\",\n \"ProductType\": 0,\n \"CategoryId\": 0,\n \"ProductId\": \"xx\",\n \"ProductOwnerName\": \"\"\n }\n ],\n \"RequestId\": \"xx\"\n }\n}",
577
+ "output": "{\n \"Response\": {\n \"Total\": 1,\n \"Products\": [\n {\n \"DevStatus\": \"1\",\n \"NetType\": \"wifi\",\n \"DataProtocol\": 1,\n \"ProjectId\": \"pro-jed\",\n \"ProductName\": \"名称\",\n \"ProductType\": 0,\n \"CategoryId\": 0,\n \"ProductId\": \"p_34rd\",\n \"ProductOwnerName\": \"\"\n }\n ],\n \"RequestId\": \"ed3-5tgbth565-678g\"\n }\n}",
578
578
  "title": "用于获取网关可绑定或解绑的子产品"
579
579
  }
580
580
  ],
@@ -8535,6 +8535,7 @@
8535
8535
  "example": "[]",
8536
8536
  "member": "GrafanaNotificationChannel",
8537
8537
  "name": "NotificationChannelSet",
8538
+ "output_required": true,
8538
8539
  "type": "list",
8539
8540
  "value_allowed_null": false
8540
8541
  },
@@ -706,7 +706,7 @@
706
706
  {
707
707
  "document": "列出 Grafana 告警通道",
708
708
  "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGrafanaNotificationChannels\n<公共请求参数>\n\n{\n \"InstanceId\": \"grafana-12345678\",\n \"ChannelState\": 0,\n \"Limit\": 0,\n \"Offset\": 0,\n \"ChannelName\": \"test\",\n \"ChannelIDs\": [\n \"nchannel-abcd1234\"\n ]\n}",
709
- "output": "{\n \"Response\": {\n \"NotificationChannelSet\": [\n {\n \"ChannelId\": \"xx\",\n \"ChannelName\": \"xx\",\n \"Receivers\": [\n \"xx\"\n ],\n \"CreatedAt\": \"2020-09-22T00:00:00+00:00\",\n \"UpdatedAt\": \"2020-09-22T00:00:00+00:00\",\n \"OrgId\": \"xx\",\n \"ExtraOrgIds\": [\n \"xx\"\n ],\n \"OrgIds\": [\n \"xx\"\n ],\n \"OrganizationIds\": [\n \"xx\"\n ]\n }\n ],\n \"RequestId\": \"xx\"\n }\n}",
709
+ "output": "{\n \"Response\": {\n \"NotificationChannelSet\": [\n {\n \"ChannelId\": \"abc\",\n \"ChannelName\": \"abc\",\n \"Receivers\": [\n \"abc\"\n ],\n \"CreatedAt\": \"2020-09-22T00:00:00+00:00\",\n \"UpdatedAt\": \"2020-09-22T00:00:00+00:00\",\n \"OrgId\": \"abc\",\n \"ExtraOrgIds\": [\n \"abc\"\n ],\n \"OrgIds\": [\n \"abc\"\n ],\n \"OrganizationIds\": [\n \"abc\"\n ]\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
710
710
  "title": "列出 Grafana 告警通道"
711
711
  }
712
712
  ],
@@ -1311,7 +1311,7 @@
1311
1311
  "UpdateDNSConfig": [
1312
1312
  {
1313
1313
  "document": "更新 Grafana 的 DNS 配置",
1314
- "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateDNSConfig\n<公共请求参数>\n\n{\n \"InstanceId\": \"grafana-12345678\",\n \"NameServers\": [\n \"xx\"\n ]\n}",
1314
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateDNSConfig\n<公共请求参数>\n\n{\n \"InstanceId\": \"grafana-12345678\",\n \"NameServers\": [\n \"1.1.1.1\"\n ]\n}",
1315
1315
  "output": "{\n \"Response\": {\n \"RequestId\": \"fpllngzieyoh54e1244ols7k2hh3gdny\"\n }\n}",
1316
1316
  "title": "更新 Grafana 的 DNS 配置"
1317
1317
  }
@@ -2967,8 +2967,8 @@
2967
2967
  },
2968
2968
  {
2969
2969
  "disabled": false,
2970
- "document": "私有网络ID,形如vpc-xxxxxxxx。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。",
2971
- "example": "vpc-xxxxxxxx",
2970
+ "document": "私有网络ID,形如vpc-e6w23k31。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcs](https://cloud.tencent.com/document/api/215/15778) ,从接口返回中的unVpcId字段获取。",
2971
+ "example": "vpc-e6w23k31",
2972
2972
  "member": "string",
2973
2973
  "name": "VpcId",
2974
2974
  "output_required": true,
@@ -2977,8 +2977,8 @@
2977
2977
  },
2978
2978
  {
2979
2979
  "disabled": false,
2980
- "document": "私有网络子网ID,形如subnet-xxxxxxxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。",
2981
- "example": "subnet-xxxxxxxx",
2980
+ "document": "私有网络子网ID,形如subnet-51lcif9y。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。",
2981
+ "example": "subnet-51lcif9y",
2982
2982
  "member": "string",
2983
2983
  "name": "SubnetId",
2984
2984
  "output_required": true,
@@ -2988,7 +2988,7 @@
2988
2988
  {
2989
2989
  "disabled": false,
2990
2990
  "document": "实例ID。",
2991
- "example": "postgres-xxxxxxxx",
2991
+ "example": "postgres-7lzldndx",
2992
2992
  "member": "string",
2993
2993
  "name": "DBInstanceId",
2994
2994
  "output_required": true,
@@ -2998,7 +2998,7 @@
2998
2998
  {
2999
2999
  "disabled": false,
3000
3000
  "document": "实例名称。",
3001
- "example": "xxxx",
3001
+ "example": "数据库名称",
3002
3002
  "member": "string",
3003
3003
  "name": "DBInstanceName",
3004
3004
  "output_required": true,
@@ -3238,7 +3238,7 @@
3238
3238
  {
3239
3239
  "disabled": false,
3240
3240
  "document": "主实例信息,仅在实例为只读实例时返回。\n注意:此字段可能返回 null,表示取不到有效值。",
3241
- "example": "postgres-xxxxxxxx",
3241
+ "example": "postgres-7lzldndx",
3242
3242
  "member": "string",
3243
3243
  "name": "MasterDBInstanceId",
3244
3244
  "output_required": true,
@@ -4188,7 +4188,7 @@
4188
4188
  {
4189
4189
  "disabled": false,
4190
4190
  "document": "按照一个或者多个过滤条件进行查询,目前支持的过滤条件有:\ndb-instance-id:按照实例ID过滤,类型为string。\ndb-instance-name:按照实例名过滤,类型为string。\ndb-instance-ip:按照实例私有网络IP地址过滤,类型为string。",
4191
- "example": "",
4191
+ "example": "[ { \"Values\": [ \"postgres-2uepfuz1\" ], \"Name\": \"db-instance-id\" } ]",
4192
4192
  "member": "Filter",
4193
4193
  "name": "Filters",
4194
4194
  "required": false,
@@ -4221,10 +4221,10 @@
4221
4221
  {
4222
4222
  "disabled": false,
4223
4223
  "document": "备份统计信息列表。",
4224
- "example": "",
4224
+ "example": "[ { \"AutoBaseBackupCount\": 3, \"AutoBaseBackupSize\": 3535342436352, \"DBInstanceId\": \"postgres-lsw5y0bp\", \"LogBackupCount\": 2, \"LogBackupSize\": 167792640, \"ManualBaseBackupCount\": 1, \"ManualBaseBackupSize\": 1178447478784, \"TotalBackupCount\": 6, \"TotalBackupSize\": 4713957707776 } ]",
4225
4225
  "member": "BackupSummary",
4226
4226
  "name": "BackupSummarySet",
4227
- "required": true,
4227
+ "output_required": true,
4228
4228
  "type": "list",
4229
4229
  "value_allowed_null": false
4230
4230
  },
@@ -4234,7 +4234,7 @@
4234
4234
  "example": "10",
4235
4235
  "member": "uint64",
4236
4236
  "name": "TotalCount",
4237
- "required": true,
4237
+ "output_required": true,
4238
4238
  "type": "int",
4239
4239
  "value_allowed_null": false
4240
4240
  },
@@ -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": "通过该接口查询当前地域用户设置的备份文件的下载来源限制。",