@alicloud/ecs20140526 7.0.8 → 7.0.9
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/dist/client.d.ts +44 -36
- package/dist/client.js +47 -36
- package/dist/client.js.map +1 -1
- package/dist/models/CopyImageRequest.d.ts +19 -0
- package/dist/models/CopyImageRequest.js.map +1 -1
- package/dist/models/CreateAutoProvisioningGroupRequest.d.ts +9 -9
- package/dist/models/CreateAutoProvisioningGroupRequestLaunchConfiguration.d.ts +5 -5
- package/dist/models/CreateAutoProvisioningGroupRequestLaunchTemplateConfig.d.ts +1 -1
- package/dist/models/CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult.d.ts +2 -2
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.d.ts +9 -9
- package/dist/models/CreateAutoProvisioningGroupShrinkRequestLaunchConfiguration.d.ts +5 -5
- package/dist/models/CreateAutoProvisioningGroupShrinkRequestLaunchTemplateConfig.d.ts +1 -1
- package/dist/models/CreateInstanceRequest.d.ts +9 -9
- package/dist/models/CreateInstanceRequestPrivatePoolOptions.d.ts +1 -1
- package/dist/models/CreateLaunchTemplateRequest.d.ts +6 -6
- package/dist/models/CreateLaunchTemplateRequestDataDisk.d.ts +1 -1
- package/dist/models/CreateLaunchTemplateVersionRequest.d.ts +8 -8
- package/dist/models/CreateLaunchTemplateVersionRequestDataDisk.d.ts +2 -2
- package/dist/models/DescribeAccountAttributesRequest.d.ts +2 -2
- package/dist/models/DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItem.d.ts +2 -2
- package/dist/models/DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance.d.ts +1 -1
- package/dist/models/DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup.d.ts +2 -2
- package/dist/models/DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions.d.ts +4 -4
- package/dist/models/DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification.d.ts +2 -2
- package/dist/models/DescribeAvailableResourceRequest.d.ts +6 -6
- package/dist/models/DescribeBandwidthLimitationRequest.d.ts +2 -2
- package/dist/models/DescribeDisksRequest.d.ts +1 -1
- package/dist/models/DescribeInstanceAttributeResponseBody.d.ts +1 -1
- package/dist/models/DescribeInstanceAttributeResponseBodyOperationLocksLockReason.d.ts +1 -1
- package/dist/models/DescribeInstancesRequest.d.ts +1 -1
- package/dist/models/DescribeInstancesResponseBodyInstancesInstance.d.ts +8 -8
- package/dist/models/DescribeInstancesResponseBodyInstancesInstanceOperationLocksLockReason.d.ts +1 -1
- package/dist/models/DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData.d.ts +7 -7
- package/dist/models/DescribePriceRequest.d.ts +7 -7
- package/dist/models/DescribeRecommendInstanceTypeRequest.d.ts +27 -27
- package/dist/models/DescribeRecommendInstanceTypeResponseBody.d.ts +1 -1
- package/dist/models/DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType.d.ts +7 -7
- package/dist/models/DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone.d.ts +2 -2
- package/dist/models/DescribeRegionsRequest.d.ts +2 -2
- package/dist/models/DescribeSnapshotLinksRequest.d.ts +17 -0
- package/dist/models/DescribeSnapshotLinksRequest.js.map +1 -1
- package/dist/models/DescribeSnapshotLinksResponseBody.d.ts +7 -0
- package/dist/models/DescribeSnapshotLinksResponseBody.js.map +1 -1
- package/dist/models/DescribeSpotAdviceResponseBody.d.ts +2 -2
- package/dist/models/DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZone.d.ts +1 -1
- package/dist/models/DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource.d.ts +4 -4
- package/dist/models/DescribeSpotPriceHistoryRequest.d.ts +7 -7
- package/dist/models/DescribeSpotPriceHistoryResponseBody.d.ts +4 -4
- package/dist/models/DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType.d.ts +5 -5
- package/dist/models/DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection.d.ts +1 -0
- package/dist/models/DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection.js +2 -0
- package/dist/models/DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection.js.map +1 -1
- package/dist/models/DescribeZonesRequest.d.ts +3 -3
- package/dist/models/ModifyAutoProvisioningGroupRequest.d.ts +4 -4
- package/dist/models/ModifyAutoProvisioningGroupRequestLaunchTemplateConfig.d.ts +1 -1
- package/dist/models/RunInstancesRequest.d.ts +8 -8
- package/dist/models/RunInstancesRequestPrivatePoolOptions.d.ts +1 -1
- package/dist/models/StartTerminalSessionRequest.d.ts +1 -0
- package/dist/models/StartTerminalSessionRequest.js +2 -0
- package/dist/models/StartTerminalSessionRequest.js.map +1 -1
- package/dist/models/StopInstanceRequest.d.ts +14 -3
- package/dist/models/StopInstanceRequest.js.map +1 -1
- package/dist/models/StopInstancesRequest.d.ts +27 -11
- package/dist/models/StopInstancesRequest.js.map +1 -1
- package/dist/models/StopInstancesResponseBodyInstanceResponsesInstanceResponse.d.ts +1 -1
- package/package.json +1 -1
- package/src/client.ts +48 -36
- package/src/models/CopyImageRequest.ts +19 -0
- package/src/models/CreateAutoProvisioningGroupRequest.ts +9 -9
- package/src/models/CreateAutoProvisioningGroupRequestLaunchConfiguration.ts +5 -5
- package/src/models/CreateAutoProvisioningGroupRequestLaunchTemplateConfig.ts +1 -1
- package/src/models/CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult.ts +2 -2
- package/src/models/CreateAutoProvisioningGroupShrinkRequest.ts +9 -9
- package/src/models/CreateAutoProvisioningGroupShrinkRequestLaunchConfiguration.ts +5 -5
- package/src/models/CreateAutoProvisioningGroupShrinkRequestLaunchTemplateConfig.ts +1 -1
- package/src/models/CreateInstanceRequest.ts +9 -9
- package/src/models/CreateInstanceRequestPrivatePoolOptions.ts +1 -1
- package/src/models/CreateLaunchTemplateRequest.ts +6 -6
- package/src/models/CreateLaunchTemplateRequestDataDisk.ts +1 -1
- package/src/models/CreateLaunchTemplateVersionRequest.ts +8 -8
- package/src/models/CreateLaunchTemplateVersionRequestDataDisk.ts +2 -2
- package/src/models/DescribeAccountAttributesRequest.ts +2 -2
- package/src/models/DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItem.ts +2 -2
- package/src/models/DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance.ts +1 -1
- package/src/models/DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup.ts +2 -2
- package/src/models/DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions.ts +4 -4
- package/src/models/DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification.ts +2 -2
- package/src/models/DescribeAvailableResourceRequest.ts +6 -6
- package/src/models/DescribeBandwidthLimitationRequest.ts +2 -2
- package/src/models/DescribeDisksRequest.ts +1 -1
- package/src/models/DescribeInstanceAttributeResponseBody.ts +1 -1
- package/src/models/DescribeInstanceAttributeResponseBodyOperationLocksLockReason.ts +1 -1
- package/src/models/DescribeInstancesRequest.ts +1 -1
- package/src/models/DescribeInstancesResponseBodyInstancesInstance.ts +8 -8
- package/src/models/DescribeInstancesResponseBodyInstancesInstanceOperationLocksLockReason.ts +1 -1
- package/src/models/DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData.ts +7 -7
- package/src/models/DescribePriceRequest.ts +7 -7
- package/src/models/DescribeRecommendInstanceTypeRequest.ts +27 -27
- package/src/models/DescribeRecommendInstanceTypeResponseBody.ts +1 -1
- package/src/models/DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType.ts +7 -7
- package/src/models/DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone.ts +2 -2
- package/src/models/DescribeRegionsRequest.ts +2 -2
- package/src/models/DescribeSnapshotLinksRequest.ts +17 -0
- package/src/models/DescribeSnapshotLinksResponseBody.ts +7 -0
- package/src/models/DescribeSpotAdviceResponseBody.ts +2 -2
- package/src/models/DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZone.ts +1 -1
- package/src/models/DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource.ts +4 -4
- package/src/models/DescribeSpotPriceHistoryRequest.ts +7 -7
- package/src/models/DescribeSpotPriceHistoryResponseBody.ts +4 -4
- package/src/models/DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType.ts +5 -5
- package/src/models/DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection.ts +3 -0
- package/src/models/DescribeZonesRequest.ts +3 -3
- package/src/models/ModifyAutoProvisioningGroupRequest.ts +4 -4
- package/src/models/ModifyAutoProvisioningGroupRequestLaunchTemplateConfig.ts +1 -1
- package/src/models/RunInstancesRequest.ts +8 -8
- package/src/models/RunInstancesRequestPrivatePoolOptions.ts +1 -1
- package/src/models/StartTerminalSessionRequest.ts +3 -0
- package/src/models/StopInstanceRequest.ts +14 -3
- package/src/models/StopInstancesRequest.ts +27 -11
- package/src/models/StopInstancesResponseBodyInstanceResponsesInstanceResponse.ts +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -935,9 +935,9 @@ export default class Client extends OpenApi {
|
|
|
935
935
|
*
|
|
936
936
|
* @remarks
|
|
937
937
|
* ## [](#)Usage notes
|
|
938
|
-
* * Auto Provisioning is a service that allows quick deployment of an instance cluster that consists of
|
|
939
|
-
* * Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on compute capacity when
|
|
940
|
-
* * Auto Provisioning is provided free of charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information, see [Overview of
|
|
938
|
+
* * Auto Provisioning is a service that allows quick deployment of an instance cluster that consists of spot instances and pay-as-you-go instances. Auto Provisioning supports push-button deployment of instance clusters across different billing methods, instance families, and zones. For more information, see [Use auto provisioning group-related API operations to create multiple ECS instances at the same time](https://help.aliyun.com/document_detail/200772.html).
|
|
939
|
+
* * Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on compute capacity when spot instances are reclaimed.
|
|
940
|
+
* * Auto Provisioning is provided free of charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information, see [Overview of spot instances](https://help.aliyun.com/document_detail/52088.html) and [Pay-as-you-go](https://help.aliyun.com/document_detail/40653.html).
|
|
941
941
|
* * When you specify both a launch template (`LaunchTemplateId`) and extended configurations (`LaunchConfiguration.*` parameters), LaunchTemplateId takes precedence.
|
|
942
942
|
*
|
|
943
943
|
* @param tmpReq - CreateAutoProvisioningGroupRequest
|
|
@@ -950,9 +950,9 @@ export default class Client extends OpenApi {
|
|
|
950
950
|
*
|
|
951
951
|
* @remarks
|
|
952
952
|
* ## [](#)Usage notes
|
|
953
|
-
* * Auto Provisioning is a service that allows quick deployment of an instance cluster that consists of
|
|
954
|
-
* * Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on compute capacity when
|
|
955
|
-
* * Auto Provisioning is provided free of charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information, see [Overview of
|
|
953
|
+
* * Auto Provisioning is a service that allows quick deployment of an instance cluster that consists of spot instances and pay-as-you-go instances. Auto Provisioning supports push-button deployment of instance clusters across different billing methods, instance families, and zones. For more information, see [Use auto provisioning group-related API operations to create multiple ECS instances at the same time](https://help.aliyun.com/document_detail/200772.html).
|
|
954
|
+
* * Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on compute capacity when spot instances are reclaimed.
|
|
955
|
+
* * Auto Provisioning is provided free of charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information, see [Overview of spot instances](https://help.aliyun.com/document_detail/52088.html) and [Pay-as-you-go](https://help.aliyun.com/document_detail/40653.html).
|
|
956
956
|
* * When you specify both a launch template (`LaunchTemplateId`) and extended configurations (`LaunchConfiguration.*` parameters), LaunchTemplateId takes precedence.
|
|
957
957
|
*
|
|
958
958
|
* @param request - CreateAutoProvisioningGroupRequest
|
|
@@ -2687,7 +2687,7 @@ export default class Client extends OpenApi {
|
|
|
2687
2687
|
*/
|
|
2688
2688
|
describeAccessPoints(request: $_model.DescribeAccessPointsRequest): Promise<$_model.DescribeAccessPointsResponse>;
|
|
2689
2689
|
/**
|
|
2690
|
-
* Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for
|
|
2690
|
+
* Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for spot instances, and dedicated hosts that you can create and the capacity quotas for pay-as-you-go disks that you can create. You can also query information such as network types or whether an account has completed real-name verification.
|
|
2691
2691
|
*
|
|
2692
2692
|
* @remarks
|
|
2693
2693
|
* After you [create](https://account.alibabacloud.com/register/intl_register.htm) an Alibaba Cloud account, you can create a specific number of ECS instances in different regions within the account. For more information, see [Limits](https://help.aliyun.com/document_detail/25412.html).
|
|
@@ -2699,7 +2699,7 @@ export default class Client extends OpenApi {
|
|
|
2699
2699
|
*/
|
|
2700
2700
|
describeAccountAttributesWithOptions(request: $_model.DescribeAccountAttributesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAccountAttributesResponse>;
|
|
2701
2701
|
/**
|
|
2702
|
-
* Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for
|
|
2702
|
+
* Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for spot instances, and dedicated hosts that you can create and the capacity quotas for pay-as-you-go disks that you can create. You can also query information such as network types or whether an account has completed real-name verification.
|
|
2703
2703
|
*
|
|
2704
2704
|
* @remarks
|
|
2705
2705
|
* After you [create](https://account.alibabacloud.com/register/intl_register.htm) an Alibaba Cloud account, you can create a specific number of ECS instances in different regions within the account. For more information, see [Limits](https://help.aliyun.com/document_detail/25412.html).
|
|
@@ -3001,6 +3001,8 @@ export default class Client extends OpenApi {
|
|
|
3001
3001
|
*/
|
|
3002
3002
|
describeCloudAssistantStatus(request: $_model.DescribeCloudAssistantStatusRequest): Promise<$_model.DescribeCloudAssistantStatusResponse>;
|
|
3003
3003
|
/**
|
|
3004
|
+
* 查询集群
|
|
3005
|
+
*
|
|
3004
3006
|
* @deprecated OpenAPI DescribeClusters is deprecated
|
|
3005
3007
|
*
|
|
3006
3008
|
* @param request - DescribeClustersRequest
|
|
@@ -3009,6 +3011,8 @@ export default class Client extends OpenApi {
|
|
|
3009
3011
|
*/
|
|
3010
3012
|
describeClustersWithOptions(request: $_model.DescribeClustersRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeClustersResponse>;
|
|
3011
3013
|
/**
|
|
3014
|
+
* 查询集群
|
|
3015
|
+
*
|
|
3012
3016
|
* @deprecated OpenAPI DescribeClusters is deprecated
|
|
3013
3017
|
*
|
|
3014
3018
|
* @param request - DescribeClustersRequest
|
|
@@ -4172,6 +4176,8 @@ export default class Client extends OpenApi {
|
|
|
4172
4176
|
*/
|
|
4173
4177
|
describeLaunchTemplates(request: $_model.DescribeLaunchTemplatesRequest): Promise<$_model.DescribeLaunchTemplatesResponse>;
|
|
4174
4178
|
/**
|
|
4179
|
+
* 查询账号限制
|
|
4180
|
+
*
|
|
4175
4181
|
* @deprecated OpenAPI DescribeLimitation is deprecated
|
|
4176
4182
|
*
|
|
4177
4183
|
* @param request - DescribeLimitationRequest
|
|
@@ -4180,6 +4186,8 @@ export default class Client extends OpenApi {
|
|
|
4180
4186
|
*/
|
|
4181
4187
|
describeLimitationWithOptions(request: $_model.DescribeLimitationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeLimitationResponse>;
|
|
4182
4188
|
/**
|
|
4189
|
+
* 查询账号限制
|
|
4190
|
+
*
|
|
4183
4191
|
* @deprecated OpenAPI DescribeLimitation is deprecated
|
|
4184
4192
|
*
|
|
4185
4193
|
* @param request - DescribeLimitationRequest
|
|
@@ -4968,15 +4976,15 @@ export default class Client extends OpenApi {
|
|
|
4968
4976
|
*/
|
|
4969
4977
|
describeSnapshotsUsage(request: $_model.DescribeSnapshotsUsageRequest): Promise<$_model.DescribeSnapshotsUsageResponse>;
|
|
4970
4978
|
/**
|
|
4971
|
-
* Queries information about
|
|
4979
|
+
* Queries information about spot instances in a region in the previous 30 days. The information includes the average release rate of spot instances and the percentage of the average spot instance price relative to the pay-as-you-go instance price.
|
|
4972
4980
|
*
|
|
4973
4981
|
* @remarks
|
|
4974
|
-
* This operation is applicable only to I/O optimized
|
|
4982
|
+
* This operation is applicable only to I/O optimized spot instances that reside in virtual private clouds (VPCs).
|
|
4975
4983
|
* * You can use one of the following methods to call this operation:
|
|
4976
4984
|
* * Specify `Cores` and `Memory` or `MinCores` and `MinMemory` to query information about the instance types that meet the specified vCPU and memory requirements.
|
|
4977
4985
|
* * Specify `InstanceTypes.N` to query information about the specified instance types.
|
|
4978
4986
|
* * Specify `Cores` and `Memory` or `MinCores` and `MinMemory`, and then specify `InstanceTypeFamily` or `InstanceFamilyLevel` to query information about the instance types that meet the specified vCPU and memory requirements within the specified instance family or at a specified instance family level.
|
|
4979
|
-
* * You can calculate the average price of
|
|
4987
|
+
* * You can calculate the average price of spot instances based on the percentage of the average spot instance price relative to the pay-as-you-go instance price and the pay-as-you-go instance price.
|
|
4980
4988
|
*
|
|
4981
4989
|
* @param request - DescribeSpotAdviceRequest
|
|
4982
4990
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4984,25 +4992,25 @@ export default class Client extends OpenApi {
|
|
|
4984
4992
|
*/
|
|
4985
4993
|
describeSpotAdviceWithOptions(request: $_model.DescribeSpotAdviceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSpotAdviceResponse>;
|
|
4986
4994
|
/**
|
|
4987
|
-
* Queries information about
|
|
4995
|
+
* Queries information about spot instances in a region in the previous 30 days. The information includes the average release rate of spot instances and the percentage of the average spot instance price relative to the pay-as-you-go instance price.
|
|
4988
4996
|
*
|
|
4989
4997
|
* @remarks
|
|
4990
|
-
* This operation is applicable only to I/O optimized
|
|
4998
|
+
* This operation is applicable only to I/O optimized spot instances that reside in virtual private clouds (VPCs).
|
|
4991
4999
|
* * You can use one of the following methods to call this operation:
|
|
4992
5000
|
* * Specify `Cores` and `Memory` or `MinCores` and `MinMemory` to query information about the instance types that meet the specified vCPU and memory requirements.
|
|
4993
5001
|
* * Specify `InstanceTypes.N` to query information about the specified instance types.
|
|
4994
5002
|
* * Specify `Cores` and `Memory` or `MinCores` and `MinMemory`, and then specify `InstanceTypeFamily` or `InstanceFamilyLevel` to query information about the instance types that meet the specified vCPU and memory requirements within the specified instance family or at a specified instance family level.
|
|
4995
|
-
* * You can calculate the average price of
|
|
5003
|
+
* * You can calculate the average price of spot instances based on the percentage of the average spot instance price relative to the pay-as-you-go instance price and the pay-as-you-go instance price.
|
|
4996
5004
|
*
|
|
4997
5005
|
* @param request - DescribeSpotAdviceRequest
|
|
4998
5006
|
* @returns DescribeSpotAdviceResponse
|
|
4999
5007
|
*/
|
|
5000
5008
|
describeSpotAdvice(request: $_model.DescribeSpotAdviceRequest): Promise<$_model.DescribeSpotAdviceResponse>;
|
|
5001
5009
|
/**
|
|
5002
|
-
* Queries the historical prices of
|
|
5010
|
+
* Queries the historical prices of spot instances within up to the previous 30 days. You can set the maximum price of a spot instance based on the historical prices.
|
|
5003
5011
|
*
|
|
5004
5012
|
* @remarks
|
|
5005
|
-
* This operation is applicable only to I/O optimized
|
|
5013
|
+
* This operation is applicable only to I/O optimized spot instances.
|
|
5006
5014
|
* * The data returned by the interface may be paginated. If the returned data contains the `NextOffset` parameter, you can set the `Offset` parameter in the request to the value of the `NextOffset` parameter for subsequent data query.
|
|
5007
5015
|
*
|
|
5008
5016
|
* @param request - DescribeSpotPriceHistoryRequest
|
|
@@ -5011,10 +5019,10 @@ export default class Client extends OpenApi {
|
|
|
5011
5019
|
*/
|
|
5012
5020
|
describeSpotPriceHistoryWithOptions(request: $_model.DescribeSpotPriceHistoryRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSpotPriceHistoryResponse>;
|
|
5013
5021
|
/**
|
|
5014
|
-
* Queries the historical prices of
|
|
5022
|
+
* Queries the historical prices of spot instances within up to the previous 30 days. You can set the maximum price of a spot instance based on the historical prices.
|
|
5015
5023
|
*
|
|
5016
5024
|
* @remarks
|
|
5017
|
-
* This operation is applicable only to I/O optimized
|
|
5025
|
+
* This operation is applicable only to I/O optimized spot instances.
|
|
5018
5026
|
* * The data returned by the interface may be paginated. If the returned data contains the `NextOffset` parameter, you can set the `Offset` parameter in the request to the value of the `NextOffset` parameter for subsequent data query.
|
|
5019
5027
|
*
|
|
5020
5028
|
* @param request - DescribeSpotPriceHistoryRequest
|
|
@@ -6827,7 +6835,7 @@ export default class Client extends OpenApi {
|
|
|
6827
6835
|
*/
|
|
6828
6836
|
modifyInstanceAttribute(request: $_model.ModifyInstanceAttributeRequest): Promise<$_model.ModifyInstanceAttributeResponse>;
|
|
6829
6837
|
/**
|
|
6830
|
-
* Changes the automatic release time of a pay-as-you-go or
|
|
6838
|
+
* Changes the automatic release time of a pay-as-you-go or spot instance or cancels the automatic release of the instance.
|
|
6831
6839
|
*
|
|
6832
6840
|
* @param request - ModifyInstanceAutoReleaseTimeRequest
|
|
6833
6841
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6835,7 +6843,7 @@ export default class Client extends OpenApi {
|
|
|
6835
6843
|
*/
|
|
6836
6844
|
modifyInstanceAutoReleaseTimeWithOptions(request: $_model.ModifyInstanceAutoReleaseTimeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyInstanceAutoReleaseTimeResponse>;
|
|
6837
6845
|
/**
|
|
6838
|
-
* Changes the automatic release time of a pay-as-you-go or
|
|
6846
|
+
* Changes the automatic release time of a pay-as-you-go or spot instance or cancels the automatic release of the instance.
|
|
6839
6847
|
*
|
|
6840
6848
|
* @param request - ModifyInstanceAutoReleaseTimeRequest
|
|
6841
6849
|
* @returns ModifyInstanceAutoReleaseTimeResponse
|
|
@@ -6920,7 +6928,7 @@ export default class Client extends OpenApi {
|
|
|
6920
6928
|
* * The network type of the instance must be Virtual Private Cloud (VPC).
|
|
6921
6929
|
* * The instance and the destination dedicated host to which to migrate the instance must belong to the same account and reside in the same region and zone.
|
|
6922
6930
|
* * A pay-as-you-go instance can be migrated to a subscription dedicated host. A subscription instance can be migrated only between subscription dedicated hosts. The expiration date of the subscription instance cannot be later than that of the destination dedicated host.
|
|
6923
|
-
* * You can migrate only pay-as-you-go instances from a shared host to a dedicated host. You cannot migrate subscription instances or
|
|
6931
|
+
* * You can migrate only pay-as-you-go instances from a shared host to a dedicated host. You cannot migrate subscription instances or spot instances from a shared host to a dedicated host.
|
|
6924
6932
|
* * You can redeploy an instance to a specific dedicated host cluster.
|
|
6925
6933
|
*
|
|
6926
6934
|
* @param request - ModifyInstanceDeploymentRequest
|
|
@@ -6937,7 +6945,7 @@ export default class Client extends OpenApi {
|
|
|
6937
6945
|
* * The network type of the instance must be Virtual Private Cloud (VPC).
|
|
6938
6946
|
* * The instance and the destination dedicated host to which to migrate the instance must belong to the same account and reside in the same region and zone.
|
|
6939
6947
|
* * A pay-as-you-go instance can be migrated to a subscription dedicated host. A subscription instance can be migrated only between subscription dedicated hosts. The expiration date of the subscription instance cannot be later than that of the destination dedicated host.
|
|
6940
|
-
* * You can migrate only pay-as-you-go instances from a shared host to a dedicated host. You cannot migrate subscription instances or
|
|
6948
|
+
* * You can migrate only pay-as-you-go instances from a shared host to a dedicated host. You cannot migrate subscription instances or spot instances from a shared host to a dedicated host.
|
|
6941
6949
|
* * You can redeploy an instance to a specific dedicated host cluster.
|
|
6942
6950
|
*
|
|
6943
6951
|
* @param request - ModifyInstanceDeploymentRequest
|
|
@@ -8818,11 +8826,11 @@ export default class Client extends OpenApi {
|
|
|
8818
8826
|
* Amount:10, //Set the number of ECS instances that you want to create to 10.
|
|
8819
8827
|
* InstanceChargeType:"PostPaid", //Set the billing method to PostPaid, which specifies the pay-as-you-go billing method.
|
|
8820
8828
|
* SpotStrategy:"NoSpot" //Set this parameter to NoSpot, which is the default value and specifies that the instances are created as pay-as-you-go instances.
|
|
8821
|
-
* **Example: Create 20
|
|
8829
|
+
* **Example: Create 20 spot instances that use a specific bidding policy and a protection period**
|
|
8822
8830
|
* Amount:20, //Set the number of ECS instances that you want to create to 20.
|
|
8823
8831
|
* InstanceChargeType:"PostPaid",
|
|
8824
|
-
* SpotStrategy:"SpotAsPriceGo", //Set the bidding policy to SpotAsPriceGo, which specifies that the instances are created as
|
|
8825
|
-
* SpotDuration:1 //Set the protection period of the
|
|
8832
|
+
* SpotStrategy:"SpotAsPriceGo", //Set the bidding policy to SpotAsPriceGo, which specifies that the instances are created as spot instances for which the market price at the time of purchase is automatically used as the bid price.
|
|
8833
|
+
* SpotDuration:1 //Set the protection period of the spot instances to 1. Unit: hours.
|
|
8826
8834
|
* 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:
|
|
8827
8835
|
* **Example: Create 10 ECS instances based on a launch template**
|
|
8828
8836
|
* RegionId:"cn-hangzhou", //Set the region ID to cn-hangzhou, which specifies the China (Hangzhou) region.
|
|
@@ -8903,11 +8911,11 @@ export default class Client extends OpenApi {
|
|
|
8903
8911
|
* Amount:10, //Set the number of ECS instances that you want to create to 10.
|
|
8904
8912
|
* InstanceChargeType:"PostPaid", //Set the billing method to PostPaid, which specifies the pay-as-you-go billing method.
|
|
8905
8913
|
* SpotStrategy:"NoSpot" //Set this parameter to NoSpot, which is the default value and specifies that the instances are created as pay-as-you-go instances.
|
|
8906
|
-
* **Example: Create 20
|
|
8914
|
+
* **Example: Create 20 spot instances that use a specific bidding policy and a protection period**
|
|
8907
8915
|
* Amount:20, //Set the number of ECS instances that you want to create to 20.
|
|
8908
8916
|
* InstanceChargeType:"PostPaid",
|
|
8909
|
-
* SpotStrategy:"SpotAsPriceGo", //Set the bidding policy to SpotAsPriceGo, which specifies that the instances are created as
|
|
8910
|
-
* SpotDuration:1 //Set the protection period of the
|
|
8917
|
+
* SpotStrategy:"SpotAsPriceGo", //Set the bidding policy to SpotAsPriceGo, which specifies that the instances are created as spot instances for which the market price at the time of purchase is automatically used as the bid price.
|
|
8918
|
+
* SpotDuration:1 //Set the protection period of the spot instances to 1. Unit: hours.
|
|
8911
8919
|
* 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:
|
|
8912
8920
|
* **Example: Create 10 ECS instances based on a launch template**
|
|
8913
8921
|
* RegionId:"cn-hangzhou", //Set the region ID to cn-hangzhou, which specifies the China (Hangzhou) region.
|
|
@@ -9122,13 +9130,13 @@ export default class Client extends OpenApi {
|
|
|
9122
9130
|
*/
|
|
9123
9131
|
stopInstance(request: $_model.StopInstanceRequest): Promise<$_model.StopInstanceResponse>;
|
|
9124
9132
|
/**
|
|
9125
|
-
* Stops Elastic Compute Service (ECS) instances. You can specify parameters to determine whether to forcefully stop the instances
|
|
9133
|
+
* Stops Elastic Compute Service (ECS) instances. You can specify parameters to determine whether to forcefully stop the instances and the stop mode.
|
|
9126
9134
|
*
|
|
9127
9135
|
* @remarks
|
|
9128
|
-
* This operation is an asynchronous operation. After you call this operation to stop ECS
|
|
9129
|
-
* ### [](#)
|
|
9136
|
+
* This operation is an asynchronous operation. After you call this operation to stop an ECS instance, the operation sets the status of the ECS instance to Stopping and begins the stop process. You can call the [DescribeInstanceStatus](https://help.aliyun.com/document_detail/2679688.html) operation to query the status of the ECS instance. When the status of the ECS instance changes to `Stopped`, the instance is stopped.
|
|
9137
|
+
* ### [](#)Considerations
|
|
9138
|
+
* * The instance is unavailable after you stop the instance. Make sure that stopping the instance does not affect your business. You can also call the [StartInstance](https://help.aliyun.com/document_detail/2679679.html) or [StartInstances](https://help.aliyun.com/document_detail/2679680.html) operation to start the instance.
|
|
9130
9139
|
* * You cannot call this operation to stop ECS instances that are locked for security reasons. For more information, see [API behavior when an instance is locked for security reasons](https://help.aliyun.com/document_detail/25695.html).
|
|
9131
|
-
* * After you enable the default economical mode for all pay-as-you-go ECS instances located in virtual private clouds (VPCs) in your account, you can set `StoppedMode` to KeepCharging for the pay-as-you-go ECS instances that you want to stop to enable standard mode. This way, the instances continue to be billed after they are stopped. The instance type resources and public IP addresses of the instances are retained.
|
|
9132
9140
|
*
|
|
9133
9141
|
* @param request - StopInstancesRequest
|
|
9134
9142
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9136,13 +9144,13 @@ export default class Client extends OpenApi {
|
|
|
9136
9144
|
*/
|
|
9137
9145
|
stopInstancesWithOptions(request: $_model.StopInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.StopInstancesResponse>;
|
|
9138
9146
|
/**
|
|
9139
|
-
* Stops Elastic Compute Service (ECS) instances. You can specify parameters to determine whether to forcefully stop the instances
|
|
9147
|
+
* Stops Elastic Compute Service (ECS) instances. You can specify parameters to determine whether to forcefully stop the instances and the stop mode.
|
|
9140
9148
|
*
|
|
9141
9149
|
* @remarks
|
|
9142
|
-
* This operation is an asynchronous operation. After you call this operation to stop ECS
|
|
9143
|
-
* ### [](#)
|
|
9150
|
+
* This operation is an asynchronous operation. After you call this operation to stop an ECS instance, the operation sets the status of the ECS instance to Stopping and begins the stop process. You can call the [DescribeInstanceStatus](https://help.aliyun.com/document_detail/2679688.html) operation to query the status of the ECS instance. When the status of the ECS instance changes to `Stopped`, the instance is stopped.
|
|
9151
|
+
* ### [](#)Considerations
|
|
9152
|
+
* * The instance is unavailable after you stop the instance. Make sure that stopping the instance does not affect your business. You can also call the [StartInstance](https://help.aliyun.com/document_detail/2679679.html) or [StartInstances](https://help.aliyun.com/document_detail/2679680.html) operation to start the instance.
|
|
9144
9153
|
* * You cannot call this operation to stop ECS instances that are locked for security reasons. For more information, see [API behavior when an instance is locked for security reasons](https://help.aliyun.com/document_detail/25695.html).
|
|
9145
|
-
* * After you enable the default economical mode for all pay-as-you-go ECS instances located in virtual private clouds (VPCs) in your account, you can set `StoppedMode` to KeepCharging for the pay-as-you-go ECS instances that you want to stop to enable standard mode. This way, the instances continue to be billed after they are stopped. The instance type resources and public IP addresses of the instances are retained.
|
|
9146
9154
|
*
|
|
9147
9155
|
* @param request - StopInstancesRequest
|
|
9148
9156
|
* @returns StopInstancesResponse
|
package/dist/client.js
CHANGED
|
@@ -2589,9 +2589,9 @@ class Client extends openapi_core_1.default {
|
|
|
2589
2589
|
*
|
|
2590
2590
|
* @remarks
|
|
2591
2591
|
* ## [](#)Usage notes
|
|
2592
|
-
* * Auto Provisioning is a service that allows quick deployment of an instance cluster that consists of
|
|
2593
|
-
* * Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on compute capacity when
|
|
2594
|
-
* * Auto Provisioning is provided free of charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information, see [Overview of
|
|
2592
|
+
* * Auto Provisioning is a service that allows quick deployment of an instance cluster that consists of spot instances and pay-as-you-go instances. Auto Provisioning supports push-button deployment of instance clusters across different billing methods, instance families, and zones. For more information, see [Use auto provisioning group-related API operations to create multiple ECS instances at the same time](https://help.aliyun.com/document_detail/200772.html).
|
|
2593
|
+
* * Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on compute capacity when spot instances are reclaimed.
|
|
2594
|
+
* * Auto Provisioning is provided free of charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information, see [Overview of spot instances](https://help.aliyun.com/document_detail/52088.html) and [Pay-as-you-go](https://help.aliyun.com/document_detail/40653.html).
|
|
2595
2595
|
* * When you specify both a launch template (`LaunchTemplateId`) and extended configurations (`LaunchConfiguration.*` parameters), LaunchTemplateId takes precedence.
|
|
2596
2596
|
*
|
|
2597
2597
|
* @param tmpReq - CreateAutoProvisioningGroupRequest
|
|
@@ -2732,9 +2732,9 @@ class Client extends openapi_core_1.default {
|
|
|
2732
2732
|
*
|
|
2733
2733
|
* @remarks
|
|
2734
2734
|
* ## [](#)Usage notes
|
|
2735
|
-
* * Auto Provisioning is a service that allows quick deployment of an instance cluster that consists of
|
|
2736
|
-
* * Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on compute capacity when
|
|
2737
|
-
* * Auto Provisioning is provided free of charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information, see [Overview of
|
|
2735
|
+
* * Auto Provisioning is a service that allows quick deployment of an instance cluster that consists of spot instances and pay-as-you-go instances. Auto Provisioning supports push-button deployment of instance clusters across different billing methods, instance families, and zones. For more information, see [Use auto provisioning group-related API operations to create multiple ECS instances at the same time](https://help.aliyun.com/document_detail/200772.html).
|
|
2736
|
+
* * Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on compute capacity when spot instances are reclaimed.
|
|
2737
|
+
* * Auto Provisioning is provided free of charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information, see [Overview of spot instances](https://help.aliyun.com/document_detail/52088.html) and [Pay-as-you-go](https://help.aliyun.com/document_detail/40653.html).
|
|
2738
2738
|
* * When you specify both a launch template (`LaunchTemplateId`) and extended configurations (`LaunchConfiguration.*` parameters), LaunchTemplateId takes precedence.
|
|
2739
2739
|
*
|
|
2740
2740
|
* @param request - CreateAutoProvisioningGroupRequest
|
|
@@ -8833,7 +8833,7 @@ class Client extends openapi_core_1.default {
|
|
|
8833
8833
|
return await this.describeAccessPointsWithOptions(request, runtime);
|
|
8834
8834
|
}
|
|
8835
8835
|
/**
|
|
8836
|
-
* Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for
|
|
8836
|
+
* Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for spot instances, and dedicated hosts that you can create and the capacity quotas for pay-as-you-go disks that you can create. You can also query information such as network types or whether an account has completed real-name verification.
|
|
8837
8837
|
*
|
|
8838
8838
|
* @remarks
|
|
8839
8839
|
* After you [create](https://account.alibabacloud.com/register/intl_register.htm) an Alibaba Cloud account, you can create a specific number of ECS instances in different regions within the account. For more information, see [Limits](https://help.aliyun.com/document_detail/25412.html).
|
|
@@ -8881,7 +8881,7 @@ class Client extends openapi_core_1.default {
|
|
|
8881
8881
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAccountAttributesResponse({}));
|
|
8882
8882
|
}
|
|
8883
8883
|
/**
|
|
8884
|
-
* Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for
|
|
8884
|
+
* Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for spot instances, and dedicated hosts that you can create and the capacity quotas for pay-as-you-go disks that you can create. You can also query information such as network types or whether an account has completed real-name verification.
|
|
8885
8885
|
*
|
|
8886
8886
|
* @remarks
|
|
8887
8887
|
* After you [create](https://account.alibabacloud.com/register/intl_register.htm) an Alibaba Cloud account, you can create a specific number of ECS instances in different regions within the account. For more information, see [Limits](https://help.aliyun.com/document_detail/25412.html).
|
|
@@ -9890,6 +9890,8 @@ class Client extends openapi_core_1.default {
|
|
|
9890
9890
|
return await this.describeCloudAssistantStatusWithOptions(request, runtime);
|
|
9891
9891
|
}
|
|
9892
9892
|
/**
|
|
9893
|
+
* 查询集群
|
|
9894
|
+
*
|
|
9893
9895
|
* @deprecated OpenAPI DescribeClusters is deprecated
|
|
9894
9896
|
*
|
|
9895
9897
|
* @param request - DescribeClustersRequest
|
|
@@ -9932,6 +9934,8 @@ class Client extends openapi_core_1.default {
|
|
|
9932
9934
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeClustersResponse({}));
|
|
9933
9935
|
}
|
|
9934
9936
|
/**
|
|
9937
|
+
* 查询集群
|
|
9938
|
+
*
|
|
9935
9939
|
* @deprecated OpenAPI DescribeClusters is deprecated
|
|
9936
9940
|
*
|
|
9937
9941
|
* @param request - DescribeClustersRequest
|
|
@@ -14101,6 +14105,8 @@ class Client extends openapi_core_1.default {
|
|
|
14101
14105
|
return await this.describeLaunchTemplatesWithOptions(request, runtime);
|
|
14102
14106
|
}
|
|
14103
14107
|
/**
|
|
14108
|
+
* 查询账号限制
|
|
14109
|
+
*
|
|
14104
14110
|
* @deprecated OpenAPI DescribeLimitation is deprecated
|
|
14105
14111
|
*
|
|
14106
14112
|
* @param request - DescribeLimitationRequest
|
|
@@ -14143,6 +14149,8 @@ class Client extends openapi_core_1.default {
|
|
|
14143
14149
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeLimitationResponse({}));
|
|
14144
14150
|
}
|
|
14145
14151
|
/**
|
|
14152
|
+
* 查询账号限制
|
|
14153
|
+
*
|
|
14146
14154
|
* @deprecated OpenAPI DescribeLimitation is deprecated
|
|
14147
14155
|
*
|
|
14148
14156
|
* @param request - DescribeLimitationRequest
|
|
@@ -16954,15 +16962,15 @@ class Client extends openapi_core_1.default {
|
|
|
16954
16962
|
return await this.describeSnapshotsUsageWithOptions(request, runtime);
|
|
16955
16963
|
}
|
|
16956
16964
|
/**
|
|
16957
|
-
* Queries information about
|
|
16965
|
+
* Queries information about spot instances in a region in the previous 30 days. The information includes the average release rate of spot instances and the percentage of the average spot instance price relative to the pay-as-you-go instance price.
|
|
16958
16966
|
*
|
|
16959
16967
|
* @remarks
|
|
16960
|
-
* This operation is applicable only to I/O optimized
|
|
16968
|
+
* This operation is applicable only to I/O optimized spot instances that reside in virtual private clouds (VPCs).
|
|
16961
16969
|
* * You can use one of the following methods to call this operation:
|
|
16962
16970
|
* * Specify `Cores` and `Memory` or `MinCores` and `MinMemory` to query information about the instance types that meet the specified vCPU and memory requirements.
|
|
16963
16971
|
* * Specify `InstanceTypes.N` to query information about the specified instance types.
|
|
16964
16972
|
* * Specify `Cores` and `Memory` or `MinCores` and `MinMemory`, and then specify `InstanceTypeFamily` or `InstanceFamilyLevel` to query information about the instance types that meet the specified vCPU and memory requirements within the specified instance family or at a specified instance family level.
|
|
16965
|
-
* * You can calculate the average price of
|
|
16973
|
+
* * You can calculate the average price of spot instances based on the percentage of the average spot instance price relative to the pay-as-you-go instance price and the pay-as-you-go instance price.
|
|
16966
16974
|
*
|
|
16967
16975
|
* @param request - DescribeSpotAdviceRequest
|
|
16968
16976
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -17033,15 +17041,15 @@ class Client extends openapi_core_1.default {
|
|
|
17033
17041
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSpotAdviceResponse({}));
|
|
17034
17042
|
}
|
|
17035
17043
|
/**
|
|
17036
|
-
* Queries information about
|
|
17044
|
+
* Queries information about spot instances in a region in the previous 30 days. The information includes the average release rate of spot instances and the percentage of the average spot instance price relative to the pay-as-you-go instance price.
|
|
17037
17045
|
*
|
|
17038
17046
|
* @remarks
|
|
17039
|
-
* This operation is applicable only to I/O optimized
|
|
17047
|
+
* This operation is applicable only to I/O optimized spot instances that reside in virtual private clouds (VPCs).
|
|
17040
17048
|
* * You can use one of the following methods to call this operation:
|
|
17041
17049
|
* * Specify `Cores` and `Memory` or `MinCores` and `MinMemory` to query information about the instance types that meet the specified vCPU and memory requirements.
|
|
17042
17050
|
* * Specify `InstanceTypes.N` to query information about the specified instance types.
|
|
17043
17051
|
* * Specify `Cores` and `Memory` or `MinCores` and `MinMemory`, and then specify `InstanceTypeFamily` or `InstanceFamilyLevel` to query information about the instance types that meet the specified vCPU and memory requirements within the specified instance family or at a specified instance family level.
|
|
17044
|
-
* * You can calculate the average price of
|
|
17052
|
+
* * You can calculate the average price of spot instances based on the percentage of the average spot instance price relative to the pay-as-you-go instance price and the pay-as-you-go instance price.
|
|
17045
17053
|
*
|
|
17046
17054
|
* @param request - DescribeSpotAdviceRequest
|
|
17047
17055
|
* @returns DescribeSpotAdviceResponse
|
|
@@ -17051,10 +17059,10 @@ class Client extends openapi_core_1.default {
|
|
|
17051
17059
|
return await this.describeSpotAdviceWithOptions(request, runtime);
|
|
17052
17060
|
}
|
|
17053
17061
|
/**
|
|
17054
|
-
* Queries the historical prices of
|
|
17062
|
+
* Queries the historical prices of spot instances within up to the previous 30 days. You can set the maximum price of a spot instance based on the historical prices.
|
|
17055
17063
|
*
|
|
17056
17064
|
* @remarks
|
|
17057
|
-
* This operation is applicable only to I/O optimized
|
|
17065
|
+
* This operation is applicable only to I/O optimized spot instances.
|
|
17058
17066
|
* * The data returned by the interface may be paginated. If the returned data contains the `NextOffset` parameter, you can set the `Offset` parameter in the request to the value of the `NextOffset` parameter for subsequent data query.
|
|
17059
17067
|
*
|
|
17060
17068
|
* @param request - DescribeSpotPriceHistoryRequest
|
|
@@ -17126,10 +17134,10 @@ class Client extends openapi_core_1.default {
|
|
|
17126
17134
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSpotPriceHistoryResponse({}));
|
|
17127
17135
|
}
|
|
17128
17136
|
/**
|
|
17129
|
-
* Queries the historical prices of
|
|
17137
|
+
* Queries the historical prices of spot instances within up to the previous 30 days. You can set the maximum price of a spot instance based on the historical prices.
|
|
17130
17138
|
*
|
|
17131
17139
|
* @remarks
|
|
17132
|
-
* This operation is applicable only to I/O optimized
|
|
17140
|
+
* This operation is applicable only to I/O optimized spot instances.
|
|
17133
17141
|
* * The data returned by the interface may be paginated. If the returned data contains the `NextOffset` parameter, you can set the `Offset` parameter in the request to the value of the `NextOffset` parameter for subsequent data query.
|
|
17134
17142
|
*
|
|
17135
17143
|
* @param request - DescribeSpotPriceHistoryRequest
|
|
@@ -22298,7 +22306,7 @@ class Client extends openapi_core_1.default {
|
|
|
22298
22306
|
return await this.modifyInstanceAttributeWithOptions(request, runtime);
|
|
22299
22307
|
}
|
|
22300
22308
|
/**
|
|
22301
|
-
* Changes the automatic release time of a pay-as-you-go or
|
|
22309
|
+
* Changes the automatic release time of a pay-as-you-go or spot instance or cancels the automatic release of the instance.
|
|
22302
22310
|
*
|
|
22303
22311
|
* @param request - ModifyInstanceAutoReleaseTimeRequest
|
|
22304
22312
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -22345,7 +22353,7 @@ class Client extends openapi_core_1.default {
|
|
|
22345
22353
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyInstanceAutoReleaseTimeResponse({}));
|
|
22346
22354
|
}
|
|
22347
22355
|
/**
|
|
22348
|
-
* Changes the automatic release time of a pay-as-you-go or
|
|
22356
|
+
* Changes the automatic release time of a pay-as-you-go or spot instance or cancels the automatic release of the instance.
|
|
22349
22357
|
*
|
|
22350
22358
|
* @param request - ModifyInstanceAutoReleaseTimeRequest
|
|
22351
22359
|
* @returns ModifyInstanceAutoReleaseTimeResponse
|
|
@@ -22547,7 +22555,7 @@ class Client extends openapi_core_1.default {
|
|
|
22547
22555
|
* * The network type of the instance must be Virtual Private Cloud (VPC).
|
|
22548
22556
|
* * The instance and the destination dedicated host to which to migrate the instance must belong to the same account and reside in the same region and zone.
|
|
22549
22557
|
* * A pay-as-you-go instance can be migrated to a subscription dedicated host. A subscription instance can be migrated only between subscription dedicated hosts. The expiration date of the subscription instance cannot be later than that of the destination dedicated host.
|
|
22550
|
-
* * You can migrate only pay-as-you-go instances from a shared host to a dedicated host. You cannot migrate subscription instances or
|
|
22558
|
+
* * You can migrate only pay-as-you-go instances from a shared host to a dedicated host. You cannot migrate subscription instances or spot instances from a shared host to a dedicated host.
|
|
22551
22559
|
* * You can redeploy an instance to a specific dedicated host cluster.
|
|
22552
22560
|
*
|
|
22553
22561
|
* @param request - ModifyInstanceDeploymentRequest
|
|
@@ -22630,7 +22638,7 @@ class Client extends openapi_core_1.default {
|
|
|
22630
22638
|
* * The network type of the instance must be Virtual Private Cloud (VPC).
|
|
22631
22639
|
* * The instance and the destination dedicated host to which to migrate the instance must belong to the same account and reside in the same region and zone.
|
|
22632
22640
|
* * A pay-as-you-go instance can be migrated to a subscription dedicated host. A subscription instance can be migrated only between subscription dedicated hosts. The expiration date of the subscription instance cannot be later than that of the destination dedicated host.
|
|
22633
|
-
* * You can migrate only pay-as-you-go instances from a shared host to a dedicated host. You cannot migrate subscription instances or
|
|
22641
|
+
* * You can migrate only pay-as-you-go instances from a shared host to a dedicated host. You cannot migrate subscription instances or spot instances from a shared host to a dedicated host.
|
|
22634
22642
|
* * You can redeploy an instance to a specific dedicated host cluster.
|
|
22635
22643
|
*
|
|
22636
22644
|
* @param request - ModifyInstanceDeploymentRequest
|
|
@@ -27922,11 +27930,11 @@ class Client extends openapi_core_1.default {
|
|
|
27922
27930
|
* Amount:10, //Set the number of ECS instances that you want to create to 10.
|
|
27923
27931
|
* InstanceChargeType:"PostPaid", //Set the billing method to PostPaid, which specifies the pay-as-you-go billing method.
|
|
27924
27932
|
* SpotStrategy:"NoSpot" //Set this parameter to NoSpot, which is the default value and specifies that the instances are created as pay-as-you-go instances.
|
|
27925
|
-
* **Example: Create 20
|
|
27933
|
+
* **Example: Create 20 spot instances that use a specific bidding policy and a protection period**
|
|
27926
27934
|
* Amount:20, //Set the number of ECS instances that you want to create to 20.
|
|
27927
27935
|
* InstanceChargeType:"PostPaid",
|
|
27928
|
-
* SpotStrategy:"SpotAsPriceGo", //Set the bidding policy to SpotAsPriceGo, which specifies that the instances are created as
|
|
27929
|
-
* SpotDuration:1 //Set the protection period of the
|
|
27936
|
+
* SpotStrategy:"SpotAsPriceGo", //Set the bidding policy to SpotAsPriceGo, which specifies that the instances are created as spot instances for which the market price at the time of purchase is automatically used as the bid price.
|
|
27937
|
+
* SpotDuration:1 //Set the protection period of the spot instances to 1. Unit: hours.
|
|
27930
27938
|
* 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:
|
|
27931
27939
|
* **Example: Create 10 ECS instances based on a launch template**
|
|
27932
27940
|
* RegionId:"cn-hangzhou", //Set the region ID to cn-hangzhou, which specifies the China (Hangzhou) region.
|
|
@@ -28259,11 +28267,11 @@ class Client extends openapi_core_1.default {
|
|
|
28259
28267
|
* Amount:10, //Set the number of ECS instances that you want to create to 10.
|
|
28260
28268
|
* InstanceChargeType:"PostPaid", //Set the billing method to PostPaid, which specifies the pay-as-you-go billing method.
|
|
28261
28269
|
* SpotStrategy:"NoSpot" //Set this parameter to NoSpot, which is the default value and specifies that the instances are created as pay-as-you-go instances.
|
|
28262
|
-
* **Example: Create 20
|
|
28270
|
+
* **Example: Create 20 spot instances that use a specific bidding policy and a protection period**
|
|
28263
28271
|
* Amount:20, //Set the number of ECS instances that you want to create to 20.
|
|
28264
28272
|
* InstanceChargeType:"PostPaid",
|
|
28265
|
-
* SpotStrategy:"SpotAsPriceGo", //Set the bidding policy to SpotAsPriceGo, which specifies that the instances are created as
|
|
28266
|
-
* SpotDuration:1 //Set the protection period of the
|
|
28273
|
+
* SpotStrategy:"SpotAsPriceGo", //Set the bidding policy to SpotAsPriceGo, which specifies that the instances are created as spot instances for which the market price at the time of purchase is automatically used as the bid price.
|
|
28274
|
+
* SpotDuration:1 //Set the protection period of the spot instances to 1. Unit: hours.
|
|
28267
28275
|
* 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:
|
|
28268
28276
|
* **Example: Create 10 ECS instances based on a launch template**
|
|
28269
28277
|
* RegionId:"cn-hangzhou", //Set the region ID to cn-hangzhou, which specifies the China (Hangzhou) region.
|
|
@@ -28664,6 +28672,9 @@ class Client extends openapi_core_1.default {
|
|
|
28664
28672
|
if (!$dara.isNull(request.ownerId)) {
|
|
28665
28673
|
query["OwnerId"] = request.ownerId;
|
|
28666
28674
|
}
|
|
28675
|
+
if (!$dara.isNull(request.passwordName)) {
|
|
28676
|
+
query["PasswordName"] = request.passwordName;
|
|
28677
|
+
}
|
|
28667
28678
|
if (!$dara.isNull(request.portNumber)) {
|
|
28668
28679
|
query["PortNumber"] = request.portNumber;
|
|
28669
28680
|
}
|
|
@@ -28805,13 +28816,13 @@ class Client extends openapi_core_1.default {
|
|
|
28805
28816
|
return await this.stopInstanceWithOptions(request, runtime);
|
|
28806
28817
|
}
|
|
28807
28818
|
/**
|
|
28808
|
-
* Stops Elastic Compute Service (ECS) instances. You can specify parameters to determine whether to forcefully stop the instances
|
|
28819
|
+
* Stops Elastic Compute Service (ECS) instances. You can specify parameters to determine whether to forcefully stop the instances and the stop mode.
|
|
28809
28820
|
*
|
|
28810
28821
|
* @remarks
|
|
28811
|
-
* This operation is an asynchronous operation. After you call this operation to stop ECS
|
|
28812
|
-
* ### [](#)
|
|
28822
|
+
* This operation is an asynchronous operation. After you call this operation to stop an ECS instance, the operation sets the status of the ECS instance to Stopping and begins the stop process. You can call the [DescribeInstanceStatus](https://help.aliyun.com/document_detail/2679688.html) operation to query the status of the ECS instance. When the status of the ECS instance changes to `Stopped`, the instance is stopped.
|
|
28823
|
+
* ### [](#)Considerations
|
|
28824
|
+
* * The instance is unavailable after you stop the instance. Make sure that stopping the instance does not affect your business. You can also call the [StartInstance](https://help.aliyun.com/document_detail/2679679.html) or [StartInstances](https://help.aliyun.com/document_detail/2679680.html) operation to start the instance.
|
|
28813
28825
|
* * You cannot call this operation to stop ECS instances that are locked for security reasons. For more information, see [API behavior when an instance is locked for security reasons](https://help.aliyun.com/document_detail/25695.html).
|
|
28814
|
-
* * After you enable the default economical mode for all pay-as-you-go ECS instances located in virtual private clouds (VPCs) in your account, you can set `StoppedMode` to KeepCharging for the pay-as-you-go ECS instances that you want to stop to enable standard mode. This way, the instances continue to be billed after they are stopped. The instance type resources and public IP addresses of the instances are retained.
|
|
28815
28826
|
*
|
|
28816
28827
|
* @param request - StopInstancesRequest
|
|
28817
28828
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -28867,13 +28878,13 @@ class Client extends openapi_core_1.default {
|
|
|
28867
28878
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.StopInstancesResponse({}));
|
|
28868
28879
|
}
|
|
28869
28880
|
/**
|
|
28870
|
-
* Stops Elastic Compute Service (ECS) instances. You can specify parameters to determine whether to forcefully stop the instances
|
|
28881
|
+
* Stops Elastic Compute Service (ECS) instances. You can specify parameters to determine whether to forcefully stop the instances and the stop mode.
|
|
28871
28882
|
*
|
|
28872
28883
|
* @remarks
|
|
28873
|
-
* This operation is an asynchronous operation. After you call this operation to stop ECS
|
|
28874
|
-
* ### [](#)
|
|
28884
|
+
* This operation is an asynchronous operation. After you call this operation to stop an ECS instance, the operation sets the status of the ECS instance to Stopping and begins the stop process. You can call the [DescribeInstanceStatus](https://help.aliyun.com/document_detail/2679688.html) operation to query the status of the ECS instance. When the status of the ECS instance changes to `Stopped`, the instance is stopped.
|
|
28885
|
+
* ### [](#)Considerations
|
|
28886
|
+
* * The instance is unavailable after you stop the instance. Make sure that stopping the instance does not affect your business. You can also call the [StartInstance](https://help.aliyun.com/document_detail/2679679.html) or [StartInstances](https://help.aliyun.com/document_detail/2679680.html) operation to start the instance.
|
|
28875
28887
|
* * You cannot call this operation to stop ECS instances that are locked for security reasons. For more information, see [API behavior when an instance is locked for security reasons](https://help.aliyun.com/document_detail/25695.html).
|
|
28876
|
-
* * After you enable the default economical mode for all pay-as-you-go ECS instances located in virtual private clouds (VPCs) in your account, you can set `StoppedMode` to KeepCharging for the pay-as-you-go ECS instances that you want to stop to enable standard mode. This way, the instances continue to be billed after they are stopped. The instance type resources and public IP addresses of the instances are retained.
|
|
28877
28888
|
*
|
|
28878
28889
|
* @param request - StopInstancesRequest
|
|
28879
28890
|
* @returns StopInstancesResponse
|