@alicloud/ecs20140526 7.0.3 → 7.0.5

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.
Files changed (45) hide show
  1. package/dist/client.d.ts +34 -6
  2. package/dist/client.js +40 -6
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAutoProvisioningGroupRequestLaunchConfiguration.d.ts +3 -3
  5. package/dist/models/CreateAutoProvisioningGroupRequestLaunchConfigurationImageOptions.d.ts +1 -1
  6. package/dist/models/CreateAutoProvisioningGroupShrinkRequestLaunchConfiguration.d.ts +3 -3
  7. package/dist/models/CreateAutoProvisioningGroupShrinkRequestLaunchConfigurationImageOptions.d.ts +1 -1
  8. package/dist/models/CreateDiskRequest.d.ts +18 -7
  9. package/dist/models/CreateDiskRequest.js.map +1 -1
  10. package/dist/models/CreateNetworkInterfaceRequestEnhancedNetwork.d.ts +2 -0
  11. package/dist/models/CreateNetworkInterfaceRequestEnhancedNetwork.js +4 -0
  12. package/dist/models/CreateNetworkInterfaceRequestEnhancedNetwork.js.map +1 -1
  13. package/dist/models/DescribeDisksRequest.d.ts +19 -2
  14. package/dist/models/DescribeDisksRequest.js.map +1 -1
  15. package/dist/models/DescribeInstancesResponseBodyInstancesInstanceCpuOptions.d.ts +1 -1
  16. package/dist/models/DescribeNetworkInterfaceAttributeResponseBodyEnhancedNetwork.d.ts +2 -0
  17. package/dist/models/DescribeNetworkInterfaceAttributeResponseBodyEnhancedNetwork.js +4 -0
  18. package/dist/models/DescribeNetworkInterfaceAttributeResponseBodyEnhancedNetwork.js.map +1 -1
  19. package/dist/models/DescribePriceRequest.d.ts +2 -2
  20. package/dist/models/DescribePriceRequestRecurrenceRules.d.ts +10 -10
  21. package/dist/models/DescribeSnapshotLinksRequest.d.ts +2 -0
  22. package/dist/models/DescribeSnapshotLinksRequest.js +4 -0
  23. package/dist/models/DescribeSnapshotLinksRequest.js.map +1 -1
  24. package/dist/models/DescribeSnapshotLinksResponseBody.d.ts +1 -0
  25. package/dist/models/DescribeSnapshotLinksResponseBody.js +2 -0
  26. package/dist/models/DescribeSnapshotLinksResponseBody.js.map +1 -1
  27. package/dist/models/ModifyNetworkInterfaceAttributeRequestEnhancedNetwork.d.ts +2 -0
  28. package/dist/models/ModifyNetworkInterfaceAttributeRequestEnhancedNetwork.js +4 -0
  29. package/dist/models/ModifyNetworkInterfaceAttributeRequestEnhancedNetwork.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/client.ts +42 -6
  32. package/src/models/CreateAutoProvisioningGroupRequestLaunchConfiguration.ts +3 -3
  33. package/src/models/CreateAutoProvisioningGroupRequestLaunchConfigurationImageOptions.ts +1 -1
  34. package/src/models/CreateAutoProvisioningGroupShrinkRequestLaunchConfiguration.ts +3 -3
  35. package/src/models/CreateAutoProvisioningGroupShrinkRequestLaunchConfigurationImageOptions.ts +1 -1
  36. package/src/models/CreateDiskRequest.ts +18 -7
  37. package/src/models/CreateNetworkInterfaceRequestEnhancedNetwork.ts +6 -0
  38. package/src/models/DescribeDisksRequest.ts +19 -2
  39. package/src/models/DescribeInstancesResponseBodyInstancesInstanceCpuOptions.ts +1 -1
  40. package/src/models/DescribeNetworkInterfaceAttributeResponseBodyEnhancedNetwork.ts +6 -0
  41. package/src/models/DescribePriceRequest.ts +2 -2
  42. package/src/models/DescribePriceRequestRecurrenceRules.ts +10 -10
  43. package/src/models/DescribeSnapshotLinksRequest.ts +6 -0
  44. package/src/models/DescribeSnapshotLinksResponseBody.ts +3 -0
  45. package/src/models/ModifyNetworkInterfaceAttributeRequestEnhancedNetwork.ts +6 -0
