@alicloud/ecs20140526 7.2.0 → 7.2.2
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 +14 -14
- package/dist/client.js +32 -15
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAutoProvisioningGroupRequest.d.ts +15 -0
- package/dist/models/CreateAutoProvisioningGroupRequest.js +27 -1
- package/dist/models/CreateAutoProvisioningGroupRequest.js.map +1 -1
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.d.ts +15 -0
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.js +27 -1
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.js.map +1 -1
- package/dist/models/CreateInstanceRequest.d.ts +1 -1
- package/dist/models/CreateLaunchTemplateRequest.d.ts +14 -0
- package/dist/models/CreateLaunchTemplateRequest.js +25 -1
- package/dist/models/CreateLaunchTemplateRequest.js.map +1 -1
- package/dist/models/CreateLaunchTemplateVersionRequest.d.ts +14 -0
- package/dist/models/CreateLaunchTemplateVersionRequest.js +25 -1
- package/dist/models/CreateLaunchTemplateVersionRequest.js.map +1 -1
- package/dist/models/DescribeDisksResponseBody.d.ts +2 -0
- package/dist/models/DescribeDisksResponseBody.js.map +1 -1
- package/dist/models/DescribeImagesResponseBody.d.ts +1 -0
- package/dist/models/DescribeImagesResponseBody.js +2 -0
- package/dist/models/DescribeImagesResponseBody.js.map +1 -1
- package/dist/models/DescribeInstanceAttributeResponseBody.d.ts +18 -0
- package/dist/models/DescribeInstanceAttributeResponseBody.js.map +1 -1
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.d.ts +2 -0
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.js +4 -0
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.js.map +1 -1
- package/dist/models/DescribeLaunchTemplateVersionsResponseBody.d.ts +14 -0
- package/dist/models/DescribeLaunchTemplateVersionsResponseBody.js +25 -1
- package/dist/models/DescribeLaunchTemplateVersionsResponseBody.js.map +1 -1
- package/dist/models/DescribeManagedInstancesRequest.d.ts +1 -0
- package/dist/models/DescribeManagedInstancesRequest.js +2 -0
- package/dist/models/DescribeManagedInstancesRequest.js.map +1 -1
- package/dist/models/ResizeDiskRequest.d.ts +1 -1
- package/dist/models/StartTerminalSessionRequest.d.ts +16 -0
- package/dist/models/StartTerminalSessionRequest.js +29 -1
- package/dist/models/StartTerminalSessionRequest.js.map +1 -1
- package/dist/models/StartTerminalSessionShrinkRequest.d.ts +85 -0
- package/dist/models/StartTerminalSessionShrinkRequest.js +85 -0
- package/dist/models/StartTerminalSessionShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +93 -79
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +37 -15
- package/src/models/CreateAutoProvisioningGroupRequest.ts +32 -0
- package/src/models/CreateAutoProvisioningGroupShrinkRequest.ts +32 -0
- package/src/models/CreateInstanceRequest.ts +1 -1
- package/src/models/CreateLaunchTemplateRequest.ts +29 -0
- package/src/models/CreateLaunchTemplateVersionRequest.ts +29 -0
- package/src/models/DescribeDisksResponseBody.ts +2 -0
- package/src/models/DescribeImagesResponseBody.ts +3 -0
- package/src/models/DescribeInstanceAttributeResponseBody.ts +18 -0
- package/src/models/DescribeInstanceHistoryEventsResponseBody.ts +6 -0
- package/src/models/DescribeLaunchTemplateVersionsResponseBody.ts +29 -0
- package/src/models/DescribeManagedInstancesRequest.ts +3 -0
- package/src/models/ResizeDiskRequest.ts +1 -1
- package/src/models/StartTerminalSessionRequest.ts +35 -0
- package/src/models/StartTerminalSessionShrinkRequest.ts +125 -0
- package/src/models/model.ts +7 -0
package/dist/client.d.ts
CHANGED
|
@@ -8725,15 +8725,15 @@ export default class Client extends OpenApi {
|
|
|
8725
8725
|
* Resizes a system disk or a data disk.
|
|
8726
8726
|
*
|
|
8727
8727
|
* @remarks
|
|
8728
|
-
* >
|
|
8728
|
+
* > Before you call this operation to resize a disk, you must check the partition format of the disk. You cannot resize a master boot record (MBR) disk to a size that is larger than 2 TiB. If you resize an MBR disk to a size that is larger than 2 TiB, data may be lost. If you want to resize an MBR disk to a size that is larger than 2 TiB, we recommend performing the following steps: Create a new data disk that is larger than 2 TiB in size, partition and format the new data disk by using the GUID Partition Table (GPT) format, and then copy data from the MBR disk to the GPT data disk. For more information, see [Step 1: Resize a disk to extend the disk capacity](https://help.aliyun.com/document_detail/44986.html).
|
|
8729
8729
|
* * You can resize disks of the following disk categories: basic disks (`cloud`), ultra disks (`cloud_efficiency`), standard SSDs (`cloud_ssd`), Enterprise SSDs (ESSDs) (`cloud_essd`), ESSD AutoPL disks (cloud_auto), standard elastic ephemeral disks (elastic_ephemeral_disk_standard), and premium elastic ephemeral disks (elastic_ephemeral_disk_premium).
|
|
8730
8730
|
* * You cannot resize a cloud disk when a snapshot is being created for the disk. Wait until the snapshot is created before you resize the cloud disk.
|
|
8731
|
-
* * You cannot call this operation to
|
|
8732
|
-
* * If the multi-attach feature is enabled for a cloud disk, you can resize the disk online or offline. Make sure that the
|
|
8733
|
-
* * If you want to resize the disk online, the ECS instances must be in the **Running**
|
|
8734
|
-
* * If you want to resize the disk offline, the ECS instances must be in the **Running**
|
|
8731
|
+
* * You cannot call this operation to extend partitions or file systems. You must manually allocate partitions and file systems after the resize cloud disk capacity. For more information, see [Extend partitions and file systems (Linux)](~~2949817#bb3b1f02e51pj~~) and [Extend partitions and file systems (windows)](~~2932233#a9f9b78f3fujb~~).
|
|
8732
|
+
* * If the multi-attach feature is enabled for a cloud disk, you can resize the disk online or offline. Make sure that the ECS instances to which the disk is attached meet the following requirements:
|
|
8733
|
+
* * If you want to resize the disk online, the ECS instances must be in the **Running** state.``
|
|
8734
|
+
* * If you want to resize the disk offline, the ECS instances must be in the **Running** or **Stopped** state.````
|
|
8735
8735
|
* * The cloud disk that you want to resize must meet the following requirements:
|
|
8736
|
-
* * The disk is in the In Use (`
|
|
8736
|
+
* * The disk is in the In Use (`In Use`) or Unattached (`Available`) state.
|
|
8737
8737
|
* * (Recommended) Snapshots are created for the disk to back up disk data. For information about how to create snapshots for a disk, see [Create a snapshot](https://help.aliyun.com/document_detail/25455.html).
|
|
8738
8738
|
* * If the disk is a new data disk, initialize the disk before you resize the disk. For more information, see [Overview](https://help.aliyun.com/document_detail/466323.html).
|
|
8739
8739
|
*
|
|
@@ -8746,15 +8746,15 @@ export default class Client extends OpenApi {
|
|
|
8746
8746
|
* Resizes a system disk or a data disk.
|
|
8747
8747
|
*
|
|
8748
8748
|
* @remarks
|
|
8749
|
-
* >
|
|
8749
|
+
* > Before you call this operation to resize a disk, you must check the partition format of the disk. You cannot resize a master boot record (MBR) disk to a size that is larger than 2 TiB. If you resize an MBR disk to a size that is larger than 2 TiB, data may be lost. If you want to resize an MBR disk to a size that is larger than 2 TiB, we recommend performing the following steps: Create a new data disk that is larger than 2 TiB in size, partition and format the new data disk by using the GUID Partition Table (GPT) format, and then copy data from the MBR disk to the GPT data disk. For more information, see [Step 1: Resize a disk to extend the disk capacity](https://help.aliyun.com/document_detail/44986.html).
|
|
8750
8750
|
* * You can resize disks of the following disk categories: basic disks (`cloud`), ultra disks (`cloud_efficiency`), standard SSDs (`cloud_ssd`), Enterprise SSDs (ESSDs) (`cloud_essd`), ESSD AutoPL disks (cloud_auto), standard elastic ephemeral disks (elastic_ephemeral_disk_standard), and premium elastic ephemeral disks (elastic_ephemeral_disk_premium).
|
|
8751
8751
|
* * You cannot resize a cloud disk when a snapshot is being created for the disk. Wait until the snapshot is created before you resize the cloud disk.
|
|
8752
|
-
* * You cannot call this operation to
|
|
8753
|
-
* * If the multi-attach feature is enabled for a cloud disk, you can resize the disk online or offline. Make sure that the
|
|
8754
|
-
* * If you want to resize the disk online, the ECS instances must be in the **Running**
|
|
8755
|
-
* * If you want to resize the disk offline, the ECS instances must be in the **Running**
|
|
8752
|
+
* * You cannot call this operation to extend partitions or file systems. You must manually allocate partitions and file systems after the resize cloud disk capacity. For more information, see [Extend partitions and file systems (Linux)](~~2949817#bb3b1f02e51pj~~) and [Extend partitions and file systems (windows)](~~2932233#a9f9b78f3fujb~~).
|
|
8753
|
+
* * If the multi-attach feature is enabled for a cloud disk, you can resize the disk online or offline. Make sure that the ECS instances to which the disk is attached meet the following requirements:
|
|
8754
|
+
* * If you want to resize the disk online, the ECS instances must be in the **Running** state.``
|
|
8755
|
+
* * If you want to resize the disk offline, the ECS instances must be in the **Running** or **Stopped** state.````
|
|
8756
8756
|
* * The cloud disk that you want to resize must meet the following requirements:
|
|
8757
|
-
* * The disk is in the In Use (`
|
|
8757
|
+
* * The disk is in the In Use (`In Use`) or Unattached (`Available`) state.
|
|
8758
8758
|
* * (Recommended) Snapshots are created for the disk to back up disk data. For information about how to create snapshots for a disk, see [Create a snapshot](https://help.aliyun.com/document_detail/25455.html).
|
|
8759
8759
|
* * If the disk is a new data disk, initialize the disk before you resize the disk. For more information, see [Overview](https://help.aliyun.com/document_detail/466323.html).
|
|
8760
8760
|
*
|
|
@@ -9356,11 +9356,11 @@ export default class Client extends OpenApi {
|
|
|
9356
9356
|
* * The port forwarding feature supports only TCP port forwarding. UDP port forwarding is not supported.
|
|
9357
9357
|
* * If you want to permanently close a session and invalidate the WebSocket URL, call the EndTerminalSession operation.
|
|
9358
9358
|
*
|
|
9359
|
-
* @param
|
|
9359
|
+
* @param tmpReq - StartTerminalSessionRequest
|
|
9360
9360
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
9361
9361
|
* @returns StartTerminalSessionResponse
|
|
9362
9362
|
*/
|
|
9363
|
-
startTerminalSessionWithOptions(
|
|
9363
|
+
startTerminalSessionWithOptions(tmpReq: $_model.StartTerminalSessionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.StartTerminalSessionResponse>;
|
|
9364
9364
|
/**
|
|
9365
9365
|
* Creates a session by using the session management feature. When you call this operation, you can include the ID of an Elastic Compute Service (ECS) instance in the request to create a WebSocket session for the instance. The URL of the WebSocket session returned by the operation can be used to connect to the instance.
|
|
9366
9366
|
*
|
package/dist/client.js
CHANGED
|
@@ -4635,6 +4635,9 @@ class Client extends openapi_core_1.default {
|
|
|
4635
4635
|
if (!$dara.isNull(request.securityGroupIds)) {
|
|
4636
4636
|
query["SecurityGroupIds"] = request.securityGroupIds;
|
|
4637
4637
|
}
|
|
4638
|
+
if (!$dara.isNull(request.securityOptions)) {
|
|
4639
|
+
query["SecurityOptions"] = request.securityOptions;
|
|
4640
|
+
}
|
|
4638
4641
|
if (!$dara.isNull(request.spotDuration)) {
|
|
4639
4642
|
query["SpotDuration"] = request.spotDuration;
|
|
4640
4643
|
}
|
|
@@ -4851,6 +4854,9 @@ class Client extends openapi_core_1.default {
|
|
|
4851
4854
|
if (!$dara.isNull(request.securityGroupIds)) {
|
|
4852
4855
|
query["SecurityGroupIds"] = request.securityGroupIds;
|
|
4853
4856
|
}
|
|
4857
|
+
if (!$dara.isNull(request.securityOptions)) {
|
|
4858
|
+
query["SecurityOptions"] = request.securityOptions;
|
|
4859
|
+
}
|
|
4854
4860
|
if (!$dara.isNull(request.spotDuration)) {
|
|
4855
4861
|
query["SpotDuration"] = request.spotDuration;
|
|
4856
4862
|
}
|
|
@@ -14365,6 +14371,9 @@ class Client extends openapi_core_1.default {
|
|
|
14365
14371
|
if (!$dara.isNull(request.instanceName)) {
|
|
14366
14372
|
query["InstanceName"] = request.instanceName;
|
|
14367
14373
|
}
|
|
14374
|
+
if (!$dara.isNull(request.machineId)) {
|
|
14375
|
+
query["MachineId"] = request.machineId;
|
|
14376
|
+
}
|
|
14368
14377
|
if (!$dara.isNull(request.maxResults)) {
|
|
14369
14378
|
query["MaxResults"] = request.maxResults;
|
|
14370
14379
|
}
|
|
@@ -27565,15 +27574,15 @@ class Client extends openapi_core_1.default {
|
|
|
27565
27574
|
* Resizes a system disk or a data disk.
|
|
27566
27575
|
*
|
|
27567
27576
|
* @remarks
|
|
27568
|
-
* >
|
|
27577
|
+
* > Before you call this operation to resize a disk, you must check the partition format of the disk. You cannot resize a master boot record (MBR) disk to a size that is larger than 2 TiB. If you resize an MBR disk to a size that is larger than 2 TiB, data may be lost. If you want to resize an MBR disk to a size that is larger than 2 TiB, we recommend performing the following steps: Create a new data disk that is larger than 2 TiB in size, partition and format the new data disk by using the GUID Partition Table (GPT) format, and then copy data from the MBR disk to the GPT data disk. For more information, see [Step 1: Resize a disk to extend the disk capacity](https://help.aliyun.com/document_detail/44986.html).
|
|
27569
27578
|
* * You can resize disks of the following disk categories: basic disks (`cloud`), ultra disks (`cloud_efficiency`), standard SSDs (`cloud_ssd`), Enterprise SSDs (ESSDs) (`cloud_essd`), ESSD AutoPL disks (cloud_auto), standard elastic ephemeral disks (elastic_ephemeral_disk_standard), and premium elastic ephemeral disks (elastic_ephemeral_disk_premium).
|
|
27570
27579
|
* * You cannot resize a cloud disk when a snapshot is being created for the disk. Wait until the snapshot is created before you resize the cloud disk.
|
|
27571
|
-
* * You cannot call this operation to
|
|
27572
|
-
* * If the multi-attach feature is enabled for a cloud disk, you can resize the disk online or offline. Make sure that the
|
|
27573
|
-
* * If you want to resize the disk online, the ECS instances must be in the **Running**
|
|
27574
|
-
* * If you want to resize the disk offline, the ECS instances must be in the **Running**
|
|
27580
|
+
* * You cannot call this operation to extend partitions or file systems. You must manually allocate partitions and file systems after the resize cloud disk capacity. For more information, see [Extend partitions and file systems (Linux)](~~2949817#bb3b1f02e51pj~~) and [Extend partitions and file systems (windows)](~~2932233#a9f9b78f3fujb~~).
|
|
27581
|
+
* * If the multi-attach feature is enabled for a cloud disk, you can resize the disk online or offline. Make sure that the ECS instances to which the disk is attached meet the following requirements:
|
|
27582
|
+
* * If you want to resize the disk online, the ECS instances must be in the **Running** state.``
|
|
27583
|
+
* * If you want to resize the disk offline, the ECS instances must be in the **Running** or **Stopped** state.````
|
|
27575
27584
|
* * The cloud disk that you want to resize must meet the following requirements:
|
|
27576
|
-
* * The disk is in the In Use (`
|
|
27585
|
+
* * The disk is in the In Use (`In Use`) or Unattached (`Available`) state.
|
|
27577
27586
|
* * (Recommended) Snapshots are created for the disk to back up disk data. For information about how to create snapshots for a disk, see [Create a snapshot](https://help.aliyun.com/document_detail/25455.html).
|
|
27578
27587
|
* * If the disk is a new data disk, initialize the disk before you resize the disk. For more information, see [Overview](https://help.aliyun.com/document_detail/466323.html).
|
|
27579
27588
|
*
|
|
@@ -27628,15 +27637,15 @@ class Client extends openapi_core_1.default {
|
|
|
27628
27637
|
* Resizes a system disk or a data disk.
|
|
27629
27638
|
*
|
|
27630
27639
|
* @remarks
|
|
27631
|
-
* >
|
|
27640
|
+
* > Before you call this operation to resize a disk, you must check the partition format of the disk. You cannot resize a master boot record (MBR) disk to a size that is larger than 2 TiB. If you resize an MBR disk to a size that is larger than 2 TiB, data may be lost. If you want to resize an MBR disk to a size that is larger than 2 TiB, we recommend performing the following steps: Create a new data disk that is larger than 2 TiB in size, partition and format the new data disk by using the GUID Partition Table (GPT) format, and then copy data from the MBR disk to the GPT data disk. For more information, see [Step 1: Resize a disk to extend the disk capacity](https://help.aliyun.com/document_detail/44986.html).
|
|
27632
27641
|
* * You can resize disks of the following disk categories: basic disks (`cloud`), ultra disks (`cloud_efficiency`), standard SSDs (`cloud_ssd`), Enterprise SSDs (ESSDs) (`cloud_essd`), ESSD AutoPL disks (cloud_auto), standard elastic ephemeral disks (elastic_ephemeral_disk_standard), and premium elastic ephemeral disks (elastic_ephemeral_disk_premium).
|
|
27633
27642
|
* * You cannot resize a cloud disk when a snapshot is being created for the disk. Wait until the snapshot is created before you resize the cloud disk.
|
|
27634
|
-
* * You cannot call this operation to
|
|
27635
|
-
* * If the multi-attach feature is enabled for a cloud disk, you can resize the disk online or offline. Make sure that the
|
|
27636
|
-
* * If you want to resize the disk online, the ECS instances must be in the **Running**
|
|
27637
|
-
* * If you want to resize the disk offline, the ECS instances must be in the **Running**
|
|
27643
|
+
* * You cannot call this operation to extend partitions or file systems. You must manually allocate partitions and file systems after the resize cloud disk capacity. For more information, see [Extend partitions and file systems (Linux)](~~2949817#bb3b1f02e51pj~~) and [Extend partitions and file systems (windows)](~~2932233#a9f9b78f3fujb~~).
|
|
27644
|
+
* * If the multi-attach feature is enabled for a cloud disk, you can resize the disk online or offline. Make sure that the ECS instances to which the disk is attached meet the following requirements:
|
|
27645
|
+
* * If you want to resize the disk online, the ECS instances must be in the **Running** state.``
|
|
27646
|
+
* * If you want to resize the disk offline, the ECS instances must be in the **Running** or **Stopped** state.````
|
|
27638
27647
|
* * The cloud disk that you want to resize must meet the following requirements:
|
|
27639
|
-
* * The disk is in the In Use (`
|
|
27648
|
+
* * The disk is in the In Use (`In Use`) or Unattached (`Available`) state.
|
|
27640
27649
|
* * (Recommended) Snapshots are created for the disk to back up disk data. For information about how to create snapshots for a disk, see [Create a snapshot](https://help.aliyun.com/document_detail/25455.html).
|
|
27641
27650
|
* * If the disk is a new data disk, initialize the disk before you resize the disk. For more information, see [Overview](https://help.aliyun.com/document_detail/466323.html).
|
|
27642
27651
|
*
|
|
@@ -29041,12 +29050,17 @@ class Client extends openapi_core_1.default {
|
|
|
29041
29050
|
* * The port forwarding feature supports only TCP port forwarding. UDP port forwarding is not supported.
|
|
29042
29051
|
* * If you want to permanently close a session and invalidate the WebSocket URL, call the EndTerminalSession operation.
|
|
29043
29052
|
*
|
|
29044
|
-
* @param
|
|
29053
|
+
* @param tmpReq - StartTerminalSessionRequest
|
|
29045
29054
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
29046
29055
|
* @returns StartTerminalSessionResponse
|
|
29047
29056
|
*/
|
|
29048
|
-
async startTerminalSessionWithOptions(
|
|
29049
|
-
|
|
29057
|
+
async startTerminalSessionWithOptions(tmpReq, runtime) {
|
|
29058
|
+
tmpReq.validate();
|
|
29059
|
+
let request = new $_model.StartTerminalSessionShrinkRequest({});
|
|
29060
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
29061
|
+
if (!$dara.isNull(tmpReq.encryptionOptions)) {
|
|
29062
|
+
request.encryptionOptionsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.encryptionOptions, "EncryptionOptions", "json");
|
|
29063
|
+
}
|
|
29050
29064
|
let query = {};
|
|
29051
29065
|
if (!$dara.isNull(request.commandLine)) {
|
|
29052
29066
|
query["CommandLine"] = request.commandLine;
|
|
@@ -29054,6 +29068,9 @@ class Client extends openapi_core_1.default {
|
|
|
29054
29068
|
if (!$dara.isNull(request.connectionType)) {
|
|
29055
29069
|
query["ConnectionType"] = request.connectionType;
|
|
29056
29070
|
}
|
|
29071
|
+
if (!$dara.isNull(request.encryptionOptionsShrink)) {
|
|
29072
|
+
query["EncryptionOptions"] = request.encryptionOptionsShrink;
|
|
29073
|
+
}
|
|
29057
29074
|
if (!$dara.isNull(request.instanceId)) {
|
|
29058
29075
|
query["InstanceId"] = request.instanceId;
|
|
29059
29076
|
}
|