tencentcloud-sdk-nodejs-tcb 4.1.188 → 4.1.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,145 +29,11 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
29
29
|
super("tcb.tencentcloudapi.com", "2018-06-08", clientConfig);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
|
|
34
|
-
2 没有免费包,有付费包,付费返回复用SmsFreeQuota结构,其中只有 TodayUsedQuota 字段有效
|
|
35
|
-
3 都没有返回为空数组
|
|
32
|
+
* 查询开通Mysql结果,`Response.Data.Status = "notexist"` 表示未开通,如果未开通,可以调用 [CreateMySQL](https://cloud.tencent.com/document/api/876/128186) 来开通
|
|
33
|
+
`Response.Data. Status = "success"` 表示开通成功,Mysql开通成功后,可通过接口设置数据库账号相关功能包括但不限于【创建账号、删除账号、查询可授权权限列表、查询账号已有权限、修改主机、修改配置、修改账号库表权限】、集群操作相关【查询集群参数、修改集群参数】,连接设置相关【关闭外网、开通外网、查询集群信息】,备份回档相关【创建手动回档、删除手动回档、修改自动备份配置信息、查询备份文件列表、集群回档、查询任务列表、获取table列表、获取集群数据库列表、查询备份下载地址】,相关功能接口文档:[TDSQL-C MySQL API文档](https://cloud.tencent.com/document/product/1003/48106)
|
|
36
34
|
*/
|
|
37
|
-
async
|
|
38
|
-
return this.request("
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* 修改云开发网关API
|
|
42
|
-
*/
|
|
43
|
-
async ModifyCloudBaseGWAPI(req, cb) {
|
|
44
|
-
return this.request("ModifyCloudBaseGWAPI", req, cb);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* 开通后付费资源
|
|
48
|
-
*/
|
|
49
|
-
async CreatePostpayPackage(req, cb) {
|
|
50
|
-
return this.request("CreatePostpayPackage", req, cb);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* 获取新套餐列表,含详情,如果传了PackageId,则只获取指定套餐详情
|
|
54
|
-
*/
|
|
55
|
-
async DescribeBaasPackageList(req, cb) {
|
|
56
|
-
return this.request("DescribeBaasPackageList", req, cb);
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* 云项目部署列表
|
|
60
|
-
*/
|
|
61
|
-
async DescribeCloudBaseProjectVersionList(req, cb) {
|
|
62
|
-
return this.request("DescribeCloudBaseProjectVersionList", req, cb);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* 获取云开发项目列表
|
|
66
|
-
*/
|
|
67
|
-
async DescribeCloudBaseProjectLatestVersionList(req, cb) {
|
|
68
|
-
return this.request("DescribeCloudBaseProjectLatestVersionList", req, cb);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* 删除tcb用户
|
|
72
|
-
*/
|
|
73
|
-
async DeleteUsers(req, cb) {
|
|
74
|
-
return this.request("DeleteUsers", req, cb);
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* 创建云应用服务
|
|
78
|
-
*/
|
|
79
|
-
async EstablishCloudBaseRunServer(req, cb) {
|
|
80
|
-
return this.request("EstablishCloudBaseRunServer", req, cb);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* 创建云开发项目
|
|
84
|
-
*/
|
|
85
|
-
async CreateAndDeployCloudBaseProject(req, cb) {
|
|
86
|
-
return this.request("CreateAndDeployCloudBaseProject", req, cb);
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* 检查是否开通Tcb服务
|
|
90
|
-
*/
|
|
91
|
-
async CheckTcbService(req, cb) {
|
|
92
|
-
return this.request("CheckTcbService", req, cb);
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* 创建或修改安全网关路由
|
|
96
|
-
*/
|
|
97
|
-
async EstablishWxGatewayRoute(req, cb) {
|
|
98
|
-
return this.request("EstablishWxGatewayRoute", req, cb);
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* 查询用户活动信息
|
|
102
|
-
*/
|
|
103
|
-
async DescribeUserActivityInfo(req, cb) {
|
|
104
|
-
return this.request("DescribeUserActivityInfo", req, cb);
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* 删除云项目
|
|
108
|
-
*/
|
|
109
|
-
async DeleteCloudBaseProjectLatestVersion(req, cb) {
|
|
110
|
-
return this.request("DeleteCloudBaseProjectLatestVersion", req, cb);
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* 获取网关服务
|
|
114
|
-
*/
|
|
115
|
-
async DescribeCloudBaseGWService(req, cb) {
|
|
116
|
-
return this.request("DescribeCloudBaseGWService", req, cb);
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* 批量冻结
|
|
120
|
-
*/
|
|
121
|
-
async FreezeCloudBaseRunServers(req, cb) {
|
|
122
|
-
return this.request("FreezeCloudBaseRunServers", req, cb);
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* 获取云托管代码上传url
|
|
126
|
-
*/
|
|
127
|
-
async DescribeCloudBaseBuildService(req, cb) {
|
|
128
|
-
return this.request("DescribeCloudBaseBuildService", req, cb);
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* 创建云开发网关API
|
|
132
|
-
*/
|
|
133
|
-
async CreateCloudBaseGWAPI(req, cb) {
|
|
134
|
-
return this.request("CreateCloudBaseGWAPI", req, cb);
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* 创建tcb用户
|
|
138
|
-
*/
|
|
139
|
-
async CreateUser(req, cb) {
|
|
140
|
-
return this.request("CreateUser", req, cb);
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* 创建静态托管资源,包括COS和CDN,异步任务创建,查看创建结果需要根据DescribeStaticStore接口来查看
|
|
144
|
-
*/
|
|
145
|
-
async CreateStaticStore(req, cb) {
|
|
146
|
-
return this.request("CreateStaticStore", req, cb);
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* 修改登录配置
|
|
150
|
-
*/
|
|
151
|
-
async EditAuthConfig(req, cb) {
|
|
152
|
-
return this.request("EditAuthConfig", req, cb);
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* 本接口(ListTables)用于查询所有表信息,包括表名、表中数据条数、表中数据量、索引个数及索引的大小等
|
|
156
|
-
*/
|
|
157
|
-
async DescribeTables(req, cb) {
|
|
158
|
-
return this.request("DescribeTables", req, cb);
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* 查询环境1分钱抵扣信息
|
|
162
|
-
*/
|
|
163
|
-
async DescribeSpecialCostItems(req, cb) {
|
|
164
|
-
return this.request("DescribeSpecialCostItems", req, cb);
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* 删除网关某版本
|
|
168
|
-
*/
|
|
169
|
-
async DeleteGatewayVersion(req, cb) {
|
|
170
|
-
return this.request("DeleteGatewayVersion", req, cb);
|
|
35
|
+
async DescribeCreateMySQLResult(req, cb) {
|
|
36
|
+
return this.request("DescribeCreateMySQLResult", req, cb);
|
|
171
37
|
}
|
|
172
38
|
/**
|
|
173
39
|
* 修改日志主题
|
|
@@ -182,17 +48,31 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
182
48
|
return this.request("DescribeUserList", req, cb);
|
|
183
49
|
}
|
|
184
50
|
/**
|
|
185
|
-
*
|
|
51
|
+
* 创建托管域名
|
|
186
52
|
*/
|
|
187
|
-
async
|
|
188
|
-
return this.request("
|
|
53
|
+
async CreateHostingDomain(req, cb) {
|
|
54
|
+
return this.request("CreateHostingDomain", req, cb);
|
|
189
55
|
}
|
|
190
56
|
/**
|
|
191
|
-
|
|
192
|
-
|
|
57
|
+
* 开通Mysql
|
|
58
|
+
|
|
59
|
+
开通后,可通过 [DescribeCreateMySQLResult ](https://cloud.tencent.com/document/api/876/128185) 查询开通结果
|
|
60
|
+
*/
|
|
193
61
|
async CreateMySQL(req, cb) {
|
|
194
62
|
return this.request("CreateMySQL", req, cb);
|
|
195
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* 本接口(CreateTable)用于创建表,支持创建capped类型集合,暂时不支持分片表
|
|
66
|
+
*/
|
|
67
|
+
async CreateTable(req, cb) {
|
|
68
|
+
return this.request("CreateTable", req, cb);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* 修改云开发网关API
|
|
72
|
+
*/
|
|
73
|
+
async ModifyCloudBaseGWAPI(req, cb) {
|
|
74
|
+
return this.request("ModifyCloudBaseGWAPI", req, cb);
|
|
75
|
+
}
|
|
196
76
|
/**
|
|
197
77
|
* 本接口用于购买云开发环境。
|
|
198
78
|
该接口会自动下单并支付,会在腾讯云账户中扣除余额(余额不足会下单失败)。
|
|
@@ -204,10 +84,22 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
204
84
|
return this.request("CreateEnv", req, cb);
|
|
205
85
|
}
|
|
206
86
|
/**
|
|
207
|
-
*
|
|
87
|
+
* 修改数据库权限
|
|
208
88
|
*/
|
|
209
|
-
async
|
|
210
|
-
return this.request("
|
|
89
|
+
async ModifyDatabaseACL(req, cb) {
|
|
90
|
+
return this.request("ModifyDatabaseACL", req, cb);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* 本接口用于执行数据库命令
|
|
94
|
+
*/
|
|
95
|
+
async RunCommands(req, cb) {
|
|
96
|
+
return this.request("RunCommands", req, cb);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* 获取网关API列表
|
|
100
|
+
*/
|
|
101
|
+
async DescribeCloudBaseGWAPI(req, cb) {
|
|
102
|
+
return this.request("DescribeCloudBaseGWAPI", req, cb);
|
|
211
103
|
}
|
|
212
104
|
/**
|
|
213
105
|
* 增加安全域名。
|
|
@@ -221,10 +113,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
221
113
|
return this.request("CreateAuthDomain", req, cb);
|
|
222
114
|
}
|
|
223
115
|
/**
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
116
|
+
* 本接口用于获取当前环境的安全域名列表。
|
|
117
|
+
云开发会校验网页应用请求的来源域名,您需要将来源域名加入到WEB安全域名列表中。
|
|
118
|
+
可以通过接口 [CreateAuthDomain](https://cloud.tencent.com/document/product/876/42764) 增加安全域名。
|
|
119
|
+
*/
|
|
120
|
+
async DescribeAuthDomains(req, cb) {
|
|
121
|
+
return this.request("DescribeAuthDomains", req, cb);
|
|
228
122
|
}
|
|
229
123
|
/**
|
|
230
124
|
* 绑定云开发自定义域名,用于云接入和静态托管
|
|
@@ -233,205 +127,163 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
233
127
|
return this.request("BindCloudBaseAccessDomain", req, cb);
|
|
234
128
|
}
|
|
235
129
|
/**
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
async DescribeCloudBaseRunResource(req, cb) {
|
|
239
|
-
return this.request("DescribeCloudBaseRunResource", req, cb);
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* 查看安全网关路由
|
|
243
|
-
*/
|
|
244
|
-
async DescribeWxGatewayRoutes(req, cb) {
|
|
245
|
-
return this.request("DescribeWxGatewayRoutes", req, cb);
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* 获取环境下单地域
|
|
249
|
-
*/
|
|
250
|
-
async DescribeEnvDealRegion(req, cb) {
|
|
251
|
-
return this.request("DescribeEnvDealRegion", req, cb);
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* 查询网关监控数据
|
|
255
|
-
*/
|
|
256
|
-
async DescribeGatewayCurveData(req, cb) {
|
|
257
|
-
return this.request("DescribeGatewayCurveData", req, cb);
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* 描述扩展上传文件信息
|
|
261
|
-
*/
|
|
262
|
-
async DescribeExtensionUploadInfo(req, cb) {
|
|
263
|
-
return this.request("DescribeExtensionUploadInfo", req, cb);
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* 本接口(ListTables)用于查询所有表信息,包括表名、表中数据条数、表中数据量、索引个数及索引的大小等
|
|
267
|
-
*/
|
|
268
|
-
async ListTables(req, cb) {
|
|
269
|
-
return this.request("ListTables", req, cb);
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* 查询数据库安全规则。
|
|
273
|
-
安全规则,用于控制C端用户的访问权限。详见 [安全规则介绍](https://cloud.tencent.com/document/product/876/123478) 。
|
|
130
|
+
* 设置数据库安全规则。
|
|
131
|
+
安全规则,用于控制C端用户的访问权限。详见 [安全规则介绍 ](https://cloud.tencent.com/document/product/876/123478)。
|
|
274
132
|
*/
|
|
275
|
-
async
|
|
276
|
-
return this.request("
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* 查询Mysql任务状态
|
|
280
|
-
*/
|
|
281
|
-
async DescribeMySQLTaskStatus(req, cb) {
|
|
282
|
-
return this.request("DescribeMySQLTaskStatus", req, cb);
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* 删除服务版本
|
|
286
|
-
*/
|
|
287
|
-
async DeleteCloudBaseRunServerVersion(req, cb) {
|
|
288
|
-
return this.request("DeleteCloudBaseRunServerVersion", req, cb);
|
|
133
|
+
async ModifySafeRule(req, cb) {
|
|
134
|
+
return this.request("ModifySafeRule", req, cb);
|
|
289
135
|
}
|
|
290
136
|
/**
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
return this.request("DescribeExtraPkgBillingInfo", req, cb);
|
|
137
|
+
* 删除合法域名。
|
|
138
|
+
云开发会校验网页应用请求的来源域名,您需要将来源域名加入到WEB安全域名列表中。
|
|
139
|
+
可以通过接口 [DescribeAuthDomains](https://cloud.tencent.com/document/product/876/42151) 获取当前已绑定生效的安全域名。
|
|
140
|
+
|
|
141
|
+
注意⚠️
|
|
142
|
+
安全域名被删除之后,可能会引起跨域问题,请谨慎操作。
|
|
143
|
+
*/
|
|
144
|
+
async DeleteAuthDomain(req, cb) {
|
|
145
|
+
return this.request("DeleteAuthDomain", req, cb);
|
|
301
146
|
}
|
|
302
147
|
/**
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
148
|
+
* 查询Mysql集群信息
|
|
149
|
+
|
|
150
|
+
调用该接口前需要先查询Mysql是否开通,可通过 [DescribeCreateMySQLResult ](https://cloud.tencent.com/document/api/876/128185) 查询,只有已开通的才能查到集群信息
|
|
151
|
+
*/
|
|
152
|
+
async DescribeMySQLClusterDetail(req, cb) {
|
|
153
|
+
return this.request("DescribeMySQLClusterDetail", req, cb);
|
|
307
154
|
}
|
|
308
155
|
/**
|
|
309
|
-
*
|
|
156
|
+
* 获取新套餐列表,含详情,如果传了PackageId,则只获取指定套餐详情
|
|
310
157
|
*/
|
|
311
|
-
async
|
|
312
|
-
return this.request("
|
|
158
|
+
async DescribeBaasPackageList(req, cb) {
|
|
159
|
+
return this.request("DescribeBaasPackageList", req, cb);
|
|
313
160
|
}
|
|
314
161
|
/**
|
|
315
|
-
*
|
|
316
|
-
|
|
317
|
-
2. 续费云开发环境
|
|
318
|
-
3. 变更云开发环境套餐
|
|
319
|
-
4. 购买云开发资源包
|
|
320
|
-
5. 购买云开发大促包
|
|
321
|
-
|
|
322
|
-
该接口支持下单并支付(CreateAndPay=true时),此时会自动在腾讯云账户中扣除余额(余额不足会下单失败)。
|
|
162
|
+
* 本接口用于云开发环境套餐续费。
|
|
163
|
+
该接口会自动下单并支付,会在腾讯云账户中扣除余额(余额不足会下单失败)。
|
|
323
164
|
该接口支持自动扣除代金券(AutoVoucher=true时),符合条件的代金券会被自动扣除。
|
|
324
165
|
*/
|
|
325
|
-
async
|
|
326
|
-
return this.request("
|
|
166
|
+
async RenewEnv(req, cb) {
|
|
167
|
+
return this.request("RenewEnv", req, cb);
|
|
327
168
|
}
|
|
328
169
|
/**
|
|
329
|
-
*
|
|
170
|
+
* 查询静态托管域名任务状态
|
|
330
171
|
*/
|
|
331
|
-
async
|
|
332
|
-
return this.request("
|
|
172
|
+
async DescribeHostingDomainTask(req, cb) {
|
|
173
|
+
return this.request("DescribeHostingDomainTask", req, cb);
|
|
333
174
|
}
|
|
334
175
|
/**
|
|
335
|
-
*
|
|
176
|
+
* 针对已隔离的免费环境,可以通过本接口将其恢复访问。
|
|
336
177
|
*/
|
|
337
|
-
async
|
|
338
|
-
return this.request("
|
|
178
|
+
async ReinstateEnv(req, cb) {
|
|
179
|
+
return this.request("ReinstateEnv", req, cb);
|
|
339
180
|
}
|
|
340
181
|
/**
|
|
341
|
-
*
|
|
182
|
+
* 获取数据库权限
|
|
342
183
|
*/
|
|
343
|
-
async
|
|
344
|
-
return this.request("
|
|
184
|
+
async DescribeDatabaseACL(req, cb) {
|
|
185
|
+
return this.request("DescribeDatabaseACL", req, cb);
|
|
345
186
|
}
|
|
346
187
|
/**
|
|
347
|
-
*
|
|
188
|
+
* 删除tcb用户
|
|
348
189
|
*/
|
|
349
|
-
async
|
|
350
|
-
return this.request("
|
|
190
|
+
async DeleteUsers(req, cb) {
|
|
191
|
+
return this.request("DeleteUsers", req, cb);
|
|
351
192
|
}
|
|
352
193
|
/**
|
|
353
|
-
*
|
|
194
|
+
* 查看当前环境下静态托管资源信息,根据返回结果判断静态资源的状态
|
|
354
195
|
*/
|
|
355
|
-
async
|
|
356
|
-
return this.request("
|
|
196
|
+
async DescribeStaticStore(req, cb) {
|
|
197
|
+
return this.request("DescribeStaticStore", req, cb);
|
|
357
198
|
}
|
|
358
199
|
/**
|
|
359
|
-
*
|
|
200
|
+
* 查询表的相关信息,包括索引等信息
|
|
360
201
|
*/
|
|
361
|
-
async
|
|
362
|
-
return this.request("
|
|
202
|
+
async DescribeTable(req, cb) {
|
|
203
|
+
return this.request("DescribeTable", req, cb);
|
|
363
204
|
}
|
|
364
205
|
/**
|
|
365
|
-
*
|
|
206
|
+
* 本接口(UpdateTable)用于修改表信息,当前可以支持创建和删除索引
|
|
366
207
|
*/
|
|
367
|
-
async
|
|
368
|
-
return this.request("
|
|
208
|
+
async UpdateTable(req, cb) {
|
|
209
|
+
return this.request("UpdateTable", req, cb);
|
|
369
210
|
}
|
|
370
211
|
/**
|
|
371
|
-
*
|
|
212
|
+
* 删除网关API
|
|
372
213
|
*/
|
|
373
|
-
async
|
|
374
|
-
return this.request("
|
|
214
|
+
async DeleteCloudBaseGWAPI(req, cb) {
|
|
215
|
+
return this.request("DeleteCloudBaseGWAPI", req, cb);
|
|
375
216
|
}
|
|
376
217
|
/**
|
|
377
|
-
*
|
|
218
|
+
* 检查是否开通Tcb服务
|
|
378
219
|
*/
|
|
379
|
-
async
|
|
380
|
-
return this.request("
|
|
220
|
+
async CheckTcbService(req, cb) {
|
|
221
|
+
return this.request("CheckTcbService", req, cb);
|
|
381
222
|
}
|
|
382
223
|
/**
|
|
383
|
-
*
|
|
224
|
+
* 本接口(ListTables)用于查询所有表信息,包括表名、表中数据条数、表中数据量、索引个数及索引的大小等
|
|
384
225
|
*/
|
|
385
|
-
async
|
|
386
|
-
return this.request("
|
|
226
|
+
async ListTables(req, cb) {
|
|
227
|
+
return this.request("ListTables", req, cb);
|
|
387
228
|
}
|
|
388
229
|
/**
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
230
|
+
* 查询数据库安全规则。
|
|
231
|
+
安全规则,用于控制C端用户的访问权限。详见 [安全规则介绍](https://cloud.tencent.com/document/product/876/123478) 。
|
|
232
|
+
*/
|
|
233
|
+
async DescribeSafeRule(req, cb) {
|
|
234
|
+
return this.request("DescribeSafeRule", req, cb);
|
|
393
235
|
}
|
|
394
236
|
/**
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
237
|
+
* 本接口用于变更云开发环境套餐。
|
|
238
|
+
该接口会自动下单并支付,会在腾讯云账户中扣除余额(余额不足会下单失败)。
|
|
239
|
+
该接口支持自动扣除代金券(AutoVoucher=true时),符合条件的代金券会被自动扣除。
|
|
240
|
+
*/
|
|
241
|
+
async ModifyEnvPlan(req, cb) {
|
|
242
|
+
return this.request("ModifyEnvPlan", req, cb);
|
|
399
243
|
}
|
|
400
244
|
/**
|
|
401
|
-
*
|
|
245
|
+
* 查询Mysql任务状态
|
|
402
246
|
*/
|
|
403
|
-
async
|
|
404
|
-
return this.request("
|
|
247
|
+
async DescribeMySQLTaskStatus(req, cb) {
|
|
248
|
+
return this.request("DescribeMySQLTaskStatus", req, cb);
|
|
405
249
|
}
|
|
406
250
|
/**
|
|
407
|
-
*
|
|
251
|
+
* 搜索用户调用日志
|
|
408
252
|
*/
|
|
409
|
-
async
|
|
410
|
-
return this.request("
|
|
253
|
+
async SearchClsLog(req, cb) {
|
|
254
|
+
return this.request("SearchClsLog", req, cb);
|
|
411
255
|
}
|
|
412
256
|
/**
|
|
413
|
-
*
|
|
257
|
+
* 查询指定指标的配额使用量
|
|
414
258
|
*/
|
|
415
|
-
async
|
|
416
|
-
return this.request("
|
|
259
|
+
async DescribeQuotaData(req, cb) {
|
|
260
|
+
return this.request("DescribeQuotaData", req, cb);
|
|
417
261
|
}
|
|
418
262
|
/**
|
|
419
|
-
*
|
|
263
|
+
* 修改登录配置
|
|
420
264
|
*/
|
|
421
|
-
async
|
|
422
|
-
return this.request("
|
|
265
|
+
async EditAuthConfig(req, cb) {
|
|
266
|
+
return this.request("EditAuthConfig", req, cb);
|
|
423
267
|
}
|
|
424
268
|
/**
|
|
425
|
-
*
|
|
269
|
+
* 修改tcb用户
|
|
426
270
|
*/
|
|
427
|
-
async
|
|
428
|
-
return this.request("
|
|
271
|
+
async ModifyUser(req, cb) {
|
|
272
|
+
return this.request("ModifyUser", req, cb);
|
|
429
273
|
}
|
|
430
274
|
/**
|
|
431
|
-
*
|
|
275
|
+
* 更新环境信息
|
|
432
276
|
*/
|
|
433
|
-
async
|
|
434
|
-
return this.request("
|
|
277
|
+
async ModifyEnv(req, cb) {
|
|
278
|
+
return this.request("ModifyEnv", req, cb);
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* 执行SQL语句
|
|
282
|
+
|
|
283
|
+
调用该接口前需要先查询Mysql是否开通,可通过 [DescribeCreateMySQLResult ](https://cloud.tencent.com/document/api/876/128185) 查询,只有开通成功才能操作
|
|
284
|
+
*/
|
|
285
|
+
async RunSql(req, cb) {
|
|
286
|
+
return this.request("RunSql", req, cb);
|
|
435
287
|
}
|
|
436
288
|
/**
|
|
437
289
|
* 本接口(DeleteTable)用于删除表,删除表后表中数据将会被删除且无法恢复,请谨慎操作
|
|
@@ -455,206 +307,107 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
455
307
|
return this.request("DestroyEnv", req, cb);
|
|
456
308
|
}
|
|
457
309
|
/**
|
|
458
|
-
*
|
|
459
|
-
*/
|
|
460
|
-
async DestroyMySQL(req, cb) {
|
|
461
|
-
return this.request("DestroyMySQL", req, cb);
|
|
462
|
-
}
|
|
463
|
-
/**
|
|
464
|
-
* 查询环境计费周期。
|
|
465
|
-
云开发环境的资源点都是按月结算的,每个月都有一定的抵扣额度。
|
|
466
|
-
|
|
467
|
-
例如:
|
|
468
|
-
某个环境在 2026-01-05 购买了3个月个人版(到期时间: 2026-04-05),则他可以在以下3个周期内,分别享有40000资源点的额度:
|
|
469
|
-
1. 2026-01-05 ~ 2026-02-05 23:59:59
|
|
470
|
-
2. 2026-02-06 ~ 2026-03-05 23:59:59
|
|
471
|
-
3. 2026-03-06 ~ 2026-04-05 23:59:59
|
|
472
|
-
|
|
473
|
-
本接口,用于获取环境当前属于哪个计费周期内。
|
|
474
|
-
*/
|
|
475
|
-
async DescribeEnvAccountCircle(req, cb) {
|
|
476
|
-
return this.request("DescribeEnvAccountCircle", req, cb);
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
* 查询后付费资源免费量
|
|
480
|
-
*/
|
|
481
|
-
async DescribePostpayFreeQuotas(req, cb) {
|
|
482
|
-
return this.request("DescribePostpayFreeQuotas", req, cb);
|
|
483
|
-
}
|
|
484
|
-
/**
|
|
485
|
-
* 查询开通Mysql结果,Mysql开通成功后,可通过接口设置数据库账号相关功能包括但不限于【创建账号、删除账号、查询可授权权限列表、查询账号已有权限、修改主机、修改配置、修改账号库表权限】、集群操作相关【查询集群参数、修改集群参数】,连接设置相关【关闭外网、开通外网、查询集群信息】,备份回档相关【创建手动回档、删除手动回档、修改自动备份配置信息、查询备份文件列表、集群回档、查询任务列表、获取table列表、获取集群数据库列表、查询备份下载地址】,相关功能接口文档:[TDSQL-C MySQL API文档](https://cloud.tencent.com/document/product/1003/48106)
|
|
486
|
-
*/
|
|
487
|
-
async DescribeCreateMySQLResult(req, cb) {
|
|
488
|
-
return this.request("DescribeCreateMySQLResult", req, cb);
|
|
489
|
-
}
|
|
490
|
-
/**
|
|
491
|
-
* 查询网关版本信息
|
|
492
|
-
暂不鉴权
|
|
493
|
-
*/
|
|
494
|
-
async DescribeGatewayVersions(req, cb) {
|
|
495
|
-
return this.request("DescribeGatewayVersions", req, cb);
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
* 本接口(CreateTable)用于创建表,支持创建capped类型集合,暂时不支持分片表
|
|
499
|
-
*/
|
|
500
|
-
async CreateTable(req, cb) {
|
|
501
|
-
return this.request("CreateTable", req, cb);
|
|
502
|
-
}
|
|
503
|
-
/**
|
|
504
|
-
* 查询服务版本的详情
|
|
505
|
-
*/
|
|
506
|
-
async DescribeCbrServerVersion(req, cb) {
|
|
507
|
-
return this.request("DescribeCbrServerVersion", req, cb);
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* 获取网关API列表
|
|
310
|
+
* 获取网关服务
|
|
511
311
|
*/
|
|
512
|
-
async
|
|
513
|
-
return this.request("
|
|
312
|
+
async DescribeCloudBaseGWService(req, cb) {
|
|
313
|
+
return this.request("DescribeCloudBaseGWService", req, cb);
|
|
514
314
|
}
|
|
515
315
|
/**
|
|
516
|
-
*
|
|
316
|
+
* 获取云托管代码上传url
|
|
517
317
|
*/
|
|
518
|
-
async
|
|
519
|
-
return this.request("
|
|
318
|
+
async DescribeCloudBaseBuildService(req, cb) {
|
|
319
|
+
return this.request("DescribeCloudBaseBuildService", req, cb);
|
|
520
320
|
}
|
|
521
321
|
/**
|
|
522
|
-
*
|
|
322
|
+
* 获取环境列表,含环境下的各个资源信息。尤其是各资源的唯一标识,是请求各资源的关键参数
|
|
523
323
|
*/
|
|
524
|
-
async
|
|
525
|
-
return this.request("
|
|
324
|
+
async DescribeEnvs(req, cb) {
|
|
325
|
+
return this.request("DescribeEnvs", req, cb);
|
|
526
326
|
}
|
|
527
327
|
/**
|
|
528
|
-
*
|
|
529
|
-
|
|
530
|
-
|
|
328
|
+
* 销毁Mysql
|
|
329
|
+
|
|
330
|
+
销毁后可以通过 [DescribeMySQLTaskStatus](https://cloud.tencent.com/document/api/876/128183) 接口查询销毁结果,如果 `Response.Data. Status = FAILED ` 表示销毁失败,可以重新调用销毁接口重试
|
|
531
331
|
*/
|
|
532
|
-
async
|
|
533
|
-
return this.request("
|
|
534
|
-
}
|
|
535
|
-
/**
|
|
536
|
-
* 批量解冻服务
|
|
537
|
-
*/
|
|
538
|
-
async UnfreezeCloudBaseRunServers(req, cb) {
|
|
539
|
-
return this.request("UnfreezeCloudBaseRunServers", req, cb);
|
|
540
|
-
}
|
|
541
|
-
/**
|
|
542
|
-
* 修改数据库权限
|
|
543
|
-
*/
|
|
544
|
-
async ModifyDatabaseACL(req, cb) {
|
|
545
|
-
return this.request("ModifyDatabaseACL", req, cb);
|
|
546
|
-
}
|
|
547
|
-
/**
|
|
548
|
-
* 获取计费相关信息
|
|
549
|
-
*/
|
|
550
|
-
async DescribeBillingInfo(req, cb) {
|
|
551
|
-
return this.request("DescribeBillingInfo", req, cb);
|
|
332
|
+
async DestroyMySQL(req, cb) {
|
|
333
|
+
return this.request("DestroyMySQL", req, cb);
|
|
552
334
|
}
|
|
553
335
|
/**
|
|
554
|
-
*
|
|
555
|
-
|
|
336
|
+
* 创建云开发产品计费订单,用于以下几种场景:
|
|
337
|
+
1. 购买云开发环境
|
|
338
|
+
2. 续费云开发环境
|
|
339
|
+
3. 变更云开发环境套餐
|
|
340
|
+
4. 购买云开发资源包
|
|
341
|
+
5. 购买云开发大促包
|
|
342
|
+
|
|
343
|
+
该接口支持下单并支付(CreateAndPay=true时),此时会自动在腾讯云账户中扣除余额(余额不足会下单失败)。
|
|
556
344
|
该接口支持自动扣除代金券(AutoVoucher=true时),符合条件的代金券会被自动扣除。
|
|
557
345
|
*/
|
|
558
|
-
async
|
|
559
|
-
return this.request("
|
|
346
|
+
async CreateBillDeal(req, cb) {
|
|
347
|
+
return this.request("CreateBillDeal", req, cb);
|
|
560
348
|
}
|
|
561
349
|
/**
|
|
562
|
-
*
|
|
350
|
+
* 销毁静态托管资源,该接口创建异步销毁任务,资源最终状态可从DestroyStaticStore接口查看
|
|
563
351
|
*/
|
|
564
|
-
async
|
|
565
|
-
return this.request("
|
|
352
|
+
async DestroyStaticStore(req, cb) {
|
|
353
|
+
return this.request("DestroyStaticStore", req, cb);
|
|
566
354
|
}
|
|
567
355
|
/**
|
|
568
|
-
*
|
|
356
|
+
* 创建云开发网关API
|
|
569
357
|
*/
|
|
570
|
-
async
|
|
571
|
-
return this.request("
|
|
358
|
+
async CreateCloudBaseGWAPI(req, cb) {
|
|
359
|
+
return this.request("CreateCloudBaseGWAPI", req, cb);
|
|
572
360
|
}
|
|
573
361
|
/**
|
|
574
|
-
*
|
|
362
|
+
* 绑定自定义域名
|
|
575
363
|
*/
|
|
576
|
-
async
|
|
577
|
-
return this.request("
|
|
364
|
+
async BindCloudBaseGWDomain(req, cb) {
|
|
365
|
+
return this.request("BindCloudBaseGWDomain", req, cb);
|
|
578
366
|
}
|
|
579
367
|
/**
|
|
580
|
-
*
|
|
368
|
+
* 创建tcb用户
|
|
581
369
|
*/
|
|
582
|
-
async
|
|
583
|
-
return this.request("
|
|
370
|
+
async CreateUser(req, cb) {
|
|
371
|
+
return this.request("CreateUser", req, cb);
|
|
584
372
|
}
|
|
585
373
|
/**
|
|
586
|
-
*
|
|
374
|
+
* 创建静态托管资源,包括COS和CDN,异步任务创建,查看创建结果需要根据DescribeStaticStore接口来查看
|
|
587
375
|
*/
|
|
588
|
-
async
|
|
589
|
-
return this.request("
|
|
376
|
+
async CreateStaticStore(req, cb) {
|
|
377
|
+
return this.request("CreateStaticStore", req, cb);
|
|
590
378
|
}
|
|
591
379
|
/**
|
|
592
|
-
*
|
|
380
|
+
* 查询环境个数上限
|
|
593
381
|
*/
|
|
594
|
-
async
|
|
595
|
-
return this.request("
|
|
382
|
+
async DescribeEnvLimit(req, cb) {
|
|
383
|
+
return this.request("DescribeEnvLimit", req, cb);
|
|
596
384
|
}
|
|
597
385
|
/**
|
|
598
|
-
*
|
|
386
|
+
* 删除网关域名
|
|
599
387
|
*/
|
|
600
|
-
async
|
|
601
|
-
return this.request("
|
|
388
|
+
async DeleteCloudBaseGWDomain(req, cb) {
|
|
389
|
+
return this.request("DeleteCloudBaseGWDomain", req, cb);
|
|
602
390
|
}
|
|
603
391
|
/**
|
|
604
|
-
*
|
|
605
|
-
|
|
606
|
-
|
|
392
|
+
* 查询环境计费周期。
|
|
393
|
+
云开发环境的资源点都是按月结算的,每个月都有一定的抵扣额度。
|
|
394
|
+
|
|
395
|
+
例如:
|
|
396
|
+
某个环境在 2026-01-05 购买了3个月个人版(到期时间: 2026-04-05),则他可以在以下3个周期内,分别享有40000资源点的额度:
|
|
397
|
+
1. 2026-01-05 ~ 2026-02-05 23:59:59
|
|
398
|
+
2. 2026-02-06 ~ 2026-03-05 23:59:59
|
|
399
|
+
3. 2026-03-06 ~ 2026-04-05 23:59:59
|
|
400
|
+
|
|
401
|
+
本接口,用于获取环境当前属于哪个计费周期内。
|
|
607
402
|
*/
|
|
608
|
-
async
|
|
609
|
-
return this.request("
|
|
610
|
-
}
|
|
611
|
-
/**
|
|
612
|
-
* 查询活动记录信息
|
|
613
|
-
*/
|
|
614
|
-
async DescribeActivityRecord(req, cb) {
|
|
615
|
-
return this.request("DescribeActivityRecord", req, cb);
|
|
616
|
-
}
|
|
617
|
-
/**
|
|
618
|
-
* 搜索用户调用日志
|
|
619
|
-
*/
|
|
620
|
-
async SearchClsLog(req, cb) {
|
|
621
|
-
return this.request("SearchClsLog", req, cb);
|
|
622
|
-
}
|
|
623
|
-
/**
|
|
624
|
-
* 查询指定指标的配额使用量
|
|
625
|
-
*/
|
|
626
|
-
async DescribeQuotaData(req, cb) {
|
|
627
|
-
return this.request("DescribeQuotaData", req, cb);
|
|
628
|
-
}
|
|
629
|
-
/**
|
|
630
|
-
* 修改tcb用户
|
|
631
|
-
*/
|
|
632
|
-
async ModifyUser(req, cb) {
|
|
633
|
-
return this.request("ModifyUser", req, cb);
|
|
634
|
-
}
|
|
635
|
-
/**
|
|
636
|
-
* 更新环境信息
|
|
637
|
-
*/
|
|
638
|
-
async ModifyEnv(req, cb) {
|
|
639
|
-
return this.request("ModifyEnv", req, cb);
|
|
640
|
-
}
|
|
641
|
-
/**
|
|
642
|
-
* 修改服务版本的副本数,环境变量
|
|
643
|
-
*/
|
|
644
|
-
async ModifyCloudBaseRunServerVersion(req, cb) {
|
|
645
|
-
return this.request("ModifyCloudBaseRunServerVersion", req, cb);
|
|
646
|
-
}
|
|
647
|
-
/**
|
|
648
|
-
* 查询服务版本详情(新)
|
|
649
|
-
*/
|
|
650
|
-
async DescribeCloudBaseRunVersion(req, cb) {
|
|
651
|
-
return this.request("DescribeCloudBaseRunVersion", req, cb);
|
|
403
|
+
async DescribeEnvAccountCircle(req, cb) {
|
|
404
|
+
return this.request("DescribeEnvAccountCircle", req, cb);
|
|
652
405
|
}
|
|
653
406
|
/**
|
|
654
|
-
*
|
|
407
|
+
* 本接口(ListTables)用于查询所有表信息,包括表名、表中数据条数、表中数据量、索引个数及索引的大小等
|
|
655
408
|
*/
|
|
656
|
-
async
|
|
657
|
-
return this.request("
|
|
409
|
+
async DescribeTables(req, cb) {
|
|
410
|
+
return this.request("DescribeTables", req, cb);
|
|
658
411
|
}
|
|
659
412
|
}
|
|
660
413
|
exports.Client = Client;
|