@alicloud/ecs20140526 7.0.16 → 7.1.0

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 (78) hide show
  1. package/dist/client.d.ts +58 -34
  2. package/dist/client.js +145 -108
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AllocateDedicatedHostsRequest.d.ts +2 -2
  5. package/dist/models/CancelAutoSnapshotPolicyRequest.d.ts +1 -0
  6. package/dist/models/CancelAutoSnapshotPolicyRequest.js +2 -0
  7. package/dist/models/CancelAutoSnapshotPolicyRequest.js.map +1 -1
  8. package/dist/models/DescribeAutoSnapshotPolicyAssociationsRequest.d.ts +26 -0
  9. package/dist/models/DescribeAutoSnapshotPolicyAssociationsRequest.js +74 -0
  10. package/dist/models/DescribeAutoSnapshotPolicyAssociationsRequest.js.map +1 -0
  11. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponse.d.ts +19 -0
  12. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponse.js +69 -0
  13. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponse.js.map +1 -0
  14. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.d.ts +43 -0
  15. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.js +108 -0
  16. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.js.map +1 -0
  17. package/dist/models/DescribeDedicatedHostsRequest.d.ts +15 -15
  18. package/dist/models/DescribeDedicatedHostsResponseBody.d.ts +2 -2
  19. package/dist/models/DescribeDeploymentSetsResponseBody.d.ts +1 -0
  20. package/dist/models/DescribeDeploymentSetsResponseBody.js +2 -0
  21. package/dist/models/DescribeDeploymentSetsResponseBody.js.map +1 -1
  22. package/dist/models/DescribeDisksRequest.d.ts +0 -2
  23. package/dist/models/DescribeDisksRequest.js.map +1 -1
  24. package/dist/models/DescribeInstanceAttributeResponseBody.d.ts +1 -0
  25. package/dist/models/DescribeInstanceAttributeResponseBody.js +2 -0
  26. package/dist/models/DescribeInstanceAttributeResponseBody.js.map +1 -1
  27. package/dist/models/DescribeInstanceHistoryEventsResponseBody.d.ts +2 -0
  28. package/dist/models/DescribeInstanceHistoryEventsResponseBody.js.map +1 -1
  29. package/dist/models/DescribeInstanceTypesResponseBody.d.ts +34 -0
  30. package/dist/models/DescribeInstanceTypesResponseBody.js.map +1 -1
  31. package/dist/models/DescribeLaunchTemplatesRequest.d.ts +5 -5
  32. package/dist/models/DescribeLaunchTemplatesResponseBody.d.ts +6 -6
  33. package/dist/models/DescribeTerminalSessionsResponseBody.d.ts +7 -2
  34. package/dist/models/DescribeTerminalSessionsResponseBody.js.map +1 -1
  35. package/dist/models/ImportImageRequest.d.ts +8 -7
  36. package/dist/models/ImportImageRequest.js.map +1 -1
  37. package/dist/models/ModifyElasticityAssuranceRequest.d.ts +10 -10
  38. package/dist/models/ModifyInstanceNetworkOptionsRequest.d.ts +26 -0
  39. package/dist/models/ModifyInstanceNetworkOptionsRequest.js +66 -0
  40. package/dist/models/ModifyInstanceNetworkOptionsRequest.js.map +1 -0
  41. package/dist/models/ModifyInstanceNetworkOptionsResponse.d.ts +19 -0
  42. package/dist/models/ModifyInstanceNetworkOptionsResponse.js +69 -0
  43. package/dist/models/ModifyInstanceNetworkOptionsResponse.js.map +1 -0
  44. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.d.ts +26 -0
  45. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.js +60 -0
  46. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.js.map +1 -0
  47. package/dist/models/RunInstancesRequest.d.ts +34 -18
  48. package/dist/models/RunInstancesRequest.js +2 -0
  49. package/dist/models/RunInstancesRequest.js.map +1 -1
  50. package/dist/models/RunInstancesResponseBody.d.ts +1 -1
  51. package/dist/models/model.d.ts +8 -0
  52. package/dist/models/model.js +53 -36
  53. package/dist/models/model.js.map +1 -1
  54. package/package.json +1 -1
  55. package/src/client.ts +164 -108
  56. package/src/models/AllocateDedicatedHostsRequest.ts +2 -2
  57. package/src/models/CancelAutoSnapshotPolicyRequest.ts +3 -0
  58. package/src/models/DescribeAutoSnapshotPolicyAssociationsRequest.ts +55 -0
  59. package/src/models/DescribeAutoSnapshotPolicyAssociationsResponse.ts +40 -0
  60. package/src/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.ts +88 -0
  61. package/src/models/DescribeDedicatedHostsRequest.ts +15 -15
  62. package/src/models/DescribeDedicatedHostsResponseBody.ts +2 -2
  63. package/src/models/DescribeDeploymentSetsResponseBody.ts +3 -0
  64. package/src/models/DescribeDisksRequest.ts +0 -2
  65. package/src/models/DescribeInstanceAttributeResponseBody.ts +3 -0
  66. package/src/models/DescribeInstanceHistoryEventsResponseBody.ts +2 -0
  67. package/src/models/DescribeInstanceTypesResponseBody.ts +34 -0
  68. package/src/models/DescribeLaunchTemplatesRequest.ts +5 -5
  69. package/src/models/DescribeLaunchTemplatesResponseBody.ts +6 -6
  70. package/src/models/DescribeTerminalSessionsResponseBody.ts +7 -2
  71. package/src/models/ImportImageRequest.ts +8 -7
  72. package/src/models/ModifyElasticityAssuranceRequest.ts +10 -10
  73. package/src/models/ModifyInstanceNetworkOptionsRequest.ts +47 -0
  74. package/src/models/ModifyInstanceNetworkOptionsResponse.ts +40 -0
  75. package/src/models/ModifyInstanceNetworkOptionsResponseBody.ts +41 -0
  76. package/src/models/RunInstancesRequest.ts +36 -18
  77. package/src/models/RunInstancesResponseBody.ts +1 -1
  78. package/src/models/model.ts +8 -0
