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