tencentcloud-sdk-nodejs 4.0.375 → 4.0.376
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 +340 -0
- package/SERVICE_CHANGELOG.md +521 -95
- package/package.json +1 -1
- package/products.md +15 -15
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cat/v20180409/cat_client.ts +1 -1
- package/src/services/cat/v20180409/cat_models.ts +17 -10
- package/src/services/cdb/v20170320/cdb_client.ts +21 -9
- package/src/services/cdb/v20170320/cdb_models.ts +95 -42
- package/src/services/ckafka/v20190819/ckafka_client.ts +1 -1
- package/src/services/ckafka/v20190819/ckafka_models.ts +17 -1
- package/src/services/cpdp/v20190820/cpdp_client.ts +80 -29
- package/src/services/cpdp/v20190820/cpdp_models.ts +325 -33
- package/src/services/cvm/v20170312/cvm_client.ts +721 -661
- package/src/services/cvm/v20170312/cvm_models.ts +220 -65
- package/src/services/dcdb/v20180411/dcdb_models.ts +15 -0
- package/src/services/dlc/v20210125/dlc_models.ts +5 -0
- package/src/services/es/v20180416/es_models.ts +12 -0
- package/src/services/ess/v20201111/ess_client.ts +36 -16
- package/src/services/ess/v20201111/ess_models.ts +9 -12
- package/src/services/ie/v20200304/ie_client.ts +5 -0
- package/src/services/ie/v20200304/ie_models.ts +260 -14
- package/src/services/mariadb/v20170312/mariadb_models.ts +15 -0
- package/src/services/tdcpg/v20211118/tdcpg_models.ts +42 -6
- package/src/services/teo/v20220106/teo_client.ts +7 -2
- package/src/services/teo/v20220106/teo_models.ts +236 -93
- package/src/services/vpc/v20170312/vpc_client.ts +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cat/v20180409/cat_client.d.ts +1 -1
- package/tencentcloud/services/cat/v20180409/cat_client.js +1 -1
- package/tencentcloud/services/cat/v20180409/cat_models.d.ts +14 -7
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +7 -3
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +9 -3
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +82 -34
- package/tencentcloud/services/ckafka/v20190819/ckafka_client.d.ts +1 -1
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +15 -1
- package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +26 -10
- package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +37 -13
- package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +278 -29
- package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +335 -315
- package/tencentcloud/services/cvm/v20170312/cvm_client.js +430 -400
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +191 -57
- package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +12 -0
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +4 -0
- package/tencentcloud/services/es/v20180416/es_models.d.ts +10 -0
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +21 -1
- package/tencentcloud/services/ess/v20201111/ess_client.js +21 -1
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +8 -11
- package/tencentcloud/services/ie/v20200304/ie_models.d.ts +222 -13
- package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +12 -0
- package/tencentcloud/services/tdcpg/v20211118/tdcpg_models.d.ts +35 -5
- package/tencentcloud/services/teo/v20220106/teo_models.d.ts +205 -82
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +1 -1
- package/test/cdb.v20170320.test.js +12 -2
- package/test/cpdp.v20190820.test.js +48 -8
- package/test/cvm.v20170312.test.js +206 -156
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
RenewInstancesRequest,
|
|
26
26
|
DescribeImageQuotaResponse,
|
|
27
27
|
ModifyInstancesProjectRequest,
|
|
28
|
+
ConfigureChcDeployVpcResponse,
|
|
28
29
|
ResetInstancesTypeResponse,
|
|
29
30
|
HostResource,
|
|
30
31
|
DeleteDisasterRecoverGroupsRequest,
|
|
@@ -33,6 +34,7 @@ import {
|
|
|
33
34
|
ModifyInstancesChargeTypeResponse,
|
|
34
35
|
AccountQuota,
|
|
35
36
|
InquiryPriceResetInstancesInternetMaxBandwidthResponse,
|
|
37
|
+
DescribeZonesRequest,
|
|
36
38
|
InternetBandwidthConfig,
|
|
37
39
|
ModifyKeyPairAttributeRequest,
|
|
38
40
|
AssociateSecurityGroupsRequest,
|
|
@@ -66,6 +68,7 @@ import {
|
|
|
66
68
|
InquiryPriceModifyInstancesChargeTypeResponse,
|
|
67
69
|
DescribeKeyPairsResponse,
|
|
68
70
|
ResetInstancesPasswordRequest,
|
|
71
|
+
RemoveChcAssistVpcResponse,
|
|
69
72
|
InternetChargeTypeConfig,
|
|
70
73
|
DescribeImagesResponse,
|
|
71
74
|
ModifyInstancesVpcAttributeResponse,
|
|
@@ -88,7 +91,8 @@ import {
|
|
|
88
91
|
DescribeZoneInstanceConfigInfosResponse,
|
|
89
92
|
ModifyInstancesAttributeRequest,
|
|
90
93
|
RenewHostsRequest,
|
|
91
|
-
|
|
94
|
+
CreateDisasterRecoverGroupResponse,
|
|
95
|
+
RemoveChcAssistVpcRequest,
|
|
92
96
|
StartInstancesRequest,
|
|
93
97
|
Tag,
|
|
94
98
|
ProgramFpgaImageResponse,
|
|
@@ -103,6 +107,7 @@ import {
|
|
|
103
107
|
DescribeImageQuotaRequest,
|
|
104
108
|
SpotPaidQuota,
|
|
105
109
|
ResetInstancesInternetMaxBandwidthResponse,
|
|
110
|
+
ConfigureChcDeployVpcRequest,
|
|
106
111
|
DescribeInstanceFamilyConfigsResponse,
|
|
107
112
|
CreateImageResponse,
|
|
108
113
|
DescribeInstancesModificationRequest,
|
|
@@ -121,7 +126,7 @@ import {
|
|
|
121
126
|
DescribeImportImageOsResponse,
|
|
122
127
|
InquirePricePurchaseReservedInstancesOfferingRequest,
|
|
123
128
|
PrePaidQuota,
|
|
124
|
-
|
|
129
|
+
DescribeReservedInstancesOfferingsResponse,
|
|
125
130
|
DescribeKeyPairsRequest,
|
|
126
131
|
OperationCountLimit,
|
|
127
132
|
ReservedInstanceConfigInfoItem,
|
|
@@ -149,9 +154,11 @@ import {
|
|
|
149
154
|
DescribeLaunchTemplatesRequest,
|
|
150
155
|
ResetInstancesInternetMaxBandwidthRequest,
|
|
151
156
|
InstanceFamilyConfig,
|
|
157
|
+
RemoveChcDeployVpcResponse,
|
|
152
158
|
AssociateSecurityGroupsResponse,
|
|
153
159
|
ImportImageRequest,
|
|
154
160
|
SpotMarketOptions,
|
|
161
|
+
ConfigureChcAssistVpcRequest,
|
|
155
162
|
DescribeImportImageOsRequest,
|
|
156
163
|
CreateLaunchTemplateResponse,
|
|
157
164
|
CreateKeyPairRequest,
|
|
@@ -166,6 +173,7 @@ import {
|
|
|
166
173
|
LaunchTemplateInfo,
|
|
167
174
|
InquiryPriceResetInstancesInternetMaxBandwidthRequest,
|
|
168
175
|
ModifyHostsAttributeResponse,
|
|
176
|
+
ModifyChcAttributeResponse,
|
|
169
177
|
DescribeDisasterRecoverGroupQuotaRequest,
|
|
170
178
|
StartInstancesResponse,
|
|
171
179
|
ModifyInstancesVpcAttributeRequest,
|
|
@@ -181,10 +189,12 @@ import {
|
|
|
181
189
|
ImageOsList,
|
|
182
190
|
ReservedInstanceTypeItem,
|
|
183
191
|
ExportImagesResponse,
|
|
192
|
+
RemoveChcDeployVpcRequest,
|
|
184
193
|
InquiryPriceRunInstancesResponse,
|
|
185
194
|
TagSpecification,
|
|
186
195
|
DescribeHostsRequest,
|
|
187
196
|
DescribeAccountQuotaRequest,
|
|
197
|
+
ModifyChcAttributeRequest,
|
|
188
198
|
ModifyInstancesRenewFlagResponse,
|
|
189
199
|
DescribeInstancesStatusRequest,
|
|
190
200
|
InquiryPriceResizeInstanceDisksResponse,
|
|
@@ -195,9 +205,9 @@ import {
|
|
|
195
205
|
ImportImageResponse,
|
|
196
206
|
ModifyDisasterRecoverGroupAttributeRequest,
|
|
197
207
|
ReservedInstancePriceItem,
|
|
198
|
-
|
|
208
|
+
ConfigureChcAssistVpcResponse,
|
|
199
209
|
RebootInstancesResponse,
|
|
200
|
-
|
|
210
|
+
DescribeChcHostsRequest,
|
|
201
211
|
ModifyInstanceDiskTypeRequest,
|
|
202
212
|
InquiryPriceResetInstancesTypeResponse,
|
|
203
213
|
ReservedInstancesOffering,
|
|
@@ -221,7 +231,7 @@ import {
|
|
|
221
231
|
ModifyHostsAttributeRequest,
|
|
222
232
|
ImportKeyPairRequest,
|
|
223
233
|
KeyPair,
|
|
224
|
-
|
|
234
|
+
DescribeInstancesModificationResponse,
|
|
225
235
|
RenewInstancesResponse,
|
|
226
236
|
DescribeLaunchTemplateVersionsResponse,
|
|
227
237
|
DescribeAccountQuotaResponse,
|
|
@@ -257,68 +267,89 @@ export class Client extends AbstractClient {
|
|
|
257
267
|
}
|
|
258
268
|
|
|
259
269
|
/**
|
|
260
|
-
* 本接口(
|
|
270
|
+
* 本接口(InquiryPriceRunInstances)用于创建实例询价。本接口仅允许针对购买限制范围内的实例配置进行询价, 详见:[创建实例](https://cloud.tencent.com/document/api/213/15730)。
|
|
261
271
|
*/
|
|
262
|
-
async
|
|
263
|
-
req
|
|
264
|
-
cb?: (error: string, rep:
|
|
265
|
-
): Promise<
|
|
266
|
-
return this.request("
|
|
272
|
+
async InquiryPriceRunInstances(
|
|
273
|
+
req: InquiryPriceRunInstancesRequest,
|
|
274
|
+
cb?: (error: string, rep: InquiryPriceRunInstancesResponse) => void
|
|
275
|
+
): Promise<InquiryPriceRunInstancesResponse> {
|
|
276
|
+
return this.request("InquiryPriceRunInstances", req, cb)
|
|
267
277
|
}
|
|
268
278
|
|
|
269
279
|
/**
|
|
270
|
-
* 本接口 (
|
|
280
|
+
* 本接口 (ModifyInstancesAttribute) 用于修改实例的属性(目前只支持修改实例的名称和关联的安全组)。
|
|
271
281
|
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
* 支持强制关闭。强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
|
|
282
|
+
* 每次请求必须指定实例的一种属性用于修改。
|
|
283
|
+
* “实例名称”仅为方便用户自己管理之用,腾讯云并不以此名称作为在线支持或是进行实例管理操作的依据。
|
|
275
284
|
* 支持批量操作。每次请求批量实例的上限为100。
|
|
276
|
-
*
|
|
285
|
+
* 修改关联安全组时,子机原来关联的安全组会被解绑。
|
|
286
|
+
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
277
287
|
*/
|
|
278
|
-
async
|
|
279
|
-
req:
|
|
280
|
-
cb?: (error: string, rep:
|
|
281
|
-
): Promise<
|
|
282
|
-
return this.request("
|
|
288
|
+
async ModifyInstancesAttribute(
|
|
289
|
+
req: ModifyInstancesAttributeRequest,
|
|
290
|
+
cb?: (error: string, rep: ModifyInstancesAttributeResponse) => void
|
|
291
|
+
): Promise<ModifyInstancesAttributeResponse> {
|
|
292
|
+
return this.request("ModifyInstancesAttribute", req, cb)
|
|
283
293
|
}
|
|
284
294
|
|
|
285
295
|
/**
|
|
286
|
-
* 本接口 (
|
|
296
|
+
* 本接口 (InquiryPriceResetInstancesInternetMaxBandwidth) 用于调整实例公网带宽上限询价。
|
|
287
297
|
|
|
288
|
-
*
|
|
289
|
-
*
|
|
298
|
+
* 不同机型带宽上限范围不一致,具体限制详见[公网带宽上限](https://cloud.tencent.com/document/product/213/12523)。
|
|
299
|
+
* 对于`BANDWIDTH_PREPAID`计费方式的带宽,目前不支持调小带宽,且需要输入参数`StartTime`和`EndTime`,指定调整后的带宽的生效时间段。在这种场景下会涉及扣费,请确保账户余额充足。可通过[`DescribeAccountBalance`](https://cloud.tencent.com/document/product/555/20253)接口查询账户余额。
|
|
300
|
+
* 对于 `TRAFFIC_POSTPAID_BY_HOUR`、 `BANDWIDTH_POSTPAID_BY_HOUR` 和 `BANDWIDTH_PACKAGE` 计费方式的带宽,使用该接口调整带宽上限是实时生效的,可以在带宽允许的范围内调大或者调小带宽,不支持输入参数 `StartTime` 和 `EndTime` 。
|
|
301
|
+
* 接口不支持调整`BANDWIDTH_POSTPAID_BY_MONTH`计费方式的带宽。
|
|
302
|
+
* 接口不支持批量调整 `BANDWIDTH_PREPAID` 和 `BANDWIDTH_POSTPAID_BY_HOUR` 计费方式的带宽。
|
|
303
|
+
* 接口不支持批量调整混合计费方式的带宽。例如不支持同时调整`TRAFFIC_POSTPAID_BY_HOUR`和`BANDWIDTH_PACKAGE`计费方式的带宽。
|
|
290
304
|
*/
|
|
291
|
-
async
|
|
292
|
-
req:
|
|
293
|
-
cb?: (error: string, rep:
|
|
294
|
-
): Promise<
|
|
295
|
-
return this.request("
|
|
305
|
+
async InquiryPriceResetInstancesInternetMaxBandwidth(
|
|
306
|
+
req: InquiryPriceResetInstancesInternetMaxBandwidthRequest,
|
|
307
|
+
cb?: (error: string, rep: InquiryPriceResetInstancesInternetMaxBandwidthResponse) => void
|
|
308
|
+
): Promise<InquiryPriceResetInstancesInternetMaxBandwidthResponse> {
|
|
309
|
+
return this.request("InquiryPriceResetInstancesInternetMaxBandwidth", req, cb)
|
|
296
310
|
}
|
|
297
311
|
|
|
298
312
|
/**
|
|
299
|
-
*
|
|
313
|
+
* 本接口 (DeleteKeyPairs) 用于删除已在腾讯云托管的密钥对。
|
|
300
314
|
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
|
|
304
|
-
|
|
315
|
+
* 可以同时删除多个密钥对。
|
|
316
|
+
* 不能删除已被实例或镜像引用的密钥对,所以需要独立判断是否所有密钥对都被成功删除。
|
|
317
|
+
*/
|
|
318
|
+
async DeleteKeyPairs(
|
|
319
|
+
req: DeleteKeyPairsRequest,
|
|
320
|
+
cb?: (error: string, rep: DeleteKeyPairsResponse) => void
|
|
321
|
+
): Promise<DeleteKeyPairsResponse> {
|
|
322
|
+
return this.request("DeleteKeyPairs", req, cb)
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* 本接口 (ImportKeyPair) 用于导入密钥对。
|
|
305
327
|
|
|
328
|
+
* 本接口的功能是将密钥对导入到用户账户,并不会自动绑定到实例。如需绑定可以使用[AssociasteInstancesKeyPair](https://cloud.tencent.com/document/api/213/9404)接口。
|
|
329
|
+
* 需指定密钥对名称以及该密钥对的公钥文本。
|
|
330
|
+
* 如果用户只有私钥,可以通过 `SSL` 工具将私钥转换成公钥后再导入。
|
|
306
331
|
*/
|
|
307
|
-
async
|
|
308
|
-
req:
|
|
309
|
-
cb?: (error: string, rep:
|
|
310
|
-
): Promise<
|
|
311
|
-
return this.request("
|
|
332
|
+
async ImportKeyPair(
|
|
333
|
+
req: ImportKeyPairRequest,
|
|
334
|
+
cb?: (error: string, rep: ImportKeyPairResponse) => void
|
|
335
|
+
): Promise<ImportKeyPairResponse> {
|
|
336
|
+
return this.request("ImportKeyPair", req, cb)
|
|
312
337
|
}
|
|
313
338
|
|
|
314
339
|
/**
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
340
|
+
* 本接口 (RunInstances) 用于创建一个或多个指定配置的实例。
|
|
341
|
+
|
|
342
|
+
* 实例创建成功后将自动开机启动,[实例状态](https://cloud.tencent.com/document/product/213/15753#InstanceStatus)变为“运行中”。
|
|
343
|
+
* 预付费实例的购买会预先扣除本次实例购买所需金额,按小时后付费实例购买会预先冻结本次实例购买一小时内所需金额,在调用本接口前请确保账户余额充足。
|
|
344
|
+
* 调用本接口创建实例,支持代金券自动抵扣(注意,代金券不可用于抵扣后付费冻结金额),详情请参考[代金券选用规则](https://cloud.tencent.com/document/product/555/7428)。
|
|
345
|
+
* 本接口允许购买的实例数量遵循[CVM实例购买限制](https://cloud.tencent.com/document/product/213/2664),所创建的实例和官网入口创建的实例共用配额。
|
|
346
|
+
* 本接口为异步接口,当创建实例请求下发成功后会返回一个实例`ID`列表和一个`RequestId`,此时创建实例操作并未立即完成。在此期间实例的状态将会处于“PENDING”,实例创建结果可以通过调用 [DescribeInstancesStatus](https://cloud.tencent.com/document/product/213/15738) 接口查询,如果实例状态(InstanceState)由“PENDING”变为“RUNNING”,则代表实例创建成功,“LAUNCH_FAILED”代表实例创建失败。
|
|
347
|
+
*/
|
|
348
|
+
async RunInstances(
|
|
349
|
+
req: RunInstancesRequest,
|
|
350
|
+
cb?: (error: string, rep: RunInstancesResponse) => void
|
|
351
|
+
): Promise<RunInstancesResponse> {
|
|
352
|
+
return this.request("RunInstances", req, cb)
|
|
322
353
|
}
|
|
323
354
|
|
|
324
355
|
/**
|
|
@@ -332,235 +363,196 @@ export class Client extends AbstractClient {
|
|
|
332
363
|
}
|
|
333
364
|
|
|
334
365
|
/**
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
|
|
340
|
-
async
|
|
341
|
-
req:
|
|
342
|
-
cb?: (error: string, rep:
|
|
343
|
-
): Promise<
|
|
344
|
-
return this.request("
|
|
366
|
+
* 本接口(ModifyInstancesVpcAttribute)用于修改实例vpc属性,如私有网络ip。
|
|
367
|
+
* 此操作默认会关闭实例,完成后再启动。
|
|
368
|
+
* 当指定私有网络ID和子网ID(子网必须在实例所在的可用区)与指定实例所在私有网络不一致时,会将实例迁移至指定的私有网络的子网下。执行此操作前请确保指定的实例上没有绑定[弹性网卡](https://cloud.tencent.com/document/product/576)和[负载均衡](https://cloud.tencent.com/document/product/214)。
|
|
369
|
+
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
370
|
+
*/
|
|
371
|
+
async ModifyInstancesVpcAttribute(
|
|
372
|
+
req: ModifyInstancesVpcAttributeRequest,
|
|
373
|
+
cb?: (error: string, rep: ModifyInstancesVpcAttributeResponse) => void
|
|
374
|
+
): Promise<ModifyInstancesVpcAttributeResponse> {
|
|
375
|
+
return this.request("ModifyInstancesVpcAttribute", req, cb)
|
|
345
376
|
}
|
|
346
377
|
|
|
347
378
|
/**
|
|
348
|
-
* 本接口 (
|
|
379
|
+
* 本接口 (DescribeDisasterRecoverGroupQuota)用于查询[分散置放群组](https://cloud.tencent.com/document/product/213/15486)配额。
|
|
349
380
|
*/
|
|
350
|
-
async
|
|
351
|
-
req
|
|
352
|
-
cb?: (error: string, rep:
|
|
353
|
-
): Promise<
|
|
354
|
-
return this.request("
|
|
381
|
+
async DescribeDisasterRecoverGroupQuota(
|
|
382
|
+
req?: DescribeDisasterRecoverGroupQuotaRequest,
|
|
383
|
+
cb?: (error: string, rep: DescribeDisasterRecoverGroupQuotaResponse) => void
|
|
384
|
+
): Promise<DescribeDisasterRecoverGroupQuotaResponse> {
|
|
385
|
+
return this.request("DescribeDisasterRecoverGroupQuota", req, cb)
|
|
355
386
|
}
|
|
356
387
|
|
|
357
388
|
/**
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
req
|
|
365
|
-
cb?: (error: string, rep: DescribeImagesResponse) => void
|
|
366
|
-
): Promise<DescribeImagesResponse> {
|
|
367
|
-
return this.request("DescribeImages", req, cb)
|
|
389
|
+
* 本接口(DescribeReservedInstances)可提供列出用户已购买的预留实例
|
|
390
|
+
*/
|
|
391
|
+
async DescribeReservedInstances(
|
|
392
|
+
req: DescribeReservedInstancesRequest,
|
|
393
|
+
cb?: (error: string, rep: DescribeReservedInstancesResponse) => void
|
|
394
|
+
): Promise<DescribeReservedInstancesResponse> {
|
|
395
|
+
return this.request("DescribeReservedInstances", req, cb)
|
|
368
396
|
}
|
|
369
397
|
|
|
370
398
|
/**
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
req: ModifyKeyPairAttributeRequest,
|
|
379
|
-
cb?: (error: string, rep: ModifyKeyPairAttributeResponse) => void
|
|
380
|
-
): Promise<ModifyKeyPairAttributeResponse> {
|
|
381
|
-
return this.request("ModifyKeyPairAttribute", req, cb)
|
|
399
|
+
* 本接口(CreateImage)用于将实例的系统盘制作为新镜像,创建后的镜像可以用于创建实例。
|
|
400
|
+
*/
|
|
401
|
+
async CreateImage(
|
|
402
|
+
req: CreateImageRequest,
|
|
403
|
+
cb?: (error: string, rep: CreateImageResponse) => void
|
|
404
|
+
): Promise<CreateImageResponse> {
|
|
405
|
+
return this.request("CreateImage", req, cb)
|
|
382
406
|
}
|
|
383
407
|
|
|
384
408
|
/**
|
|
385
|
-
*
|
|
409
|
+
* 配置CHC物理服务器的带外和部署网络。传入带外网络和部署网络信息
|
|
386
410
|
*/
|
|
387
|
-
async
|
|
388
|
-
req:
|
|
389
|
-
cb?: (error: string, rep:
|
|
390
|
-
): Promise<
|
|
391
|
-
return this.request("
|
|
411
|
+
async ConfigureChcAssistVpc(
|
|
412
|
+
req: ConfigureChcAssistVpcRequest,
|
|
413
|
+
cb?: (error: string, rep: ConfigureChcAssistVpcResponse) => void
|
|
414
|
+
): Promise<ConfigureChcAssistVpcResponse> {
|
|
415
|
+
return this.request("ConfigureChcAssistVpc", req, cb)
|
|
392
416
|
}
|
|
393
417
|
|
|
394
418
|
/**
|
|
395
|
-
* 本接口 (
|
|
419
|
+
* 本接口 (ResetInstancesType) 用于调整实例的机型。
|
|
396
420
|
|
|
397
|
-
*
|
|
398
|
-
*
|
|
399
|
-
*
|
|
400
|
-
* 修改关联安全组时,子机原来关联的安全组会被解绑。
|
|
401
|
-
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
421
|
+
* 目前只支持[系统盘类型](/document/api/213/9452#block_device)是CLOUD_BASIC、CLOUD_PREMIUM、CLOUD_SSD类型的实例使用该接口进行机型调整。
|
|
422
|
+
* 目前不支持[CDH](https://cloud.tencent.com/document/product/416)实例使用该接口调整机型。对于包年包月实例,使用该接口会涉及扣费,请确保账户余额充足。可通过[`DescribeAccountBalance`](https://cloud.tencent.com/document/product/555/20253)接口查询账户余额。
|
|
423
|
+
* 本接口为异步接口,调整实例配置请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表调整实例配置操作成功。
|
|
402
424
|
*/
|
|
403
|
-
async
|
|
404
|
-
req:
|
|
405
|
-
cb?: (error: string, rep:
|
|
406
|
-
): Promise<
|
|
407
|
-
return this.request("
|
|
425
|
+
async ResetInstancesType(
|
|
426
|
+
req: ResetInstancesTypeRequest,
|
|
427
|
+
cb?: (error: string, rep: ResetInstancesTypeResponse) => void
|
|
428
|
+
): Promise<ResetInstancesTypeResponse> {
|
|
429
|
+
return this.request("ResetInstancesType", req, cb)
|
|
408
430
|
}
|
|
409
431
|
|
|
410
432
|
/**
|
|
411
|
-
* 本接口(
|
|
433
|
+
* 本接口(DescribeReservedInstancesConfigInfos)供用户列出可购买预留实例机型配置。预留实例当前只针对国际站白名单用户开放。
|
|
412
434
|
*/
|
|
413
|
-
async
|
|
414
|
-
req
|
|
415
|
-
cb?: (error: string, rep:
|
|
416
|
-
): Promise<
|
|
417
|
-
return this.request("
|
|
435
|
+
async DescribeReservedInstancesConfigInfos(
|
|
436
|
+
req: DescribeReservedInstancesConfigInfosRequest,
|
|
437
|
+
cb?: (error: string, rep: DescribeReservedInstancesConfigInfosResponse) => void
|
|
438
|
+
): Promise<DescribeReservedInstancesConfigInfosResponse> {
|
|
439
|
+
return this.request("DescribeReservedInstancesConfigInfos", req, cb)
|
|
418
440
|
}
|
|
419
441
|
|
|
420
442
|
/**
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
* 接口不支持批量调整混合计费方式的带宽。例如不支持同时调整`TRAFFIC_POSTPAID_BY_HOUR`和`BANDWIDTH_PACKAGE`计费方式的带宽。
|
|
429
|
-
*/
|
|
430
|
-
async InquiryPriceResetInstancesInternetMaxBandwidth(
|
|
431
|
-
req: InquiryPriceResetInstancesInternetMaxBandwidthRequest,
|
|
432
|
-
cb?: (error: string, rep: InquiryPriceResetInstancesInternetMaxBandwidthResponse) => void
|
|
433
|
-
): Promise<InquiryPriceResetInstancesInternetMaxBandwidthResponse> {
|
|
434
|
-
return this.request("InquiryPriceResetInstancesInternetMaxBandwidth", req, cb)
|
|
443
|
+
* 本接口(DescribeInstanceFamilyConfigs)查询当前用户和地域所支持的机型族列表信息。
|
|
444
|
+
*/
|
|
445
|
+
async DescribeInstanceFamilyConfigs(
|
|
446
|
+
req?: DescribeInstanceFamilyConfigsRequest,
|
|
447
|
+
cb?: (error: string, rep: DescribeInstanceFamilyConfigsResponse) => void
|
|
448
|
+
): Promise<DescribeInstanceFamilyConfigsResponse> {
|
|
449
|
+
return this.request("DescribeInstanceFamilyConfigs", req, cb)
|
|
435
450
|
}
|
|
436
451
|
|
|
437
452
|
/**
|
|
438
|
-
* 本接口(
|
|
439
|
-
* 只支持对单个实例发起在线烧录FPGA镜像的操作。
|
|
440
|
-
* 支持对单个实例的多块FPGA卡同时烧录FPGA镜像,DBDFs参数为空时,默认对指定实例的所有FPGA卡进行烧录。
|
|
453
|
+
* 本接口(InquirePricePurchaseReservedInstancesOffering)用于创建预留实例询价。本接口仅允许针对购买限制范围内的预留实例配置进行询价。预留实例当前只针对国际站白名单用户开放。
|
|
441
454
|
*/
|
|
442
|
-
async
|
|
443
|
-
req:
|
|
444
|
-
cb?: (error: string, rep:
|
|
445
|
-
): Promise<
|
|
446
|
-
return this.request("
|
|
455
|
+
async InquirePricePurchaseReservedInstancesOffering(
|
|
456
|
+
req: InquirePricePurchaseReservedInstancesOfferingRequest,
|
|
457
|
+
cb?: (error: string, rep: InquirePricePurchaseReservedInstancesOfferingResponse) => void
|
|
458
|
+
): Promise<InquirePricePurchaseReservedInstancesOfferingResponse> {
|
|
459
|
+
return this.request("InquirePricePurchaseReservedInstancesOffering", req, cb)
|
|
447
460
|
}
|
|
448
461
|
|
|
449
462
|
/**
|
|
450
|
-
*
|
|
463
|
+
* 本接口(SyncImages)用于将自定义镜像同步到其它地区。
|
|
451
464
|
|
|
452
|
-
*
|
|
453
|
-
*
|
|
454
|
-
*
|
|
455
|
-
* 支持批量操作。每次请求批量实例的上限为100。如果批量实例存在不允许操作的实例,操作会以特定错误码返回。
|
|
465
|
+
* 该接口每次调用只支持同步一个镜像。
|
|
466
|
+
* 该接口支持多个同步地域。
|
|
467
|
+
* 单个帐号在每个地域最多支持存在10个自定义镜像。
|
|
456
468
|
*/
|
|
457
|
-
async
|
|
458
|
-
req:
|
|
459
|
-
cb?: (error: string, rep:
|
|
460
|
-
): Promise<
|
|
461
|
-
return this.request("
|
|
469
|
+
async SyncImages(
|
|
470
|
+
req: SyncImagesRequest,
|
|
471
|
+
cb?: (error: string, rep: SyncImagesResponse) => void
|
|
472
|
+
): Promise<SyncImagesResponse> {
|
|
473
|
+
return this.request("SyncImages", req, cb)
|
|
462
474
|
}
|
|
463
475
|
|
|
464
476
|
/**
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
async CreateKeyPair(
|
|
473
|
-
req: CreateKeyPairRequest,
|
|
474
|
-
cb?: (error: string, rep: CreateKeyPairResponse) => void
|
|
475
|
-
): Promise<CreateKeyPairResponse> {
|
|
476
|
-
return this.request("CreateKeyPair", req, cb)
|
|
477
|
+
* 本接口(ImportImage)用于导入镜像,导入后的镜像可用于创建实例。目前支持 RAW、VHD、QCOW2、VMDK 镜像格式。
|
|
478
|
+
*/
|
|
479
|
+
async ImportImage(
|
|
480
|
+
req: ImportImageRequest,
|
|
481
|
+
cb?: (error: string, rep: ImportImageResponse) => void
|
|
482
|
+
): Promise<ImportImageResponse> {
|
|
483
|
+
return this.request("ImportImage", req, cb)
|
|
477
484
|
}
|
|
478
485
|
|
|
479
486
|
/**
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
req
|
|
487
|
-
cb?: (error: string, rep: DeleteKeyPairsResponse) => void
|
|
488
|
-
): Promise<DeleteKeyPairsResponse> {
|
|
489
|
-
return this.request("DeleteKeyPairs", req, cb)
|
|
487
|
+
* 本接口(DescribeZoneInstanceConfigInfos) 获取可用区的机型信息。
|
|
488
|
+
*/
|
|
489
|
+
async DescribeZoneInstanceConfigInfos(
|
|
490
|
+
req: DescribeZoneInstanceConfigInfosRequest,
|
|
491
|
+
cb?: (error: string, rep: DescribeZoneInstanceConfigInfosResponse) => void
|
|
492
|
+
): Promise<DescribeZoneInstanceConfigInfosResponse> {
|
|
493
|
+
return this.request("DescribeZoneInstanceConfigInfos", req, cb)
|
|
490
494
|
}
|
|
491
495
|
|
|
492
496
|
/**
|
|
493
|
-
* 本接口 (
|
|
497
|
+
* 本接口 (AllocateHosts) 用于创建一个或多个指定配置的CDH实例。
|
|
498
|
+
* 当HostChargeType为PREPAID时,必须指定HostChargePrepaid参数。
|
|
494
499
|
*/
|
|
495
|
-
async
|
|
496
|
-
req:
|
|
497
|
-
cb?: (error: string, rep:
|
|
498
|
-
): Promise<
|
|
499
|
-
return this.request("
|
|
500
|
+
async AllocateHosts(
|
|
501
|
+
req: AllocateHostsRequest,
|
|
502
|
+
cb?: (error: string, rep: AllocateHostsResponse) => void
|
|
503
|
+
): Promise<AllocateHostsResponse> {
|
|
504
|
+
return this.request("AllocateHosts", req, cb)
|
|
500
505
|
}
|
|
501
506
|
|
|
502
507
|
/**
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
req: DescribeInstancesRequest,
|
|
511
|
-
cb?: (error: string, rep: DescribeInstancesResponse) => void
|
|
512
|
-
): Promise<DescribeInstancesResponse> {
|
|
513
|
-
return this.request("DescribeInstances", req, cb)
|
|
508
|
+
* 修改CHC物理服务器的属性
|
|
509
|
+
*/
|
|
510
|
+
async ModifyChcAttribute(
|
|
511
|
+
req: ModifyChcAttributeRequest,
|
|
512
|
+
cb?: (error: string, rep: ModifyChcAttributeResponse) => void
|
|
513
|
+
): Promise<ModifyChcAttributeResponse> {
|
|
514
|
+
return this.request("ModifyChcAttribute", req, cb)
|
|
514
515
|
}
|
|
515
516
|
|
|
516
517
|
/**
|
|
517
|
-
*
|
|
518
|
+
* 本接口 (DisassociateSecurityGroups) 用于解绑实例的指定安全组。
|
|
519
|
+
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
518
520
|
*/
|
|
519
|
-
async
|
|
520
|
-
req:
|
|
521
|
-
cb?: (error: string, rep:
|
|
522
|
-
): Promise<
|
|
523
|
-
return this.request("
|
|
521
|
+
async DisassociateSecurityGroups(
|
|
522
|
+
req: DisassociateSecurityGroupsRequest,
|
|
523
|
+
cb?: (error: string, rep: DisassociateSecurityGroupsResponse) => void
|
|
524
|
+
): Promise<DisassociateSecurityGroupsResponse> {
|
|
525
|
+
return this.request("DisassociateSecurityGroups", req, cb)
|
|
524
526
|
}
|
|
525
527
|
|
|
526
528
|
/**
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
req: SyncImagesRequest,
|
|
535
|
-
cb?: (error: string, rep: SyncImagesResponse) => void
|
|
536
|
-
): Promise<SyncImagesResponse> {
|
|
537
|
-
return this.request("SyncImages", req, cb)
|
|
529
|
+
* 清理CHC物理服务器的部署网络
|
|
530
|
+
*/
|
|
531
|
+
async RemoveChcDeployVpc(
|
|
532
|
+
req: RemoveChcDeployVpcRequest,
|
|
533
|
+
cb?: (error: string, rep: RemoveChcDeployVpcResponse) => void
|
|
534
|
+
): Promise<RemoveChcDeployVpcResponse> {
|
|
535
|
+
return this.request("RemoveChcDeployVpc", req, cb)
|
|
538
536
|
}
|
|
539
537
|
|
|
540
538
|
/**
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
req
|
|
548
|
-
cb?: (error: string, rep: DescribeInstanceInternetBandwidthConfigsResponse) => void
|
|
549
|
-
): Promise<DescribeInstanceInternetBandwidthConfigsResponse> {
|
|
550
|
-
return this.request("DescribeInstanceInternetBandwidthConfigs", req, cb)
|
|
539
|
+
* 本接口(DescribeImageSharePermission)用于查询镜像分享信息。
|
|
540
|
+
*/
|
|
541
|
+
async DescribeImageSharePermission(
|
|
542
|
+
req: DescribeImageSharePermissionRequest,
|
|
543
|
+
cb?: (error: string, rep: DescribeImageSharePermissionResponse) => void
|
|
544
|
+
): Promise<DescribeImageSharePermissionResponse> {
|
|
545
|
+
return this.request("DescribeImageSharePermission", req, cb)
|
|
551
546
|
}
|
|
552
547
|
|
|
553
548
|
/**
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
req
|
|
561
|
-
cb?: (error: string, rep: InquiryPriceTerminateInstancesResponse) => void
|
|
562
|
-
): Promise<InquiryPriceTerminateInstancesResponse> {
|
|
563
|
-
return this.request("InquiryPriceTerminateInstances", req, cb)
|
|
549
|
+
* 本接口 (DescribeInstancesModification) 用于查询指定实例支持调整的机型配置。
|
|
550
|
+
*/
|
|
551
|
+
async DescribeInstancesModification(
|
|
552
|
+
req: DescribeInstancesModificationRequest,
|
|
553
|
+
cb?: (error: string, rep: DescribeInstancesModificationResponse) => void
|
|
554
|
+
): Promise<DescribeInstancesModificationResponse> {
|
|
555
|
+
return this.request("DescribeInstancesModification", req, cb)
|
|
564
556
|
}
|
|
565
557
|
|
|
566
558
|
/**
|
|
@@ -579,277 +571,262 @@ export class Client extends AbstractClient {
|
|
|
579
571
|
}
|
|
580
572
|
|
|
581
573
|
/**
|
|
582
|
-
* 本接口 (
|
|
583
|
-
|
|
584
|
-
* 处于 `STOPPED` 状态的机器无法使用此功能。
|
|
585
|
-
* 管理终端地址的有效期为 15 秒,调用接口成功后如果 15 秒内不使用该链接进行访问,管理终端地址自动失效,您需要重新查询。
|
|
586
|
-
* 管理终端地址一旦被访问,将自动失效,您需要重新查询。
|
|
587
|
-
* 如果连接断开,每分钟内重新连接的次数不能超过 30 次。
|
|
588
|
-
获取到 `InstanceVncUrl` 后,您需要在链接 `https://img.qcloud.com/qcloud/app/active_vnc/index.html?` 末尾加上参数 `InstanceVncUrl=xxxx`。
|
|
574
|
+
* 本接口 (DisassociateInstancesKeyPairs) 用于解除实例的密钥绑定关系。
|
|
589
575
|
|
|
590
|
-
|
|
576
|
+
* 只支持[`STOPPED`](https://cloud.tencent.com/document/product/213/15753#InstanceStatus)状态的`Linux`操作系统的实例。
|
|
577
|
+
* 解绑密钥后,实例可以通过原来设置的密码登录。
|
|
578
|
+
* 如果原来没有设置密码,解绑后将无法使用 `SSH` 登录。可以调用 [ResetInstancesPassword](https://cloud.tencent.com/document/api/213/15736) 接口来设置登录密码。
|
|
579
|
+
* 支持批量操作。每次请求批量实例的上限为100。如果批量实例存在不允许操作的实例,操作会以特定错误码返回。
|
|
580
|
+
*/
|
|
581
|
+
async DisassociateInstancesKeyPairs(
|
|
582
|
+
req: DisassociateInstancesKeyPairsRequest,
|
|
583
|
+
cb?: (error: string, rep: DisassociateInstancesKeyPairsResponse) => void
|
|
584
|
+
): Promise<DisassociateInstancesKeyPairsResponse> {
|
|
585
|
+
return this.request("DisassociateInstancesKeyPairs", req, cb)
|
|
586
|
+
}
|
|
591
587
|
|
|
592
|
-
|
|
588
|
+
/**
|
|
589
|
+
* 本接口(CreateLaunchTemplate)用于创建实例启动模板。
|
|
593
590
|
|
|
594
|
-
|
|
595
|
-
https://img.qcloud.com/qcloud/app/active_vnc/index.html?InstanceVncUrl=wss%3A%2F%2Fbjvnc.qcloud.com%3A26789%2Fvnc%3Fs%3DaHpjWnRVMFNhYmxKdDM5MjRHNlVTSVQwajNUSW0wb2tBbmFtREFCTmFrcy8vUUNPMG0wSHZNOUUxRm5PMmUzWmFDcWlOdDJIbUJxSTZDL0RXcHZxYnZZMmRkWWZWcEZia2lyb09XMzdKNmM9
|
|
596
|
-
```
|
|
591
|
+
实例启动模板是一种配置数据并可用于创建实例,其内容包含创建实例所需的配置,比如实例类型,数据盘和系统盘的类型和大小,以及安全组等信息。
|
|
597
592
|
|
|
593
|
+
初次创建实例模板后,其模板版本为默认版本1,新版本的创建可使用CreateLaunchTemplateVersion创建,版本号递增。默认情况下,在RunInstances中指定实例启动模板,若不指定模板版本号,则使用默认版本。
|
|
598
594
|
*/
|
|
599
|
-
async
|
|
600
|
-
req:
|
|
601
|
-
cb?: (error: string, rep:
|
|
602
|
-
): Promise<
|
|
603
|
-
return this.request("
|
|
595
|
+
async CreateLaunchTemplate(
|
|
596
|
+
req: CreateLaunchTemplateRequest,
|
|
597
|
+
cb?: (error: string, rep: CreateLaunchTemplateResponse) => void
|
|
598
|
+
): Promise<CreateLaunchTemplateResponse> {
|
|
599
|
+
return this.request("CreateLaunchTemplate", req, cb)
|
|
604
600
|
}
|
|
605
601
|
|
|
606
602
|
/**
|
|
607
|
-
*
|
|
603
|
+
* 本接口 (ModifyDisasterRecoverGroupAttribute)用于修改[分散置放群组](https://cloud.tencent.com/document/product/213/15486)属性。
|
|
608
604
|
*/
|
|
609
|
-
async
|
|
610
|
-
req:
|
|
611
|
-
cb?: (error: string, rep:
|
|
612
|
-
): Promise<
|
|
613
|
-
return this.request("
|
|
605
|
+
async ModifyDisasterRecoverGroupAttribute(
|
|
606
|
+
req: ModifyDisasterRecoverGroupAttributeRequest,
|
|
607
|
+
cb?: (error: string, rep: ModifyDisasterRecoverGroupAttributeResponse) => void
|
|
608
|
+
): Promise<ModifyDisasterRecoverGroupAttributeResponse> {
|
|
609
|
+
return this.request("ModifyDisasterRecoverGroupAttribute", req, cb)
|
|
614
610
|
}
|
|
615
611
|
|
|
616
612
|
/**
|
|
617
|
-
* 本接口(
|
|
613
|
+
* 本接口(DescribeInstancesOperationLimit)用于查询实例操作限制。
|
|
618
614
|
|
|
619
|
-
*
|
|
620
|
-
* 每个地域最多只支持创建10个自定义镜像,删除镜像可以释放账户的配额。
|
|
621
|
-
* 当镜像正在被其它账户分享时,不允许删除。
|
|
615
|
+
* 目前支持调整配置操作限制次数查询。
|
|
622
616
|
*/
|
|
623
|
-
async
|
|
624
|
-
req:
|
|
625
|
-
cb?: (error: string, rep:
|
|
626
|
-
): Promise<
|
|
627
|
-
return this.request("
|
|
617
|
+
async DescribeInstancesOperationLimit(
|
|
618
|
+
req: DescribeInstancesOperationLimitRequest,
|
|
619
|
+
cb?: (error: string, rep: DescribeInstancesOperationLimitResponse) => void
|
|
620
|
+
): Promise<DescribeInstancesOperationLimitResponse> {
|
|
621
|
+
return this.request("DescribeInstancesOperationLimit", req, cb)
|
|
628
622
|
}
|
|
629
623
|
|
|
630
624
|
/**
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
req
|
|
638
|
-
cb?: (error: string, rep: InquiryPriceResizeInstanceDisksResponse) => void
|
|
639
|
-
): Promise<InquiryPriceResizeInstanceDisksResponse> {
|
|
640
|
-
return this.request("InquiryPriceResizeInstanceDisks", req, cb)
|
|
625
|
+
* 本接口(DescribeRegions)用于查询地域信息。因平台策略原因,该接口暂时停止更新,为确保您正常调用,可切换至新链接:https://cloud.tencent.com/document/product/1278/55255。
|
|
626
|
+
*/
|
|
627
|
+
async DescribeRegions(
|
|
628
|
+
req?: DescribeRegionsRequest,
|
|
629
|
+
cb?: (error: string, rep: DescribeRegionsResponse) => void
|
|
630
|
+
): Promise<DescribeRegionsResponse> {
|
|
631
|
+
return this.request("DescribeRegions", req, cb)
|
|
641
632
|
}
|
|
642
633
|
|
|
643
634
|
/**
|
|
644
|
-
* 本接口 (
|
|
635
|
+
* 本接口 (StopInstances) 用于关闭一个或多个实例。
|
|
645
636
|
|
|
646
|
-
*
|
|
647
|
-
*
|
|
648
|
-
*
|
|
649
|
-
*
|
|
637
|
+
* 只有状态为`RUNNING`的实例才可以进行此操作。
|
|
638
|
+
* 接口调用成功时,实例会进入`STOPPING`状态;关闭实例成功时,实例会进入`STOPPED`状态。
|
|
639
|
+
* 支持强制关闭。强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
|
|
640
|
+
* 支持批量操作。每次请求批量实例的上限为100。
|
|
641
|
+
* 本接口为异步接口,关闭实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表关闭实例操作成功。
|
|
650
642
|
*/
|
|
651
|
-
async
|
|
652
|
-
req:
|
|
653
|
-
cb?: (error: string, rep:
|
|
654
|
-
): Promise<
|
|
655
|
-
return this.request("
|
|
643
|
+
async StopInstances(
|
|
644
|
+
req: StopInstancesRequest,
|
|
645
|
+
cb?: (error: string, rep: StopInstancesResponse) => void
|
|
646
|
+
): Promise<StopInstancesResponse> {
|
|
647
|
+
return this.request("StopInstances", req, cb)
|
|
656
648
|
}
|
|
657
649
|
|
|
658
650
|
/**
|
|
659
|
-
*
|
|
660
|
-
* 此操作默认会关闭实例,完成后再启动。
|
|
661
|
-
* 当指定私有网络ID和子网ID(子网必须在实例所在的可用区)与指定实例所在私有网络不一致时,会将实例迁移至指定的私有网络的子网下。执行此操作前请确保指定的实例上没有绑定[弹性网卡](https://cloud.tencent.com/document/product/576)和[负载均衡](https://cloud.tencent.com/document/product/214)。
|
|
662
|
-
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
651
|
+
* 查看可以导入的镜像操作系统信息。
|
|
663
652
|
*/
|
|
664
|
-
async
|
|
665
|
-
req
|
|
666
|
-
cb?: (error: string, rep:
|
|
667
|
-
): Promise<
|
|
668
|
-
return this.request("
|
|
653
|
+
async DescribeImportImageOs(
|
|
654
|
+
req?: DescribeImportImageOsRequest,
|
|
655
|
+
cb?: (error: string, rep: DescribeImportImageOsResponse) => void
|
|
656
|
+
): Promise<DescribeImportImageOsResponse> {
|
|
657
|
+
return this.request("DescribeImportImageOs", req, cb)
|
|
669
658
|
}
|
|
670
659
|
|
|
671
660
|
/**
|
|
672
|
-
* 本接口 (
|
|
673
|
-
|
|
674
|
-
* 如果指定了`ImageId`参数,则使用指定的镜像进行重装询价;否则按照当前实例使用的镜像进行重装询价。
|
|
675
|
-
* 目前只支持[系统盘类型](https://cloud.tencent.com/document/api/213/15753#SystemDisk)是`CLOUD_BASIC`、`CLOUD_PREMIUM`、`CLOUD_SSD`类型的实例使用该接口实现`Linux`和`Windows`操作系统切换的重装询价。
|
|
676
|
-
* 目前不支持境外地域的实例使用该接口实现`Linux`和`Windows`操作系统切换的重装询价。
|
|
677
|
-
*/
|
|
678
|
-
async InquiryPriceResetInstance(
|
|
679
|
-
req: InquiryPriceResetInstanceRequest,
|
|
680
|
-
cb?: (error: string, rep: InquiryPriceResetInstanceResponse) => void
|
|
681
|
-
): Promise<InquiryPriceResetInstanceResponse> {
|
|
682
|
-
return this.request("InquiryPriceResetInstance", req, cb)
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* 本接口 (DescribeDisasterRecoverGroupQuota)用于查询[分散置放群组](https://cloud.tencent.com/document/product/213/15486)配额。
|
|
687
|
-
*/
|
|
688
|
-
async DescribeDisasterRecoverGroupQuota(
|
|
689
|
-
req?: DescribeDisasterRecoverGroupQuotaRequest,
|
|
690
|
-
cb?: (error: string, rep: DescribeDisasterRecoverGroupQuotaResponse) => void
|
|
691
|
-
): Promise<DescribeDisasterRecoverGroupQuotaResponse> {
|
|
692
|
-
return this.request("DescribeDisasterRecoverGroupQuota", req, cb)
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* 本接口 (ResetInstancesPassword) 用于将实例操作系统的密码重置为用户指定的密码。
|
|
661
|
+
* 本接口 (InquiryPriceRenewInstances) 用于续费包年包月实例询价。
|
|
697
662
|
|
|
698
|
-
|
|
699
|
-
* 重置处于运行中状态的实例密码,需要设置关机参数`ForceStop`为`TRUE`。如果没有显式指定强制关机参数,则只有处于关机状态的实例才允许执行重置密码操作。
|
|
700
|
-
* 支持批量操作。将多个实例操作系统的密码重置为相同的密码。每次请求批量实例的上限为100。
|
|
701
|
-
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
663
|
+
* 只支持查询包年包月实例的续费价格。
|
|
702
664
|
*/
|
|
703
|
-
async
|
|
704
|
-
req:
|
|
705
|
-
cb?: (error: string, rep:
|
|
706
|
-
): Promise<
|
|
707
|
-
return this.request("
|
|
665
|
+
async InquiryPriceRenewInstances(
|
|
666
|
+
req: InquiryPriceRenewInstancesRequest,
|
|
667
|
+
cb?: (error: string, rep: InquiryPriceRenewInstancesResponse) => void
|
|
668
|
+
): Promise<InquiryPriceRenewInstancesResponse> {
|
|
669
|
+
return this.request("InquiryPriceRenewInstances", req, cb)
|
|
708
670
|
}
|
|
709
671
|
|
|
710
672
|
/**
|
|
711
|
-
* 本接口 (
|
|
673
|
+
* 本接口 (ModifyInstancesChargeType) 用于切换实例的计费模式。
|
|
712
674
|
|
|
713
|
-
*
|
|
714
|
-
*
|
|
675
|
+
* 只支持从 `POSTPAID_BY_HOUR` 计费模式切换为`PREPAID`计费模式。
|
|
676
|
+
* 关机不收费的实例、`BC1`和`BS1`机型族的实例、设置定时销毁的实例不支持该操作。
|
|
715
677
|
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
716
678
|
*/
|
|
717
|
-
async
|
|
718
|
-
req:
|
|
719
|
-
cb?: (error: string, rep:
|
|
720
|
-
): Promise<
|
|
721
|
-
return this.request("
|
|
679
|
+
async ModifyInstancesChargeType(
|
|
680
|
+
req: ModifyInstancesChargeTypeRequest,
|
|
681
|
+
cb?: (error: string, rep: ModifyInstancesChargeTypeResponse) => void
|
|
682
|
+
): Promise<ModifyInstancesChargeTypeResponse> {
|
|
683
|
+
return this.request("ModifyInstancesChargeType", req, cb)
|
|
722
684
|
}
|
|
723
685
|
|
|
724
686
|
/**
|
|
725
|
-
* 本接口 (
|
|
687
|
+
* 本接口 (RenewHosts) 用于续费包年包月CDH实例。
|
|
726
688
|
|
|
727
|
-
*
|
|
689
|
+
* 只支持操作包年包月实例,否则操作会以特定[错误码](#6.-.E9.94.99.E8.AF.AF.E7.A0.81)返回。
|
|
728
690
|
* 续费时请确保账户余额充足。可通过[`DescribeAccountBalance`](https://cloud.tencent.com/document/product/555/20253)接口查询账户余额。
|
|
729
|
-
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
730
691
|
*/
|
|
731
|
-
async
|
|
732
|
-
req:
|
|
733
|
-
cb?: (error: string, rep:
|
|
734
|
-
): Promise<
|
|
735
|
-
return this.request("
|
|
692
|
+
async RenewHosts(
|
|
693
|
+
req: RenewHostsRequest,
|
|
694
|
+
cb?: (error: string, rep: RenewHostsResponse) => void
|
|
695
|
+
): Promise<RenewHostsResponse> {
|
|
696
|
+
return this.request("RenewHosts", req, cb)
|
|
736
697
|
}
|
|
737
698
|
|
|
738
699
|
/**
|
|
739
|
-
* 本接口(
|
|
700
|
+
* 本接口 (DescribeHosts) 用于获取一个或多个CDH实例的详细信息。
|
|
740
701
|
*/
|
|
741
|
-
async
|
|
742
|
-
req:
|
|
743
|
-
cb?: (error: string, rep:
|
|
744
|
-
): Promise<
|
|
745
|
-
return this.request("
|
|
702
|
+
async DescribeHosts(
|
|
703
|
+
req: DescribeHostsRequest,
|
|
704
|
+
cb?: (error: string, rep: DescribeHostsResponse) => void
|
|
705
|
+
): Promise<DescribeHostsResponse> {
|
|
706
|
+
return this.request("DescribeHosts", req, cb)
|
|
746
707
|
}
|
|
747
708
|
|
|
748
709
|
/**
|
|
749
|
-
* 本接口 (
|
|
710
|
+
* 本接口 (DescribeInstancesStatus) 用于查询一个或多个实例的状态。
|
|
750
711
|
|
|
751
|
-
*
|
|
752
|
-
*
|
|
753
|
-
* 目前只支持扩容一块数据盘。
|
|
754
|
-
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
755
|
-
* 如果是系统盘,目前只支持扩容,不支持缩容。
|
|
712
|
+
* 可以根据实例`ID`来查询实例的状态。
|
|
713
|
+
* 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的实例状态。
|
|
756
714
|
*/
|
|
757
|
-
async
|
|
758
|
-
req:
|
|
759
|
-
cb?: (error: string, rep:
|
|
760
|
-
): Promise<
|
|
761
|
-
return this.request("
|
|
715
|
+
async DescribeInstancesStatus(
|
|
716
|
+
req: DescribeInstancesStatusRequest,
|
|
717
|
+
cb?: (error: string, rep: DescribeInstancesStatusResponse) => void
|
|
718
|
+
): Promise<DescribeInstancesStatusResponse> {
|
|
719
|
+
return this.request("DescribeInstancesStatus", req, cb)
|
|
762
720
|
}
|
|
763
721
|
|
|
764
722
|
/**
|
|
765
|
-
* 本接口(
|
|
723
|
+
* 本接口(ModifyImageSharePermission)用于修改镜像分享信息。
|
|
766
724
|
|
|
767
|
-
|
|
725
|
+
* 分享镜像后,被分享账户可以通过该镜像创建实例。
|
|
726
|
+
* 每个自定义镜像最多可共享给50个账户。
|
|
727
|
+
* 分享镜像无法更改名称,描述,仅可用于创建实例。
|
|
728
|
+
* 只支持分享到对方账户相同地域。
|
|
768
729
|
|
|
769
|
-
初次创建实例模板后,其模板版本为默认版本1,新版本的创建可使用CreateLaunchTemplateVersion创建,版本号递增。默认情况下,在RunInstances中指定实例启动模板,若不指定模板版本号,则使用默认版本。
|
|
770
730
|
*/
|
|
771
|
-
async
|
|
772
|
-
req:
|
|
773
|
-
cb?: (error: string, rep:
|
|
774
|
-
): Promise<
|
|
775
|
-
return this.request("
|
|
731
|
+
async ModifyImageSharePermission(
|
|
732
|
+
req: ModifyImageSharePermissionRequest,
|
|
733
|
+
cb?: (error: string, rep: ModifyImageSharePermissionResponse) => void
|
|
734
|
+
): Promise<ModifyImageSharePermissionResponse> {
|
|
735
|
+
return this.request("ModifyImageSharePermission", req, cb)
|
|
776
736
|
}
|
|
777
737
|
|
|
778
738
|
/**
|
|
779
|
-
*
|
|
739
|
+
* 本接口(DeleteLaunchTemplate)用于删除一个实例启动模板。
|
|
780
740
|
*/
|
|
781
|
-
async
|
|
782
|
-
req:
|
|
783
|
-
cb?: (error: string, rep:
|
|
784
|
-
): Promise<
|
|
785
|
-
return this.request("
|
|
741
|
+
async DeleteLaunchTemplate(
|
|
742
|
+
req: DeleteLaunchTemplateRequest,
|
|
743
|
+
cb?: (error: string, rep: DeleteLaunchTemplateResponse) => void
|
|
744
|
+
): Promise<DeleteLaunchTemplateResponse> {
|
|
745
|
+
return this.request("DeleteLaunchTemplate", req, cb)
|
|
786
746
|
}
|
|
787
747
|
|
|
788
748
|
/**
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
749
|
+
* 本接口 (CreateKeyPair) 用于创建一个 `OpenSSH RSA` 密钥对,可以用于登录 `Linux` 实例。
|
|
750
|
+
|
|
751
|
+
* 开发者只需指定密钥对名称,即可由系统自动创建密钥对,并返回所生成的密钥对的 `ID` 及其公钥、私钥的内容。
|
|
752
|
+
* 密钥对名称不能和已经存在的密钥对的名称重复。
|
|
753
|
+
* 私钥的内容可以保存到文件中作为 `SSH` 的一种认证方式。
|
|
754
|
+
* 腾讯云不会保存用户的私钥,请妥善保管。
|
|
755
|
+
*/
|
|
756
|
+
async CreateKeyPair(
|
|
757
|
+
req: CreateKeyPairRequest,
|
|
758
|
+
cb?: (error: string, rep: CreateKeyPairResponse) => void
|
|
759
|
+
): Promise<CreateKeyPairResponse> {
|
|
760
|
+
return this.request("CreateKeyPair", req, cb)
|
|
796
761
|
}
|
|
797
762
|
|
|
798
763
|
/**
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
764
|
+
* 本接口 (InquiryPriceResizeInstanceDisks) 用于扩容实例的数据盘询价。
|
|
765
|
+
|
|
766
|
+
* 目前只支持扩容非弹性数据盘([`DescribeDisks`](https://cloud.tencent.com/document/api/362/16315)接口返回值中的`Portable`为`false`表示非弹性)询价,且[数据盘类型](https://cloud.tencent.com/document/product/213/15753#DataDisk)为:`CLOUD_BASIC`、`CLOUD_PREMIUM`、`CLOUD_SSD`。
|
|
767
|
+
* 目前不支持[CDH](https://cloud.tencent.com/document/product/416)实例使用该接口扩容数据盘询价。* 仅支持包年包月实例随机器购买的数据盘。* 目前只支持扩容一块数据盘询价。
|
|
768
|
+
*/
|
|
769
|
+
async InquiryPriceResizeInstanceDisks(
|
|
770
|
+
req: InquiryPriceResizeInstanceDisksRequest,
|
|
771
|
+
cb?: (error: string, rep: InquiryPriceResizeInstanceDisksResponse) => void
|
|
772
|
+
): Promise<InquiryPriceResizeInstanceDisksResponse> {
|
|
773
|
+
return this.request("InquiryPriceResizeInstanceDisks", req, cb)
|
|
806
774
|
}
|
|
807
775
|
|
|
808
776
|
/**
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
777
|
+
* 本接口 (InquiryPriceResetInstance) 用于重装实例询价。
|
|
778
|
+
|
|
779
|
+
* 如果指定了`ImageId`参数,则使用指定的镜像进行重装询价;否则按照当前实例使用的镜像进行重装询价。
|
|
780
|
+
* 目前只支持[系统盘类型](https://cloud.tencent.com/document/api/213/15753#SystemDisk)是`CLOUD_BASIC`、`CLOUD_PREMIUM`、`CLOUD_SSD`类型的实例使用该接口实现`Linux`和`Windows`操作系统切换的重装询价。
|
|
781
|
+
* 目前不支持境外地域的实例使用该接口实现`Linux`和`Windows`操作系统切换的重装询价。
|
|
782
|
+
*/
|
|
783
|
+
async InquiryPriceResetInstance(
|
|
784
|
+
req: InquiryPriceResetInstanceRequest,
|
|
785
|
+
cb?: (error: string, rep: InquiryPriceResetInstanceResponse) => void
|
|
786
|
+
): Promise<InquiryPriceResetInstanceResponse> {
|
|
787
|
+
return this.request("InquiryPriceResetInstance", req, cb)
|
|
817
788
|
}
|
|
818
789
|
|
|
819
790
|
/**
|
|
820
|
-
* 本接口(
|
|
791
|
+
* 本接口(PurchaseReservedInstancesOffering)用于用户购买一个或者多个指定配置的预留实例
|
|
821
792
|
*/
|
|
822
|
-
async
|
|
823
|
-
req:
|
|
824
|
-
cb?: (error: string, rep:
|
|
825
|
-
): Promise<
|
|
826
|
-
return this.request("
|
|
793
|
+
async PurchaseReservedInstancesOffering(
|
|
794
|
+
req: PurchaseReservedInstancesOfferingRequest,
|
|
795
|
+
cb?: (error: string, rep: PurchaseReservedInstancesOfferingResponse) => void
|
|
796
|
+
): Promise<PurchaseReservedInstancesOfferingResponse> {
|
|
797
|
+
return this.request("PurchaseReservedInstancesOffering", req, cb)
|
|
827
798
|
}
|
|
828
799
|
|
|
829
800
|
/**
|
|
830
|
-
* 本接口 (
|
|
801
|
+
* 本接口 (ModifyInstancesRenewFlag) 用于修改包年包月实例续费标识。
|
|
831
802
|
|
|
832
|
-
*
|
|
833
|
-
*
|
|
834
|
-
*
|
|
803
|
+
* 实例被标识为自动续费后,每次在实例到期时,会自动续费一个月。
|
|
804
|
+
* 支持批量操作。每次请求批量实例的上限为100。
|
|
805
|
+
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
835
806
|
*/
|
|
836
|
-
async
|
|
837
|
-
req:
|
|
838
|
-
cb?: (error: string, rep:
|
|
839
|
-
): Promise<
|
|
840
|
-
return this.request("
|
|
807
|
+
async ModifyInstancesRenewFlag(
|
|
808
|
+
req: ModifyInstancesRenewFlagRequest,
|
|
809
|
+
cb?: (error: string, rep: ModifyInstancesRenewFlagResponse) => void
|
|
810
|
+
): Promise<ModifyInstancesRenewFlagResponse> {
|
|
811
|
+
return this.request("ModifyInstancesRenewFlag", req, cb)
|
|
841
812
|
}
|
|
842
813
|
|
|
843
814
|
/**
|
|
844
|
-
*
|
|
815
|
+
* 本接口 (ResetInstance) 用于重装指定实例上的操作系统。
|
|
845
816
|
|
|
846
|
-
*
|
|
817
|
+
* 如果指定了`ImageId`参数,则使用指定的镜像重装;否则按照当前实例使用的镜像进行重装。
|
|
818
|
+
* 系统盘将会被格式化,并重置;请确保系统盘中无重要文件。
|
|
819
|
+
* `Linux`和`Windows`系统互相切换时,该实例系统盘`ID`将发生变化,系统盘关联快照将无法回滚、恢复数据。
|
|
820
|
+
* 密码不指定将会通过站内信下发随机密码。
|
|
821
|
+
* 目前只支持[系统盘类型](https://cloud.tencent.com/document/api/213/9452#SystemDisk)是`CLOUD_BASIC`、`CLOUD_PREMIUM`、`CLOUD_SSD`类型的实例使用该接口实现`Linux`和`Windows`操作系统切换。
|
|
822
|
+
* 目前不支持境外地域的实例使用该接口实现`Linux`和`Windows`操作系统切换。
|
|
823
|
+
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
847
824
|
*/
|
|
848
|
-
async
|
|
849
|
-
req:
|
|
850
|
-
cb?: (error: string, rep:
|
|
851
|
-
): Promise<
|
|
852
|
-
return this.request("
|
|
825
|
+
async ResetInstance(
|
|
826
|
+
req: ResetInstanceRequest,
|
|
827
|
+
cb?: (error: string, rep: ResetInstanceResponse) => void
|
|
828
|
+
): Promise<ResetInstanceResponse> {
|
|
829
|
+
return this.request("ResetInstance", req, cb)
|
|
853
830
|
}
|
|
854
831
|
|
|
855
832
|
/**
|
|
@@ -868,59 +845,36 @@ https://img.qcloud.com/qcloud/app/active_vnc/index.html?InstanceVncUrl=wss%3A%2F
|
|
|
868
845
|
}
|
|
869
846
|
|
|
870
847
|
/**
|
|
871
|
-
*
|
|
848
|
+
* 本接口(DescribeLaunchTemplates)用于查询一个或者多个实例启动模板。
|
|
872
849
|
*/
|
|
873
|
-
async
|
|
874
|
-
req
|
|
875
|
-
cb?: (error: string, rep:
|
|
876
|
-
): Promise<
|
|
877
|
-
return this.request("
|
|
850
|
+
async DescribeLaunchTemplates(
|
|
851
|
+
req: DescribeLaunchTemplatesRequest,
|
|
852
|
+
cb?: (error: string, rep: DescribeLaunchTemplatesResponse) => void
|
|
853
|
+
): Promise<DescribeLaunchTemplatesResponse> {
|
|
854
|
+
return this.request("DescribeLaunchTemplates", req, cb)
|
|
878
855
|
}
|
|
879
856
|
|
|
880
857
|
/**
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
return this.request("DescribeInstancesOperationLimit", req, cb)
|
|
858
|
+
* 本接口 (AssociateSecurityGroups) 用于绑定安全组到指定实例。
|
|
859
|
+
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
860
|
+
*/
|
|
861
|
+
async AssociateSecurityGroups(
|
|
862
|
+
req: AssociateSecurityGroupsRequest,
|
|
863
|
+
cb?: (error: string, rep: AssociateSecurityGroupsResponse) => void
|
|
864
|
+
): Promise<AssociateSecurityGroupsResponse> {
|
|
865
|
+
return this.request("AssociateSecurityGroups", req, cb)
|
|
890
866
|
}
|
|
891
867
|
|
|
892
868
|
/**
|
|
893
|
-
*
|
|
869
|
+
* 本接口(ModifyImageAttribute)用于修改镜像属性。
|
|
894
870
|
|
|
895
|
-
*
|
|
896
|
-
* 目前不支持[CDH](https://cloud.tencent.com/document/product/416)实例使用该接口调整机型询价。
|
|
897
|
-
* 对于包年包月实例,使用该接口会涉及扣费,请确保账户余额充足。可通过[`DescribeAccountBalance`](https://cloud.tencent.com/document/product/555/20253)接口查询账户余额。
|
|
871
|
+
* 已分享的镜像无法修改属性。
|
|
898
872
|
*/
|
|
899
|
-
async
|
|
900
|
-
req:
|
|
901
|
-
cb?: (error: string, rep:
|
|
902
|
-
): Promise<
|
|
903
|
-
return this.request("
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* 本接口(DeleteLaunchTemplateVersions)用于删除一个或者多个实例启动模板版本。
|
|
908
|
-
*/
|
|
909
|
-
async DeleteLaunchTemplateVersions(
|
|
910
|
-
req: DeleteLaunchTemplateVersionsRequest,
|
|
911
|
-
cb?: (error: string, rep: DeleteLaunchTemplateVersionsResponse) => void
|
|
912
|
-
): Promise<DeleteLaunchTemplateVersionsResponse> {
|
|
913
|
-
return this.request("DeleteLaunchTemplateVersions", req, cb)
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
/**
|
|
917
|
-
* 本接口(CreateLaunchTemplateVersion)根据指定的实例模板ID以及对应的模板版本号创建新的实例启动模板,若未指定模板版本号则使用默认版本号。每个实例启动模板最多创建30个版本。
|
|
918
|
-
*/
|
|
919
|
-
async CreateLaunchTemplateVersion(
|
|
920
|
-
req: CreateLaunchTemplateVersionRequest,
|
|
921
|
-
cb?: (error: string, rep: CreateLaunchTemplateVersionResponse) => void
|
|
922
|
-
): Promise<CreateLaunchTemplateVersionResponse> {
|
|
923
|
-
return this.request("CreateLaunchTemplateVersion", req, cb)
|
|
873
|
+
async ModifyImageAttribute(
|
|
874
|
+
req: ModifyImageAttributeRequest,
|
|
875
|
+
cb?: (error: string, rep: ModifyImageAttributeResponse) => void
|
|
876
|
+
): Promise<ModifyImageAttributeResponse> {
|
|
877
|
+
return this.request("ModifyImageAttribute", req, cb)
|
|
924
878
|
}
|
|
925
879
|
|
|
926
880
|
/**
|
|
@@ -934,23 +888,53 @@ https://img.qcloud.com/qcloud/app/active_vnc/index.html?InstanceVncUrl=wss%3A%2F
|
|
|
934
888
|
}
|
|
935
889
|
|
|
936
890
|
/**
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
891
|
+
* 本接口 (TerminateInstances) 用于主动退还实例。
|
|
892
|
+
|
|
893
|
+
* 不再使用的实例,可通过本接口主动退还。
|
|
894
|
+
* 按量计费的实例通过本接口可直接退还;包年包月实例如符合[退还规则](https://cloud.tencent.com/document/product/213/9711),也可通过本接口主动退还。
|
|
895
|
+
* 包年包月实例首次调用本接口,实例将被移至回收站,再次调用本接口,实例将被销毁,且不可恢复。按量计费实例调用本接口将被直接销毁
|
|
896
|
+
* 支持批量操作,每次请求批量实例的上限为100。
|
|
897
|
+
*/
|
|
898
|
+
async TerminateInstances(
|
|
899
|
+
req: TerminateInstancesRequest,
|
|
900
|
+
cb?: (error: string, rep: TerminateInstancesResponse) => void
|
|
901
|
+
): Promise<TerminateInstancesResponse> {
|
|
902
|
+
return this.request("TerminateInstances", req, cb)
|
|
944
903
|
}
|
|
945
904
|
|
|
946
905
|
/**
|
|
947
|
-
*
|
|
906
|
+
* 清理CHC物理服务器的带外网络和部署网络
|
|
948
907
|
*/
|
|
949
|
-
async
|
|
950
|
-
req:
|
|
951
|
-
cb?: (error: string, rep:
|
|
952
|
-
): Promise<
|
|
953
|
-
return this.request("
|
|
908
|
+
async RemoveChcAssistVpc(
|
|
909
|
+
req: RemoveChcAssistVpcRequest,
|
|
910
|
+
cb?: (error: string, rep: RemoveChcAssistVpcResponse) => void
|
|
911
|
+
): Promise<RemoveChcAssistVpcResponse> {
|
|
912
|
+
return this.request("RemoveChcAssistVpc", req, cb)
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* 本接口 ( DescribeInstanceVncUrl ) 用于查询实例管理终端地址,获取的地址可用于实例的 VNC 登录。
|
|
917
|
+
|
|
918
|
+
* 处于 `STOPPED` 状态的机器无法使用此功能。
|
|
919
|
+
* 管理终端地址的有效期为 15 秒,调用接口成功后如果 15 秒内不使用该链接进行访问,管理终端地址自动失效,您需要重新查询。
|
|
920
|
+
* 管理终端地址一旦被访问,将自动失效,您需要重新查询。
|
|
921
|
+
* 如果连接断开,每分钟内重新连接的次数不能超过 30 次。
|
|
922
|
+
获取到 `InstanceVncUrl` 后,您需要在链接 `https://img.qcloud.com/qcloud/app/active_vnc/index.html?` 末尾加上参数 `InstanceVncUrl=xxxx`。
|
|
923
|
+
|
|
924
|
+
- 参数 `InstanceVncUrl` :调用接口成功后会返回的 `InstanceVncUrl` 的值。
|
|
925
|
+
|
|
926
|
+
最后组成的 URL 格式如下:
|
|
927
|
+
|
|
928
|
+
```
|
|
929
|
+
https://img.qcloud.com/qcloud/app/active_vnc/index.html?InstanceVncUrl=wss%3A%2F%2Fbjvnc.qcloud.com%3A26789%2Fvnc%3Fs%3DaHpjWnRVMFNhYmxKdDM5MjRHNlVTSVQwajNUSW0wb2tBbmFtREFCTmFrcy8vUUNPMG0wSHZNOUUxRm5PMmUzWmFDcWlOdDJIbUJxSTZDL0RXcHZxYnZZMmRkWWZWcEZia2lyb09XMzdKNmM9
|
|
930
|
+
```
|
|
931
|
+
|
|
932
|
+
*/
|
|
933
|
+
async DescribeInstanceVncUrl(
|
|
934
|
+
req: DescribeInstanceVncUrlRequest,
|
|
935
|
+
cb?: (error: string, rep: DescribeInstanceVncUrlResponse) => void
|
|
936
|
+
): Promise<DescribeInstanceVncUrlResponse> {
|
|
937
|
+
return this.request("DescribeInstanceVncUrl", req, cb)
|
|
954
938
|
}
|
|
955
939
|
|
|
956
940
|
/**
|
|
@@ -970,160 +954,316 @@ https://img.qcloud.com/qcloud/app/active_vnc/index.html?InstanceVncUrl=wss%3A%2F
|
|
|
970
954
|
}
|
|
971
955
|
|
|
972
956
|
/**
|
|
973
|
-
|
|
957
|
+
* 本接口 (DescribeKeyPairs) 用于查询密钥对信息。
|
|
958
|
+
|
|
959
|
+
* 密钥对是通过一种算法生成的一对密钥,在生成的密钥对中,一个向外界公开,称为公钥;另一个用户自己保留,称为私钥。密钥对的公钥内容可以通过这个接口查询,但私钥内容系统不保留。
|
|
960
|
+
*/
|
|
961
|
+
async DescribeKeyPairs(
|
|
962
|
+
req: DescribeKeyPairsRequest,
|
|
963
|
+
cb?: (error: string, rep: DescribeKeyPairsResponse) => void
|
|
964
|
+
): Promise<DescribeKeyPairsResponse> {
|
|
965
|
+
return this.request("DescribeKeyPairs", req, cb)
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* 本接口(DescribeReservedInstancesOfferings)供用户列出可购买的预留实例配置
|
|
974
970
|
*/
|
|
975
|
-
async
|
|
976
|
-
req:
|
|
977
|
-
cb?: (error: string, rep:
|
|
978
|
-
): Promise<
|
|
979
|
-
return this.request("
|
|
971
|
+
async DescribeReservedInstancesOfferings(
|
|
972
|
+
req: DescribeReservedInstancesOfferingsRequest,
|
|
973
|
+
cb?: (error: string, rep: DescribeReservedInstancesOfferingsResponse) => void
|
|
974
|
+
): Promise<DescribeReservedInstancesOfferingsResponse> {
|
|
975
|
+
return this.request("DescribeReservedInstancesOfferings", req, cb)
|
|
980
976
|
}
|
|
981
977
|
|
|
982
978
|
/**
|
|
983
|
-
* 本接口 (
|
|
979
|
+
* 本接口 (InquiryPriceModifyInstancesChargeType) 用于切换实例的计费模式询价。
|
|
984
980
|
|
|
985
|
-
*
|
|
986
|
-
*
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
981
|
+
* 只支持从 `POSTPAID_BY_HOUR` 计费模式切换为`PREPAID`计费模式。
|
|
982
|
+
* 关机不收费的实例、`BC1`和`BS1`机型族的实例、设置定时销毁的实例、竞价实例不支持该操作。
|
|
983
|
+
*/
|
|
984
|
+
async InquiryPriceModifyInstancesChargeType(
|
|
985
|
+
req: InquiryPriceModifyInstancesChargeTypeRequest,
|
|
986
|
+
cb?: (error: string, rep: InquiryPriceModifyInstancesChargeTypeResponse) => void
|
|
987
|
+
): Promise<InquiryPriceModifyInstancesChargeTypeResponse> {
|
|
988
|
+
return this.request("InquiryPriceModifyInstancesChargeType", req, cb)
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* 本接口(DescribeInternetChargeTypeConfigs)用于查询网络的计费类型。
|
|
993
|
+
*/
|
|
994
|
+
async DescribeInternetChargeTypeConfigs(
|
|
995
|
+
req?: DescribeInternetChargeTypeConfigsRequest,
|
|
996
|
+
cb?: (error: string, rep: DescribeInternetChargeTypeConfigsResponse) => void
|
|
997
|
+
): Promise<DescribeInternetChargeTypeConfigsResponse> {
|
|
998
|
+
return this.request("DescribeInternetChargeTypeConfigs", req, cb)
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* 本接口 (RebootInstances) 用于重启实例。
|
|
1003
|
+
|
|
1004
|
+
* 只有状态为`RUNNING`的实例才可以进行此操作。
|
|
1005
|
+
* 接口调用成功时,实例会进入`REBOOTING`状态;重启实例成功时,实例会进入`RUNNING`状态。
|
|
1006
|
+
* 支持强制重启。强制重启的效果等同于关闭物理计算机的电源开关再重新启动。强制重启可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常重启时使用。
|
|
1007
|
+
* 支持批量操作,每次请求批量实例的上限为100。
|
|
991
1008
|
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
992
1009
|
*/
|
|
993
|
-
async
|
|
994
|
-
req:
|
|
995
|
-
cb?: (error: string, rep:
|
|
996
|
-
): Promise<
|
|
997
|
-
return this.request("
|
|
1010
|
+
async RebootInstances(
|
|
1011
|
+
req: RebootInstancesRequest,
|
|
1012
|
+
cb?: (error: string, rep: RebootInstancesResponse) => void
|
|
1013
|
+
): Promise<RebootInstancesResponse> {
|
|
1014
|
+
return this.request("RebootInstances", req, cb)
|
|
998
1015
|
}
|
|
999
1016
|
|
|
1000
1017
|
/**
|
|
1001
|
-
* 本接口 (
|
|
1018
|
+
* 本接口 (ModifyKeyPairAttribute) 用于修改密钥对属性。
|
|
1002
1019
|
|
|
1003
|
-
*
|
|
1020
|
+
* 修改密钥对ID所指定的密钥对的名称和描述信息。
|
|
1021
|
+
* 密钥对名称不能和已经存在的密钥对的名称重复。
|
|
1022
|
+
* 密钥对ID是密钥对的唯一标识,不可修改。
|
|
1004
1023
|
*/
|
|
1005
|
-
async
|
|
1006
|
-
req:
|
|
1007
|
-
cb?: (error: string, rep:
|
|
1008
|
-
): Promise<
|
|
1009
|
-
return this.request("
|
|
1024
|
+
async ModifyKeyPairAttribute(
|
|
1025
|
+
req: ModifyKeyPairAttributeRequest,
|
|
1026
|
+
cb?: (error: string, rep: ModifyKeyPairAttributeResponse) => void
|
|
1027
|
+
): Promise<ModifyKeyPairAttributeResponse> {
|
|
1028
|
+
return this.request("ModifyKeyPairAttribute", req, cb)
|
|
1010
1029
|
}
|
|
1011
1030
|
|
|
1012
1031
|
/**
|
|
1013
|
-
*
|
|
1032
|
+
* 本接口(ModifyHostsAttribute)用于修改CDH实例的属性,如实例名称和续费标记等。参数HostName和RenewFlag必须设置其中一个,但不能同时设置。
|
|
1014
1033
|
*/
|
|
1015
|
-
async
|
|
1016
|
-
req:
|
|
1017
|
-
cb?: (error: string, rep:
|
|
1018
|
-
): Promise<
|
|
1019
|
-
return this.request("
|
|
1034
|
+
async ModifyHostsAttribute(
|
|
1035
|
+
req: ModifyHostsAttributeRequest,
|
|
1036
|
+
cb?: (error: string, rep: ModifyHostsAttributeResponse) => void
|
|
1037
|
+
): Promise<ModifyHostsAttributeResponse> {
|
|
1038
|
+
return this.request("ModifyHostsAttribute", req, cb)
|
|
1020
1039
|
}
|
|
1021
1040
|
|
|
1022
1041
|
/**
|
|
1023
|
-
|
|
1042
|
+
* 本接口(DescribeImages) 用于查看镜像列表。
|
|
1043
|
+
|
|
1044
|
+
* 可以通过指定镜像ID来查询指定镜像的详细信息,或通过设定过滤器来查询满足过滤条件的镜像的详细信息。
|
|
1045
|
+
* 指定偏移(Offset)和限制(Limit)来选择结果中的一部分,默认返回满足条件的前20个镜像信息。
|
|
1046
|
+
*/
|
|
1047
|
+
async DescribeImages(
|
|
1048
|
+
req: DescribeImagesRequest,
|
|
1049
|
+
cb?: (error: string, rep: DescribeImagesResponse) => void
|
|
1050
|
+
): Promise<DescribeImagesResponse> {
|
|
1051
|
+
return this.request("DescribeImages", req, cb)
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* 本接口 (CreateDisasterRecoverGroup)用于创建[分散置放群组](https://cloud.tencent.com/document/product/213/15486)。创建好的置放群组,可在[创建实例](https://cloud.tencent.com/document/api/213/15730)时指定。
|
|
1024
1056
|
*/
|
|
1025
|
-
async
|
|
1026
|
-
req:
|
|
1027
|
-
cb?: (error: string, rep:
|
|
1028
|
-
): Promise<
|
|
1029
|
-
return this.request("
|
|
1057
|
+
async CreateDisasterRecoverGroup(
|
|
1058
|
+
req: CreateDisasterRecoverGroupRequest,
|
|
1059
|
+
cb?: (error: string, rep: CreateDisasterRecoverGroupResponse) => void
|
|
1060
|
+
): Promise<CreateDisasterRecoverGroupResponse> {
|
|
1061
|
+
return this.request("CreateDisasterRecoverGroup", req, cb)
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* 本接口 (DescribeInstances) 用于查询一个或多个实例的详细信息。
|
|
1066
|
+
|
|
1067
|
+
* 可以根据实例`ID`、实例名称或者实例计费模式等信息来查询实例的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
1068
|
+
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的实例。
|
|
1069
|
+
* 支持查询实例的最新操作(LatestOperation)以及最新操作状态(LatestOperationState)。
|
|
1070
|
+
*/
|
|
1071
|
+
async DescribeInstances(
|
|
1072
|
+
req: DescribeInstancesRequest,
|
|
1073
|
+
cb?: (error: string, rep: DescribeInstancesResponse) => void
|
|
1074
|
+
): Promise<DescribeInstancesResponse> {
|
|
1075
|
+
return this.request("DescribeInstances", req, cb)
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* 本接口(DescribeLaunchTemplateVersions)用于查询实例模板版本信息。
|
|
1080
|
+
*/
|
|
1081
|
+
async DescribeLaunchTemplateVersions(
|
|
1082
|
+
req: DescribeLaunchTemplateVersionsRequest,
|
|
1083
|
+
cb?: (error: string, rep: DescribeLaunchTemplateVersionsResponse) => void
|
|
1084
|
+
): Promise<DescribeLaunchTemplateVersionsResponse> {
|
|
1085
|
+
return this.request("DescribeLaunchTemplateVersions", req, cb)
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* 本接口 (DescribeInstanceInternetBandwidthConfigs) 用于查询实例带宽配置。
|
|
1090
|
+
|
|
1091
|
+
* 只支持查询`BANDWIDTH_PREPAID`( 预付费按带宽结算 )计费模式的带宽配置。
|
|
1092
|
+
* 接口返回实例的所有带宽配置信息(包含历史的带宽配置信息)。
|
|
1093
|
+
*/
|
|
1094
|
+
async DescribeInstanceInternetBandwidthConfigs(
|
|
1095
|
+
req: DescribeInstanceInternetBandwidthConfigsRequest,
|
|
1096
|
+
cb?: (error: string, rep: DescribeInstanceInternetBandwidthConfigsResponse) => void
|
|
1097
|
+
): Promise<DescribeInstanceInternetBandwidthConfigsResponse> {
|
|
1098
|
+
return this.request("DescribeInstanceInternetBandwidthConfigs", req, cb)
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* 本接口 (InquiryPriceTerminateInstances) 用于退还实例询价。
|
|
1103
|
+
|
|
1104
|
+
* 查询退还实例可以返还的费用。
|
|
1105
|
+
* 支持批量操作,每次请求批量实例的上限为100。如果批量实例存在不允许操作的实例,操作会以特定[错误码](#4.-.E9.94.99.E8.AF.AF.E7.A0.81)返回。
|
|
1106
|
+
*/
|
|
1107
|
+
async InquiryPriceTerminateInstances(
|
|
1108
|
+
req: InquiryPriceTerminateInstancesRequest,
|
|
1109
|
+
cb?: (error: string, rep: InquiryPriceTerminateInstancesResponse) => void
|
|
1110
|
+
): Promise<InquiryPriceTerminateInstancesResponse> {
|
|
1111
|
+
return this.request("InquiryPriceTerminateInstances", req, cb)
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* 本接口(DeleteImages)用于删除一个或多个镜像。
|
|
1116
|
+
|
|
1117
|
+
* 当[镜像状态](https://cloud.tencent.com/document/product/213/15753#Image)为`创建中`和`使用中`时, 不允许删除。镜像状态可以通过[DescribeImages](https://cloud.tencent.com/document/api/213/9418)获取。
|
|
1118
|
+
* 每个地域最多只支持创建10个自定义镜像,删除镜像可以释放账户的配额。
|
|
1119
|
+
* 当镜像正在被其它账户分享时,不允许删除。
|
|
1120
|
+
*/
|
|
1121
|
+
async DeleteImages(
|
|
1122
|
+
req: DeleteImagesRequest,
|
|
1123
|
+
cb?: (error: string, rep: DeleteImagesResponse) => void
|
|
1124
|
+
): Promise<DeleteImagesResponse> {
|
|
1125
|
+
return this.request("DeleteImages", req, cb)
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* 本接口(DeleteLaunchTemplateVersions)用于删除一个或者多个实例启动模板版本。
|
|
1130
|
+
*/
|
|
1131
|
+
async DeleteLaunchTemplateVersions(
|
|
1132
|
+
req: DeleteLaunchTemplateVersionsRequest,
|
|
1133
|
+
cb?: (error: string, rep: DeleteLaunchTemplateVersionsResponse) => void
|
|
1134
|
+
): Promise<DeleteLaunchTemplateVersionsResponse> {
|
|
1135
|
+
return this.request("DeleteLaunchTemplateVersions", req, cb)
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* 本接口 (ResetInstancesPassword) 用于将实例操作系统的密码重置为用户指定的密码。
|
|
1140
|
+
|
|
1141
|
+
*如果是修改系统管理云密码:实例的操作系统不同,管理员帐号也会不一样(`Windows`为`Administrator`,`Ubuntu`为`ubuntu`,其它系统为`root`)。
|
|
1142
|
+
* 重置处于运行中状态的实例密码,需要设置关机参数`ForceStop`为`TRUE`。如果没有显式指定强制关机参数,则只有处于关机状态的实例才允许执行重置密码操作。
|
|
1143
|
+
* 支持批量操作。将多个实例操作系统的密码重置为相同的密码。每次请求批量实例的上限为100。
|
|
1144
|
+
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
1145
|
+
*/
|
|
1146
|
+
async ResetInstancesPassword(
|
|
1147
|
+
req: ResetInstancesPasswordRequest,
|
|
1148
|
+
cb?: (error: string, rep: ResetInstancesPasswordResponse) => void
|
|
1149
|
+
): Promise<ResetInstancesPasswordResponse> {
|
|
1150
|
+
return this.request("ResetInstancesPassword", req, cb)
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* 本接口 (ResizeInstanceDisks) 用于扩容实例的数据盘。
|
|
1155
|
+
|
|
1156
|
+
* 目前只支持扩容非弹性盘([`DescribeDisks`](https://cloud.tencent.com/document/api/362/16315)接口返回值中的`Portable`为`false`表示非弹性),且[数据盘类型](https://cloud.tencent.com/document/api/213/15753#DataDisk)为:`CLOUD_BASIC`、`CLOUD_PREMIUM`、`CLOUD_SSD`和[CDH](https://cloud.tencent.com/document/product/416)实例的`LOCAL_BASIC`、`LOCAL_SSD`类型数据盘。
|
|
1157
|
+
* 对于包年包月实例,使用该接口会涉及扣费,请确保账户余额充足。可通过[`DescribeAccountBalance`](https://cloud.tencent.com/document/product/555/20253)接口查询账户余额。
|
|
1158
|
+
* 目前只支持扩容一块数据盘。
|
|
1159
|
+
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
1160
|
+
* 如果是系统盘,目前只支持扩容,不支持缩容。
|
|
1161
|
+
*/
|
|
1162
|
+
async ResizeInstanceDisks(
|
|
1163
|
+
req: ResizeInstanceDisksRequest,
|
|
1164
|
+
cb?: (error: string, rep: ResizeInstanceDisksResponse) => void
|
|
1165
|
+
): Promise<ResizeInstanceDisksResponse> {
|
|
1166
|
+
return this.request("ResizeInstanceDisks", req, cb)
|
|
1030
1167
|
}
|
|
1031
1168
|
|
|
1032
1169
|
/**
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
req: ImportKeyPairRequest,
|
|
1041
|
-
cb?: (error: string, rep: ImportKeyPairResponse) => void
|
|
1042
|
-
): Promise<ImportKeyPairResponse> {
|
|
1043
|
-
return this.request("ImportKeyPair", req, cb)
|
|
1170
|
+
* 本接口(DescribeZones)用于查询可用区信息。
|
|
1171
|
+
*/
|
|
1172
|
+
async DescribeZones(
|
|
1173
|
+
req?: DescribeZonesRequest,
|
|
1174
|
+
cb?: (error: string, rep: DescribeZonesResponse) => void
|
|
1175
|
+
): Promise<DescribeZonesResponse> {
|
|
1176
|
+
return this.request("DescribeZones", req, cb)
|
|
1044
1177
|
}
|
|
1045
1178
|
|
|
1046
1179
|
/**
|
|
1047
|
-
*
|
|
1180
|
+
* 本接口(DescribeImageQuota)用于查询用户帐号的镜像配额。
|
|
1048
1181
|
*/
|
|
1049
|
-
async
|
|
1050
|
-
req
|
|
1051
|
-
cb?: (error: string, rep:
|
|
1052
|
-
): Promise<
|
|
1053
|
-
return this.request("
|
|
1182
|
+
async DescribeImageQuota(
|
|
1183
|
+
req?: DescribeImageQuotaRequest,
|
|
1184
|
+
cb?: (error: string, rep: DescribeImageQuotaResponse) => void
|
|
1185
|
+
): Promise<DescribeImageQuotaResponse> {
|
|
1186
|
+
return this.request("DescribeImageQuota", req, cb)
|
|
1054
1187
|
}
|
|
1055
1188
|
|
|
1056
1189
|
/**
|
|
1057
|
-
* 本接口
|
|
1190
|
+
* 本接口(DescribeAccountQuota)用于查询用户配额详情。
|
|
1058
1191
|
*/
|
|
1059
|
-
async
|
|
1060
|
-
req:
|
|
1061
|
-
cb?: (error: string, rep:
|
|
1062
|
-
): Promise<
|
|
1063
|
-
return this.request("
|
|
1192
|
+
async DescribeAccountQuota(
|
|
1193
|
+
req: DescribeAccountQuotaRequest,
|
|
1194
|
+
cb?: (error: string, rep: DescribeAccountQuotaResponse) => void
|
|
1195
|
+
): Promise<DescribeAccountQuotaResponse> {
|
|
1196
|
+
return this.request("DescribeAccountQuota", req, cb)
|
|
1064
1197
|
}
|
|
1065
1198
|
|
|
1066
1199
|
/**
|
|
1067
|
-
*
|
|
1200
|
+
* 配置CHC物理服务器部署网络
|
|
1068
1201
|
*/
|
|
1069
|
-
async
|
|
1070
|
-
req
|
|
1071
|
-
cb?: (error: string, rep:
|
|
1072
|
-
): Promise<
|
|
1073
|
-
return this.request("
|
|
1202
|
+
async ConfigureChcDeployVpc(
|
|
1203
|
+
req: ConfigureChcDeployVpcRequest,
|
|
1204
|
+
cb?: (error: string, rep: ConfigureChcDeployVpcResponse) => void
|
|
1205
|
+
): Promise<ConfigureChcDeployVpcResponse> {
|
|
1206
|
+
return this.request("ConfigureChcDeployVpc", req, cb)
|
|
1074
1207
|
}
|
|
1075
1208
|
|
|
1076
1209
|
/**
|
|
1077
|
-
* 本接口 (
|
|
1210
|
+
* 本接口 (InquiryPriceResetInstancesType) 用于调整实例的机型询价。
|
|
1078
1211
|
|
|
1079
|
-
*
|
|
1080
|
-
*
|
|
1081
|
-
*
|
|
1212
|
+
* 目前只支持[系统盘类型](https://cloud.tencent.com/document/product/213/15753#SystemDisk)是`CLOUD_BASIC`、`CLOUD_PREMIUM`、`CLOUD_SSD`类型的实例使用该接口进行调整机型询价。
|
|
1213
|
+
* 目前不支持[CDH](https://cloud.tencent.com/document/product/416)实例使用该接口调整机型询价。
|
|
1214
|
+
* 对于包年包月实例,使用该接口会涉及扣费,请确保账户余额充足。可通过[`DescribeAccountBalance`](https://cloud.tencent.com/document/product/555/20253)接口查询账户余额。
|
|
1082
1215
|
*/
|
|
1083
|
-
async
|
|
1084
|
-
req:
|
|
1085
|
-
cb?: (error: string, rep:
|
|
1086
|
-
): Promise<
|
|
1087
|
-
return this.request("
|
|
1216
|
+
async InquiryPriceResetInstancesType(
|
|
1217
|
+
req: InquiryPriceResetInstancesTypeRequest,
|
|
1218
|
+
cb?: (error: string, rep: InquiryPriceResetInstancesTypeResponse) => void
|
|
1219
|
+
): Promise<InquiryPriceResetInstancesTypeResponse> {
|
|
1220
|
+
return this.request("InquiryPriceResetInstancesType", req, cb)
|
|
1088
1221
|
}
|
|
1089
1222
|
|
|
1090
1223
|
/**
|
|
1091
|
-
|
|
1224
|
+
* 本接口(ProgramFpgaImage)用于在线烧录由客户提供的FPGA镜像文件到指定实例的指定FPGA卡上。
|
|
1225
|
+
* 只支持对单个实例发起在线烧录FPGA镜像的操作。
|
|
1226
|
+
* 支持对单个实例的多块FPGA卡同时烧录FPGA镜像,DBDFs参数为空时,默认对指定实例的所有FPGA卡进行烧录。
|
|
1227
|
+
*/
|
|
1228
|
+
async ProgramFpgaImage(
|
|
1229
|
+
req: ProgramFpgaImageRequest,
|
|
1230
|
+
cb?: (error: string, rep: ProgramFpgaImageResponse) => void
|
|
1231
|
+
): Promise<ProgramFpgaImageResponse> {
|
|
1232
|
+
return this.request("ProgramFpgaImage", req, cb)
|
|
1233
|
+
}
|
|
1092
1234
|
|
|
1093
|
-
|
|
1094
|
-
*
|
|
1095
|
-
|
|
1096
|
-
async
|
|
1097
|
-
req:
|
|
1098
|
-
cb?: (error: string, rep:
|
|
1099
|
-
): Promise<
|
|
1100
|
-
return this.request("
|
|
1235
|
+
/**
|
|
1236
|
+
* 本接口(CreateLaunchTemplateVersion)根据指定的实例模板ID以及对应的模板版本号创建新的实例启动模板,若未指定模板版本号则使用默认版本号。每个实例启动模板最多创建30个版本。
|
|
1237
|
+
*/
|
|
1238
|
+
async CreateLaunchTemplateVersion(
|
|
1239
|
+
req: CreateLaunchTemplateVersionRequest,
|
|
1240
|
+
cb?: (error: string, rep: CreateLaunchTemplateVersionResponse) => void
|
|
1241
|
+
): Promise<CreateLaunchTemplateVersionResponse> {
|
|
1242
|
+
return this.request("CreateLaunchTemplateVersion", req, cb)
|
|
1101
1243
|
}
|
|
1102
1244
|
|
|
1103
1245
|
/**
|
|
1104
|
-
*
|
|
1246
|
+
* 提供导出自定义镜像到指定COS存储桶的能力
|
|
1105
1247
|
*/
|
|
1106
|
-
async
|
|
1107
|
-
req:
|
|
1108
|
-
cb?: (error: string, rep:
|
|
1109
|
-
): Promise<
|
|
1110
|
-
return this.request("
|
|
1248
|
+
async ExportImages(
|
|
1249
|
+
req: ExportImagesRequest,
|
|
1250
|
+
cb?: (error: string, rep: ExportImagesResponse) => void
|
|
1251
|
+
): Promise<ExportImagesResponse> {
|
|
1252
|
+
return this.request("ExportImages", req, cb)
|
|
1111
1253
|
}
|
|
1112
1254
|
|
|
1113
1255
|
/**
|
|
1114
|
-
* 本接口 (
|
|
1256
|
+
* 本接口 (RenewInstances) 用于续费包年包月实例。
|
|
1115
1257
|
|
|
1116
|
-
*
|
|
1117
|
-
*
|
|
1118
|
-
*
|
|
1119
|
-
* 本接口允许购买的实例数量遵循[CVM实例购买限制](https://cloud.tencent.com/document/product/213/2664),所创建的实例和官网入口创建的实例共用配额。
|
|
1120
|
-
* 本接口为异步接口,当创建实例请求下发成功后会返回一个实例`ID`列表和一个`RequestId`,此时创建实例操作并未立即完成。在此期间实例的状态将会处于“PENDING”,实例创建结果可以通过调用 [DescribeInstancesStatus](https://cloud.tencent.com/document/product/213/15738) 接口查询,如果实例状态(InstanceState)由“PENDING”变为“RUNNING”,则代表实例创建成功,“LAUNCH_FAILED”代表实例创建失败。
|
|
1258
|
+
* 只支持操作包年包月实例。
|
|
1259
|
+
* 续费时请确保账户余额充足。可通过[`DescribeAccountBalance`](https://cloud.tencent.com/document/product/555/20253)接口查询账户余额。
|
|
1260
|
+
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
1121
1261
|
*/
|
|
1122
|
-
async
|
|
1123
|
-
req:
|
|
1124
|
-
cb?: (error: string, rep:
|
|
1125
|
-
): Promise<
|
|
1126
|
-
return this.request("
|
|
1262
|
+
async RenewInstances(
|
|
1263
|
+
req: RenewInstancesRequest,
|
|
1264
|
+
cb?: (error: string, rep: RenewInstancesResponse) => void
|
|
1265
|
+
): Promise<RenewInstancesResponse> {
|
|
1266
|
+
return this.request("RenewInstances", req, cb)
|
|
1127
1267
|
}
|
|
1128
1268
|
|
|
1129
1269
|
/**
|
|
@@ -1145,72 +1285,39 @@ https://img.qcloud.com/qcloud/app/active_vnc/index.html?InstanceVncUrl=wss%3A%2F
|
|
|
1145
1285
|
}
|
|
1146
1286
|
|
|
1147
1287
|
/**
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
* 密钥对是通过一种算法生成的一对密钥,在生成的密钥对中,一个向外界公开,称为公钥;另一个用户自己保留,称为私钥。密钥对的公钥内容可以通过这个接口查询,但私钥内容系统不保留。
|
|
1151
|
-
*/
|
|
1152
|
-
async DescribeKeyPairs(
|
|
1153
|
-
req: DescribeKeyPairsRequest,
|
|
1154
|
-
cb?: (error: string, rep: DescribeKeyPairsResponse) => void
|
|
1155
|
-
): Promise<DescribeKeyPairsResponse> {
|
|
1156
|
-
return this.request("DescribeKeyPairs", req, cb)
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
/**
|
|
1160
|
-
* 本接口(DescribeReservedInstancesOfferings)供用户列出可购买的预留实例配置
|
|
1161
|
-
*/
|
|
1162
|
-
async DescribeReservedInstancesOfferings(
|
|
1163
|
-
req: DescribeReservedInstancesOfferingsRequest,
|
|
1164
|
-
cb?: (error: string, rep: DescribeReservedInstancesOfferingsResponse) => void
|
|
1165
|
-
): Promise<DescribeReservedInstancesOfferingsResponse> {
|
|
1166
|
-
return this.request("DescribeReservedInstancesOfferings", req, cb)
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
/**
|
|
1170
|
-
* 本接口 (DescribeHosts) 用于获取一个或多个CDH实例的详细信息。
|
|
1288
|
+
* 本接口 (DescribeDisasterRecoverGroups)用于查询[分散置放群组](https://cloud.tencent.com/document/product/213/15486)信息。
|
|
1171
1289
|
*/
|
|
1172
|
-
async
|
|
1173
|
-
req:
|
|
1174
|
-
cb?: (error: string, rep:
|
|
1175
|
-
): Promise<
|
|
1176
|
-
return this.request("
|
|
1290
|
+
async DescribeDisasterRecoverGroups(
|
|
1291
|
+
req: DescribeDisasterRecoverGroupsRequest,
|
|
1292
|
+
cb?: (error: string, rep: DescribeDisasterRecoverGroupsResponse) => void
|
|
1293
|
+
): Promise<DescribeDisasterRecoverGroupsResponse> {
|
|
1294
|
+
return this.request("DescribeDisasterRecoverGroups", req, cb)
|
|
1177
1295
|
}
|
|
1178
1296
|
|
|
1179
1297
|
/**
|
|
1180
|
-
|
|
1181
|
-
* 当HostChargeType为PREPAID时,必须指定HostChargePrepaid参数。
|
|
1182
|
-
*/
|
|
1183
|
-
async AllocateHosts(
|
|
1184
|
-
req: AllocateHostsRequest,
|
|
1185
|
-
cb?: (error: string, rep: AllocateHostsResponse) => void
|
|
1186
|
-
): Promise<AllocateHostsResponse> {
|
|
1187
|
-
return this.request("AllocateHosts", req, cb)
|
|
1188
|
-
}
|
|
1298
|
+
* 本接口 (DescribeChcHosts) 用于查询一个或多个CHC物理服务器详细信息。
|
|
1189
1299
|
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
async
|
|
1194
|
-
req
|
|
1195
|
-
cb?: (error: string, rep:
|
|
1196
|
-
): Promise<
|
|
1197
|
-
return this.request("
|
|
1300
|
+
* 可以根据实例`ID`、实例名称或者设备类型等信息来查询实例的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
1301
|
+
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的实例。
|
|
1302
|
+
*/
|
|
1303
|
+
async DescribeChcHosts(
|
|
1304
|
+
req: DescribeChcHostsRequest,
|
|
1305
|
+
cb?: (error: string, rep: DescribeChcHostsResponse) => void
|
|
1306
|
+
): Promise<DescribeChcHostsResponse> {
|
|
1307
|
+
return this.request("DescribeChcHosts", req, cb)
|
|
1198
1308
|
}
|
|
1199
1309
|
|
|
1200
1310
|
/**
|
|
1201
|
-
* 本接口 (
|
|
1311
|
+
* 本接口 (DescribeInstanceTypeConfigs) 用于查询实例机型配置。
|
|
1202
1312
|
|
|
1203
|
-
*
|
|
1204
|
-
*
|
|
1205
|
-
* 支持强制重启。强制重启的效果等同于关闭物理计算机的电源开关再重新启动。强制重启可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常重启时使用。
|
|
1206
|
-
* 支持批量操作,每次请求批量实例的上限为100。
|
|
1207
|
-
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
1313
|
+
* 可以根据`zone`、`instance-family`来查询实例机型配置。过滤条件详见过滤器[`Filter`](https://cloud.tencent.com/document/api/213/15753#Filter)。
|
|
1314
|
+
* 如果参数为空,返回指定地域的所有实例机型配置。
|
|
1208
1315
|
*/
|
|
1209
|
-
async
|
|
1210
|
-
req:
|
|
1211
|
-
cb?: (error: string, rep:
|
|
1212
|
-
): Promise<
|
|
1213
|
-
return this.request("
|
|
1316
|
+
async DescribeInstanceTypeConfigs(
|
|
1317
|
+
req: DescribeInstanceTypeConfigsRequest,
|
|
1318
|
+
cb?: (error: string, rep: DescribeInstanceTypeConfigsResponse) => void
|
|
1319
|
+
): Promise<DescribeInstanceTypeConfigsResponse> {
|
|
1320
|
+
return this.request("DescribeInstanceTypeConfigs", req, cb)
|
|
1214
1321
|
}
|
|
1215
1322
|
|
|
1216
1323
|
/**
|
|
@@ -1227,51 +1334,4 @@ https://img.qcloud.com/qcloud/app/active_vnc/index.html?InstanceVncUrl=wss%3A%2F
|
|
|
1227
1334
|
): Promise<ModifyInstanceDiskTypeResponse> {
|
|
1228
1335
|
return this.request("ModifyInstanceDiskType", req, cb)
|
|
1229
1336
|
}
|
|
1230
|
-
|
|
1231
|
-
/**
|
|
1232
|
-
* 本接口(ModifyHostsAttribute)用于修改CDH实例的属性,如实例名称和续费标记等。参数HostName和RenewFlag必须设置其中一个,但不能同时设置。
|
|
1233
|
-
*/
|
|
1234
|
-
async ModifyHostsAttribute(
|
|
1235
|
-
req: ModifyHostsAttributeRequest,
|
|
1236
|
-
cb?: (error: string, rep: ModifyHostsAttributeResponse) => void
|
|
1237
|
-
): Promise<ModifyHostsAttributeResponse> {
|
|
1238
|
-
return this.request("ModifyHostsAttribute", req, cb)
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
/**
|
|
1242
|
-
* 本接口 (DescribeInstanceTypeConfigs) 用于查询实例机型配置。
|
|
1243
|
-
|
|
1244
|
-
* 可以根据`zone`、`instance-family`来查询实例机型配置。过滤条件详见过滤器[`Filter`](https://cloud.tencent.com/document/api/213/15753#Filter)。
|
|
1245
|
-
* 如果参数为空,返回指定地域的所有实例机型配置。
|
|
1246
|
-
*/
|
|
1247
|
-
async DescribeInstanceTypeConfigs(
|
|
1248
|
-
req: DescribeInstanceTypeConfigsRequest,
|
|
1249
|
-
cb?: (error: string, rep: DescribeInstanceTypeConfigsResponse) => void
|
|
1250
|
-
): Promise<DescribeInstanceTypeConfigsResponse> {
|
|
1251
|
-
return this.request("DescribeInstanceTypeConfigs", req, cb)
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
/**
|
|
1255
|
-
* 本接口 (DisassociateSecurityGroups) 用于解绑实例的指定安全组。
|
|
1256
|
-
* 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
|
1257
|
-
*/
|
|
1258
|
-
async DisassociateSecurityGroups(
|
|
1259
|
-
req: DisassociateSecurityGroupsRequest,
|
|
1260
|
-
cb?: (error: string, rep: DisassociateSecurityGroupsResponse) => void
|
|
1261
|
-
): Promise<DisassociateSecurityGroupsResponse> {
|
|
1262
|
-
return this.request("DisassociateSecurityGroups", req, cb)
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
/**
|
|
1266
|
-
* 本接口 (DescribeChcHosts) 用于查询一个或多个CHC物理服务器详细信息。
|
|
1267
|
-
|
|
1268
|
-
* 可以根据实例`ID`、实例名称或者设备类型等信息来查询实例的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
1269
|
-
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的实例。
|
|
1270
|
-
*/
|
|
1271
|
-
async DescribeChcHosts(
|
|
1272
|
-
req: DescribeChcHostsRequest,
|
|
1273
|
-
cb?: (error: string, rep: DescribeChcHostsResponse) => void
|
|
1274
|
-
): Promise<DescribeChcHostsResponse> {
|
|
1275
|
-
return this.request("DescribeChcHosts", req, cb)
|
|
1276
|
-
}
|
|
1277
1337
|
}
|