tencentcloud-sdk-nodejs-intl-en 3.0.1041 → 3.0.1043
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/package.json +1 -1
- package/tencentcloud/apigateway/v20180808/models.js +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cvm/v20170312/cvm_client.js +141 -86
- package/tencentcloud/cvm/v20170312/models.js +748 -254
- package/tencentcloud/faceid/v20180301/models.js +5 -2
- package/tencentcloud/mdl/v20200326/models.js +19 -2
- package/tencentcloud/tke/v20180525/models.js +2 -2
- package/tencentcloud/trtc/v20190722/models.js +1178 -217
- package/tencentcloud/trtc/v20190722/trtc_client.js +108 -8
package/package.json
CHANGED
|
@@ -4559,7 +4559,7 @@ class BindApiAppRequest extends AbstractModel {
|
|
|
4559
4559
|
this.Environment = null;
|
|
4560
4560
|
|
|
4561
4561
|
/**
|
|
4562
|
-
* Unique ID of the service to be bound
|
|
4562
|
+
* Unique ID of the service to be bound.
|
|
4563
4563
|
* @type {string || null}
|
|
4564
4564
|
*/
|
|
4565
4565
|
this.ServiceId = null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1043";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -41,10 +41,10 @@ const DescribeHostsResponse = models.DescribeHostsResponse;
|
|
|
41
41
|
const DeleteKeyPairsRequest = models.DeleteKeyPairsRequest;
|
|
42
42
|
const SystemDisk = models.SystemDisk;
|
|
43
43
|
const ResetInstanceRequest = models.ResetInstanceRequest;
|
|
44
|
-
const
|
|
44
|
+
const ExitRescueModeResponse = models.ExitRescueModeResponse;
|
|
45
45
|
const DescribeChcHostsResponse = models.DescribeChcHostsResponse;
|
|
46
46
|
const AllocateHostsRequest = models.AllocateHostsRequest;
|
|
47
|
-
const
|
|
47
|
+
const DescribeImageFromFamilyRequest = models.DescribeImageFromFamilyRequest;
|
|
48
48
|
const DescribeRegionsResponse = models.DescribeRegionsResponse;
|
|
49
49
|
const PurchaseReservedInstancesOfferingRequest = models.PurchaseReservedInstancesOfferingRequest;
|
|
50
50
|
const RebootInstancesRequest = models.RebootInstancesRequest;
|
|
@@ -66,6 +66,7 @@ const ModifyInstancesVpcAttributeResponse = models.ModifyInstancesVpcAttributeRe
|
|
|
66
66
|
const CpuTopology = models.CpuTopology;
|
|
67
67
|
const CreateKeyPairResponse = models.CreateKeyPairResponse;
|
|
68
68
|
const DeleteKeyPairsResponse = models.DeleteKeyPairsResponse;
|
|
69
|
+
const EnterRescueModeRequest = models.EnterRescueModeRequest;
|
|
69
70
|
const TagSpecification = models.TagSpecification;
|
|
70
71
|
const ModifyImageSharePermissionRequest = models.ModifyImageSharePermissionRequest;
|
|
71
72
|
const DisassociateInstancesKeyPairsResponse = models.DisassociateInstancesKeyPairsResponse;
|
|
@@ -80,6 +81,7 @@ const DescribeZoneInstanceConfigInfosResponse = models.DescribeZoneInstanceConfi
|
|
|
80
81
|
const ModifyInstancesAttributeRequest = models.ModifyInstancesAttributeRequest;
|
|
81
82
|
const CreateDisasterRecoverGroupResponse = models.CreateDisasterRecoverGroupResponse;
|
|
82
83
|
const RemoveChcAssistVpcRequest = models.RemoveChcAssistVpcRequest;
|
|
84
|
+
const ConvertOperatingSystemsRequest = models.ConvertOperatingSystemsRequest;
|
|
83
85
|
const StartInstancesRequest = models.StartInstancesRequest;
|
|
84
86
|
const Tag = models.Tag;
|
|
85
87
|
const RunSecurityServiceEnabled = models.RunSecurityServiceEnabled;
|
|
@@ -111,9 +113,11 @@ const DescribeKeyPairsRequest = models.DescribeKeyPairsRequest;
|
|
|
111
113
|
const OperationCountLimit = models.OperationCountLimit;
|
|
112
114
|
const ReservedInstanceConfigInfoItem = models.ReservedInstanceConfigInfoItem;
|
|
113
115
|
const LaunchTemplateVersionData = models.LaunchTemplateVersionData;
|
|
116
|
+
const TargetOS = models.TargetOS;
|
|
114
117
|
const DeleteDisasterRecoverGroupsResponse = models.DeleteDisasterRecoverGroupsResponse;
|
|
115
118
|
const HostItem = models.HostItem;
|
|
116
119
|
const Externals = models.Externals;
|
|
120
|
+
const ConvertOperatingSystemsResponse = models.ConvertOperatingSystemsResponse;
|
|
117
121
|
const CreateImageRequest = models.CreateImageRequest;
|
|
118
122
|
const Instance = models.Instance;
|
|
119
123
|
const CreateLaunchTemplateVersionRequest = models.CreateLaunchTemplateVersionRequest;
|
|
@@ -121,6 +125,7 @@ const EnhancedService = models.EnhancedService;
|
|
|
121
125
|
const DescribeLaunchTemplatesResponse = models.DescribeLaunchTemplatesResponse;
|
|
122
126
|
const DescribeReservedInstancesOfferingsRequest = models.DescribeReservedInstancesOfferingsRequest;
|
|
123
127
|
const ReservedInstanceFamilyItem = models.ReservedInstanceFamilyItem;
|
|
128
|
+
const ExitRescueModeRequest = models.ExitRescueModeRequest;
|
|
124
129
|
const DescribeDisasterRecoverGroupsResponse = models.DescribeDisasterRecoverGroupsResponse;
|
|
125
130
|
const ExportImagesRequest = models.ExportImagesRequest;
|
|
126
131
|
const ActionTimer = models.ActionTimer;
|
|
@@ -140,13 +145,14 @@ const InstanceStatus = models.InstanceStatus;
|
|
|
140
145
|
const ReservedInstancePriceItem = models.ReservedInstancePriceItem;
|
|
141
146
|
const AllocateHostsResponse = models.AllocateHostsResponse;
|
|
142
147
|
const DescribeImageSharePermissionRequest = models.DescribeImageSharePermissionRequest;
|
|
143
|
-
const
|
|
148
|
+
const DescribeInstancesRequest = models.DescribeInstancesRequest;
|
|
144
149
|
const InquiryPriceResetInstanceResponse = models.InquiryPriceResetInstanceResponse;
|
|
145
150
|
const RunInstancesRequest = models.RunInstancesRequest;
|
|
146
151
|
const Filter = models.Filter;
|
|
147
152
|
const LaunchTemplateInfo = models.LaunchTemplateInfo;
|
|
148
153
|
const InquiryPriceResetInstancesInternetMaxBandwidthRequest = models.InquiryPriceResetInstancesInternetMaxBandwidthRequest;
|
|
149
154
|
const ModifyHostsAttributeResponse = models.ModifyHostsAttributeResponse;
|
|
155
|
+
const EnterRescueModeResponse = models.EnterRescueModeResponse;
|
|
150
156
|
const ModifyChcAttributeResponse = models.ModifyChcAttributeResponse;
|
|
151
157
|
const DescribeDisasterRecoverGroupQuotaRequest = models.DescribeDisasterRecoverGroupQuotaRequest;
|
|
152
158
|
const StartInstancesResponse = models.StartInstancesResponse;
|
|
@@ -174,21 +180,23 @@ const ModifyDisasterRecoverGroupAttributeRequest = models.ModifyDisasterRecoverG
|
|
|
174
180
|
const ConfigureChcAssistVpcResponse = models.ConfigureChcAssistVpcResponse;
|
|
175
181
|
const RebootInstancesResponse = models.RebootInstancesResponse;
|
|
176
182
|
const DescribeChcHostsRequest = models.DescribeChcHostsRequest;
|
|
183
|
+
const LaunchTemplate = models.LaunchTemplate;
|
|
177
184
|
const InquiryPriceResetInstancesTypeResponse = models.InquiryPriceResetInstancesTypeResponse;
|
|
178
185
|
const CreateLaunchTemplateVersionResponse = models.CreateLaunchTemplateVersionResponse;
|
|
179
186
|
const OsVersion = models.OsVersion;
|
|
180
187
|
const ModifyImageAttributeResponse = models.ModifyImageAttributeResponse;
|
|
181
188
|
const GPUInfo = models.GPUInfo;
|
|
182
|
-
const
|
|
189
|
+
const DisasterRecoverGroup = models.DisasterRecoverGroup;
|
|
183
190
|
const RegionInfo = models.RegionInfo;
|
|
184
191
|
const DescribeChcDeniedActionsRequest = models.DescribeChcDeniedActionsRequest;
|
|
185
|
-
const
|
|
192
|
+
const DescribeImageFromFamilyResponse = models.DescribeImageFromFamilyResponse;
|
|
186
193
|
const ModifyLaunchTemplateDefaultVersionRequest = models.ModifyLaunchTemplateDefaultVersionRequest;
|
|
187
194
|
const StopInstancesRequest = models.StopInstancesRequest;
|
|
188
195
|
const DescribeInternetChargeTypeConfigsRequest = models.DescribeInternetChargeTypeConfigsRequest;
|
|
189
196
|
const DescribeImagesRequest = models.DescribeImagesRequest;
|
|
190
197
|
const ModifyImageAttributeRequest = models.ModifyImageAttributeRequest;
|
|
191
198
|
const ResizeInstanceDisksResponse = models.ResizeInstanceDisksResponse;
|
|
199
|
+
const LoginSettings = models.LoginSettings;
|
|
192
200
|
const InquirePricePurchaseReservedInstancesOfferingResponse = models.InquirePricePurchaseReservedInstancesOfferingResponse;
|
|
193
201
|
const DisassociateSecurityGroupsRequest = models.DisassociateSecurityGroupsRequest;
|
|
194
202
|
const ModifyHostsAttributeRequest = models.ModifyHostsAttributeRequest;
|
|
@@ -214,6 +222,7 @@ const Snapshot = models.Snapshot;
|
|
|
214
222
|
const ModifyInstancesProjectResponse = models.ModifyInstancesProjectResponse;
|
|
215
223
|
const InstanceChargePrepaid = models.InstanceChargePrepaid;
|
|
216
224
|
const Price = models.Price;
|
|
225
|
+
const InquiryPriceResetInstancesTypeRequest = models.InquiryPriceResetInstancesTypeRequest;
|
|
217
226
|
|
|
218
227
|
|
|
219
228
|
/**
|
|
@@ -248,6 +257,17 @@ class CvmClient extends AbstractClient {
|
|
|
248
257
|
this.request("RemoveChcDeployVpc", req, resp, cb);
|
|
249
258
|
}
|
|
250
259
|
|
|
260
|
+
/**
|
|
261
|
+
* This API is used to enter the rescue mode.
|
|
262
|
+
* @param {EnterRescueModeRequest} req
|
|
263
|
+
* @param {function(string, EnterRescueModeResponse):void} cb
|
|
264
|
+
* @public
|
|
265
|
+
*/
|
|
266
|
+
EnterRescueMode(req, cb) {
|
|
267
|
+
let resp = new EnterRescueModeResponse();
|
|
268
|
+
this.request("EnterRescueMode", req, resp, cb);
|
|
269
|
+
}
|
|
270
|
+
|
|
251
271
|
/**
|
|
252
272
|
* This API is used to query the status of instances.
|
|
253
273
|
|
|
@@ -265,11 +285,10 @@ class CvmClient extends AbstractClient {
|
|
|
265
285
|
/**
|
|
266
286
|
* This API is used to modify image sharing information.
|
|
267
287
|
|
|
268
|
-
* The
|
|
269
|
-
* Each custom image can be shared with
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
|
|
288
|
+
* The account with shared image access can use the image to create instances.
|
|
289
|
+
* Each custom image can be shared with a maximum of 500 accounts.
|
|
290
|
+
* Shared images cannot have their names or description changed. They can only be used to create instances.
|
|
291
|
+
* Sharing is only supported within the same region as the recipient's account.
|
|
273
292
|
* @param {ModifyImageSharePermissionRequest} req
|
|
274
293
|
* @param {function(string, ModifyImageSharePermissionResponse):void} cb
|
|
275
294
|
* @public
|
|
@@ -301,17 +320,6 @@ class CvmClient extends AbstractClient {
|
|
|
301
320
|
this.request("ModifyLaunchTemplateDefaultVersion", req, resp, cb);
|
|
302
321
|
}
|
|
303
322
|
|
|
304
|
-
/**
|
|
305
|
-
* The API is used to import an image. The image imported can be used to create instances. Currently, this API can import images in formats like RAW, VHD, QCOW2, and VMDK.
|
|
306
|
-
* @param {ImportImageRequest} req
|
|
307
|
-
* @param {function(string, ImportImageResponse):void} cb
|
|
308
|
-
* @public
|
|
309
|
-
*/
|
|
310
|
-
ImportImage(req, cb) {
|
|
311
|
-
let resp = new ImportImageResponse();
|
|
312
|
-
this.request("ImportImage", req, resp, cb);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
323
|
/**
|
|
316
324
|
* This API is used to query the price of creating instances. You can only use this API for instances whose configuration is within the purchase limit. For more information, see [RunInstances](https://intl.cloud.tencent.com/document/api/213/15730?from_cn_redirect=1).
|
|
317
325
|
* @param {InquiryPriceRunInstancesRequest} req
|
|
@@ -335,17 +343,14 @@ class CvmClient extends AbstractClient {
|
|
|
335
343
|
}
|
|
336
344
|
|
|
337
345
|
/**
|
|
338
|
-
* This API is used to
|
|
339
|
-
|
|
340
|
-
*
|
|
341
|
-
* You can specify `Offset` and `Limit` to select a certain part of the results. By default, the information on the first 20 matching results is returned.
|
|
342
|
-
* @param {DescribeImagesRequest} req
|
|
343
|
-
* @param {function(string, DescribeImagesResponse):void} cb
|
|
346
|
+
* This API is used to associate security groups with specified instances.
|
|
347
|
+
* @param {AssociateSecurityGroupsRequest} req
|
|
348
|
+
* @param {function(string, AssociateSecurityGroupsResponse):void} cb
|
|
344
349
|
* @public
|
|
345
350
|
*/
|
|
346
|
-
|
|
347
|
-
let resp = new
|
|
348
|
-
this.request("
|
|
351
|
+
AssociateSecurityGroups(req, cb) {
|
|
352
|
+
let resp = new AssociateSecurityGroupsResponse();
|
|
353
|
+
this.request("AssociateSecurityGroups", req, resp, cb);
|
|
349
354
|
}
|
|
350
355
|
|
|
351
356
|
/**
|
|
@@ -495,19 +500,14 @@ class CvmClient extends AbstractClient {
|
|
|
495
500
|
}
|
|
496
501
|
|
|
497
502
|
/**
|
|
498
|
-
* This API is used to
|
|
499
|
-
|
|
500
|
-
*
|
|
501
|
-
* The instance status will become `STOPPING` when the API is called successfully and `STOPPED` when the instance is successfully shut down.
|
|
502
|
-
* Forced shutdown is supported. A forced shutdown is similar to switching off the power of a physical computer. It may cause data loss or file system corruption. Be sure to only force shut down a CVM when it cannot be sht down normally.
|
|
503
|
-
* Batch operations are supported. The maximum number of instances in each request is 100.
|
|
504
|
-
* @param {StopInstancesRequest} req
|
|
505
|
-
* @param {function(string, StopInstancesResponse):void} cb
|
|
503
|
+
* This API is used to exit the rescue mode.
|
|
504
|
+
* @param {ExitRescueModeRequest} req
|
|
505
|
+
* @param {function(string, ExitRescueModeResponse):void} cb
|
|
506
506
|
* @public
|
|
507
507
|
*/
|
|
508
|
-
|
|
509
|
-
let resp = new
|
|
510
|
-
this.request("
|
|
508
|
+
ExitRescueMode(req, cb) {
|
|
509
|
+
let resp = new ExitRescueModeResponse();
|
|
510
|
+
this.request("ExitRescueMode", req, resp, cb);
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
/**
|
|
@@ -637,11 +637,11 @@ If you currently use a password to log in, you will no longer be able to do so a
|
|
|
637
637
|
}
|
|
638
638
|
|
|
639
639
|
/**
|
|
640
|
-
* This API is used to
|
|
640
|
+
* This API is used to inquire about the price for reinstalling an instance.
|
|
641
641
|
|
|
642
|
-
* If you have specified the `ImageId
|
|
643
|
-
*
|
|
644
|
-
* Currently,
|
|
642
|
+
* If you have specified the parameter `ImageId`, inquire about the price for reinstallation by using the specified image. Otherwise, inquire about the price for reinstallation based on the image currently used by the instance.
|
|
643
|
+
* Currently, only instances with a [system disk type](https://intl.cloud.tencent.com/document/api/213/15753?from_cn_redirect=1#SystemDisk) of `CLOUD_BSSD`, `CLOUD_PREMIUM`, or `CLOUD_SSD` are supported for inquiring about the price for reinstallation caused by switching between `Linux` and `Windows` operating systems through this API.
|
|
644
|
+
* Currently, instances in regions outside the Chinese mainland are not supported for inquiring about the price for reinstallation caused by switching between `Linux` and `Windows` operating systems through this API.
|
|
645
645
|
* @param {InquiryPriceResetInstanceRequest} req
|
|
646
646
|
* @param {function(string, InquiryPriceResetInstanceResponse):void} cb
|
|
647
647
|
* @public
|
|
@@ -679,14 +679,17 @@ If you currently use a password to log in, you will no longer be able to do so a
|
|
|
679
679
|
}
|
|
680
680
|
|
|
681
681
|
/**
|
|
682
|
-
* This API is used to
|
|
683
|
-
|
|
684
|
-
|
|
682
|
+
* This API is used to query the price for adjusting the instance model.
|
|
683
|
+
|
|
684
|
+
* Currently, you can only use this API to query the prices of instances whose [system disk type](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#block_device) is `CLOUD_BASIC`, `CLOUD_PREMIUM`, or `CLOUD_SSD`.
|
|
685
|
+
* Currently, you cannot use this API to query the prices of [CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) instances.
|
|
686
|
+
* @param {InquiryPriceResetInstancesTypeRequest} req
|
|
687
|
+
* @param {function(string, InquiryPriceResetInstancesTypeResponse):void} cb
|
|
685
688
|
* @public
|
|
686
689
|
*/
|
|
687
|
-
|
|
688
|
-
let resp = new
|
|
689
|
-
this.request("
|
|
690
|
+
InquiryPriceResetInstancesType(req, cb) {
|
|
691
|
+
let resp = new InquiryPriceResetInstancesTypeResponse();
|
|
692
|
+
this.request("InquiryPriceResetInstancesType", req, resp, cb);
|
|
690
693
|
}
|
|
691
694
|
|
|
692
695
|
/**
|
|
@@ -786,17 +789,30 @@ If you currently use a password to log in, you will no longer be able to do so a
|
|
|
786
789
|
}
|
|
787
790
|
|
|
788
791
|
/**
|
|
789
|
-
* This API is used to
|
|
792
|
+
* This API is used to switch the operating system of an instance with CentOS 7 or CentOS 8 as the source operating system.
|
|
793
|
+
* @param {ConvertOperatingSystemsRequest} req
|
|
794
|
+
* @param {function(string, ConvertOperatingSystemsResponse):void} cb
|
|
795
|
+
* @public
|
|
796
|
+
*/
|
|
797
|
+
ConvertOperatingSystems(req, cb) {
|
|
798
|
+
let resp = new ConvertOperatingSystemsResponse();
|
|
799
|
+
this.request("ConvertOperatingSystems", req, resp, cb);
|
|
800
|
+
}
|
|
790
801
|
|
|
791
|
-
|
|
792
|
-
*
|
|
793
|
-
|
|
794
|
-
|
|
802
|
+
/**
|
|
803
|
+
* This API is used to shut down instances.
|
|
804
|
+
|
|
805
|
+
* You can only perform this operation on instances whose status is `RUNNING`.
|
|
806
|
+
* The instance status will become `STOPPING` when the API is called successfully and `STOPPED` when the instance is successfully shut down.
|
|
807
|
+
* Forced shutdown is supported. A forced shutdown is similar to switching off the power of a physical computer. It may cause data loss or file system corruption. Be sure to only force shut down a CVM when it cannot be sht down normally.
|
|
808
|
+
* Batch operations are supported. The maximum number of instances in each request is 100.
|
|
809
|
+
* @param {StopInstancesRequest} req
|
|
810
|
+
* @param {function(string, StopInstancesResponse):void} cb
|
|
795
811
|
* @public
|
|
796
812
|
*/
|
|
797
|
-
|
|
798
|
-
let resp = new
|
|
799
|
-
this.request("
|
|
813
|
+
StopInstances(req, cb) {
|
|
814
|
+
let resp = new StopInstancesResponse();
|
|
815
|
+
this.request("StopInstances", req, resp, cb);
|
|
800
816
|
}
|
|
801
817
|
|
|
802
818
|
/**
|
|
@@ -880,14 +896,15 @@ If you currently use a password to log in, you will no longer be able to do so a
|
|
|
880
896
|
}
|
|
881
897
|
|
|
882
898
|
/**
|
|
883
|
-
* This API is used to reinstall the operating system
|
|
899
|
+
* This API (ResetInstance) is used to reinstall the operating system on a specified instance.
|
|
900
|
+
|
|
884
901
|
|
|
885
|
-
|
|
886
|
-
*
|
|
887
|
-
*
|
|
888
|
-
* If
|
|
889
|
-
*
|
|
890
|
-
*
|
|
902
|
+
|
|
903
|
+
* If you have specified the parameter `ImageId`, use the specified image for reinstallation. Otherwise, perform reinstallation based on the image currently used by the instance.
|
|
904
|
+
* The system disk will be formatted and reset. Ensure that there are no important files in the system disk.
|
|
905
|
+
* If you do not specify a password, a random password will be sent via Message Center.
|
|
906
|
+
* Currently, only instances with a [system disk type](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#SystemDisk) of `CLOUD_BASIC`, `CLOUD_PREMIUM`, `CLOUD_SSD`, or `CLOUD_BSSD` are supported for implementing operating system switching through this API.
|
|
907
|
+
* You can query the result of the instance operation by calling the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.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). If the latest operation status (LatestOperationState) of the instance is **SUCCESS**, the operation is successful.
|
|
891
908
|
* @param {ResetInstanceRequest} req
|
|
892
909
|
* @param {function(string, ResetInstanceResponse):void} cb
|
|
893
910
|
* @public
|
|
@@ -898,11 +915,11 @@ If you currently use a password to log in, you will no longer be able to do so a
|
|
|
898
915
|
}
|
|
899
916
|
|
|
900
917
|
/**
|
|
901
|
-
* This API is used to
|
|
918
|
+
* This API is used to synchronize custom images to other regions.
|
|
902
919
|
|
|
903
|
-
*
|
|
904
|
-
* This API supports
|
|
905
|
-
*
|
|
920
|
+
* This API only supports synchronizing one image per call.
|
|
921
|
+
* This API supports multiple synchronization regions.
|
|
922
|
+
* A single account can have a maximum of 500 custom images in each region.
|
|
906
923
|
* @param {SyncImagesRequest} req
|
|
907
924
|
* @param {function(string, SyncImagesResponse):void} cb
|
|
908
925
|
* @public
|
|
@@ -913,11 +930,13 @@ If you currently use a password to log in, you will no longer be able to do so a
|
|
|
913
930
|
}
|
|
914
931
|
|
|
915
932
|
/**
|
|
916
|
-
* This API is used to modify
|
|
933
|
+
* This API is used to modify attributes of a key pair.
|
|
917
934
|
|
|
918
|
-
*
|
|
919
|
-
* The name
|
|
920
|
-
*
|
|
935
|
+
* Modify the name and description information of the key pair specified by the key pair ID.
|
|
936
|
+
* The key pair name should not be the same as the name of an existing key pair.
|
|
937
|
+
* The key pair ID is the unique identifier of a key pair and cannot be modified.
|
|
938
|
+
|
|
939
|
+
* Either the key pair name or description information should be specified, and both can also be specified simultaneously.
|
|
921
940
|
* @param {ModifyKeyPairAttributeRequest} req
|
|
922
941
|
* @param {function(string, ModifyKeyPairAttributeResponse):void} cb
|
|
923
942
|
* @public
|
|
@@ -928,14 +947,14 @@ If you currently use a password to log in, you will no longer be able to do so a
|
|
|
928
947
|
}
|
|
929
948
|
|
|
930
949
|
/**
|
|
931
|
-
* This API is used to
|
|
932
|
-
* @param {
|
|
933
|
-
* @param {function(string,
|
|
950
|
+
* This API is used to import an image. The image imported can be used to create instances. Currently, this API supports RAW, VHD, QCOW2, and VMDK image formats.
|
|
951
|
+
* @param {ImportImageRequest} req
|
|
952
|
+
* @param {function(string, ImportImageResponse):void} cb
|
|
934
953
|
* @public
|
|
935
954
|
*/
|
|
936
|
-
|
|
937
|
-
let resp = new
|
|
938
|
-
this.request("
|
|
955
|
+
ImportImage(req, cb) {
|
|
956
|
+
let resp = new ImportImageResponse();
|
|
957
|
+
this.request("ImportImage", req, resp, cb);
|
|
939
958
|
}
|
|
940
959
|
|
|
941
960
|
/**
|
|
@@ -1114,14 +1133,50 @@ If you currently use a password to log in, you will no longer be able to do so a
|
|
|
1114
1133
|
}
|
|
1115
1134
|
|
|
1116
1135
|
/**
|
|
1117
|
-
* This API is used to
|
|
1118
|
-
|
|
1119
|
-
|
|
1136
|
+
* This API is used to view the list of images.
|
|
1137
|
+
|
|
1138
|
+
* You specify the image ID or set filters to query the details of certain images.
|
|
1139
|
+
* You can specify `Offset` and `Limit` to select a certain part of the results. By default, the information on the first 20 matching results is returned.
|
|
1140
|
+
* @param {DescribeImagesRequest} req
|
|
1141
|
+
* @param {function(string, DescribeImagesResponse):void} cb
|
|
1120
1142
|
* @public
|
|
1121
1143
|
*/
|
|
1122
|
-
|
|
1123
|
-
let resp = new
|
|
1124
|
-
this.request("
|
|
1144
|
+
DescribeImages(req, cb) {
|
|
1145
|
+
let resp = new DescribeImagesResponse();
|
|
1146
|
+
this.request("DescribeImages", req, resp, cb);
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* This API is used to purchase one or more specific Reserved Instances.
|
|
1151
|
+
* @param {PurchaseReservedInstancesOfferingRequest} req
|
|
1152
|
+
* @param {function(string, PurchaseReservedInstancesOfferingResponse):void} cb
|
|
1153
|
+
* @public
|
|
1154
|
+
*/
|
|
1155
|
+
PurchaseReservedInstancesOffering(req, cb) {
|
|
1156
|
+
let resp = new PurchaseReservedInstancesOfferingResponse();
|
|
1157
|
+
this.request("PurchaseReservedInstancesOffering", req, resp, cb);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* This API is used to disassociate security groups from instances.
|
|
1162
|
+
* @param {DisassociateSecurityGroupsRequest} req
|
|
1163
|
+
* @param {function(string, DisassociateSecurityGroupsResponse):void} cb
|
|
1164
|
+
* @public
|
|
1165
|
+
*/
|
|
1166
|
+
DisassociateSecurityGroups(req, cb) {
|
|
1167
|
+
let resp = new DisassociateSecurityGroupsResponse();
|
|
1168
|
+
this.request("DisassociateSecurityGroups", req, resp, cb);
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* This API is used to view information about available images within an image family.
|
|
1173
|
+
* @param {DescribeImageFromFamilyRequest} req
|
|
1174
|
+
* @param {function(string, DescribeImageFromFamilyResponse):void} cb
|
|
1175
|
+
* @public
|
|
1176
|
+
*/
|
|
1177
|
+
DescribeImageFromFamily(req, cb) {
|
|
1178
|
+
let resp = new DescribeImageFromFamilyResponse();
|
|
1179
|
+
this.request("DescribeImageFromFamily", req, resp, cb);
|
|
1125
1180
|
}
|
|
1126
1181
|
|
|
1127
1182
|
/**
|