tencentcloud-sdk-nodejs 4.0.671 → 4.0.672
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.
- package/CHANGELOG.md +151 -0
- package/SERVICE_CHANGELOG.md +223 -197
- package/package.json +1 -1
- package/products.md +13 -13
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdb/v20170320/cdb_models.ts +2 -2
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +23 -23
- package/src/services/ess/v20201111/ess_client.ts +1 -1
- package/src/services/ess/v20201111/ess_models.ts +33 -9
- package/src/services/gme/v20180711/gme_models.ts +18 -0
- package/src/services/live/v20180801/live_models.ts +24 -24
- package/src/services/postgres/v20170312/postgres_models.ts +8 -12
- package/src/services/tat/v20201028/tat_client.ts +175 -88
- package/src/services/tat/v20201028/tat_models.ts +580 -208
- package/src/services/tdmq/v20200217/tdmq_models.ts +4 -4
- package/src/services/waf/v20180125/waf_client.ts +326 -33
- package/src/services/waf/v20180125/waf_models.ts +1256 -262
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +2 -2
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +23 -23
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +1 -1
- package/tencentcloud/services/ess/v20201111/ess_client.js +1 -1
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +33 -9
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +18 -0
- package/tencentcloud/services/live/v20180801/live_models.d.ts +24 -24
- package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +8 -12
- package/tencentcloud/services/tat/v20201028/tat_client.d.ts +65 -37
- package/tencentcloud/services/tat/v20201028/tat_client.js +90 -48
- package/tencentcloud/services/tat/v20201028/tat_models.d.ts +551 -196
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +4 -4
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +104 -7
- package/tencentcloud/services/waf/v20180125/waf_client.js +152 -9
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +1169 -233
- package/test/tat.v20201028.test.js +94 -24
- package/test/waf.v20180125.test.js +236 -6
|
@@ -283,22 +283,18 @@ export interface CreateInstancesRequest {
|
|
|
283
283
|
*/
|
|
284
284
|
AdminPassword: string
|
|
285
285
|
/**
|
|
286
|
-
* PostgreSQL
|
|
287
|
-
|
|
288
|
-
该参数和DBVersion、DBKernelVersion需要至少指定一个,如无指定购买内核小版本需求时,只传入该参数即可。
|
|
289
|
-
|
|
286
|
+
* PostgreSQL大版本号(该参数当前必传),版本信息可从[DescribeDBVersions](https://cloud.tencent.com/document/api/409/89018)获取。目前支持10,11,12,13,14,15这几个大版本,详情见[内核版本概述](https://cloud.tencent.com/document/product/409/67018)。
|
|
287
|
+
输入该参数时,会基于此大版本号创建对应的最新小版本的最新内核版本号实例。
|
|
290
288
|
*/
|
|
291
289
|
DBMajorVersion?: string
|
|
292
290
|
/**
|
|
293
|
-
* PostgreSQL
|
|
294
|
-
|
|
295
|
-
该参数和DBMajorVersion、DBKernelVersion需要至少指定一个。
|
|
291
|
+
* PostgreSQL社区大版本+小版本号。
|
|
292
|
+
一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新小版本号。
|
|
296
293
|
*/
|
|
297
294
|
DBVersion?: string
|
|
298
295
|
/**
|
|
299
|
-
* PostgreSQL
|
|
300
|
-
|
|
301
|
-
|
|
296
|
+
* PostgreSQL内核版本号。
|
|
297
|
+
一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新内核版本号。
|
|
302
298
|
*/
|
|
303
299
|
DBKernelVersion?: string
|
|
304
300
|
/**
|
|
@@ -309,11 +305,11 @@ export interface CreateInstancesRequest {
|
|
|
309
305
|
*/
|
|
310
306
|
InstanceChargeType?: string
|
|
311
307
|
/**
|
|
312
|
-
* 私有网络ID,形如vpc-xxxxxxxx
|
|
308
|
+
* 私有网络ID,形如vpc-xxxxxxxx(该参数当前必传)。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。
|
|
313
309
|
*/
|
|
314
310
|
VpcId?: string
|
|
315
311
|
/**
|
|
316
|
-
* 私有网络子网ID,形如subnet-xxxxxxxx
|
|
312
|
+
* 私有网络子网ID,形如subnet-xxxxxxxx(该参数当前必传)。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。
|
|
317
313
|
*/
|
|
318
314
|
SubnetId?: string
|
|
319
315
|
/**
|
|
@@ -19,29 +19,39 @@ import { AbstractClient } from "../../../common/abstract_client"
|
|
|
19
19
|
import { ClientConfig } from "../../../common/interface"
|
|
20
20
|
import {
|
|
21
21
|
ScheduleSettings,
|
|
22
|
-
|
|
22
|
+
CreateRegisterCodeResponse,
|
|
23
23
|
PreviewReplacedCommandContentResponse,
|
|
24
24
|
CreateCommandResponse,
|
|
25
25
|
DisableInvokerRequest,
|
|
26
|
+
RegisterInstanceInfo,
|
|
26
27
|
AutomationAgentInfo,
|
|
28
|
+
DisableRegisterCodesRequest,
|
|
29
|
+
DescribeRegisterInstancesRequest,
|
|
30
|
+
DeleteRegisterCodesRequest,
|
|
31
|
+
Invocation,
|
|
27
32
|
RunCommandRequest,
|
|
28
|
-
|
|
33
|
+
InvokeCommandRequest,
|
|
29
34
|
DescribeInvocationTasksRequest,
|
|
30
|
-
|
|
35
|
+
DeleteRegisterInstanceResponse,
|
|
31
36
|
DescribeRegionsRequest,
|
|
32
37
|
CommandDocument,
|
|
33
38
|
DescribeInvokerRecordsResponse,
|
|
34
39
|
TaskResult,
|
|
35
40
|
ModifyInvokerRequest,
|
|
41
|
+
InvocationTaskBasicInfo,
|
|
36
42
|
EnableInvokerResponse,
|
|
37
43
|
EnableInvokerRequest,
|
|
44
|
+
DefaultParameterConf,
|
|
45
|
+
DescribeRegisterInstancesResponse,
|
|
38
46
|
ModifyCommandResponse,
|
|
39
47
|
RegionInfo,
|
|
40
48
|
DescribeInvokersResponse,
|
|
41
49
|
CancelInvocationResponse,
|
|
50
|
+
DeleteRegisterInstanceRequest,
|
|
42
51
|
DeleteCommandResponse,
|
|
43
52
|
DisableInvokerResponse,
|
|
44
53
|
DescribeCommandsResponse,
|
|
54
|
+
CreateRegisterCodeRequest,
|
|
45
55
|
CreateInvokerRequest,
|
|
46
56
|
DescribeAutomationAgentStatusRequest,
|
|
47
57
|
InvokeCommandResponse,
|
|
@@ -57,18 +67,25 @@ import {
|
|
|
57
67
|
PreviewReplacedCommandContentRequest,
|
|
58
68
|
InvocationTask,
|
|
59
69
|
ModifyInvokerResponse,
|
|
70
|
+
ModifyRegisterInstanceResponse,
|
|
60
71
|
InvokerRecord,
|
|
72
|
+
DescribeRegisterCodesResponse,
|
|
61
73
|
DescribeAutomationAgentStatusResponse,
|
|
62
74
|
CreateInvokerResponse,
|
|
63
75
|
CancelInvocationRequest,
|
|
76
|
+
DescribeRegisterCodesRequest,
|
|
64
77
|
DeleteCommandRequest,
|
|
65
78
|
DeleteInvokerRequest,
|
|
66
|
-
|
|
79
|
+
DeleteRegisterCodesResponse,
|
|
67
80
|
DescribeInvokerRecordsRequest,
|
|
81
|
+
ModifyRegisterInstanceRequest,
|
|
68
82
|
Tag,
|
|
69
83
|
RunCommandResponse,
|
|
84
|
+
DisableRegisterCodesResponse,
|
|
85
|
+
RegisterCodeInfo,
|
|
70
86
|
DescribeRegionsResponse,
|
|
71
87
|
CreateCommandRequest,
|
|
88
|
+
Invoker,
|
|
72
89
|
} from "./tat_models"
|
|
73
90
|
|
|
74
91
|
/**
|
|
@@ -80,6 +97,60 @@ export class Client extends AbstractClient {
|
|
|
80
97
|
super("tat.tencentcloudapi.com", "2020-10-28", clientConfig)
|
|
81
98
|
}
|
|
82
99
|
|
|
100
|
+
/**
|
|
101
|
+
* 取消一台或多台CVM实例执行的命令
|
|
102
|
+
|
|
103
|
+
* 如果命令还未下发到agent,任务状态处于处于PENDING、DELIVERING、DELIVER_DELAYED,取消后任务状态是CANCELLED
|
|
104
|
+
* 如果命令已下发到agent,任务状态处于RUNNING, 取消后任务状态是TERMINATED
|
|
105
|
+
*/
|
|
106
|
+
async CancelInvocation(
|
|
107
|
+
req: CancelInvocationRequest,
|
|
108
|
+
cb?: (error: string, rep: CancelInvocationResponse) => void
|
|
109
|
+
): Promise<CancelInvocationResponse> {
|
|
110
|
+
return this.request("CancelInvocation", req, cb)
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* 接口用于修改托管实例信息。
|
|
115
|
+
*/
|
|
116
|
+
async ModifyRegisterInstance(
|
|
117
|
+
req: ModifyRegisterInstanceRequest,
|
|
118
|
+
cb?: (error: string, rep: ModifyRegisterInstanceResponse) => void
|
|
119
|
+
): Promise<ModifyRegisterInstanceResponse> {
|
|
120
|
+
return this.request("ModifyRegisterInstance", req, cb)
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* 此接口用于创建执行器。
|
|
125
|
+
*/
|
|
126
|
+
async CreateInvoker(
|
|
127
|
+
req: CreateInvokerRequest,
|
|
128
|
+
cb?: (error: string, rep: CreateInvokerResponse) => void
|
|
129
|
+
): Promise<CreateInvokerResponse> {
|
|
130
|
+
return this.request("CreateInvoker", req, cb)
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* 此接口用于删除命令。
|
|
135
|
+
如果命令与执行器关联,则无法被删除。
|
|
136
|
+
*/
|
|
137
|
+
async DeleteCommand(
|
|
138
|
+
req: DeleteCommandRequest,
|
|
139
|
+
cb?: (error: string, rep: DeleteCommandResponse) => void
|
|
140
|
+
): Promise<DeleteCommandResponse> {
|
|
141
|
+
return this.request("DeleteCommand", req, cb)
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* 接口用于创建注册码。
|
|
146
|
+
*/
|
|
147
|
+
async CreateRegisterCode(
|
|
148
|
+
req: CreateRegisterCodeRequest,
|
|
149
|
+
cb?: (error: string, rep: CreateRegisterCodeResponse) => void
|
|
150
|
+
): Promise<CreateRegisterCodeResponse> {
|
|
151
|
+
return this.request("CreateRegisterCode", req, cb)
|
|
152
|
+
}
|
|
153
|
+
|
|
83
154
|
/**
|
|
84
155
|
* 此接口用于启用执行器。
|
|
85
156
|
*/
|
|
@@ -120,19 +191,6 @@ export class Client extends AbstractClient {
|
|
|
120
191
|
return this.request("DescribeInvocations", req, cb)
|
|
121
192
|
}
|
|
122
193
|
|
|
123
|
-
/**
|
|
124
|
-
* 取消一台或多台CVM实例执行的命令
|
|
125
|
-
|
|
126
|
-
* 如果命令还未下发到agent,任务状态处于处于PENDING、DELIVERING、DELIVER_DELAYED,取消后任务状态是CANCELLED
|
|
127
|
-
* 如果命令已下发到agent,任务状态处于RUNNING, 取消后任务状态是TERMINATED
|
|
128
|
-
*/
|
|
129
|
-
async CancelInvocation(
|
|
130
|
-
req: CancelInvocationRequest,
|
|
131
|
-
cb?: (error: string, rep: CancelInvocationResponse) => void
|
|
132
|
-
): Promise<CancelInvocationResponse> {
|
|
133
|
-
return this.request("CancelInvocation", req, cb)
|
|
134
|
-
}
|
|
135
|
-
|
|
136
194
|
/**
|
|
137
195
|
* 此接口用于查询执行任务详情。
|
|
138
196
|
*/
|
|
@@ -144,54 +202,80 @@ export class Client extends AbstractClient {
|
|
|
144
202
|
}
|
|
145
203
|
|
|
146
204
|
/**
|
|
147
|
-
*
|
|
205
|
+
* 此接口用于预览自定义参数替换后的命令内容。不会触发真实执行。
|
|
148
206
|
*/
|
|
149
|
-
async
|
|
150
|
-
req:
|
|
151
|
-
cb?: (error: string, rep:
|
|
152
|
-
): Promise<
|
|
153
|
-
return this.request("
|
|
207
|
+
async PreviewReplacedCommandContent(
|
|
208
|
+
req: PreviewReplacedCommandContentRequest,
|
|
209
|
+
cb?: (error: string, rep: PreviewReplacedCommandContentResponse) => void
|
|
210
|
+
): Promise<PreviewReplacedCommandContentResponse> {
|
|
211
|
+
return this.request("PreviewReplacedCommandContent", req, cb)
|
|
154
212
|
}
|
|
155
213
|
|
|
156
214
|
/**
|
|
157
|
-
*
|
|
215
|
+
* 此接口用于停止执行器。
|
|
158
216
|
*/
|
|
159
|
-
async
|
|
160
|
-
req:
|
|
161
|
-
cb?: (error: string, rep:
|
|
162
|
-
): Promise<
|
|
163
|
-
return this.request("
|
|
217
|
+
async DisableInvoker(
|
|
218
|
+
req: DisableInvokerRequest,
|
|
219
|
+
cb?: (error: string, rep: DisableInvokerResponse) => void
|
|
220
|
+
): Promise<DisableInvokerResponse> {
|
|
221
|
+
return this.request("DisableInvoker", req, cb)
|
|
164
222
|
}
|
|
165
223
|
|
|
166
224
|
/**
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
return this.request("DescribeRegions", req, cb)
|
|
225
|
+
* 接口用于删除托管实例。
|
|
226
|
+
*/
|
|
227
|
+
async DeleteRegisterInstance(
|
|
228
|
+
req: DeleteRegisterInstanceRequest,
|
|
229
|
+
cb?: (error: string, rep: DeleteRegisterInstanceResponse) => void
|
|
230
|
+
): Promise<DeleteRegisterInstanceResponse> {
|
|
231
|
+
return this.request("DeleteRegisterInstance", req, cb)
|
|
175
232
|
}
|
|
176
233
|
|
|
177
234
|
/**
|
|
178
|
-
*
|
|
235
|
+
* 此接口用于修改命令。
|
|
179
236
|
*/
|
|
180
|
-
async
|
|
181
|
-
req:
|
|
182
|
-
cb?: (error: string, rep:
|
|
183
|
-
): Promise<
|
|
184
|
-
return this.request("
|
|
237
|
+
async ModifyCommand(
|
|
238
|
+
req: ModifyCommandRequest,
|
|
239
|
+
cb?: (error: string, rep: ModifyCommandResponse) => void
|
|
240
|
+
): Promise<ModifyCommandResponse> {
|
|
241
|
+
return this.request("ModifyCommand", req, cb)
|
|
185
242
|
}
|
|
186
243
|
|
|
187
244
|
/**
|
|
188
|
-
|
|
245
|
+
* 在指定的实例上触发命令,调用成功返回执行活动ID(inv-xxxxxxxx),每个执行活动内部有一个或多个执行任务(invt-xxxxxxxx),每个执行任务代表命令在一台 CVM 或一台 Lighthouse 上的执行记录。
|
|
246
|
+
|
|
247
|
+
* 如果指定实例未安装 agent,或 agent 不在线,返回失败
|
|
248
|
+
* 如果命令类型与 agent 运行环境不符,返回失败
|
|
249
|
+
* 指定的实例需要处于 VPC 网络
|
|
250
|
+
* 指定的实例需要处于 RUNNING 状态
|
|
251
|
+
* 不可同时指定 CVM 和 Lighthouse
|
|
252
|
+
*/
|
|
253
|
+
async InvokeCommand(
|
|
254
|
+
req: InvokeCommandRequest,
|
|
255
|
+
cb?: (error: string, rep: InvokeCommandResponse) => void
|
|
256
|
+
): Promise<InvokeCommandResponse> {
|
|
257
|
+
return this.request("InvokeCommand", req, cb)
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* 接口用于查询被托管的实例信息。
|
|
189
262
|
*/
|
|
190
|
-
async
|
|
191
|
-
req:
|
|
192
|
-
cb?: (error: string, rep:
|
|
193
|
-
): Promise<
|
|
194
|
-
return this.request("
|
|
263
|
+
async DescribeRegisterInstances(
|
|
264
|
+
req: DescribeRegisterInstancesRequest,
|
|
265
|
+
cb?: (error: string, rep: DescribeRegisterInstancesResponse) => void
|
|
266
|
+
): Promise<DescribeRegisterInstancesResponse> {
|
|
267
|
+
return this.request("DescribeRegisterInstances", req, cb)
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* 此接口用于查询 TAT 产品后台地域列表。
|
|
272
|
+
RegionState 为 AVAILABLE,代表该地域的 TAT 后台服务已经可用;未返回,代表该地域的 TAT 后台服务尚不可用。
|
|
273
|
+
*/
|
|
274
|
+
async DescribeRegions(
|
|
275
|
+
req?: DescribeRegionsRequest,
|
|
276
|
+
cb?: (error: string, rep: DescribeRegionsResponse) => void
|
|
277
|
+
): Promise<DescribeRegionsResponse> {
|
|
278
|
+
return this.request("DescribeRegions", req, cb)
|
|
195
279
|
}
|
|
196
280
|
|
|
197
281
|
/**
|
|
@@ -205,24 +289,23 @@ RegionState 为 AVAILABLE,代表该地域的 TAT 后台服务已经可用;
|
|
|
205
289
|
}
|
|
206
290
|
|
|
207
291
|
/**
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
return this.request("DeleteCommand", req, cb)
|
|
292
|
+
* 此接口用于批量删除注册码。
|
|
293
|
+
*/
|
|
294
|
+
async DeleteRegisterCodes(
|
|
295
|
+
req: DeleteRegisterCodesRequest,
|
|
296
|
+
cb?: (error: string, rep: DeleteRegisterCodesResponse) => void
|
|
297
|
+
): Promise<DeleteRegisterCodesResponse> {
|
|
298
|
+
return this.request("DeleteRegisterCodes", req, cb)
|
|
216
299
|
}
|
|
217
300
|
|
|
218
301
|
/**
|
|
219
|
-
*
|
|
302
|
+
* 接口用于查询注册码信息。
|
|
220
303
|
*/
|
|
221
|
-
async
|
|
222
|
-
req:
|
|
223
|
-
cb?: (error: string, rep:
|
|
224
|
-
): Promise<
|
|
225
|
-
return this.request("
|
|
304
|
+
async DescribeRegisterCodes(
|
|
305
|
+
req: DescribeRegisterCodesRequest,
|
|
306
|
+
cb?: (error: string, rep: DescribeRegisterCodesResponse) => void
|
|
307
|
+
): Promise<DescribeRegisterCodesResponse> {
|
|
308
|
+
return this.request("DescribeRegisterCodes", req, cb)
|
|
226
309
|
}
|
|
227
310
|
|
|
228
311
|
/**
|
|
@@ -236,29 +319,33 @@ RegionState 为 AVAILABLE,代表该地域的 TAT 后台服务已经可用;
|
|
|
236
319
|
}
|
|
237
320
|
|
|
238
321
|
/**
|
|
239
|
-
*
|
|
322
|
+
* 此接口用于批量禁用注册码。
|
|
240
323
|
*/
|
|
241
|
-
async
|
|
242
|
-
req:
|
|
243
|
-
cb?: (error: string, rep:
|
|
244
|
-
): Promise<
|
|
245
|
-
return this.request("
|
|
324
|
+
async DisableRegisterCodes(
|
|
325
|
+
req: DisableRegisterCodesRequest,
|
|
326
|
+
cb?: (error: string, rep: DisableRegisterCodesResponse) => void
|
|
327
|
+
): Promise<DisableRegisterCodesResponse> {
|
|
328
|
+
return this.request("DisableRegisterCodes", req, cb)
|
|
246
329
|
}
|
|
247
330
|
|
|
248
331
|
/**
|
|
249
|
-
|
|
332
|
+
* 此接口用于查询执行器的执行记录。
|
|
333
|
+
*/
|
|
334
|
+
async DescribeInvokerRecords(
|
|
335
|
+
req: DescribeInvokerRecordsRequest,
|
|
336
|
+
cb?: (error: string, rep: DescribeInvokerRecordsResponse) => void
|
|
337
|
+
): Promise<DescribeInvokerRecordsResponse> {
|
|
338
|
+
return this.request("DescribeInvokerRecords", req, cb)
|
|
339
|
+
}
|
|
250
340
|
|
|
251
|
-
|
|
252
|
-
*
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
req
|
|
259
|
-
cb?: (error: string, rep: RunCommandResponse) => void
|
|
260
|
-
): Promise<RunCommandResponse> {
|
|
261
|
-
return this.request("RunCommand", req, cb)
|
|
341
|
+
/**
|
|
342
|
+
* 此接口用于修改执行器。
|
|
343
|
+
*/
|
|
344
|
+
async ModifyInvoker(
|
|
345
|
+
req: ModifyInvokerRequest,
|
|
346
|
+
cb?: (error: string, rep: ModifyInvokerResponse) => void
|
|
347
|
+
): Promise<ModifyInvokerResponse> {
|
|
348
|
+
return this.request("ModifyInvoker", req, cb)
|
|
262
349
|
}
|
|
263
350
|
|
|
264
351
|
/**
|
|
@@ -272,18 +359,18 @@ RegionState 为 AVAILABLE,代表该地域的 TAT 后台服务已经可用;
|
|
|
272
359
|
}
|
|
273
360
|
|
|
274
361
|
/**
|
|
275
|
-
*
|
|
362
|
+
* 执行命令,调用成功返回执行活动ID(inv-xxxxxxxx),每个执行活动内部有一个或多个执行任务(invt-xxxxxxxx),每个执行任务代表命令在一台 CVM 或一台 Lighthouse 上的执行记录。
|
|
276
363
|
|
|
277
364
|
* 如果指定实例未安装 agent,或 agent 不在线,返回失败
|
|
278
365
|
* 如果命令类型与 agent 运行环境不符,返回失败
|
|
279
366
|
* 指定的实例需要处于 VPC 网络
|
|
280
|
-
* 指定的实例需要处于 RUNNING 状态
|
|
367
|
+
* 指定的实例需要处于 `RUNNING` 状态
|
|
281
368
|
* 不可同时指定 CVM 和 Lighthouse
|
|
282
369
|
*/
|
|
283
|
-
async
|
|
284
|
-
req:
|
|
285
|
-
cb?: (error: string, rep:
|
|
286
|
-
): Promise<
|
|
287
|
-
return this.request("
|
|
370
|
+
async RunCommand(
|
|
371
|
+
req: RunCommandRequest,
|
|
372
|
+
cb?: (error: string, rep: RunCommandResponse) => void
|
|
373
|
+
): Promise<RunCommandResponse> {
|
|
374
|
+
return this.request("RunCommand", req, cb)
|
|
288
375
|
}
|
|
289
376
|
}
|