@alicloud/ecs20140526 7.9.0 → 7.9.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 +302 -298
- package/dist/client.js +305 -298
- package/dist/client.js.map +1 -1
- package/dist/models/AttachDiskRequest.d.ts +25 -27
- package/dist/models/AttachDiskRequest.js.map +1 -1
- package/dist/models/CancelAutoSnapshotPolicyRequest.d.ts +6 -9
- package/dist/models/CancelAutoSnapshotPolicyRequest.js.map +1 -1
- package/dist/models/CancelImagePipelineExecutionRequest.d.ts +1 -1
- package/dist/models/CloneDisksRequest.d.ts +55 -80
- package/dist/models/CloneDisksRequest.js.map +1 -1
- package/dist/models/CloneDisksResponseBody.d.ts +2 -2
- package/dist/models/CopySnapshotRequest.d.ts +17 -18
- package/dist/models/CopySnapshotRequest.js.map +1 -1
- package/dist/models/CreateAutoProvisioningGroupRequest.d.ts +286 -380
- package/dist/models/CreateAutoProvisioningGroupRequest.js.map +1 -1
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.d.ts +282 -375
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.js.map +1 -1
- package/dist/models/CreateAutoSnapshotPolicyRequest.d.ts +29 -35
- package/dist/models/CreateAutoSnapshotPolicyRequest.js.map +1 -1
- package/dist/models/CreateAutoSnapshotPolicyResponseBody.d.ts +1 -1
- package/dist/models/CreateDiskRequest.d.ts +30 -30
- package/dist/models/CreateDiskResponseBody.d.ts +2 -2
- package/dist/models/CreateImageRequest.d.ts +43 -88
- package/dist/models/CreateImageRequest.js.map +1 -1
- package/dist/models/CreateImageResponseBody.d.ts +2 -2
- package/dist/models/CreateLaunchTemplateRequest.d.ts +235 -278
- package/dist/models/CreateLaunchTemplateRequest.js.map +1 -1
- package/dist/models/CreateLaunchTemplateResponseBody.d.ts +3 -3
- package/dist/models/CreateSnapshotGroupRequest.d.ts +23 -25
- package/dist/models/CreateSnapshotGroupRequest.js.map +1 -1
- package/dist/models/CreateSnapshotRequest.d.ts +24 -29
- package/dist/models/CreateSnapshotRequest.js.map +1 -1
- package/dist/models/CreateVswitchRequest.d.ts +0 -29
- package/dist/models/CreateVswitchRequest.js.map +1 -1
- package/dist/models/CreateVswitchResponseBody.d.ts +0 -8
- package/dist/models/CreateVswitchResponseBody.js.map +1 -1
- package/dist/models/DeleteSnapshotGroupRequest.d.ts +2 -2
- package/dist/models/DeleteSnapshotGroupResponseBody.d.ts +1 -1
- package/dist/models/DeleteSnapshotRequest.d.ts +2 -2
- package/dist/models/DescribeDiskDefaultKmskeyIdRequest.d.ts +1 -1
- package/dist/models/DescribeDiskDefaultKmskeyIdResponseBody.d.ts +1 -1
- package/dist/models/DescribeDiskEncryptionByDefaultStatusRequest.d.ts +1 -1
- package/dist/models/DescribeDiskEncryptionByDefaultStatusResponseBody.d.ts +5 -3
- package/dist/models/DescribeDiskEncryptionByDefaultStatusResponseBody.js.map +1 -1
- package/dist/models/DescribeImagesRequest.d.ts +61 -88
- package/dist/models/DescribeImagesRequest.js +2 -0
- package/dist/models/DescribeImagesRequest.js.map +1 -1
- package/dist/models/DescribeImagesResponseBody.d.ts +6 -5
- package/dist/models/DescribeImagesResponseBody.js +2 -0
- package/dist/models/DescribeImagesResponseBody.js.map +1 -1
- package/dist/models/DescribeRecommendInstanceTypeRequest.d.ts +4 -4
- package/dist/models/DescribeSendFileResultsRequest.d.ts +13 -13
- package/dist/models/DescribeSnapshotGroupsRequest.d.ts +11 -11
- package/dist/models/DescribeSnapshotGroupsResponseBody.d.ts +3 -3
- package/dist/models/DisableDiskEncryptionByDefaultRequest.d.ts +1 -1
- package/dist/models/RenewElasticityAssurancesRequest.d.ts +3 -3
- package/package.json +1 -1
- package/src/client.ts +306 -298
- package/src/models/AttachDiskRequest.ts +25 -27
- package/src/models/CancelAutoSnapshotPolicyRequest.ts +6 -9
- package/src/models/CancelImagePipelineExecutionRequest.ts +1 -1
- package/src/models/CloneDisksRequest.ts +55 -80
- package/src/models/CloneDisksResponseBody.ts +2 -2
- package/src/models/CopySnapshotRequest.ts +17 -18
- package/src/models/CreateAutoProvisioningGroupRequest.ts +287 -381
- package/src/models/CreateAutoProvisioningGroupShrinkRequest.ts +283 -376
- package/src/models/CreateAutoSnapshotPolicyRequest.ts +29 -35
- package/src/models/CreateAutoSnapshotPolicyResponseBody.ts +1 -1
- package/src/models/CreateDiskRequest.ts +30 -30
- package/src/models/CreateDiskResponseBody.ts +2 -2
- package/src/models/CreateImageRequest.ts +43 -88
- package/src/models/CreateImageResponseBody.ts +2 -2
- package/src/models/CreateLaunchTemplateRequest.ts +235 -278
- package/src/models/CreateLaunchTemplateResponseBody.ts +3 -3
- package/src/models/CreateSnapshotGroupRequest.ts +23 -25
- package/src/models/CreateSnapshotRequest.ts +24 -29
- package/src/models/CreateVswitchRequest.ts +0 -29
- package/src/models/CreateVswitchResponseBody.ts +0 -8
- package/src/models/DeleteSnapshotGroupRequest.ts +2 -2
- package/src/models/DeleteSnapshotGroupResponseBody.ts +1 -1
- package/src/models/DeleteSnapshotRequest.ts +2 -2
- package/src/models/DescribeDiskDefaultKmskeyIdRequest.ts +1 -1
- package/src/models/DescribeDiskDefaultKmskeyIdResponseBody.ts +1 -1
- package/src/models/DescribeDiskEncryptionByDefaultStatusRequest.ts +1 -1
- package/src/models/DescribeDiskEncryptionByDefaultStatusResponseBody.ts +5 -3
- package/src/models/DescribeImagesRequest.ts +64 -89
- package/src/models/DescribeImagesResponseBody.ts +8 -5
- package/src/models/DescribeRecommendInstanceTypeRequest.ts +4 -4
- package/src/models/DescribeSendFileResultsRequest.ts +13 -13
- package/src/models/DescribeSnapshotGroupsRequest.ts +11 -11
- package/src/models/DescribeSnapshotGroupsResponseBody.ts +3 -3
- package/src/models/DisableDiskEncryptionByDefaultRequest.ts +1 -1
- package/src/models/RenewElasticityAssurancesRequest.ts +3 -3
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The ID of the automatic snapshot policy
|
|
8
|
+
* The ID of the automatic snapshot policy applied to the system disk.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* sp-gc7c37d4ylw7mtnk****
|
|
@@ -13,11 +13,10 @@ export class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
13
13
|
autoSnapshotPolicyId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* Specifies whether to enable the performance burst feature
|
|
16
|
+
* Specifies whether to enable the performance burst feature. Valid values:
|
|
17
17
|
*
|
|
18
|
-
* - true
|
|
19
|
-
*
|
|
20
|
-
* - false
|
|
18
|
+
* - true: enables the performance burst feature.
|
|
19
|
+
* - false: does not enable the performance burst feature.
|
|
21
20
|
*
|
|
22
21
|
* @example
|
|
23
22
|
* true
|
|
@@ -27,19 +26,14 @@ export class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
27
26
|
* @remarks
|
|
28
27
|
* The category of the system disk. Valid values:
|
|
29
28
|
*
|
|
30
|
-
* -
|
|
31
|
-
*
|
|
32
|
-
* -
|
|
33
|
-
*
|
|
34
|
-
* - cloud_ssd: standard SSD.
|
|
35
|
-
*
|
|
36
|
-
* - cloud_essd: Enterprise SSD (ESSD). You can use `SystemDisk.PerformanceLevel` to set the performance level of the ESSD to use as the system disk.
|
|
37
|
-
*
|
|
29
|
+
* - cloud: basic disk.
|
|
30
|
+
* - cloud_efficiency: ultra disk.
|
|
31
|
+
* - cloud_ssd: standard SSD.
|
|
32
|
+
* - cloud_essd: enterprise SSD (ESSD). You can use the `SystemDisk.PerformanceLevel` parameter to set the performance level of the disk.
|
|
38
33
|
* - cloud_auto: ESSD AutoPL disk.
|
|
39
|
-
*
|
|
40
34
|
* - cloud_essd_entry: ESSD Entry disk.
|
|
41
35
|
*
|
|
42
|
-
* For
|
|
36
|
+
* For retired instance types that are not I/O optimized, the default value is cloud. Otherwise, the default value is cloud_efficiency.
|
|
43
37
|
*
|
|
44
38
|
* @example
|
|
45
39
|
* cloud_ssd
|
|
@@ -49,9 +43,8 @@ export class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
49
43
|
* @remarks
|
|
50
44
|
* Specifies whether to release the system disk when the instance is released. Valid values:
|
|
51
45
|
*
|
|
52
|
-
* - true
|
|
53
|
-
*
|
|
54
|
-
* - false
|
|
46
|
+
* - true: releases the system disk when the instance is released.
|
|
47
|
+
* - false: does not release the system disk when the instance is released.
|
|
55
48
|
*
|
|
56
49
|
* Default value: true.
|
|
57
50
|
*
|
|
@@ -69,7 +62,7 @@ export class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
69
62
|
description?: string;
|
|
70
63
|
/**
|
|
71
64
|
* @remarks
|
|
72
|
-
* The name of the system disk. The name must be 2 to 128 characters in length.
|
|
65
|
+
* The name of the system disk. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. The name can contain digits, colons (:), underscores (_), and hyphens (-).
|
|
73
66
|
*
|
|
74
67
|
* @example
|
|
75
68
|
* testSystemDiskName
|
|
@@ -79,13 +72,12 @@ export class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
79
72
|
* @remarks
|
|
80
73
|
* Specifies whether to encrypt the system disk. Valid values:
|
|
81
74
|
*
|
|
82
|
-
* - true
|
|
83
|
-
*
|
|
84
|
-
* - false
|
|
75
|
+
* - true: encrypts the system disk.
|
|
76
|
+
* - false: does not encrypt the system disk.
|
|
85
77
|
*
|
|
86
78
|
* Default value: false.
|
|
87
79
|
*
|
|
88
|
-
* >
|
|
80
|
+
* > Zone D in Hong Kong (China) and Zone A in Singapore do not support system disk encryption when you create instances.
|
|
89
81
|
*
|
|
90
82
|
* @example
|
|
91
83
|
* false
|
|
@@ -93,7 +85,7 @@ export class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
93
85
|
encrypted?: string;
|
|
94
86
|
/**
|
|
95
87
|
* @remarks
|
|
96
|
-
* > This parameter is in invitational preview and is
|
|
88
|
+
* > This parameter is in invitational preview and is not publicly available.
|
|
97
89
|
*
|
|
98
90
|
* @example
|
|
99
91
|
* null
|
|
@@ -101,7 +93,7 @@ export class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
101
93
|
iops?: number;
|
|
102
94
|
/**
|
|
103
95
|
* @remarks
|
|
104
|
-
* The
|
|
96
|
+
* The KMS key ID of the system disk.
|
|
105
97
|
*
|
|
106
98
|
* @example
|
|
107
99
|
* 0e478b7a-4262-4802-b8cb-00d3fb40****
|
|
@@ -109,17 +101,14 @@ export class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
109
101
|
KMSKeyId?: string;
|
|
110
102
|
/**
|
|
111
103
|
* @remarks
|
|
112
|
-
* The performance level of the ESSD
|
|
104
|
+
* The performance level of the ESSD used as the system disk. Valid values:
|
|
113
105
|
*
|
|
114
|
-
* - PL0:
|
|
106
|
+
* - PL0 (default): a single disk can deliver up to 10,000 random read/write IOPS.
|
|
107
|
+
* - PL1: a single disk can deliver up to 50,000 random read/write IOPS.
|
|
108
|
+
* - PL2: a single disk can deliver up to 100,000 random read/write IOPS.
|
|
109
|
+
* - PL3: a single disk can deliver up to 1,000,000 random read/write IOPS.
|
|
115
110
|
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* - PL2: A single ESSD can deliver up to 100,000 random read/write IOPS.
|
|
119
|
-
*
|
|
120
|
-
* - PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS.
|
|
121
|
-
*
|
|
122
|
-
* For more information about ESSD performance levels, see [ESSDs](https://help.aliyun.com/document_detail/122389.html).
|
|
111
|
+
* For information about how to select an ESSD performance level, see [Enterprise SSDs](https://help.aliyun.com/document_detail/122389.html).
|
|
123
112
|
*
|
|
124
113
|
* @example
|
|
125
114
|
* PL0
|
|
@@ -127,11 +116,11 @@ export class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
127
116
|
performanceLevel?: string;
|
|
128
117
|
/**
|
|
129
118
|
* @remarks
|
|
130
|
-
* The provisioned read/write IOPS of the ESSD AutoPL disk
|
|
119
|
+
* The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50000, 1000 × Capacity - Baseline Performance}.
|
|
131
120
|
*
|
|
132
|
-
* Baseline
|
|
121
|
+
* Baseline Performance = min{1,800 + 50 × Capacity, 50,000}
|
|
133
122
|
*
|
|
134
|
-
* > This parameter is
|
|
123
|
+
* > This parameter is supported only when DiskCategory is set to cloud_auto. For more information, see [ESSD AutoPL disks](https://help.aliyun.com/document_detail/368372.html) and [Modify the provisioned performance of an ESSD AutoPL disk](https://help.aliyun.com/document_detail/413275.html).
|
|
135
124
|
*
|
|
136
125
|
* @example
|
|
137
126
|
* 50000
|
|
@@ -141,11 +130,10 @@ export class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
141
130
|
* @remarks
|
|
142
131
|
* The size of the system disk. Unit: GiB. Valid values:
|
|
143
132
|
*
|
|
144
|
-
* -
|
|
133
|
+
* - cloud: 20 to 500.
|
|
134
|
+
* - Other disk categories: 20 to 2048.
|
|
145
135
|
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* The value of this parameter must be at least 20 and greater than or equal to the size of the image.
|
|
136
|
+
* The value of this parameter must be greater than or equal to max{20, ImageSize}.
|
|
149
137
|
*
|
|
150
138
|
* @example
|
|
151
139
|
* 40
|
|
@@ -197,7 +185,7 @@ export class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
197
185
|
export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
198
186
|
/**
|
|
199
187
|
* @remarks
|
|
200
|
-
* The ID of the automatic snapshot policy to
|
|
188
|
+
* The ID of the automatic snapshot policy applied to the data disk.
|
|
201
189
|
*
|
|
202
190
|
* @example
|
|
203
191
|
* sp-m5e7fa9ute44ssa****
|
|
@@ -205,11 +193,10 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
205
193
|
autoSnapshotPolicyId?: string;
|
|
206
194
|
/**
|
|
207
195
|
* @remarks
|
|
208
|
-
* Specifies whether to enable the performance burst feature
|
|
209
|
-
*
|
|
210
|
-
* - true
|
|
196
|
+
* Specifies whether to enable the performance burst feature. Valid values:
|
|
211
197
|
*
|
|
212
|
-
* -
|
|
198
|
+
* - true: enables the performance burst feature.
|
|
199
|
+
* - false: does not enable the performance burst feature.
|
|
213
200
|
*
|
|
214
201
|
* @example
|
|
215
202
|
* true
|
|
@@ -219,19 +206,22 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
219
206
|
* @remarks
|
|
220
207
|
* The category of data disk N. Valid values:
|
|
221
208
|
*
|
|
222
|
-
* -
|
|
223
|
-
*
|
|
224
|
-
* -
|
|
225
|
-
*
|
|
226
|
-
* -
|
|
227
|
-
*
|
|
228
|
-
* -
|
|
229
|
-
*
|
|
230
|
-
* -
|
|
231
|
-
*
|
|
232
|
-
* - cloud_essd_entry: ESSD Entry disk
|
|
209
|
+
* - cloud_efficiency: ultra disk.
|
|
210
|
+
* - cloud_ssd: standard SSD.
|
|
211
|
+
* - cloud_essd: enterprise SSD.
|
|
212
|
+
* - cloud: basic disk.
|
|
213
|
+
* - cloud_auto: ESSD AutoPL disk.
|
|
214
|
+
* - cloud_regional_disk_auto: regional ESSD.
|
|
215
|
+
* - cloud_essd_entry: ESSD Entry disk.
|
|
216
|
+
* > The cloud_essd_entry value is supported only when `InstanceType` is set to the `ecs.u1` or `ecs.e` instance family.
|
|
217
|
+
* - elastic_ephemeral_disk_standard: elastic ephemeral disk - standard.
|
|
218
|
+
* - elastic_ephemeral_disk_premium: elastic ephemeral disk - Premium Edition.
|
|
233
219
|
*
|
|
234
220
|
* For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud.
|
|
221
|
+
* Default value description:
|
|
222
|
+
*
|
|
223
|
+
* - If InstanceType is a retired instance type that is not I/O optimized, the default value of this parameter is `cloud`.
|
|
224
|
+
* - In other cases, the default value is `cloud_efficiency`.<props="china">After January 30, 2026, if the I/O optimized instance type does not support cloud_auto, the default value is cloud_efficiency. Otherwise, the default value is cloud_auto, and the performance burst feature is enabled by default (which incurs additional fees. For details, see [Billing examples](~~368372#p_75k_2hp_7gp~~)). For more information, see [Change notice](https://www.aliyun.com/notice/117844).
|
|
235
225
|
*
|
|
236
226
|
* @example
|
|
237
227
|
* cloud_ssd
|
|
@@ -239,11 +229,10 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
239
229
|
category?: string;
|
|
240
230
|
/**
|
|
241
231
|
* @remarks
|
|
242
|
-
* Specifies whether to release data disk
|
|
243
|
-
*
|
|
244
|
-
* - true
|
|
232
|
+
* Specifies whether to release the data disk when the instance is released. Valid values:
|
|
245
233
|
*
|
|
246
|
-
* -
|
|
234
|
+
* - true: releases the data disk when the instance is released.
|
|
235
|
+
* - false: does not release the data disk when the instance is released.
|
|
247
236
|
*
|
|
248
237
|
* Default value: true.
|
|
249
238
|
*
|
|
@@ -253,7 +242,7 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
253
242
|
deleteWithInstance?: boolean;
|
|
254
243
|
/**
|
|
255
244
|
* @remarks
|
|
256
|
-
* The description of data disk
|
|
245
|
+
* The description of the data disk. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
|
|
257
246
|
*
|
|
258
247
|
* @example
|
|
259
248
|
* testDataDiskDescription
|
|
@@ -261,13 +250,12 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
261
250
|
description?: string;
|
|
262
251
|
/**
|
|
263
252
|
* @remarks
|
|
264
|
-
* The mount point of data disk
|
|
265
|
-
*
|
|
266
|
-
* - 1st to 25th data disks: /dev/xvd`[b-z]`.
|
|
253
|
+
* The mount point of the data disk. The naming convention varies based on the number of data disks attached:
|
|
254
|
+
* - 1 to 25 data disks: /dev/xvd`[b-z]`
|
|
267
255
|
*
|
|
268
|
-
* -
|
|
256
|
+
* - More than 25 data disks: /dev/xvd`[aa-zz]`. For example, the 26th data disk is named /dev/xvdaa, the 27th data disk is named /dev/xvdab, and so on.
|
|
269
257
|
*
|
|
270
|
-
* > This parameter is
|
|
258
|
+
* > This parameter is intended only for full image (whole-machine image) scenarios. You can set this parameter to the mount point of a data disk in the full image and modify the corresponding `DataDisk.N.Size` and `DataDisk.N.Category` parameters to change the disk category and size of the data disk in the full image.
|
|
271
259
|
*
|
|
272
260
|
* @example
|
|
273
261
|
* /dev/xvdb
|
|
@@ -275,7 +263,7 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
275
263
|
device?: string;
|
|
276
264
|
/**
|
|
277
265
|
* @remarks
|
|
278
|
-
* The name of data disk
|
|
266
|
+
* The name of the data disk. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. The name can contain digits, colons (:), underscores (_), and hyphens (-).
|
|
279
267
|
*
|
|
280
268
|
* @example
|
|
281
269
|
* testDataDiskName
|
|
@@ -283,7 +271,7 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
283
271
|
diskName?: string;
|
|
284
272
|
/**
|
|
285
273
|
* @remarks
|
|
286
|
-
* Specifies whether to encrypt data disk
|
|
274
|
+
* Specifies whether to encrypt the data disk.
|
|
287
275
|
*
|
|
288
276
|
* @example
|
|
289
277
|
* false
|
|
@@ -291,7 +279,7 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
291
279
|
encrypted?: string;
|
|
292
280
|
/**
|
|
293
281
|
* @remarks
|
|
294
|
-
* The
|
|
282
|
+
* The KMS key ID for the data disk.
|
|
295
283
|
*
|
|
296
284
|
* @example
|
|
297
285
|
* 0e478b7a-4262-4802-b8cb-00d****
|
|
@@ -299,17 +287,14 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
299
287
|
KMSKeyId?: string;
|
|
300
288
|
/**
|
|
301
289
|
* @remarks
|
|
302
|
-
* The performance level of the ESSD
|
|
303
|
-
*
|
|
304
|
-
* - PL0: A single ESSD can deliver up to 10000 random read/write IOPS.
|
|
305
|
-
*
|
|
306
|
-
* - PL1 (default): A single ESSD can deliver up to 50000 random read/write IOPS.
|
|
290
|
+
* The performance level of the ESSD used as a data disk. The value of N must be the same as that in `DataDisk.N.Category=cloud_essd`. Valid values:
|
|
307
291
|
*
|
|
308
|
-
* -
|
|
292
|
+
* - PL0: a single disk can deliver up to 10,000 random read/write IOPS.
|
|
293
|
+
* - PL1 (default): a single disk can deliver up to 50,000 random read/write IOPS.
|
|
294
|
+
* - PL2: a single disk can deliver up to 100,000 random read/write IOPS.
|
|
295
|
+
* - PL3: a single disk can deliver up to 1,000,000 random read/write IOPS.
|
|
309
296
|
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
* For information about ESSD performance levels, see [ESSDs](https://help.aliyun.com/document_detail/122389.html).
|
|
297
|
+
* For information about how to select an ESSD performance level, see [Enterprise SSDs](https://help.aliyun.com/document_detail/122389.html).
|
|
313
298
|
*
|
|
314
299
|
* @example
|
|
315
300
|
* PL1
|
|
@@ -317,11 +302,11 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
317
302
|
performanceLevel?: string;
|
|
318
303
|
/**
|
|
319
304
|
* @remarks
|
|
320
|
-
* The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{
|
|
305
|
+
* The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50000, 1000 × Capacity - Baseline Performance}.
|
|
321
306
|
*
|
|
322
|
-
* Baseline
|
|
307
|
+
* Baseline Performance = min{1,800 + 50 × Capacity, 50,000}
|
|
323
308
|
*
|
|
324
|
-
* > This parameter is
|
|
309
|
+
* > This parameter is supported only when DiskCategory is set to cloud_auto. For more information, see [ESSD AutoPL disks](https://help.aliyun.com/document_detail/368372.html) and [Modify the provisioned performance of an ESSD AutoPL disk](https://help.aliyun.com/document_detail/413275.html).
|
|
325
310
|
*
|
|
326
311
|
* @example
|
|
327
312
|
* 50000
|
|
@@ -331,25 +316,16 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
331
316
|
* @remarks
|
|
332
317
|
* The size of data disk N. Valid values of N: 1 to 16. Unit: GiB. Valid values:
|
|
333
318
|
*
|
|
334
|
-
* -
|
|
335
|
-
*
|
|
336
|
-
* -
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
* - Valid values if DataDisk.N.PerformanceLevel is set to PL1: 20 to 32768.
|
|
345
|
-
*
|
|
346
|
-
* - Valid values if DataDisk.N.PerformanceLevel is set to PL2: 461 to 32768.
|
|
347
|
-
*
|
|
348
|
-
* - Valid values if you set DataDisk.N.PerformanceLevel to PL3: 1261 to 32768.
|
|
349
|
-
*
|
|
350
|
-
* - Valid values if you set DataDisk.N.Category to cloud_auto: 1 to 32768.
|
|
351
|
-
*
|
|
352
|
-
* - Valid values if you set DataDisk.N.Category to cloud_essd_entry: 10 to 32768.
|
|
319
|
+
* - cloud: 5 to 2000.
|
|
320
|
+
* - cloud_efficiency: 20 to 32768.
|
|
321
|
+
* - cloud_ssd: 20 to 32768.
|
|
322
|
+
* - cloud_essd: The valid value range depends on the value of `DataDisk.N.PerformanceLevel`.
|
|
323
|
+
* - PL0: 1 to 32768.
|
|
324
|
+
* - PL1: 20 to 32768.
|
|
325
|
+
* - PL2: 461 to 32768.
|
|
326
|
+
* - PL3: 1261 to 32768.
|
|
327
|
+
* - cloud_auto: 1 to 32,768.
|
|
328
|
+
* - cloud_essd_entry: 10 to 32,768.
|
|
353
329
|
*
|
|
354
330
|
* The value of this parameter must be greater than or equal to the size of the snapshot specified by `SnapshotId`.
|
|
355
331
|
*
|
|
@@ -359,9 +335,9 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
359
335
|
size?: number;
|
|
360
336
|
/**
|
|
361
337
|
* @remarks
|
|
362
|
-
* The ID of the snapshot
|
|
338
|
+
* The ID of the snapshot used to create data disk N. Valid values of N: 1 to 16. After you specify `DataDisk.N.SnapshotId`, the `DataDisk.N.Size` parameter is ignored. The actual size of the created disk is the size of the specified snapshot.
|
|
363
339
|
*
|
|
364
|
-
* >
|
|
340
|
+
* > You cannot use snapshots created on or before July 15, 2013. Such requests are rejected.
|
|
365
341
|
*
|
|
366
342
|
* @example
|
|
367
343
|
* s-bp17441ohwka0yuh****
|
|
@@ -415,11 +391,10 @@ export class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
415
391
|
export class CreateLaunchTemplateRequestImageOptions extends $dara.Model {
|
|
416
392
|
/**
|
|
417
393
|
* @remarks
|
|
418
|
-
*
|
|
419
|
-
*
|
|
420
|
-
* - true
|
|
421
|
-
*
|
|
422
|
-
* - false
|
|
394
|
+
* Indicates whether the instance that uses this image supports logon with the ecs-user account.
|
|
395
|
+
* Valid values:
|
|
396
|
+
* - true: supported.
|
|
397
|
+
* - false: not supported.
|
|
423
398
|
*
|
|
424
399
|
* @example
|
|
425
400
|
* false
|
|
@@ -449,11 +424,11 @@ export class CreateLaunchTemplateRequestImageOptions extends $dara.Model {
|
|
|
449
424
|
export class CreateLaunchTemplateRequestNetworkInterface extends $dara.Model {
|
|
450
425
|
/**
|
|
451
426
|
* @remarks
|
|
452
|
-
* Specifies whether to
|
|
427
|
+
* Specifies whether to retain the ENI when the instance is released. Valid values:
|
|
453
428
|
*
|
|
454
|
-
* - true
|
|
429
|
+
* - true: does not retain the ENI.
|
|
455
430
|
*
|
|
456
|
-
* - false
|
|
431
|
+
* - false: retains the ENI.
|
|
457
432
|
*
|
|
458
433
|
* Default value: true.
|
|
459
434
|
*
|
|
@@ -465,7 +440,7 @@ export class CreateLaunchTemplateRequestNetworkInterface extends $dara.Model {
|
|
|
465
440
|
deleteOnRelease?: boolean;
|
|
466
441
|
/**
|
|
467
442
|
* @remarks
|
|
468
|
-
* The description of the secondary
|
|
443
|
+
* The description of the secondary network interface controller (NIC). The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. The value of N in `NetworkInterface.N` cannot be greater than 1.
|
|
469
444
|
*
|
|
470
445
|
* @example
|
|
471
446
|
* testEniDescription
|
|
@@ -473,13 +448,12 @@ export class CreateLaunchTemplateRequestNetworkInterface extends $dara.Model {
|
|
|
473
448
|
description?: string;
|
|
474
449
|
/**
|
|
475
450
|
* @remarks
|
|
476
|
-
* The type of
|
|
451
|
+
* The type of the network interface controller (NIC). Valid values of N: 1 to 2. If you set N to 1, you can configure a primary or secondary NIC. If you set N to 2, you must configure one primary NIC and one secondary NIC.
|
|
477
452
|
*
|
|
478
453
|
* Valid values:
|
|
479
454
|
*
|
|
480
|
-
* - Primary
|
|
481
|
-
*
|
|
482
|
-
* - Secondary
|
|
455
|
+
* - Primary: primary NIC.
|
|
456
|
+
* - Secondary: secondary NIC.
|
|
483
457
|
*
|
|
484
458
|
* Default value: Secondary.
|
|
485
459
|
*
|
|
@@ -489,13 +463,13 @@ export class CreateLaunchTemplateRequestNetworkInterface extends $dara.Model {
|
|
|
489
463
|
instanceType?: string;
|
|
490
464
|
/**
|
|
491
465
|
* @remarks
|
|
492
|
-
* The name of
|
|
466
|
+
* The name of the network interface controller (NIC).
|
|
493
467
|
*
|
|
494
468
|
* Take note of the following items:
|
|
495
469
|
*
|
|
496
|
-
* - Valid values of N: 1
|
|
470
|
+
* - Valid values of N: 1 to 2. If you set N to 1, you can configure a primary or secondary NIC. If you set N to 2, you must configure one primary NIC and one secondary NIC.
|
|
497
471
|
*
|
|
498
|
-
* - If
|
|
472
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Primary`, you do not need to set this parameter.
|
|
499
473
|
*
|
|
500
474
|
* @example
|
|
501
475
|
* testEniName
|
|
@@ -506,8 +480,7 @@ export class CreateLaunchTemplateRequestNetworkInterface extends $dara.Model {
|
|
|
506
480
|
* The communication mode of the primary ENI. Valid values:
|
|
507
481
|
*
|
|
508
482
|
* - Standard: uses the TCP communication mode.
|
|
509
|
-
*
|
|
510
|
-
* - HighPerformance: uses the remote direct memory access (RDMA) communication mode with Elastic RDMA Interface (ERI) enabled.
|
|
483
|
+
* - HighPerformance: enables the Elastic RDMA Interface (ERI) and uses the RDMA communication mode.
|
|
511
484
|
*
|
|
512
485
|
* @example
|
|
513
486
|
* Standard
|
|
@@ -515,21 +488,19 @@ export class CreateLaunchTemplateRequestNetworkInterface extends $dara.Model {
|
|
|
515
488
|
networkInterfaceTrafficMode?: string;
|
|
516
489
|
/**
|
|
517
490
|
* @remarks
|
|
518
|
-
*
|
|
491
|
+
* Adds a network interface controller (NIC) and sets the primary IP address.
|
|
519
492
|
*
|
|
520
493
|
* Take note of the following items:
|
|
521
494
|
*
|
|
522
|
-
* - Valid values of N: 1
|
|
523
|
-
*
|
|
524
|
-
*
|
|
495
|
+
* - Valid values of N: 1 to 2.
|
|
496
|
+
* - If you set N to 1, you can configure a primary or secondary NIC. If the `Amount` parameter is set to a value greater than 1 and you configure a primary NIC with this parameter specified, consecutive primary IP addresses starting from the specified IP address are allocated to multiple ECS instances in batch. In this case, you cannot attach a secondary NIC to the instances.
|
|
497
|
+
* - If you set N to 2, you must configure one primary NIC and one secondary NIC. If the `Amount` parameter is set to a value greater than 1 and this parameter is specified for the primary NIC, you cannot configure a secondary NIC (that is, you cannot set `NetworkInterface.2.InstanceType=Secondary`).
|
|
525
498
|
*
|
|
526
|
-
*
|
|
499
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Primary`, this parameter has the same effect as `PrivateIpAddress`, but you cannot specify both this parameter and `PrivateIpAddress`.
|
|
527
500
|
*
|
|
528
|
-
* - If
|
|
501
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, this parameter specifies the primary IP address of the secondary NIC. By default, an IP address is randomly selected from the vSwitch CIDR block to which the NIC belongs.
|
|
529
502
|
*
|
|
530
|
-
*
|
|
531
|
-
*
|
|
532
|
-
* > You can attach only a single secondary ENI when you create an instance. After the instance is created, you can call the [CreateNetworkInterface](https://help.aliyun.com/document_detail/58504.html) and [AttachNetworkInterface](https://help.aliyun.com/document_detail/58515.html) operations to attach more secondary ENIs.
|
|
503
|
+
* > When you create an ECS instance, you can attach up to one secondary NIC. After the instance is created, you can invoke [CreateNetworkInterface](https://help.aliyun.com/document_detail/58504.html) and [AttachNetworkInterface](https://help.aliyun.com/document_detail/58515.html) to attach more secondary NICs.
|
|
533
504
|
*
|
|
534
505
|
* @example
|
|
535
506
|
* ``192.168.**.**``
|
|
@@ -537,15 +508,15 @@ export class CreateLaunchTemplateRequestNetworkInterface extends $dara.Model {
|
|
|
537
508
|
primaryIpAddress?: string;
|
|
538
509
|
/**
|
|
539
510
|
* @remarks
|
|
540
|
-
* The ID of the security group to which
|
|
511
|
+
* The ID of the security group to which the network interface controller (NIC) belongs.
|
|
541
512
|
*
|
|
542
513
|
* Take note of the following items:
|
|
543
514
|
*
|
|
544
|
-
* - Valid values of N: 1
|
|
515
|
+
* - Valid values of N: 1 to 2. If you set N to 1, you can configure a primary or secondary NIC. If you set N to 2, you must configure one primary NIC and one secondary NIC.
|
|
545
516
|
*
|
|
546
|
-
* - If
|
|
517
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Primary`, you must set this parameter. This parameter has the same effect as `SecurityGroupId`, but you cannot specify `SecurityGroupId`, `SecurityGroupIds.N`, or `NetworkInterface.N.SecurityGroupIds.N`.
|
|
547
518
|
*
|
|
548
|
-
* - If
|
|
519
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, this parameter is optional. Default value: the security group of the ECS instance.
|
|
549
520
|
*
|
|
550
521
|
* @example
|
|
551
522
|
* sg-bp15ed6xe1yxeycg****
|
|
@@ -553,17 +524,16 @@ export class CreateLaunchTemplateRequestNetworkInterface extends $dara.Model {
|
|
|
553
524
|
securityGroupId?: string;
|
|
554
525
|
/**
|
|
555
526
|
* @remarks
|
|
556
|
-
* The IDs of security groups to which
|
|
557
|
-
*
|
|
558
|
-
* - Valid values of the first N: 1 and 2. If the value of N is 1, you can configure a primary or secondary ENI. If the value of N is 2, you must configure a primary ENI and a secondary ENI.
|
|
527
|
+
* The IDs of one or more security groups to which the network interface controller (NIC) belongs.
|
|
559
528
|
*
|
|
560
|
-
* - The
|
|
529
|
+
* - The first N has a valid value range of 1 to 2. If you set N to 1, you can configure a primary or secondary NIC. If you set N to 2, you must configure one primary NIC and one secondary NIC.
|
|
530
|
+
* - The second N specifies one or more security group IDs. The valid value range of N depends on the maximum number of security groups to which an instance can belong. For more information, see [Security group limits](~~25412#SecurityGroupQuota1~~).
|
|
561
531
|
*
|
|
562
532
|
* Take note of the following items:
|
|
563
533
|
*
|
|
564
|
-
* - If
|
|
534
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Primary`, you must set this parameter or `NetworkInterface.N.SecurityGroupId`. This parameter has the same effect as `SecurityGroupIds.N`, but you cannot specify `SecurityGroupId`, `SecurityGroupIds.N`, or `NetworkInterface.N.SecurityGroupId`.
|
|
565
535
|
*
|
|
566
|
-
* - If
|
|
536
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, this parameter is optional. Default value: the security group of the ECS instance.
|
|
567
537
|
*
|
|
568
538
|
* @example
|
|
569
539
|
* sg-bp67acfmxazb4p****
|
|
@@ -571,15 +541,15 @@ export class CreateLaunchTemplateRequestNetworkInterface extends $dara.Model {
|
|
|
571
541
|
securityGroupIds?: string[];
|
|
572
542
|
/**
|
|
573
543
|
* @remarks
|
|
574
|
-
* The ID of the
|
|
544
|
+
* The vSwitch ID of the network interface controller (NIC).
|
|
575
545
|
*
|
|
576
546
|
* Take note of the following items:
|
|
577
547
|
*
|
|
578
|
-
* - Valid values of N: 1
|
|
548
|
+
* - Valid values of N: 1 to 2. If you set N to 1, you can configure a primary or secondary NIC. If you set N to 2, you must configure one primary NIC and one secondary NIC.
|
|
579
549
|
*
|
|
580
|
-
* - If
|
|
550
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Primary`, this parameter is required. This parameter has the same effect as `VSwitchId`, but you cannot specify both this parameter and `VSwitchId`.
|
|
581
551
|
*
|
|
582
|
-
* - If
|
|
552
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, this parameter is optional. Default value: the vSwitch of the ECS instance.
|
|
583
553
|
*
|
|
584
554
|
* @example
|
|
585
555
|
* vsw-bp1s5fnvk4gn2tws0****
|
|
@@ -628,25 +598,20 @@ export class CreateLaunchTemplateRequestNetworkInterface extends $dara.Model {
|
|
|
628
598
|
export class CreateLaunchTemplateRequestSecurityOptions extends $dara.Model {
|
|
629
599
|
/**
|
|
630
600
|
* @remarks
|
|
631
|
-
* The trusted system mode.
|
|
632
|
-
*
|
|
633
|
-
* Currently, the following instance families support the trusted system mode:
|
|
634
|
-
*
|
|
635
|
-
* - g7, c7, r7.
|
|
636
|
-
*
|
|
637
|
-
* - Security-enhanced instance families (g7t, c7t, r7t).
|
|
601
|
+
* The trusted system mode. Set the value to vTPM.
|
|
638
602
|
*
|
|
639
|
-
*
|
|
603
|
+
* The following instance families support trusted system mode:
|
|
604
|
+
* - g7, c7, and r7.
|
|
605
|
+
* - Enhanced instance families (g7t, c7t, and r7t).
|
|
640
606
|
*
|
|
641
|
-
*
|
|
607
|
+
* When you create ECS instances of the preceding instance types, you must configure this parameter. Take note of the following items:
|
|
642
608
|
*
|
|
643
|
-
* -
|
|
609
|
+
* - To use Alibaba Cloud Trusted System, set this parameter to vTPM. Then, Alibaba Cloud Trusted System performs trusted verification when the instance starts.
|
|
610
|
+
* - If you do not use Alibaba Cloud Trusted System, you do not need to configure this parameter. However, if the ECS instance that you create uses the Enclave-based confidential computing pattern (`SecurityOptions.ConfidentialComputingMode=Enclave`), the trusted system is also enabled for the instance.
|
|
611
|
+
* - When you use OpenAPI to create a trusted ECS instance, you can only invoke `RunInstances`. `CreateInstance` does not support the `SecurityOptions.TrustedSystemMode` parameter.
|
|
612
|
+
* > If you specify the instance as a trusted instance during creation, you can replace the system disk only with an image that supports the trusted system.
|
|
644
613
|
*
|
|
645
|
-
*
|
|
646
|
-
*
|
|
647
|
-
* > If you specify an instance as a trusted instance during creation, you can only use images that support the trusted system when replacing its system disk.
|
|
648
|
-
*
|
|
649
|
-
* For more information about the trusted system, see [Function Overview of Trusted Features on Security-Enhanced Instances](https://help.aliyun.com/document_detail/201394.html).
|
|
614
|
+
* For more information about the trusted system, see [Overview of trusted features for security-enhanced instances](https://help.aliyun.com/document_detail/201394.html).
|
|
650
615
|
*
|
|
651
616
|
* @example
|
|
652
617
|
* vTPM
|
|
@@ -676,7 +641,7 @@ export class CreateLaunchTemplateRequestSecurityOptions extends $dara.Model {
|
|
|
676
641
|
export class CreateLaunchTemplateRequestTag extends $dara.Model {
|
|
677
642
|
/**
|
|
678
643
|
* @remarks
|
|
679
|
-
* The
|
|
644
|
+
* The tag key for instances, disks, and primary ENIs created from this template version. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with aliyun or acs:. The tag key cannot contain http:// or https://.
|
|
680
645
|
*
|
|
681
646
|
* @example
|
|
682
647
|
* TestKey
|
|
@@ -684,7 +649,7 @@ export class CreateLaunchTemplateRequestTag extends $dara.Model {
|
|
|
684
649
|
key?: string;
|
|
685
650
|
/**
|
|
686
651
|
* @remarks
|
|
687
|
-
* The
|
|
652
|
+
* The tag value for instances, disks, and primary ENIs created from this template version. Valid values of N: 1 to 20. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot contain http:// or https://.
|
|
688
653
|
*
|
|
689
654
|
* @example
|
|
690
655
|
* TestValue
|
|
@@ -716,7 +681,7 @@ export class CreateLaunchTemplateRequestTag extends $dara.Model {
|
|
|
716
681
|
export class CreateLaunchTemplateRequestTemplateTag extends $dara.Model {
|
|
717
682
|
/**
|
|
718
683
|
* @remarks
|
|
719
|
-
* The key of
|
|
684
|
+
* The tag key of the launch template. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with `aliyun` or `acs:`. The tag key cannot contain `http://` or `https://`.
|
|
720
685
|
*
|
|
721
686
|
* @example
|
|
722
687
|
* TestKey
|
|
@@ -724,7 +689,7 @@ export class CreateLaunchTemplateRequestTemplateTag extends $dara.Model {
|
|
|
724
689
|
key?: string;
|
|
725
690
|
/**
|
|
726
691
|
* @remarks
|
|
727
|
-
* The value of
|
|
692
|
+
* The tag value of the launch template. Valid values of N: 1 to 20. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot start with `aliyun` or `acs:`. The tag value cannot contain `http://` or `https://`.
|
|
728
693
|
*
|
|
729
694
|
* @example
|
|
730
695
|
* TestValue
|
|
@@ -757,13 +722,13 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
757
722
|
systemDisk?: CreateLaunchTemplateRequestSystemDisk;
|
|
758
723
|
/**
|
|
759
724
|
* @remarks
|
|
760
|
-
* The automatic release time
|
|
725
|
+
* The automatic release time. Specify the time in the [ISO 8601](https://help.aliyun.com/document_detail/25696.html) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
|
|
761
726
|
*
|
|
762
|
-
* - If the value of `ss` is not `00`, the time is automatically rounded down to the
|
|
727
|
+
* - If the value of seconds (`ss`) is not `00`, the time is automatically rounded down to the start of the current minute (`mm`).
|
|
763
728
|
*
|
|
764
|
-
* - The
|
|
729
|
+
* - The earliest release time is 30 minutes after the current time.
|
|
765
730
|
*
|
|
766
|
-
* - The
|
|
731
|
+
* - The latest release time cannot be more than three years from the current time.
|
|
767
732
|
*
|
|
768
733
|
* @example
|
|
769
734
|
* 2018-01-01T12:05:00Z
|
|
@@ -773,13 +738,12 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
773
738
|
* @remarks
|
|
774
739
|
* Specifies whether to enable auto-renewal. Valid values:
|
|
775
740
|
*
|
|
776
|
-
* - true
|
|
777
|
-
*
|
|
778
|
-
* - false
|
|
741
|
+
* - true: enables auto-renewal.
|
|
742
|
+
* - false: does not enable auto-renewal.
|
|
779
743
|
*
|
|
780
744
|
* Default value: false.
|
|
781
745
|
*
|
|
782
|
-
* > This parameter takes effect only
|
|
746
|
+
* > This parameter takes effect only when `InstanceChargeType` is set to `PrePaid`.
|
|
783
747
|
*
|
|
784
748
|
* @example
|
|
785
749
|
* true
|
|
@@ -787,9 +751,15 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
787
751
|
autoRenew?: boolean;
|
|
788
752
|
/**
|
|
789
753
|
* @remarks
|
|
790
|
-
* The auto-renewal period
|
|
754
|
+
* The auto-renewal period. Valid values:
|
|
755
|
+
*
|
|
756
|
+
* <props="china">
|
|
757
|
+
* - If PeriodUnit is set to Week: 1, 2, and 3.
|
|
758
|
+
* - If PeriodUnit is set to Month: 1, 2, 3, 6, 12, 24, 36, 48, and 60.
|
|
759
|
+
*
|
|
760
|
+
*
|
|
791
761
|
*
|
|
792
|
-
*
|
|
762
|
+
* <props="intl">If PeriodUnit is set to Month: 1, 2, 3, 6, 12, 24, 36, 48, and 60.
|
|
793
763
|
*
|
|
794
764
|
* Default value: 1.
|
|
795
765
|
*
|
|
@@ -799,11 +769,10 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
799
769
|
autoRenewPeriod?: number;
|
|
800
770
|
/**
|
|
801
771
|
* @remarks
|
|
802
|
-
* The
|
|
772
|
+
* The running mode of the burstable instance. Valid values:
|
|
803
773
|
*
|
|
804
|
-
* - Standard:
|
|
805
|
-
*
|
|
806
|
-
* - Unlimited: the unlimited mode. For more information, see the "Unlimited mode" section in [Overview of burstable instances](https://help.aliyun.com/document_detail/59977.html).
|
|
774
|
+
* - Standard: standard mode. For more information, see the performance constrained mode section in [Overview of burstable instances](https://help.aliyun.com/document_detail/59977.html).
|
|
775
|
+
* - Unlimited: unlimited mode. For more information, see the unlimited mode section in [Overview of burstable instances](https://help.aliyun.com/document_detail/59977.html).
|
|
807
776
|
*
|
|
808
777
|
* @example
|
|
809
778
|
* Standard
|
|
@@ -811,20 +780,19 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
811
780
|
creditSpecification?: string;
|
|
812
781
|
/**
|
|
813
782
|
* @remarks
|
|
814
|
-
* The data
|
|
783
|
+
* The list of data disk information.
|
|
815
784
|
*/
|
|
816
785
|
dataDisk?: CreateLaunchTemplateRequestDataDisk[];
|
|
817
786
|
/**
|
|
818
787
|
* @remarks
|
|
819
|
-
*
|
|
820
|
-
*
|
|
821
|
-
* - true
|
|
788
|
+
* The release protection attribute of the instance. Specifies whether the instance can be released from the console or by calling [DeleteInstance](https://help.aliyun.com/document_detail/25507.html). Valid values:
|
|
789
|
+
* - true: enables release protection.
|
|
822
790
|
*
|
|
823
|
-
* - false
|
|
791
|
+
* - false: disables release protection.
|
|
824
792
|
*
|
|
825
793
|
* Default value: false.
|
|
826
794
|
*
|
|
827
|
-
* > This
|
|
795
|
+
* > This attribute applies only to pay-as-you-go instances. It can only restrict manual release operations and does not affect system-initiated releases.
|
|
828
796
|
*
|
|
829
797
|
* @example
|
|
830
798
|
* false
|
|
@@ -832,7 +800,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
832
800
|
deletionProtection?: boolean;
|
|
833
801
|
/**
|
|
834
802
|
* @remarks
|
|
835
|
-
* The ID of the deployment set
|
|
803
|
+
* The ID of the deployment set.
|
|
836
804
|
*
|
|
837
805
|
* @example
|
|
838
806
|
* ds-bp1brhwhoqinyjd6****
|
|
@@ -840,7 +808,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
840
808
|
deploymentSetId?: string;
|
|
841
809
|
/**
|
|
842
810
|
* @remarks
|
|
843
|
-
* The instance
|
|
811
|
+
* The description of the instance. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
|
|
844
812
|
*
|
|
845
813
|
* @example
|
|
846
814
|
* testECSDescription
|
|
@@ -849,8 +817,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
849
817
|
/**
|
|
850
818
|
* @remarks
|
|
851
819
|
* Specifies whether to enable the operating system configuration of the instance.
|
|
852
|
-
*
|
|
853
|
-
* > This parameter will be removed in the future. To ensure future compatibility, we recommend that you use other parameters.
|
|
820
|
+
* > This parameter will be deprecated. For better compatibility, use other parameters.
|
|
854
821
|
*
|
|
855
822
|
* @example
|
|
856
823
|
* false
|
|
@@ -858,13 +825,11 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
858
825
|
enableVmOsConfig?: boolean;
|
|
859
826
|
/**
|
|
860
827
|
* @remarks
|
|
861
|
-
* The
|
|
862
|
-
*
|
|
863
|
-
* - The hostname cannot start or end with a period (.) or hyphen (-). It cannot contain consecutive periods (.) or hyphens (-).
|
|
864
|
-
*
|
|
865
|
-
* - For Windows instances, the hostname must be 2 to 15 characters in length and cannot contain periods (.) or contain only digits. It can contain letters, digits, and hyphens (-).
|
|
828
|
+
* The hostname of the Elastic Compute Service server.
|
|
866
829
|
*
|
|
867
|
-
* -
|
|
830
|
+
* - The hostname cannot start or end with a period (.) or a hyphen (-). It cannot contain consecutive periods (.) or hyphens (-).
|
|
831
|
+
* - Windows instances: The hostname must be 2 to 15 characters in length and cannot contain periods (.) or consist entirely of digits. It can contain letters, digits, and hyphens (-).
|
|
832
|
+
* - Other instances (such as Linux): The hostname must be 2 to 64 characters in length. It can contain multiple periods (.), with each segment between periods allowing letters, digits, and hyphens (-).
|
|
868
833
|
*
|
|
869
834
|
* @example
|
|
870
835
|
* testHostName
|
|
@@ -874,13 +839,12 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
874
839
|
* @remarks
|
|
875
840
|
* Specifies whether to enable the access channel for instance metadata. Valid values:
|
|
876
841
|
*
|
|
877
|
-
* - enabled
|
|
878
|
-
*
|
|
879
|
-
* - disabled
|
|
842
|
+
* - enabled: enables the access channel.
|
|
843
|
+
* - disabled: disables the access channel.
|
|
880
844
|
*
|
|
881
845
|
* Default value: enabled.
|
|
882
846
|
*
|
|
883
|
-
* > For information about instance metadata, see [
|
|
847
|
+
* > For more information about instance metadata, see [Overview of ECS instance metadata](https://help.aliyun.com/document_detail/108460.html).
|
|
884
848
|
*
|
|
885
849
|
* @example
|
|
886
850
|
* enabled
|
|
@@ -888,7 +852,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
888
852
|
httpEndpoint?: string;
|
|
889
853
|
/**
|
|
890
854
|
* @remarks
|
|
891
|
-
* > This parameter is not
|
|
855
|
+
* > This parameter is not available for use.
|
|
892
856
|
*
|
|
893
857
|
* @example
|
|
894
858
|
* 3
|
|
@@ -896,15 +860,15 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
896
860
|
httpPutResponseHopLimit?: number;
|
|
897
861
|
/**
|
|
898
862
|
* @remarks
|
|
899
|
-
* Specifies whether to forcefully use the security
|
|
900
|
-
*
|
|
901
|
-
* - optional: does not forcefully use the security hardening mode (IMDSv2).
|
|
863
|
+
* Specifies whether to forcefully use the security-hardened mode (IMDSv2) to access instance metadata. Valid values:
|
|
902
864
|
*
|
|
903
|
-
* -
|
|
865
|
+
* - optional: does not forcefully use the security-hardened mode.
|
|
866
|
+
* - required: forcefully uses the security-hardened mode. After you set this value, instance metadata cannot be accessed in normal mode.
|
|
904
867
|
*
|
|
905
868
|
* Default value: optional.
|
|
906
869
|
*
|
|
907
|
-
* > For information about the modes
|
|
870
|
+
* > For more information about the modes for
|
|
871
|
+
* [Instance metadata overview](https://help.aliyun.com/document_detail/108460.html)
|
|
908
872
|
*
|
|
909
873
|
* @example
|
|
910
874
|
* optional
|
|
@@ -912,7 +876,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
912
876
|
httpTokens?: string;
|
|
913
877
|
/**
|
|
914
878
|
* @remarks
|
|
915
|
-
* The
|
|
879
|
+
* The image ID. You can call [DescribeImages](https://help.aliyun.com/document_detail/25534.html) to query available image resources.
|
|
916
880
|
*
|
|
917
881
|
* @example
|
|
918
882
|
* win2008r2_64_ent_sp1_en-us_40G_alibase_20170915.vhd
|
|
@@ -920,20 +884,17 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
920
884
|
imageId?: string;
|
|
921
885
|
/**
|
|
922
886
|
* @remarks
|
|
923
|
-
*
|
|
887
|
+
* The image-related property information.
|
|
924
888
|
*/
|
|
925
889
|
imageOptions?: CreateLaunchTemplateRequestImageOptions;
|
|
926
890
|
/**
|
|
927
891
|
* @remarks
|
|
928
892
|
* The source of the image. Valid values:
|
|
929
893
|
*
|
|
930
|
-
* - system: public image provided by Alibaba Cloud.
|
|
931
|
-
*
|
|
932
|
-
* -
|
|
933
|
-
*
|
|
934
|
-
* - others: shared image from another Alibaba Cloud account.
|
|
935
|
-
*
|
|
936
|
-
* - marketplace:[Alibaba Cloud Marketplace](https://marketplace.alibabacloud.com/) image. If Alibaba Cloud Marketplace images are available, you can use the images without the need to subscribe to the images. Take note of the billing details of Alibaba Cloud Marketplace images.
|
|
894
|
+
* - system: a public image provided by Alibaba Cloud.
|
|
895
|
+
* - self: a custom image that you created.
|
|
896
|
+
* - others: a shared image from another Alibaba Cloud account.
|
|
897
|
+
* - marketplace: an image from <props="china"><ph>[Alibaba Cloud Marketplace](https://market.aliyun.com/)</ph><props="intl"><ph>[Alibaba Cloud Marketplace](https://marketplace.alibabacloud.com/)</ph>. You can use Alibaba Cloud Marketplace images directly without subscribing to them first. Check the billing details of the Alibaba Cloud Marketplace image on your own.
|
|
937
898
|
*
|
|
938
899
|
* @example
|
|
939
900
|
* system
|
|
@@ -943,8 +904,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
943
904
|
* @remarks
|
|
944
905
|
* The billing method of the instance. Valid values:
|
|
945
906
|
*
|
|
946
|
-
* - PrePaid: subscription. If you set this parameter to PrePaid,
|
|
947
|
-
*
|
|
907
|
+
* - PrePaid: subscription. If you set this parameter to PrePaid, <props="china"><ph>confirm that your account supports balance payments and credit payments</ph><props="intl"><ph>confirm that your account supports credit payments</ph>. Otherwise, an `InvalidPayMethod` error is returned.
|
|
948
908
|
* - PostPaid: pay-as-you-go.
|
|
949
909
|
*
|
|
950
910
|
* @example
|
|
@@ -953,9 +913,9 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
953
913
|
instanceChargeType?: string;
|
|
954
914
|
/**
|
|
955
915
|
* @remarks
|
|
956
|
-
* The instance
|
|
916
|
+
* The name of the instance. The name must be 2 to 128 characters in length and can contain letters, digits, and characters from the Unicode letter category (including Chinese characters). The name can contain colons (:), underscores (_), periods (.), and hyphens (-). The default value is the `InstanceId` of the instance.
|
|
957
917
|
*
|
|
958
|
-
* When you create multiple ECS instances
|
|
918
|
+
* When you create multiple ECS instances, you can specify sequential instance names. The names can contain brackets ([]) and commas (,). For more information, see [Specify sequential instance names or hostnames](https://help.aliyun.com/document_detail/196048.html).
|
|
959
919
|
*
|
|
960
920
|
* @example
|
|
961
921
|
* k8s-node-[1,4]-alibabacloud
|
|
@@ -963,7 +923,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
963
923
|
instanceName?: string;
|
|
964
924
|
/**
|
|
965
925
|
* @remarks
|
|
966
|
-
* The instance type
|
|
926
|
+
* The instance type. For more information, see [Instance family](https://help.aliyun.com/document_detail/25378.html). You can also invoke [DescribeInstanceTypes](https://help.aliyun.com/document_detail/25620.html) to query the most recent instance type list.
|
|
967
927
|
*
|
|
968
928
|
* @example
|
|
969
929
|
* ecs.g5.large
|
|
@@ -973,11 +933,10 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
973
933
|
* @remarks
|
|
974
934
|
* The billing method for network usage. Valid values:
|
|
975
935
|
*
|
|
976
|
-
* - PayByBandwidth: pay-by-bandwidth
|
|
977
|
-
*
|
|
978
|
-
* - PayByTraffic: pay-by-traffic
|
|
936
|
+
* - PayByBandwidth: pay-by-bandwidth.
|
|
937
|
+
* - PayByTraffic: pay-by-traffic.
|
|
979
938
|
*
|
|
980
|
-
* >
|
|
939
|
+
* > In **pay-by-traffic** mode, the peak inbound and outbound bandwidths are used as bandwidth upper limits instead of guaranteed service metrics. When resource contention occurs, the peak bandwidth may be limited. If your workloads require guaranteed bandwidth, use the **pay-by-bandwidth** mode.
|
|
981
940
|
*
|
|
982
941
|
* @example
|
|
983
942
|
* PayByTraffic
|
|
@@ -987,9 +946,8 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
987
946
|
* @remarks
|
|
988
947
|
* The maximum inbound public bandwidth. Unit: Mbit/s. Valid values:
|
|
989
948
|
*
|
|
990
|
-
* -
|
|
991
|
-
*
|
|
992
|
-
* - When the purchased outbound public bandwidth is greater than 10 Mbit/s, the valid values of this parameter are 1 to the `InternetMaxBandwidthOut` value and the default value is the `InternetMaxBandwidthOut` value.
|
|
949
|
+
* - If the purchased outbound public bandwidth is less than or equal to 10 Mbit/s: 1 to 10. Default value: 10.
|
|
950
|
+
* - If the purchased outbound public bandwidth is greater than 10 Mbit/s: 1 to the value of `InternetMaxBandwidthOut`. Default value: the value of `InternetMaxBandwidthOut`.
|
|
993
951
|
*
|
|
994
952
|
* @example
|
|
995
953
|
* 10
|
|
@@ -1005,11 +963,10 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1005
963
|
internetMaxBandwidthOut?: number;
|
|
1006
964
|
/**
|
|
1007
965
|
* @remarks
|
|
1008
|
-
* Specifies whether
|
|
966
|
+
* Specifies whether the instance is I/O optimized. Valid values:
|
|
1009
967
|
*
|
|
1010
|
-
* -
|
|
1011
|
-
*
|
|
1012
|
-
* - optimized: creates an I/O optimized instance.
|
|
968
|
+
* - none: not I/O optimized.
|
|
969
|
+
* - optimized: I/O optimized.
|
|
1013
970
|
*
|
|
1014
971
|
* @example
|
|
1015
972
|
* optimized
|
|
@@ -1017,7 +974,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1017
974
|
ioOptimized?: string;
|
|
1018
975
|
/**
|
|
1019
976
|
* @remarks
|
|
1020
|
-
* The number of IPv6 addresses to
|
|
977
|
+
* The number of randomly generated IPv6 addresses to assign to the primary ENI. Valid values: 1 to 10.
|
|
1021
978
|
*
|
|
1022
979
|
* @example
|
|
1023
980
|
* 1
|
|
@@ -1025,11 +982,10 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1025
982
|
ipv6AddressCount?: number;
|
|
1026
983
|
/**
|
|
1027
984
|
* @remarks
|
|
1028
|
-
* The name of the key pair.
|
|
1029
|
-
*
|
|
1030
|
-
* - For Windows instances, this parameter is ignored The `Password` parameter takes effect even if the KeyPairName parameter is specified.
|
|
985
|
+
* The name of the key pair.
|
|
1031
986
|
*
|
|
1032
|
-
* -
|
|
987
|
+
* - For Windows instances, this parameter is ignored. Even if you specify this parameter, only the `Password` content is used.
|
|
988
|
+
* - For Linux instances, password-based logon is disabled during initialization.
|
|
1033
989
|
*
|
|
1034
990
|
* @example
|
|
1035
991
|
* testKeyPairName
|
|
@@ -1037,7 +993,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1037
993
|
keyPairName?: string;
|
|
1038
994
|
/**
|
|
1039
995
|
* @remarks
|
|
1040
|
-
* The name of the launch template. The name must be 2 to 128 characters in length.
|
|
996
|
+
* The name of the launch template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. The name can contain digits, colons (:), underscores (_), and hyphens (-).
|
|
1041
997
|
*
|
|
1042
998
|
* This parameter is required.
|
|
1043
999
|
*
|
|
@@ -1047,16 +1003,15 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1047
1003
|
launchTemplateName?: string;
|
|
1048
1004
|
/**
|
|
1049
1005
|
* @remarks
|
|
1050
|
-
* The
|
|
1006
|
+
* The network interface controller (NIC) information.
|
|
1051
1007
|
*/
|
|
1052
1008
|
networkInterface?: CreateLaunchTemplateRequestNetworkInterface[];
|
|
1053
1009
|
/**
|
|
1054
1010
|
* @remarks
|
|
1055
1011
|
* The network type of the instance. Valid values:
|
|
1056
1012
|
*
|
|
1057
|
-
* - classic: classic network
|
|
1058
|
-
*
|
|
1059
|
-
* - vpc: VPC
|
|
1013
|
+
* - classic: classic network. This feature has been retired. For more information, see [Retirement notice](https://help.aliyun.com/document_detail/2833134.html).
|
|
1014
|
+
* - vpc: VPC.
|
|
1060
1015
|
*
|
|
1061
1016
|
* @example
|
|
1062
1017
|
* vpc
|
|
@@ -1066,9 +1021,9 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1066
1021
|
ownerId?: number;
|
|
1067
1022
|
/**
|
|
1068
1023
|
* @remarks
|
|
1069
|
-
* Specifies whether to use the preset
|
|
1024
|
+
* Specifies whether to use the password preset in the image.
|
|
1070
1025
|
*
|
|
1071
|
-
* >
|
|
1026
|
+
* > When you use this parameter, the Password parameter must be empty. Make sure that the image you use has a password configured.
|
|
1072
1027
|
*
|
|
1073
1028
|
* @example
|
|
1074
1029
|
* false
|
|
@@ -1076,7 +1031,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1076
1031
|
passwordInherit?: boolean;
|
|
1077
1032
|
/**
|
|
1078
1033
|
* @remarks
|
|
1079
|
-
* The subscription duration of the
|
|
1034
|
+
* The subscription duration of the resource. Unit: months. This parameter takes effect and is required only when `InstanceChargeType` is set to `PrePaid`. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.
|
|
1080
1035
|
*
|
|
1081
1036
|
* @example
|
|
1082
1037
|
* 1
|
|
@@ -1084,9 +1039,15 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1084
1039
|
period?: number;
|
|
1085
1040
|
/**
|
|
1086
1041
|
* @remarks
|
|
1087
|
-
* The unit of the subscription
|
|
1042
|
+
* The unit of the subscription billable methods duration. Valid values:
|
|
1043
|
+
*
|
|
1044
|
+
* <props="china">
|
|
1045
|
+
* - Week.
|
|
1046
|
+
* - Month (default).
|
|
1047
|
+
*
|
|
1088
1048
|
*
|
|
1089
|
-
*
|
|
1049
|
+
*
|
|
1050
|
+
* <props="intl">Month (default).
|
|
1090
1051
|
*
|
|
1091
1052
|
* @example
|
|
1092
1053
|
* Month
|
|
@@ -1094,9 +1055,9 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1094
1055
|
periodUnit?: string;
|
|
1095
1056
|
/**
|
|
1096
1057
|
* @remarks
|
|
1097
|
-
* The private IP address
|
|
1058
|
+
* The private IP address of the instance.
|
|
1098
1059
|
*
|
|
1099
|
-
*
|
|
1060
|
+
* When you specify a private IP address for a VPC-connected ECS instance, the IP address must be from the idle CIDR block of the vSwitch (`VSwitchId`).
|
|
1100
1061
|
*
|
|
1101
1062
|
* @example
|
|
1102
1063
|
* ``10.1.**.**``
|
|
@@ -1104,7 +1065,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1104
1065
|
privateIpAddress?: string;
|
|
1105
1066
|
/**
|
|
1106
1067
|
* @remarks
|
|
1107
|
-
* The name of the instance
|
|
1068
|
+
* The name of the instance RAM role. You can call the RAM API [ListRoles](https://help.aliyun.com/document_detail/28713.html) to query the instance RAM roles that you have created.
|
|
1108
1069
|
*
|
|
1109
1070
|
* @example
|
|
1110
1071
|
* testRamRoleName
|
|
@@ -1112,7 +1073,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1112
1073
|
ramRoleName?: string;
|
|
1113
1074
|
/**
|
|
1114
1075
|
* @remarks
|
|
1115
|
-
* The
|
|
1076
|
+
* The region ID. You can call [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) to query the most recent region list.
|
|
1116
1077
|
*
|
|
1117
1078
|
* This parameter is required.
|
|
1118
1079
|
*
|
|
@@ -1122,7 +1083,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1122
1083
|
regionId?: string;
|
|
1123
1084
|
/**
|
|
1124
1085
|
* @remarks
|
|
1125
|
-
* The ID of the resource group to which
|
|
1086
|
+
* The ID of the resource group to which the instance, block storage, and elastic network interface controller (NIC) belong.
|
|
1126
1087
|
*
|
|
1127
1088
|
* @example
|
|
1128
1089
|
* rg-bp67acfmxazb4p****
|
|
@@ -1134,9 +1095,8 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1134
1095
|
* @remarks
|
|
1135
1096
|
* Specifies whether to enable security hardening for the operating system. Valid values:
|
|
1136
1097
|
*
|
|
1137
|
-
* -
|
|
1138
|
-
*
|
|
1139
|
-
* - Deactive: does not enable security hardening. This value is applicable to all images.
|
|
1098
|
+
* - Active: enables security hardening. This value is applicable only to public images.
|
|
1099
|
+
* - Deactive: does not enable security hardening. This value is applicable to all image types.
|
|
1140
1100
|
*
|
|
1141
1101
|
* @example
|
|
1142
1102
|
* Deactive
|
|
@@ -1144,9 +1104,9 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1144
1104
|
securityEnhancementStrategy?: string;
|
|
1145
1105
|
/**
|
|
1146
1106
|
* @remarks
|
|
1147
|
-
* The ID of the security group to which
|
|
1107
|
+
* The ID of the security group to which the instance belongs. Instances in the same security group can communicate with each other. A security group can contain up to 1,000 instances.
|
|
1148
1108
|
*
|
|
1149
|
-
* > You cannot specify both
|
|
1109
|
+
* > You cannot specify both `SecurityGroupId` and `SecurityGroupIds.N`.
|
|
1150
1110
|
*
|
|
1151
1111
|
* @example
|
|
1152
1112
|
* sg-bp15ed6xe1yxeycg****
|
|
@@ -1154,9 +1114,9 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1154
1114
|
securityGroupId?: string;
|
|
1155
1115
|
/**
|
|
1156
1116
|
* @remarks
|
|
1157
|
-
* The IDs of
|
|
1117
|
+
* The IDs of one or more security groups to which the instance belongs. The valid value range of N depends on the maximum number of security groups to which an instance can belong. For more information, see [Limits](https://help.aliyun.com/document_detail/25412.html).
|
|
1158
1118
|
*
|
|
1159
|
-
* > You cannot specify both
|
|
1119
|
+
* > You cannot specify both `SecurityGroupId` and `SecurityGroupIds.N`.
|
|
1160
1120
|
*
|
|
1161
1121
|
* @example
|
|
1162
1122
|
* sg-bp15ed6xe1yxeycg7****
|
|
@@ -1164,20 +1124,18 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1164
1124
|
securityGroupIds?: string[];
|
|
1165
1125
|
/**
|
|
1166
1126
|
* @remarks
|
|
1167
|
-
*
|
|
1127
|
+
* The security options.
|
|
1168
1128
|
*/
|
|
1169
1129
|
securityOptions?: CreateLaunchTemplateRequestSecurityOptions;
|
|
1170
1130
|
/**
|
|
1171
1131
|
* @remarks
|
|
1172
1132
|
* The protection period of the spot instance. Unit: hours. Default value: 1. Valid values:
|
|
1133
|
+
* - 1: After a spot instance is created, Alibaba Cloud ensures that the instance is not automatically released within 1 hour. After the 1-hour protection period ends, the system compares the bid price with the market price and checks the resource inventory to determine whether to retain automatic release the instance.
|
|
1134
|
+
* - 0: After a spot instance is created, Alibaba Cloud does not ensure that the instance runs for 1 hour. The system compares the bid price with the market price and checks the resource inventory to determine whether to retain automatic release the instance.
|
|
1173
1135
|
*
|
|
1174
|
-
*
|
|
1136
|
+
* Alibaba Cloud sends an ECS system event notification 5 minutes before the instance is released. Spot instances are billed by second. Select an appropriate protection period based on the expected task execution duration.
|
|
1175
1137
|
*
|
|
1176
|
-
*
|
|
1177
|
-
*
|
|
1178
|
-
* Alibaba Cloud sends an ECS system event to notify you 5 minutes before the instance is released. Spot instances are billed by second. We recommend that you specify a protection period based on your business requirements.
|
|
1179
|
-
*
|
|
1180
|
-
* > This parameter takes effect only if SpotStrategy is set to SpotWithPriceLimit or SpotAsPriceGo.
|
|
1138
|
+
* > This parameter takes effect only when SpotStrategy is set to SpotWithPriceLimit or SpotAsPriceGo.
|
|
1181
1139
|
*
|
|
1182
1140
|
* @example
|
|
1183
1141
|
* 1
|
|
@@ -1185,7 +1143,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1185
1143
|
spotDuration?: number;
|
|
1186
1144
|
/**
|
|
1187
1145
|
* @remarks
|
|
1188
|
-
* The maximum hourly price of the instance.
|
|
1146
|
+
* The maximum hourly price of the instance. This parameter supports up to three decimal places and takes effect when `SpotStrategy` is set to `SpotWithPriceLimit`.
|
|
1189
1147
|
*
|
|
1190
1148
|
* @example
|
|
1191
1149
|
* 0.97
|
|
@@ -1193,13 +1151,11 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1193
1151
|
spotPriceLimit?: number;
|
|
1194
1152
|
/**
|
|
1195
1153
|
* @remarks
|
|
1196
|
-
* The
|
|
1197
|
-
*
|
|
1198
|
-
* - NoSpot: The instance is a regular pay-as-you-go instance.
|
|
1154
|
+
* The preemption policy for the pay-as-you-go instance. This parameter takes effect when `InstanceChargeType` is set to `PostPaid`. Valid values:
|
|
1199
1155
|
*
|
|
1200
|
-
* -
|
|
1201
|
-
*
|
|
1202
|
-
* -
|
|
1156
|
+
* - NoSpot: The instance is a regular pay-as-you-go instance.
|
|
1157
|
+
* - SpotWithPriceLimit: The instance is a spot instance with a user-defined maximum hourly price.
|
|
1158
|
+
* - SpotAsPriceGo: The instance is a spot instance for which the market price at the time of purchase is automatically used as the bid price.
|
|
1203
1159
|
*
|
|
1204
1160
|
* @example
|
|
1205
1161
|
* NoSpot
|
|
@@ -1207,11 +1163,12 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1207
1163
|
spotStrategy?: string;
|
|
1208
1164
|
/**
|
|
1209
1165
|
* @remarks
|
|
1210
|
-
* The tags
|
|
1211
|
-
*
|
|
1212
|
-
* **Scenario**
|
|
1166
|
+
* The tags for instances, disks, and primary ENIs created from this template version.
|
|
1213
1167
|
*
|
|
1214
|
-
*
|
|
1168
|
+
* <details>
|
|
1169
|
+
* <summary>Scenarios</summary>
|
|
1170
|
+
* After you call CreateLaunchTemplate to create a template, the auto-generated default version uses these tags to tag instances, disks, and primary ENIs when you create instances.
|
|
1171
|
+
* </details>
|
|
1215
1172
|
*/
|
|
1216
1173
|
tag?: CreateLaunchTemplateRequestTag[];
|
|
1217
1174
|
/**
|
|
@@ -1224,14 +1181,14 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1224
1181
|
templateResourceGroupId?: string;
|
|
1225
1182
|
/**
|
|
1226
1183
|
* @remarks
|
|
1227
|
-
* The
|
|
1184
|
+
* The tag key-value pairs of the launch template itself.
|
|
1228
1185
|
*
|
|
1229
|
-
* >
|
|
1186
|
+
* > Currently, you can create and query tags for launch templates only by using API operations. The console does not support creating or viewing these tags.
|
|
1230
1187
|
*/
|
|
1231
1188
|
templateTag?: CreateLaunchTemplateRequestTemplateTag[];
|
|
1232
1189
|
/**
|
|
1233
1190
|
* @remarks
|
|
1234
|
-
* The user data
|
|
1191
|
+
* The instance user data. The data must be Base64-encoded. The maximum size of the raw data is 32 KB.
|
|
1235
1192
|
*
|
|
1236
1193
|
* @example
|
|
1237
1194
|
* ZWNobyBoZWxsbyBlY3Mh
|
|
@@ -1239,7 +1196,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1239
1196
|
userData?: string;
|
|
1240
1197
|
/**
|
|
1241
1198
|
* @remarks
|
|
1242
|
-
* The
|
|
1199
|
+
* The vSwitch ID. This parameter is required when you create a VPC-connected instance.
|
|
1243
1200
|
*
|
|
1244
1201
|
* @example
|
|
1245
1202
|
* vsw-bp1s5fnvk4gn2tws0****
|
|
@@ -1263,7 +1220,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1263
1220
|
vpcId?: string;
|
|
1264
1221
|
/**
|
|
1265
1222
|
* @remarks
|
|
1266
|
-
* The ID of the
|
|
1223
|
+
* The zone ID of the instance.
|
|
1267
1224
|
*
|
|
1268
1225
|
* @example
|
|
1269
1226
|
* cn-hangzhou-g
|