package/dist/client.d.ts CHANGED
@@ -8763,10 +8763,10 @@ export default class Client extends OpenApi {
8763
8763
  */
8764
8764
  runCommand(request: $_model.RunCommandRequest): Promise<$_model.RunCommandResponse>;
8765
8765
  /**
8766
- * Creates Elastic Compute Service (ECS) instances. This operation helps simplify the procedure to create and manage ECS instances. When you call this operation, you can choose to create multiple ECS instances at a time, automatically start the instances, and assign public IP addresses to the instances based on outbound bandwidth parameters. You can also use the features provided by the operation, such as configuring an automatic release time for instances, using a launch template, and configuring custom CPU options, to customize instance configurations for better management of instances.
8766
+ * Batch creates Elastic Compute Service (ECS) instances. You can automatically start, assign public IP addresses to, and specify an automatic release time for the instances.
8767
8767
  *
8768
8768
  * @remarks
8769
- * When you create an ECS instance, you are charged for ECS resources, including the [instance type](https://help.aliyun.com/document_detail/25398.html), [image](https://help.aliyun.com/document_detail/179021.html), [block storage](https://help.aliyun.com/document_detail/179022.html), and [public bandwidth](https://help.aliyun.com/document_detail/25411.html). Before you call this operation, familiarize yourself with the billing rules and [pricing](https://www.alibabacloud.com/zh/pricing-calculator#/commodity/vm_intl) of ECS resources.
8769
+ * Before you call this operation, familiarize yourself with the billing rules and [pricing](https://www.alibabacloud.com/zh/pricing-calculator#/commodity/vm_intl) of ECS resources.
8770
8770
  * This operation is an asynchronous operation. After a request to create ECS instances is sent, ECS instance IDs are returned but the creation and startup of the instances may be incomplete. You can call the [DescribeInstanceStatus](https://help.aliyun.com/document_detail/2679688.html) operation to query the status of the instances. When the status of an instance is `Running` in the DescribeInstanceStatus response, the instance is created and started.
8771
8771
  * ### [](#)Considerations
8772
8772
  * * If the resource inventory is insufficient to complete instance creation, Alibaba Cloud immediately sends an instance creation failure event (SystemFailure.Delete). You can call the [DescribeInstanceHistoryEvents](https://help.aliyun.com/document_detail/2679897.html) operation to check whether an instance creation failure event exists. For more information, see [System events related to instance creation failures](https://help.aliyun.com/document_detail/2545990.html).
@@ -8821,12 +8821,26 @@ export default class Client extends OpenApi {
8821
8821
  * InstanceChargeType:"PostPaid",
8822
8822
  * SpotStrategy:"SpotAsPriceGo", //Set the bidding policy to SpotAsPriceGo, which specifies that the instances are created as preemptible instances for which the market price at the time of purchase is automatically used as the bid price.
8823
8823
  * SpotDuration:1 //Set the protection period of the preemptible instances to 1. Unit: hours.
8824
- * Call the [CreateLaunchTemplate](https://help.aliyun.com/document_detail/2679729.html) operation to create a launch template. Then, use the launch template to create ECS instances in the China (Hangzhou) region. Examples:
8824
+ * Use a launch template created by calling the [CreateLaunchTemplate](https://help.aliyun.com/document_detail/2679729.html) operation to create ECS instances in the China (Hangzhou) region. Examples:
8825
8825
  * **Example: Create 10 ECS instances based on a launch template**
8826
8826
  * RegionId:"cn-hangzhou", //Set the region ID to cn-hangzhou, which specifies the China (Hangzhou) region.
8827
8827
  * Amount:10, //Set the number of ECS instances that you want to create to 10.
8828
8828
  * LaunchTemplateId:"lt-bp14xczpoxvb6rre****" //Set the launch template ID to lt-bp14xczpoxvb6rre****.
8829
8829
  * > If a parameter is specified both in the launch template that you reference in a request and in the instance parameters of the same request, the value specified in the instance parameters takes precedence. For example, if you set InstanceChargeType in the launch template to PrePaid (subscription) and set InstanceChargeType in the instance parameters to PostPaid (pay-as-you-go), the created instances are pay-as-you-go instances.
8830
+ * **Example: Use a full image (an image that contains the system disk and data disks) to create an ECS instance**
8831
+ * RegionId:"cn-hangzhou", //Set the region ID to cn-hangzhou, which specifies the China (Hangzhou) region.
8832
+ * ImageId = m-bp13ohd32cvzpq9e****, //Set the custom image ID to m-bp13ohd32cvzpq9e****.
8833
+ * InstanceType = ecs.u1-c1m1.large, //Set the instance type to ecs.u1-c1m1.large.
8834
+ * SecurityGroupId = sg-bp10jztp6b0sdsyl****, //Set the security group ID to sg-bp10jztp6b0sdsyl****.
8835
+ * VSwitchId = vsw-bp19wo63nleroq22g****, //Set the vSwitch ID to vsw-bp19wo63nleroq22g****.
8836
+ * SystemDisk.Size = 50, //Set the size of the system disk in the full image to 50. Unit: GiB.
8837
+ * SystemDisk.Category = cloud_auto, //Set the category of the system disk in the full image to cloud_auto, which specifies the ESSD AutoPL disk category.
8838
+ * DataDisk.0.Device = /dev/xvdb, //Set the mount point of the data disk in the full image to /dev/xvdb.
8839
+ * DataDisk.0.Size = 50, //Set the size of the data disk in the full image to 50. Unit: GiB.
8840
+ * DataDisk.0.Category = cloud_essd, //Set the category of the data disk in the full image to cloud_essd, which specifies the ESSD category.
8841
+ * DataDisk.1.Device = /dev/xvdc, //Set the mount point of the new data disk to /dev/xvdc. If you want to use a new data disk to replace the data disk in the full image, set DataDisk.1.Device to /dev/xvdb (the default mount point of the data disk in the full image).
8842
+ * DataDisk.1.Size = 70, //Set the size of the new data disk to 70. Unit: GiB.
8843
+ * DataDisk.1.Category = cloud_auto, //Set the category of the new data disk to cloud_auto, which specifies the ESSD AutoPL disk category.
8830
8844
  *
8831
8845
  * @param request - RunInstancesRequest
8832
8846
  * @param runtime - runtime options for this request RuntimeOptions
@@ -8834,10 +8848,10 @@ export default class Client extends OpenApi {
8834
8848
  */
8835
8849
  runInstancesWithOptions(request: $_model.RunInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RunInstancesResponse>;
8836
8850
  /**
8837
- * Creates Elastic Compute Service (ECS) instances. This operation helps simplify the procedure to create and manage ECS instances. When you call this operation, you can choose to create multiple ECS instances at a time, automatically start the instances, and assign public IP addresses to the instances based on outbound bandwidth parameters. You can also use the features provided by the operation, such as configuring an automatic release time for instances, using a launch template, and configuring custom CPU options, to customize instance configurations for better management of instances.
8851
+ * Batch creates Elastic Compute Service (ECS) instances. You can automatically start, assign public IP addresses to, and specify an automatic release time for the instances.
8838
8852
  *
8839
8853
  * @remarks
8840
- * When you create an ECS instance, you are charged for ECS resources, including the [instance type](https://help.aliyun.com/document_detail/25398.html), [image](https://help.aliyun.com/document_detail/179021.html), [block storage](https://help.aliyun.com/document_detail/179022.html), and [public bandwidth](https://help.aliyun.com/document_detail/25411.html). Before you call this operation, familiarize yourself with the billing rules and [pricing](https://www.alibabacloud.com/zh/pricing-calculator#/commodity/vm_intl) of ECS resources.
8854
+ * Before you call this operation, familiarize yourself with the billing rules and [pricing](https://www.alibabacloud.com/zh/pricing-calculator#/commodity/vm_intl) of ECS resources.
8841
8855
  * This operation is an asynchronous operation. After a request to create ECS instances is sent, ECS instance IDs are returned but the creation and startup of the instances may be incomplete. You can call the [DescribeInstanceStatus](https://help.aliyun.com/document_detail/2679688.html) operation to query the status of the instances. When the status of an instance is `Running` in the DescribeInstanceStatus response, the instance is created and started.
8842
8856
  * ### [](#)Considerations
8843
8857
  * * If the resource inventory is insufficient to complete instance creation, Alibaba Cloud immediately sends an instance creation failure event (SystemFailure.Delete). You can call the [DescribeInstanceHistoryEvents](https://help.aliyun.com/document_detail/2679897.html) operation to check whether an instance creation failure event exists. For more information, see [System events related to instance creation failures](https://help.aliyun.com/document_detail/2545990.html).
@@ -8892,12 +8906,26 @@ export default class Client extends OpenApi {
8892
8906
  * InstanceChargeType:"PostPaid",
8893
8907
  * SpotStrategy:"SpotAsPriceGo", //Set the bidding policy to SpotAsPriceGo, which specifies that the instances are created as preemptible instances for which the market price at the time of purchase is automatically used as the bid price.
8894
8908
  * SpotDuration:1 //Set the protection period of the preemptible instances to 1. Unit: hours.
8895
- * Call the [CreateLaunchTemplate](https://help.aliyun.com/document_detail/2679729.html) operation to create a launch template. Then, use the launch template to create ECS instances in the China (Hangzhou) region. Examples:
8909
+ * Use a launch template created by calling the [CreateLaunchTemplate](https://help.aliyun.com/document_detail/2679729.html) operation to create ECS instances in the China (Hangzhou) region. Examples:
8896
8910
  * **Example: Create 10 ECS instances based on a launch template**
8897
8911
  * RegionId:"cn-hangzhou", //Set the region ID to cn-hangzhou, which specifies the China (Hangzhou) region.
8898
8912
  * Amount:10, //Set the number of ECS instances that you want to create to 10.
8899
8913
  * LaunchTemplateId:"lt-bp14xczpoxvb6rre****" //Set the launch template ID to lt-bp14xczpoxvb6rre****.
8900
8914
  * > If a parameter is specified both in the launch template that you reference in a request and in the instance parameters of the same request, the value specified in the instance parameters takes precedence. For example, if you set InstanceChargeType in the launch template to PrePaid (subscription) and set InstanceChargeType in the instance parameters to PostPaid (pay-as-you-go), the created instances are pay-as-you-go instances.
8915
+ * **Example: Use a full image (an image that contains the system disk and data disks) to create an ECS instance**
8916
+ * RegionId:"cn-hangzhou", //Set the region ID to cn-hangzhou, which specifies the China (Hangzhou) region.
8917
+ * ImageId = m-bp13ohd32cvzpq9e****, //Set the custom image ID to m-bp13ohd32cvzpq9e****.
8918
+ * InstanceType = ecs.u1-c1m1.large, //Set the instance type to ecs.u1-c1m1.large.
8919
+ * SecurityGroupId = sg-bp10jztp6b0sdsyl****, //Set the security group ID to sg-bp10jztp6b0sdsyl****.
8920
+ * VSwitchId = vsw-bp19wo63nleroq22g****, //Set the vSwitch ID to vsw-bp19wo63nleroq22g****.
8921
+ * SystemDisk.Size = 50, //Set the size of the system disk in the full image to 50. Unit: GiB.
8922
+ * SystemDisk.Category = cloud_auto, //Set the category of the system disk in the full image to cloud_auto, which specifies the ESSD AutoPL disk category.
8923
+ * DataDisk.0.Device = /dev/xvdb, //Set the mount point of the data disk in the full image to /dev/xvdb.
8924
+ * DataDisk.0.Size = 50, //Set the size of the data disk in the full image to 50. Unit: GiB.
8925
+ * DataDisk.0.Category = cloud_essd, //Set the category of the data disk in the full image to cloud_essd, which specifies the ESSD category.
8926
+ * DataDisk.1.Device = /dev/xvdc, //Set the mount point of the new data disk to /dev/xvdc. If you want to use a new data disk to replace the data disk in the full image, set DataDisk.1.Device to /dev/xvdb (the default mount point of the data disk in the full image).
8927
+ * DataDisk.1.Size = 70, //Set the size of the new data disk to 70. Unit: GiB.
8928
+ * DataDisk.1.Category = cloud_auto, //Set the category of the new data disk to cloud_auto, which specifies the ESSD AutoPL disk category.
8901
8929
  *
8902
8930
  * @param request - RunInstancesRequest
8903
8931
  * @returns RunInstancesResponse
package/dist/client.js CHANGED
@@ -16558,6 +16558,12 @@ class Client extends openapi_core_1.default {
16558
16558
  if (!$dara.isNull(request.instanceId)) {
16559
16559
  query["InstanceId"] = request.instanceId;
16560
16560
  }
16561
+ if (!$dara.isNull(request.maxResults)) {
16562
+ query["MaxResults"] = request.maxResults;
16563
+ }
16564
+ if (!$dara.isNull(request.nextToken)) {
16565
+ query["NextToken"] = request.nextToken;
16566
+ }
16561
16567
  if (!$dara.isNull(request.ownerAccount)) {
16562
16568
  query["OwnerAccount"] = request.ownerAccount;
16563
16569
  }
@@ -27858,10 +27864,10 @@ class Client extends openapi_core_1.default {
27858
27864
  return await this.runCommandWithOptions(request, runtime);
27859
27865
  }
27860
27866
  /**
27861
- * Creates Elastic Compute Service (ECS) instances. This operation helps simplify the procedure to create and manage ECS instances. When you call this operation, you can choose to create multiple ECS instances at a time, automatically start the instances, and assign public IP addresses to the instances based on outbound bandwidth parameters. You can also use the features provided by the operation, such as configuring an automatic release time for instances, using a launch template, and configuring custom CPU options, to customize instance configurations for better management of instances.
27867
+ * Batch creates Elastic Compute Service (ECS) instances. You can automatically start, assign public IP addresses to, and specify an automatic release time for the instances.
27862
27868
  *
27863
27869
  * @remarks
27864
- * When you create an ECS instance, you are charged for ECS resources, including the [instance type](https://help.aliyun.com/document_detail/25398.html), [image](https://help.aliyun.com/document_detail/179021.html), [block storage](https://help.aliyun.com/document_detail/179022.html), and [public bandwidth](https://help.aliyun.com/document_detail/25411.html). Before you call this operation, familiarize yourself with the billing rules and [pricing](https://www.alibabacloud.com/zh/pricing-calculator#/commodity/vm_intl) of ECS resources.
27870
+ * Before you call this operation, familiarize yourself with the billing rules and [pricing](https://www.alibabacloud.com/zh/pricing-calculator#/commodity/vm_intl) of ECS resources.
27865
27871
  * This operation is an asynchronous operation. After a request to create ECS instances is sent, ECS instance IDs are returned but the creation and startup of the instances may be incomplete. You can call the [DescribeInstanceStatus](https://help.aliyun.com/document_detail/2679688.html) operation to query the status of the instances. When the status of an instance is `Running` in the DescribeInstanceStatus response, the instance is created and started.
27866
27872
  * ### [](#)Considerations
27867
27873
  * * If the resource inventory is insufficient to complete instance creation, Alibaba Cloud immediately sends an instance creation failure event (SystemFailure.Delete). You can call the [DescribeInstanceHistoryEvents](https://help.aliyun.com/document_detail/2679897.html) operation to check whether an instance creation failure event exists. For more information, see [System events related to instance creation failures](https://help.aliyun.com/document_detail/2545990.html).
@@ -27916,12 +27922,26 @@ class Client extends openapi_core_1.default {
27916
27922
  * InstanceChargeType:"PostPaid",
27917
27923
  * SpotStrategy:"SpotAsPriceGo", //Set the bidding policy to SpotAsPriceGo, which specifies that the instances are created as preemptible instances for which the market price at the time of purchase is automatically used as the bid price.
27918
27924
  * SpotDuration:1 //Set the protection period of the preemptible instances to 1. Unit: hours.
27919
- * Call the [CreateLaunchTemplate](https://help.aliyun.com/document_detail/2679729.html) operation to create a launch template. Then, use the launch template to create ECS instances in the China (Hangzhou) region. Examples:
27925
+ * Use a launch template created by calling the [CreateLaunchTemplate](https://help.aliyun.com/document_detail/2679729.html) operation to create ECS instances in the China (Hangzhou) region. Examples:
27920
27926
  * **Example: Create 10 ECS instances based on a launch template**
27921
27927
  * RegionId:"cn-hangzhou", //Set the region ID to cn-hangzhou, which specifies the China (Hangzhou) region.
27922
27928
  * Amount:10, //Set the number of ECS instances that you want to create to 10.
27923
27929
  * LaunchTemplateId:"lt-bp14xczpoxvb6rre****" //Set the launch template ID to lt-bp14xczpoxvb6rre****.
27924
27930
  * > If a parameter is specified both in the launch template that you reference in a request and in the instance parameters of the same request, the value specified in the instance parameters takes precedence. For example, if you set InstanceChargeType in the launch template to PrePaid (subscription) and set InstanceChargeType in the instance parameters to PostPaid (pay-as-you-go), the created instances are pay-as-you-go instances.
27931
+ * **Example: Use a full image (an image that contains the system disk and data disks) to create an ECS instance**
27932
+ * RegionId:"cn-hangzhou", //Set the region ID to cn-hangzhou, which specifies the China (Hangzhou) region.
27933
+ * ImageId = m-bp13ohd32cvzpq9e****, //Set the custom image ID to m-bp13ohd32cvzpq9e****.
27934
+ * InstanceType = ecs.u1-c1m1.large, //Set the instance type to ecs.u1-c1m1.large.
27935
+ * SecurityGroupId = sg-bp10jztp6b0sdsyl****, //Set the security group ID to sg-bp10jztp6b0sdsyl****.
27936
+ * VSwitchId = vsw-bp19wo63nleroq22g****, //Set the vSwitch ID to vsw-bp19wo63nleroq22g****.
27937
+ * SystemDisk.Size = 50, //Set the size of the system disk in the full image to 50. Unit: GiB.
27938
+ * SystemDisk.Category = cloud_auto, //Set the category of the system disk in the full image to cloud_auto, which specifies the ESSD AutoPL disk category.
27939
+ * DataDisk.0.Device = /dev/xvdb, //Set the mount point of the data disk in the full image to /dev/xvdb.
27940
+ * DataDisk.0.Size = 50, //Set the size of the data disk in the full image to 50. Unit: GiB.
27941
+ * DataDisk.0.Category = cloud_essd, //Set the category of the data disk in the full image to cloud_essd, which specifies the ESSD category.
27942
+ * DataDisk.1.Device = /dev/xvdc, //Set the mount point of the new data disk to /dev/xvdc. If you want to use a new data disk to replace the data disk in the full image, set DataDisk.1.Device to /dev/xvdb (the default mount point of the data disk in the full image).
27943
+ * DataDisk.1.Size = 70, //Set the size of the new data disk to 70. Unit: GiB.
27944
+ * DataDisk.1.Category = cloud_auto, //Set the category of the new data disk to cloud_auto, which specifies the ESSD AutoPL disk category.
27925
27945
  *
27926
27946
  * @param request - RunInstancesRequest
27927
27947
  * @param runtime - runtime options for this request RuntimeOptions
@@ -28181,10 +28201,10 @@ class Client extends openapi_core_1.default {
28181
28201
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.RunInstancesResponse({}));
28182
28202
  }
28183
28203
  /**
28184
- * Creates Elastic Compute Service (ECS) instances. This operation helps simplify the procedure to create and manage ECS instances. When you call this operation, you can choose to create multiple ECS instances at a time, automatically start the instances, and assign public IP addresses to the instances based on outbound bandwidth parameters. You can also use the features provided by the operation, such as configuring an automatic release time for instances, using a launch template, and configuring custom CPU options, to customize instance configurations for better management of instances.
28204
+ * Batch creates Elastic Compute Service (ECS) instances. You can automatically start, assign public IP addresses to, and specify an automatic release time for the instances.
28185
28205
  *
28186
28206
  * @remarks
28187
- * When you create an ECS instance, you are charged for ECS resources, including the [instance type](https://help.aliyun.com/document_detail/25398.html), [image](https://help.aliyun.com/document_detail/179021.html), [block storage](https://help.aliyun.com/document_detail/179022.html), and [public bandwidth](https://help.aliyun.com/document_detail/25411.html). Before you call this operation, familiarize yourself with the billing rules and [pricing](https://www.alibabacloud.com/zh/pricing-calculator#/commodity/vm_intl) of ECS resources.
28207
+ * Before you call this operation, familiarize yourself with the billing rules and [pricing](https://www.alibabacloud.com/zh/pricing-calculator#/commodity/vm_intl) of ECS resources.
28188
28208
  * This operation is an asynchronous operation. After a request to create ECS instances is sent, ECS instance IDs are returned but the creation and startup of the instances may be incomplete. You can call the [DescribeInstanceStatus](https://help.aliyun.com/document_detail/2679688.html) operation to query the status of the instances. When the status of an instance is `Running` in the DescribeInstanceStatus response, the instance is created and started.
28189
28209
  * ### [](#)Considerations
28190
28210
  * * If the resource inventory is insufficient to complete instance creation, Alibaba Cloud immediately sends an instance creation failure event (SystemFailure.Delete). You can call the [DescribeInstanceHistoryEvents](https://help.aliyun.com/document_detail/2679897.html) operation to check whether an instance creation failure event exists. For more information, see [System events related to instance creation failures](https://help.aliyun.com/document_detail/2545990.html).
@@ -28239,12 +28259,26 @@ class Client extends openapi_core_1.default {
28239
28259
  * InstanceChargeType:"PostPaid",
28240
28260
  * SpotStrategy:"SpotAsPriceGo", //Set the bidding policy to SpotAsPriceGo, which specifies that the instances are created as preemptible instances for which the market price at the time of purchase is automatically used as the bid price.
28241
28261
  * SpotDuration:1 //Set the protection period of the preemptible instances to 1. Unit: hours.
28242
- * Call the [CreateLaunchTemplate](https://help.aliyun.com/document_detail/2679729.html) operation to create a launch template. Then, use the launch template to create ECS instances in the China (Hangzhou) region. Examples:
28262
+ * Use a launch template created by calling the [CreateLaunchTemplate](https://help.aliyun.com/document_detail/2679729.html) operation to create ECS instances in the China (Hangzhou) region. Examples:
28243
28263
  * **Example: Create 10 ECS instances based on a launch template**
28244
28264
  * RegionId:"cn-hangzhou", //Set the region ID to cn-hangzhou, which specifies the China (Hangzhou) region.
28245
28265
  * Amount:10, //Set the number of ECS instances that you want to create to 10.
28246
28266
  * LaunchTemplateId:"lt-bp14xczpoxvb6rre****" //Set the launch template ID to lt-bp14xczpoxvb6rre****.
28247
28267
  * > If a parameter is specified both in the launch template that you reference in a request and in the instance parameters of the same request, the value specified in the instance parameters takes precedence. For example, if you set InstanceChargeType in the launch template to PrePaid (subscription) and set InstanceChargeType in the instance parameters to PostPaid (pay-as-you-go), the created instances are pay-as-you-go instances.
28268
+ * **Example: Use a full image (an image that contains the system disk and data disks) to create an ECS instance**
28269
+ * RegionId:"cn-hangzhou", //Set the region ID to cn-hangzhou, which specifies the China (Hangzhou) region.
28270
+ * ImageId = m-bp13ohd32cvzpq9e****, //Set the custom image ID to m-bp13ohd32cvzpq9e****.
28271
+ * InstanceType = ecs.u1-c1m1.large, //Set the instance type to ecs.u1-c1m1.large.
28272
+ * SecurityGroupId = sg-bp10jztp6b0sdsyl****, //Set the security group ID to sg-bp10jztp6b0sdsyl****.
28273
+ * VSwitchId = vsw-bp19wo63nleroq22g****, //Set the vSwitch ID to vsw-bp19wo63nleroq22g****.
28274
+ * SystemDisk.Size = 50, //Set the size of the system disk in the full image to 50. Unit: GiB.
28275
+ * SystemDisk.Category = cloud_auto, //Set the category of the system disk in the full image to cloud_auto, which specifies the ESSD AutoPL disk category.
28276
+ * DataDisk.0.Device = /dev/xvdb, //Set the mount point of the data disk in the full image to /dev/xvdb.
28277
+ * DataDisk.0.Size = 50, //Set the size of the data disk in the full image to 50. Unit: GiB.
28278
+ * DataDisk.0.Category = cloud_essd, //Set the category of the data disk in the full image to cloud_essd, which specifies the ESSD category.
28279
+ * DataDisk.1.Device = /dev/xvdc, //Set the mount point of the new data disk to /dev/xvdc. If you want to use a new data disk to replace the data disk in the full image, set DataDisk.1.Device to /dev/xvdb (the default mount point of the data disk in the full image).
28280
+ * DataDisk.1.Size = 70, //Set the size of the new data disk to 70. Unit: GiB.
28281
+ * DataDisk.1.Category = cloud_auto, //Set the category of the new data disk to cloud_auto, which specifies the ESSD AutoPL disk category.
28248
28282
  *
28249
28283
  * @param request - RunInstancesRequest
28250
28284
  * @returns RunInstancesResponse