package/dist/client.d.ts CHANGED
@@ -2171,10 +2171,11 @@ export default class Client extends OpenApi {
2171
2171
  */
2172
2172
  deleteImage(request: $_model.DeleteImageRequest): Promise<$_model.DeleteImageResponse>;
2173
2173
  /**
2174
- * Deletes an image component.
2174
+ * Deletes an image component. You can specify RegionId and ImageComponentId in the request.
2175
2175
  *
2176
2176
  * @remarks
2177
- * Only custom image components can be deleted.
2177
+ * Only custom image components can be deleted.
2178
+ * * When you delete a component, make sure that the component is not used in the template. Otherwise, the component fails to be deleted.
2178
2179
  *
2179
2180
  * @param request - DeleteImageComponentRequest
2180
2181
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2182,17 +2183,18 @@ export default class Client extends OpenApi {
2182
2183
  */
2183
2184
  deleteImageComponentWithOptions(request: $_model.DeleteImageComponentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteImageComponentResponse>;
2184
2185
  /**
2185
- * Deletes an image component.
2186
+ * Deletes an image component. You can specify RegionId and ImageComponentId in the request.
2186
2187
  *
2187
2188
  * @remarks
2188
- * Only custom image components can be deleted.
2189
+ * Only custom image components can be deleted.
2190
+ * * When you delete a component, make sure that the component is not used in the template. Otherwise, the component fails to be deleted.
2189
2191
  *
2190
2192
  * @param request - DeleteImageComponentRequest
2191
2193
  * @returns DeleteImageComponentResponse
2192
2194
  */
2193
2195
  deleteImageComponent(request: $_model.DeleteImageComponentRequest): Promise<$_model.DeleteImageComponentResponse>;
2194
2196
  /**
2195
- * Deletes an image template. You can specify RegionId and ImagePipelineId in the request.
2197
+ * Deletes an image template.
2196
2198
  *
2197
2199
  * @remarks
2198
2200
  * If an ongoing image building task is associated with an image template, you cannot delete the image template. You can delete the image template only if the image building task reaches the SUCCESS, FAILED, TEST_FAILED, PARTITION_SUCCESS, or CANCELLED state. You can call the DescribeImagePipelineExecutions operation to query the details of an image building task.
@@ -2203,7 +2205,7 @@ export default class Client extends OpenApi {
2203
2205
  */
2204
2206
  deleteImagePipelineWithOptions(request: $_model.DeleteImagePipelineRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteImagePipelineResponse>;
2205
2207
  /**
2206
- * Deletes an image template. You can specify RegionId and ImagePipelineId in the request.
2208
+ * Deletes an image template.
2207
2209
  *
2208
2210
  * @remarks
2209
2211
  * If an ongoing image building task is associated with an image template, you cannot delete the image template. You can delete the image template only if the image building task reaches the SUCCESS, FAILED, TEST_FAILED, PARTITION_SUCCESS, or CANCELLED state. You can call the DescribeImagePipelineExecutions operation to query the details of an image building task.
@@ -2781,6 +2783,21 @@ export default class Client extends OpenApi {
2781
2783
  * @returns DescribeAutoProvisioningGroupsResponse
2782
2784
  */
2783
2785
  describeAutoProvisioningGroups(request: $_model.DescribeAutoProvisioningGroupsRequest): Promise<$_model.DescribeAutoProvisioningGroupsResponse>;
2786
+ /**
2787
+ * 查询自动快照策略的关联关系
2788
+ *
2789
+ * @param request - DescribeAutoSnapshotPolicyAssociationsRequest
2790
+ * @param runtime - runtime options for this request RuntimeOptions
2791
+ * @returns DescribeAutoSnapshotPolicyAssociationsResponse
2792
+ */
2793
+ describeAutoSnapshotPolicyAssociationsWithOptions(request: $_model.DescribeAutoSnapshotPolicyAssociationsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAutoSnapshotPolicyAssociationsResponse>;
2794
+ /**
2795
+ * 查询自动快照策略的关联关系
2796
+ *
2797
+ * @param request - DescribeAutoSnapshotPolicyAssociationsRequest
2798
+ * @returns DescribeAutoSnapshotPolicyAssociationsResponse
2799
+ */
2800
+ describeAutoSnapshotPolicyAssociations(request: $_model.DescribeAutoSnapshotPolicyAssociationsRequest): Promise<$_model.DescribeAutoSnapshotPolicyAssociationsResponse>;
2784
2801
  /**
2785
2802
  * Queries the details of automatic snapshot policies that are created in a specific region.
2786
2803
  *
@@ -3098,7 +3115,7 @@ export default class Client extends OpenApi {
3098
3115
  */
3099
3116
  describeDedicatedHostTypes(request: $_model.DescribeDedicatedHostTypesRequest): Promise<$_model.DescribeDedicatedHostTypesResponse>;
3100
3117
  /**
3101
- * Queries the information about dedicated hosts, including the physical performance specifications, machine codes, and status of the dedicated hosts, and Elastic Compute Service (ECS) instances that are created on the dedicated hosts.
3118
+ * Queries the details of one or more Dedicated Hosts (DDHs). You can call this operation to obtain information about a DDH, including the physical performance specifications, machine code, service status, and the list of created ECS instances. You can specify relevant parameters, such as DDH IDs, DDH cluster IDs, hostname, and status, to query the required DDH details. This helps you efficiently manage and optimize cloud computing resources.
3102
3119
  *
3103
3120
  * @remarks
3104
3121
  * ## [](#)Usage notes
@@ -3112,7 +3129,7 @@ export default class Client extends OpenApi {
3112
3129
  */
3113
3130
  describeDedicatedHostsWithOptions(request: $_model.DescribeDedicatedHostsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeDedicatedHostsResponse>;
3114
3131
  /**
3115
- * Queries the information about dedicated hosts, including the physical performance specifications, machine codes, and status of the dedicated hosts, and Elastic Compute Service (ECS) instances that are created on the dedicated hosts.
3132
+ * Queries the details of one or more Dedicated Hosts (DDHs). You can call this operation to obtain information about a DDH, including the physical performance specifications, machine code, service status, and the list of created ECS instances. You can specify relevant parameters, such as DDH IDs, DDH cluster IDs, hostname, and status, to query the required DDH details. This helps you efficiently manage and optimize cloud computing resources.
3116
3133
  *
3117
3134
  * @remarks
3118
3135
  * ## [](#)Usage notes
@@ -3721,7 +3738,8 @@ export default class Client extends OpenApi {
3721
3738
  *
3722
3739
  * @remarks
3723
3740
  * You can query system events that were completed within the last 30 days. No limits apply to the time range for querying uncompleted system events.
3724
- * * You can also specify InstanceEventCycleStatus to query the system events that are in the Scheduled, Executing, or Inquiring state.
3741
+ * * If you do not specify the EventCycleStatus or InstanceEventCycleStatus parameter, only system events in the Avoidated, Executed, Canceled, or Failed state are included in the query results by default.
3742
+ * * You can also specify the InstanceEventCycleStatus parameter in the request to query the system events that are in the Scheduled, Executing, or Inquiring state.
3725
3743
  *
3726
3744
  * @param request - DescribeInstanceHistoryEventsRequest
3727
3745
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3733,7 +3751,8 @@ export default class Client extends OpenApi {
3733
3751
  *
3734
3752
  * @remarks
3735
3753
  * You can query system events that were completed within the last 30 days. No limits apply to the time range for querying uncompleted system events.
3736
- * * You can also specify InstanceEventCycleStatus to query the system events that are in the Scheduled, Executing, or Inquiring state.
3754
+ * * If you do not specify the EventCycleStatus or InstanceEventCycleStatus parameter, only system events in the Avoidated, Executed, Canceled, or Failed state are included in the query results by default.
3755
+ * * You can also specify the InstanceEventCycleStatus parameter in the request to query the system events that are in the Scheduled, Executing, or Inquiring state.
3737
3756
  *
3738
3757
  * @param request - DescribeInstanceHistoryEventsRequest
3739
3758
  * @returns DescribeInstanceHistoryEventsResponse
@@ -6068,20 +6087,15 @@ export default class Client extends OpenApi {
6068
6087
  */
6069
6088
  joinResourceGroup(request: $_model.JoinResourceGroupRequest): Promise<$_model.JoinResourceGroupResponse>;
6070
6089
  /**
6071
- * Adds an Elastic Compute Service (ECS) instance or an elastic network interface (ENI) to a security group. When you call this operation, you can specify parameters, such as SecurityGroupId, InstanceId, and NetworkInterfaceId, in the request.
6090
+ * Adds an Elastic Compute Service (ECS) instance or an elastic network interface (ENI) to a specified security group.
6072
6091
  *
6073
6092
  * @remarks
6074
- * ## [](#)Usage notes
6075
- * > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](https://help.aliyun.com/document_detail/25503.html) operation to add an instance to or remove an instance from a security group, and call the [ModifyNetworkInterfaceAttribute](https://help.aliyun.com/document_detail/58513.html) operation to add an ENI to or remove an ENI from a security group.
6076
- * Take note of the following items:
6077
- * * Before you add an instance to a security group, the instance must be in the **Stopped** (Stopped) or **Running** (Running) state.
6078
- * * An instance can be added to up to five security groups by default.
6079
- * * You can [submit a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex) to change the maximum number of security groups to which an instance can be added to 4 or 10.
6080
- * * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
6081
- * * The security group and the instance must reside in the same region.
6082
- * * The security group and the instance must be of the same network type. If the network type is Virtual Private Cloud (VPC), the security group and the instance must reside in the same VPC.
6093
+ * > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](https://help.aliyun.com/document_detail/25503.html) operation to add an instance to or remove an instance from a security group, and call the [ModifyNetworkInterfaceAttribute](https://help.aliyun.com/document_detail/58513.html) operation to add an ENI to or remove an ENI from a security group.
6083
6094
  * * An instance and an ENI cannot be added to a security group at the same time. You cannot specify `InstanceId` and `NetworkInterfaceId` at the same time in a request.
6084
- * For more information, see [Limits](https://help.aliyun.com/document_detail/25412.html).
6095
+ * * The security group and the ECS instance to be added to the security group must reside in the same region.
6096
+ * * The security group and the instance must be of the same network type. If the network type is Virtual Private Cloud (VPC), the security group and the instance must reside in the same VPC.
6097
+ * * Before you add an instance to a security group, the instance must be in the **Stopped** or **Running** state.
6098
+ * * An instance can be added to up to five security groups by default. For more information, see [Security group limits](~~25412#SecurityGroupQuota1~~).
6085
6099
  *
6086
6100
  * @param request - JoinSecurityGroupRequest
6087
6101
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6089,20 +6103,15 @@ export default class Client extends OpenApi {
6089
6103
  */
6090
6104
  joinSecurityGroupWithOptions(request: $_model.JoinSecurityGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.JoinSecurityGroupResponse>;
6091
6105
  /**
6092
- * Adds an Elastic Compute Service (ECS) instance or an elastic network interface (ENI) to a security group. When you call this operation, you can specify parameters, such as SecurityGroupId, InstanceId, and NetworkInterfaceId, in the request.
6106
+ * Adds an Elastic Compute Service (ECS) instance or an elastic network interface (ENI) to a specified security group.
6093
6107
  *
6094
6108
  * @remarks
6095
- * ## [](#)Usage notes
6096
- * > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](https://help.aliyun.com/document_detail/25503.html) operation to add an instance to or remove an instance from a security group, and call the [ModifyNetworkInterfaceAttribute](https://help.aliyun.com/document_detail/58513.html) operation to add an ENI to or remove an ENI from a security group.
6097
- * Take note of the following items:
6098
- * * Before you add an instance to a security group, the instance must be in the **Stopped** (Stopped) or **Running** (Running) state.
6099
- * * An instance can be added to up to five security groups by default.
6100
- * * You can [submit a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex) to change the maximum number of security groups to which an instance can be added to 4 or 10.
6101
- * * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
6102
- * * The security group and the instance must reside in the same region.
6103
- * * The security group and the instance must be of the same network type. If the network type is Virtual Private Cloud (VPC), the security group and the instance must reside in the same VPC.
6109
+ * > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](https://help.aliyun.com/document_detail/25503.html) operation to add an instance to or remove an instance from a security group, and call the [ModifyNetworkInterfaceAttribute](https://help.aliyun.com/document_detail/58513.html) operation to add an ENI to or remove an ENI from a security group.
6104
6110
  * * An instance and an ENI cannot be added to a security group at the same time. You cannot specify `InstanceId` and `NetworkInterfaceId` at the same time in a request.
6105
- * For more information, see [Limits](https://help.aliyun.com/document_detail/25412.html).
6111
+ * * The security group and the ECS instance to be added to the security group must reside in the same region.
6112
+ * * The security group and the instance must be of the same network type. If the network type is Virtual Private Cloud (VPC), the security group and the instance must reside in the same VPC.
6113
+ * * Before you add an instance to a security group, the instance must be in the **Stopped** or **Running** state.
6114
+ * * An instance can be added to up to five security groups by default. For more information, see [Security group limits](~~25412#SecurityGroupQuota1~~).
6106
6115
  *
6107
6116
  * @param request - JoinSecurityGroupRequest
6108
6117
  * @returns JoinSecurityGroupResponse
@@ -6474,7 +6483,7 @@ export default class Client extends OpenApi {
6474
6483
  */
6475
6484
  modifyDiskAttribute(request: $_model.ModifyDiskAttributeRequest): Promise<$_model.ModifyDiskAttributeResponse>;
6476
6485
  /**
6477
- * Changes the billing method of data disks that are attached to a subscription Elastic Compute Service (ECS) instance.
6486
+ * Converts the billing method of a data disk attached to a subscription ECS instance between pay-as-you-go and subscription.
6478
6487
  *
6479
6488
  * @remarks
6480
6489
  * For information about how to change the billing method of cloud disks, see [Change the billing methods of a disk](https://help.aliyun.com/document_detail/145018.html).
@@ -6491,7 +6500,7 @@ export default class Client extends OpenApi {
6491
6500
  */
6492
6501
  modifyDiskChargeTypeWithOptions(request: $_model.ModifyDiskChargeTypeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyDiskChargeTypeResponse>;
6493
6502
  /**
6494
- * Changes the billing method of data disks that are attached to a subscription Elastic Compute Service (ECS) instance.
6503
+ * Converts the billing method of a data disk attached to a subscription ECS instance between pay-as-you-go and subscription.
6495
6504
  *
6496
6505
  * @remarks
6497
6506
  * For information about how to change the billing method of cloud disks, see [Change the billing methods of a disk](https://help.aliyun.com/document_detail/145018.html).
@@ -7000,6 +7009,21 @@ export default class Client extends OpenApi {
7000
7009
  * @returns ModifyInstanceMetadataOptionsResponse
7001
7010
  */
7002
7011
  modifyInstanceMetadataOptions(request: $_model.ModifyInstanceMetadataOptionsRequest): Promise<$_model.ModifyInstanceMetadataOptionsResponse>;
7012
+ /**
7013
+ * 修改实例网络选项
7014
+ *
7015
+ * @param request - ModifyInstanceNetworkOptionsRequest
7016
+ * @param runtime - runtime options for this request RuntimeOptions
7017
+ * @returns ModifyInstanceNetworkOptionsResponse
7018
+ */
7019
+ modifyInstanceNetworkOptionsWithOptions(request: $_model.ModifyInstanceNetworkOptionsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyInstanceNetworkOptionsResponse>;
7020
+ /**
7021
+ * 修改实例网络选项
7022
+ *
7023
+ * @param request - ModifyInstanceNetworkOptionsRequest
7024
+ * @returns ModifyInstanceNetworkOptionsResponse
7025
+ */
7026
+ modifyInstanceNetworkOptions(request: $_model.ModifyInstanceNetworkOptionsRequest): Promise<$_model.ModifyInstanceNetworkOptionsResponse>;
7003
7027
  /**
7004
7028
  * Modifies the network configurations of an Elastic Compute Service (ECS) instance, such as the public bandwidth, assignment or unassignment of a static public IP address (also known as system-assigned or auto-assigned public IP address), and billing method for network usage. You can call this operation to upgrade or downgrade the network configurations of ECS instances.
7005
7029
  *