@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
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The ID of the automatic snapshot policy
|
|
5
|
+
* The ID of the automatic snapshot policy applied to the system disk.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* sp-gc7c37d4ylw7mtnk****
|
|
@@ -10,11 +10,10 @@ export declare class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
10
10
|
autoSnapshotPolicyId?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* Specifies whether to enable the performance burst feature
|
|
13
|
+
* Specifies whether to enable the performance burst feature. Valid values:
|
|
14
14
|
*
|
|
15
|
-
* - true
|
|
16
|
-
*
|
|
17
|
-
* - false
|
|
15
|
+
* - true: enables the performance burst feature.
|
|
16
|
+
* - false: does not enable the performance burst feature.
|
|
18
17
|
*
|
|
19
18
|
* @example
|
|
20
19
|
* true
|
|
@@ -24,19 +23,14 @@ export declare class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
24
23
|
* @remarks
|
|
25
24
|
* The category of the system disk. Valid values:
|
|
26
25
|
*
|
|
27
|
-
* -
|
|
28
|
-
*
|
|
29
|
-
* -
|
|
30
|
-
*
|
|
31
|
-
* - cloud_ssd: standard SSD.
|
|
32
|
-
*
|
|
33
|
-
* - cloud_essd: Enterprise SSD (ESSD). You can use `SystemDisk.PerformanceLevel` to set the performance level of the ESSD to use as the system disk.
|
|
34
|
-
*
|
|
26
|
+
* - cloud: basic disk.
|
|
27
|
+
* - cloud_efficiency: ultra disk.
|
|
28
|
+
* - cloud_ssd: standard SSD.
|
|
29
|
+
* - cloud_essd: enterprise SSD (ESSD). You can use the `SystemDisk.PerformanceLevel` parameter to set the performance level of the disk.
|
|
35
30
|
* - cloud_auto: ESSD AutoPL disk.
|
|
36
|
-
*
|
|
37
31
|
* - cloud_essd_entry: ESSD Entry disk.
|
|
38
32
|
*
|
|
39
|
-
* For
|
|
33
|
+
* For retired instance types that are not I/O optimized, the default value is cloud. Otherwise, the default value is cloud_efficiency.
|
|
40
34
|
*
|
|
41
35
|
* @example
|
|
42
36
|
* cloud_ssd
|
|
@@ -46,9 +40,8 @@ export declare class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
46
40
|
* @remarks
|
|
47
41
|
* Specifies whether to release the system disk when the instance is released. Valid values:
|
|
48
42
|
*
|
|
49
|
-
* - true
|
|
50
|
-
*
|
|
51
|
-
* - false
|
|
43
|
+
* - true: releases the system disk when the instance is released.
|
|
44
|
+
* - false: does not release the system disk when the instance is released.
|
|
52
45
|
*
|
|
53
46
|
* Default value: true.
|
|
54
47
|
*
|
|
@@ -66,7 +59,7 @@ export declare class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
66
59
|
description?: string;
|
|
67
60
|
/**
|
|
68
61
|
* @remarks
|
|
69
|
-
* The name of the system disk. The name must be 2 to 128 characters in length.
|
|
62
|
+
* 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 (-).
|
|
70
63
|
*
|
|
71
64
|
* @example
|
|
72
65
|
* testSystemDiskName
|
|
@@ -76,13 +69,12 @@ export declare class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
76
69
|
* @remarks
|
|
77
70
|
* Specifies whether to encrypt the system disk. Valid values:
|
|
78
71
|
*
|
|
79
|
-
* - true
|
|
80
|
-
*
|
|
81
|
-
* - false
|
|
72
|
+
* - true: encrypts the system disk.
|
|
73
|
+
* - false: does not encrypt the system disk.
|
|
82
74
|
*
|
|
83
75
|
* Default value: false.
|
|
84
76
|
*
|
|
85
|
-
* >
|
|
77
|
+
* > Zone D in Hong Kong (China) and Zone A in Singapore do not support system disk encryption when you create instances.
|
|
86
78
|
*
|
|
87
79
|
* @example
|
|
88
80
|
* false
|
|
@@ -90,7 +82,7 @@ export declare class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
90
82
|
encrypted?: string;
|
|
91
83
|
/**
|
|
92
84
|
* @remarks
|
|
93
|
-
* > This parameter is in invitational preview and is
|
|
85
|
+
* > This parameter is in invitational preview and is not publicly available.
|
|
94
86
|
*
|
|
95
87
|
* @example
|
|
96
88
|
* null
|
|
@@ -98,7 +90,7 @@ export declare class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
98
90
|
iops?: number;
|
|
99
91
|
/**
|
|
100
92
|
* @remarks
|
|
101
|
-
* The
|
|
93
|
+
* The KMS key ID of the system disk.
|
|
102
94
|
*
|
|
103
95
|
* @example
|
|
104
96
|
* 0e478b7a-4262-4802-b8cb-00d3fb40****
|
|
@@ -106,17 +98,14 @@ export declare class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
106
98
|
KMSKeyId?: string;
|
|
107
99
|
/**
|
|
108
100
|
* @remarks
|
|
109
|
-
* The performance level of the ESSD
|
|
101
|
+
* The performance level of the ESSD used as the system disk. Valid values:
|
|
110
102
|
*
|
|
111
|
-
* - PL0:
|
|
103
|
+
* - PL0 (default): a single disk can deliver up to 10,000 random read/write IOPS.
|
|
104
|
+
* - PL1: a single disk can deliver up to 50,000 random read/write IOPS.
|
|
105
|
+
* - PL2: a single disk can deliver up to 100,000 random read/write IOPS.
|
|
106
|
+
* - PL3: a single disk can deliver up to 1,000,000 random read/write IOPS.
|
|
112
107
|
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* - PL2: A single ESSD can deliver up to 100,000 random read/write IOPS.
|
|
116
|
-
*
|
|
117
|
-
* - PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS.
|
|
118
|
-
*
|
|
119
|
-
* For more information about ESSD performance levels, see [ESSDs](https://help.aliyun.com/document_detail/122389.html).
|
|
108
|
+
* For information about how to select an ESSD performance level, see [Enterprise SSDs](https://help.aliyun.com/document_detail/122389.html).
|
|
120
109
|
*
|
|
121
110
|
* @example
|
|
122
111
|
* PL0
|
|
@@ -124,11 +113,11 @@ export declare class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
124
113
|
performanceLevel?: string;
|
|
125
114
|
/**
|
|
126
115
|
* @remarks
|
|
127
|
-
* The provisioned read/write IOPS of the ESSD AutoPL disk
|
|
116
|
+
* The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50000, 1000 × Capacity - Baseline Performance}.
|
|
128
117
|
*
|
|
129
|
-
* Baseline
|
|
118
|
+
* Baseline Performance = min{1,800 + 50 × Capacity, 50,000}
|
|
130
119
|
*
|
|
131
|
-
* > This parameter is
|
|
120
|
+
* > 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).
|
|
132
121
|
*
|
|
133
122
|
* @example
|
|
134
123
|
* 50000
|
|
@@ -138,11 +127,10 @@ export declare class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
138
127
|
* @remarks
|
|
139
128
|
* The size of the system disk. Unit: GiB. Valid values:
|
|
140
129
|
*
|
|
141
|
-
* -
|
|
130
|
+
* - cloud: 20 to 500.
|
|
131
|
+
* - Other disk categories: 20 to 2048.
|
|
142
132
|
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* The value of this parameter must be at least 20 and greater than or equal to the size of the image.
|
|
133
|
+
* The value of this parameter must be greater than or equal to max{20, ImageSize}.
|
|
146
134
|
*
|
|
147
135
|
* @example
|
|
148
136
|
* 40
|
|
@@ -162,7 +150,7 @@ export declare class CreateLaunchTemplateRequestSystemDisk extends $dara.Model {
|
|
|
162
150
|
export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
163
151
|
/**
|
|
164
152
|
* @remarks
|
|
165
|
-
* The ID of the automatic snapshot policy to
|
|
153
|
+
* The ID of the automatic snapshot policy applied to the data disk.
|
|
166
154
|
*
|
|
167
155
|
* @example
|
|
168
156
|
* sp-m5e7fa9ute44ssa****
|
|
@@ -170,11 +158,10 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
170
158
|
autoSnapshotPolicyId?: string;
|
|
171
159
|
/**
|
|
172
160
|
* @remarks
|
|
173
|
-
* Specifies whether to enable the performance burst feature
|
|
174
|
-
*
|
|
175
|
-
* - true
|
|
161
|
+
* Specifies whether to enable the performance burst feature. Valid values:
|
|
176
162
|
*
|
|
177
|
-
* -
|
|
163
|
+
* - true: enables the performance burst feature.
|
|
164
|
+
* - false: does not enable the performance burst feature.
|
|
178
165
|
*
|
|
179
166
|
* @example
|
|
180
167
|
* true
|
|
@@ -184,19 +171,22 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
184
171
|
* @remarks
|
|
185
172
|
* The category of data disk N. Valid values:
|
|
186
173
|
*
|
|
187
|
-
* -
|
|
188
|
-
*
|
|
189
|
-
* -
|
|
190
|
-
*
|
|
191
|
-
* -
|
|
192
|
-
*
|
|
193
|
-
* -
|
|
194
|
-
*
|
|
195
|
-
* -
|
|
196
|
-
*
|
|
197
|
-
* - cloud_essd_entry: ESSD Entry disk
|
|
174
|
+
* - cloud_efficiency: ultra disk.
|
|
175
|
+
* - cloud_ssd: standard SSD.
|
|
176
|
+
* - cloud_essd: enterprise SSD.
|
|
177
|
+
* - cloud: basic disk.
|
|
178
|
+
* - cloud_auto: ESSD AutoPL disk.
|
|
179
|
+
* - cloud_regional_disk_auto: regional ESSD.
|
|
180
|
+
* - cloud_essd_entry: ESSD Entry disk.
|
|
181
|
+
* > The cloud_essd_entry value is supported only when `InstanceType` is set to the `ecs.u1` or `ecs.e` instance family.
|
|
182
|
+
* - elastic_ephemeral_disk_standard: elastic ephemeral disk - standard.
|
|
183
|
+
* - elastic_ephemeral_disk_premium: elastic ephemeral disk - Premium Edition.
|
|
198
184
|
*
|
|
199
185
|
* For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud.
|
|
186
|
+
* Default value description:
|
|
187
|
+
*
|
|
188
|
+
* - If InstanceType is a retired instance type that is not I/O optimized, the default value of this parameter is `cloud`.
|
|
189
|
+
* - 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).
|
|
200
190
|
*
|
|
201
191
|
* @example
|
|
202
192
|
* cloud_ssd
|
|
@@ -204,11 +194,10 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
204
194
|
category?: string;
|
|
205
195
|
/**
|
|
206
196
|
* @remarks
|
|
207
|
-
* Specifies whether to release data disk
|
|
197
|
+
* Specifies whether to release the data disk when the instance is released. Valid values:
|
|
208
198
|
*
|
|
209
|
-
* - true
|
|
210
|
-
*
|
|
211
|
-
* - false
|
|
199
|
+
* - true: releases the data disk when the instance is released.
|
|
200
|
+
* - false: does not release the data disk when the instance is released.
|
|
212
201
|
*
|
|
213
202
|
* Default value: true.
|
|
214
203
|
*
|
|
@@ -218,7 +207,7 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
218
207
|
deleteWithInstance?: boolean;
|
|
219
208
|
/**
|
|
220
209
|
* @remarks
|
|
221
|
-
* The description of data disk
|
|
210
|
+
* The description of the data disk. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
|
|
222
211
|
*
|
|
223
212
|
* @example
|
|
224
213
|
* testDataDiskDescription
|
|
@@ -226,13 +215,12 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
226
215
|
description?: string;
|
|
227
216
|
/**
|
|
228
217
|
* @remarks
|
|
229
|
-
* The mount point of data disk
|
|
230
|
-
*
|
|
231
|
-
* - 1st to 25th data disks: /dev/xvd`[b-z]`.
|
|
218
|
+
* The mount point of the data disk. The naming convention varies based on the number of data disks attached:
|
|
219
|
+
* - 1 to 25 data disks: /dev/xvd`[b-z]`
|
|
232
220
|
*
|
|
233
|
-
* -
|
|
221
|
+
* - 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.
|
|
234
222
|
*
|
|
235
|
-
* > This parameter is
|
|
223
|
+
* > 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.
|
|
236
224
|
*
|
|
237
225
|
* @example
|
|
238
226
|
* /dev/xvdb
|
|
@@ -240,7 +228,7 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
240
228
|
device?: string;
|
|
241
229
|
/**
|
|
242
230
|
* @remarks
|
|
243
|
-
* The name of data disk
|
|
231
|
+
* 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 (-).
|
|
244
232
|
*
|
|
245
233
|
* @example
|
|
246
234
|
* testDataDiskName
|
|
@@ -248,7 +236,7 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
248
236
|
diskName?: string;
|
|
249
237
|
/**
|
|
250
238
|
* @remarks
|
|
251
|
-
* Specifies whether to encrypt data disk
|
|
239
|
+
* Specifies whether to encrypt the data disk.
|
|
252
240
|
*
|
|
253
241
|
* @example
|
|
254
242
|
* false
|
|
@@ -256,7 +244,7 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
256
244
|
encrypted?: string;
|
|
257
245
|
/**
|
|
258
246
|
* @remarks
|
|
259
|
-
* The
|
|
247
|
+
* The KMS key ID for the data disk.
|
|
260
248
|
*
|
|
261
249
|
* @example
|
|
262
250
|
* 0e478b7a-4262-4802-b8cb-00d****
|
|
@@ -264,17 +252,14 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
264
252
|
KMSKeyId?: string;
|
|
265
253
|
/**
|
|
266
254
|
* @remarks
|
|
267
|
-
* The performance level of the ESSD
|
|
268
|
-
*
|
|
269
|
-
* - PL0: A single ESSD can deliver up to 10000 random read/write IOPS.
|
|
270
|
-
*
|
|
271
|
-
* - PL1 (default): A single ESSD can deliver up to 50000 random read/write IOPS.
|
|
272
|
-
*
|
|
273
|
-
* - PL2: A single ESSD can deliver up to 100000 random read/write IOPS.
|
|
255
|
+
* 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:
|
|
274
256
|
*
|
|
275
|
-
* -
|
|
257
|
+
* - PL0: a single disk can deliver up to 10,000 random read/write IOPS.
|
|
258
|
+
* - PL1 (default): a single disk can deliver up to 50,000 random read/write IOPS.
|
|
259
|
+
* - PL2: a single disk can deliver up to 100,000 random read/write IOPS.
|
|
260
|
+
* - PL3: a single disk can deliver up to 1,000,000 random read/write IOPS.
|
|
276
261
|
*
|
|
277
|
-
* For information about ESSD performance
|
|
262
|
+
* For information about how to select an ESSD performance level, see [Enterprise SSDs](https://help.aliyun.com/document_detail/122389.html).
|
|
278
263
|
*
|
|
279
264
|
* @example
|
|
280
265
|
* PL1
|
|
@@ -282,11 +267,11 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
282
267
|
performanceLevel?: string;
|
|
283
268
|
/**
|
|
284
269
|
* @remarks
|
|
285
|
-
* The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{
|
|
270
|
+
* The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50000, 1000 × Capacity - Baseline Performance}.
|
|
286
271
|
*
|
|
287
|
-
* Baseline
|
|
272
|
+
* Baseline Performance = min{1,800 + 50 × Capacity, 50,000}
|
|
288
273
|
*
|
|
289
|
-
* > This parameter is
|
|
274
|
+
* > 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).
|
|
290
275
|
*
|
|
291
276
|
* @example
|
|
292
277
|
* 50000
|
|
@@ -296,25 +281,16 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
296
281
|
* @remarks
|
|
297
282
|
* The size of data disk N. Valid values of N: 1 to 16. Unit: GiB. Valid values:
|
|
298
283
|
*
|
|
299
|
-
* -
|
|
300
|
-
*
|
|
301
|
-
* -
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
* - Valid values if DataDisk.N.PerformanceLevel is set to PL1: 20 to 32768.
|
|
310
|
-
*
|
|
311
|
-
* - Valid values if DataDisk.N.PerformanceLevel is set to PL2: 461 to 32768.
|
|
312
|
-
*
|
|
313
|
-
* - Valid values if you set DataDisk.N.PerformanceLevel to PL3: 1261 to 32768.
|
|
314
|
-
*
|
|
315
|
-
* - Valid values if you set DataDisk.N.Category to cloud_auto: 1 to 32768.
|
|
316
|
-
*
|
|
317
|
-
* - Valid values if you set DataDisk.N.Category to cloud_essd_entry: 10 to 32768.
|
|
284
|
+
* - cloud: 5 to 2000.
|
|
285
|
+
* - cloud_efficiency: 20 to 32768.
|
|
286
|
+
* - cloud_ssd: 20 to 32768.
|
|
287
|
+
* - cloud_essd: The valid value range depends on the value of `DataDisk.N.PerformanceLevel`.
|
|
288
|
+
* - PL0: 1 to 32768.
|
|
289
|
+
* - PL1: 20 to 32768.
|
|
290
|
+
* - PL2: 461 to 32768.
|
|
291
|
+
* - PL3: 1261 to 32768.
|
|
292
|
+
* - cloud_auto: 1 to 32,768.
|
|
293
|
+
* - cloud_essd_entry: 10 to 32,768.
|
|
318
294
|
*
|
|
319
295
|
* The value of this parameter must be greater than or equal to the size of the snapshot specified by `SnapshotId`.
|
|
320
296
|
*
|
|
@@ -324,9 +300,9 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
324
300
|
size?: number;
|
|
325
301
|
/**
|
|
326
302
|
* @remarks
|
|
327
|
-
* The ID of the snapshot
|
|
303
|
+
* 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.
|
|
328
304
|
*
|
|
329
|
-
* >
|
|
305
|
+
* > You cannot use snapshots created on or before July 15, 2013. Such requests are rejected.
|
|
330
306
|
*
|
|
331
307
|
* @example
|
|
332
308
|
* s-bp17441ohwka0yuh****
|
|
@@ -346,11 +322,10 @@ export declare class CreateLaunchTemplateRequestDataDisk extends $dara.Model {
|
|
|
346
322
|
export declare class CreateLaunchTemplateRequestImageOptions extends $dara.Model {
|
|
347
323
|
/**
|
|
348
324
|
* @remarks
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
* - true
|
|
352
|
-
*
|
|
353
|
-
* - false
|
|
325
|
+
* Indicates whether the instance that uses this image supports logon with the ecs-user account.
|
|
326
|
+
* Valid values:
|
|
327
|
+
* - true: supported.
|
|
328
|
+
* - false: not supported.
|
|
354
329
|
*
|
|
355
330
|
* @example
|
|
356
331
|
* false
|
|
@@ -370,11 +345,11 @@ export declare class CreateLaunchTemplateRequestImageOptions extends $dara.Model
|
|
|
370
345
|
export declare class CreateLaunchTemplateRequestNetworkInterface extends $dara.Model {
|
|
371
346
|
/**
|
|
372
347
|
* @remarks
|
|
373
|
-
* Specifies whether to
|
|
348
|
+
* Specifies whether to retain the ENI when the instance is released. Valid values:
|
|
374
349
|
*
|
|
375
|
-
* - true
|
|
350
|
+
* - true: does not retain the ENI.
|
|
376
351
|
*
|
|
377
|
-
* - false
|
|
352
|
+
* - false: retains the ENI.
|
|
378
353
|
*
|
|
379
354
|
* Default value: true.
|
|
380
355
|
*
|
|
@@ -386,7 +361,7 @@ export declare class CreateLaunchTemplateRequestNetworkInterface extends $dara.M
|
|
|
386
361
|
deleteOnRelease?: boolean;
|
|
387
362
|
/**
|
|
388
363
|
* @remarks
|
|
389
|
-
* The description of the secondary
|
|
364
|
+
* 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.
|
|
390
365
|
*
|
|
391
366
|
* @example
|
|
392
367
|
* testEniDescription
|
|
@@ -394,13 +369,12 @@ export declare class CreateLaunchTemplateRequestNetworkInterface extends $dara.M
|
|
|
394
369
|
description?: string;
|
|
395
370
|
/**
|
|
396
371
|
* @remarks
|
|
397
|
-
* The type of
|
|
372
|
+
* 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.
|
|
398
373
|
*
|
|
399
374
|
* Valid values:
|
|
400
375
|
*
|
|
401
|
-
* - Primary
|
|
402
|
-
*
|
|
403
|
-
* - Secondary
|
|
376
|
+
* - Primary: primary NIC.
|
|
377
|
+
* - Secondary: secondary NIC.
|
|
404
378
|
*
|
|
405
379
|
* Default value: Secondary.
|
|
406
380
|
*
|
|
@@ -410,13 +384,13 @@ export declare class CreateLaunchTemplateRequestNetworkInterface extends $dara.M
|
|
|
410
384
|
instanceType?: string;
|
|
411
385
|
/**
|
|
412
386
|
* @remarks
|
|
413
|
-
* The name of
|
|
387
|
+
* The name of the network interface controller (NIC).
|
|
414
388
|
*
|
|
415
389
|
* Take note of the following items:
|
|
416
390
|
*
|
|
417
|
-
* - Valid values of N: 1
|
|
391
|
+
* - 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.
|
|
418
392
|
*
|
|
419
|
-
* - If
|
|
393
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Primary`, you do not need to set this parameter.
|
|
420
394
|
*
|
|
421
395
|
* @example
|
|
422
396
|
* testEniName
|
|
@@ -427,8 +401,7 @@ export declare class CreateLaunchTemplateRequestNetworkInterface extends $dara.M
|
|
|
427
401
|
* The communication mode of the primary ENI. Valid values:
|
|
428
402
|
*
|
|
429
403
|
* - Standard: uses the TCP communication mode.
|
|
430
|
-
*
|
|
431
|
-
* - HighPerformance: uses the remote direct memory access (RDMA) communication mode with Elastic RDMA Interface (ERI) enabled.
|
|
404
|
+
* - HighPerformance: enables the Elastic RDMA Interface (ERI) and uses the RDMA communication mode.
|
|
432
405
|
*
|
|
433
406
|
* @example
|
|
434
407
|
* Standard
|
|
@@ -436,21 +409,19 @@ export declare class CreateLaunchTemplateRequestNetworkInterface extends $dara.M
|
|
|
436
409
|
networkInterfaceTrafficMode?: string;
|
|
437
410
|
/**
|
|
438
411
|
* @remarks
|
|
439
|
-
*
|
|
412
|
+
* Adds a network interface controller (NIC) and sets the primary IP address.
|
|
440
413
|
*
|
|
441
414
|
* Take note of the following items:
|
|
442
415
|
*
|
|
443
|
-
* - Valid values of N: 1
|
|
444
|
-
*
|
|
445
|
-
*
|
|
446
|
-
*
|
|
447
|
-
* - If the value of N is 2, you must configure a primary ENI and a secondary ENI. If you specify this parameter, set `Amount` to a numeric value greater than 1, and set NetworkInterface.N.InstanceType to Primary, you cannot set `NetworkInterface.2.InstanceType` to Secondary to attach a secondary ENI.
|
|
416
|
+
* - Valid values of N: 1 to 2.
|
|
417
|
+
* - 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.
|
|
418
|
+
* - 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`).
|
|
448
419
|
*
|
|
449
|
-
* - If
|
|
420
|
+
* - 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`.
|
|
450
421
|
*
|
|
451
|
-
* - If
|
|
422
|
+
* - 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.
|
|
452
423
|
*
|
|
453
|
-
* >
|
|
424
|
+
* > 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.
|
|
454
425
|
*
|
|
455
426
|
* @example
|
|
456
427
|
* ``192.168.**.**``
|
|
@@ -458,15 +429,15 @@ export declare class CreateLaunchTemplateRequestNetworkInterface extends $dara.M
|
|
|
458
429
|
primaryIpAddress?: string;
|
|
459
430
|
/**
|
|
460
431
|
* @remarks
|
|
461
|
-
* The ID of the security group to which
|
|
432
|
+
* The ID of the security group to which the network interface controller (NIC) belongs.
|
|
462
433
|
*
|
|
463
434
|
* Take note of the following items:
|
|
464
435
|
*
|
|
465
|
-
* - Valid values of N: 1
|
|
436
|
+
* - 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.
|
|
466
437
|
*
|
|
467
|
-
* - If
|
|
438
|
+
* - 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`.
|
|
468
439
|
*
|
|
469
|
-
* - If
|
|
440
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, this parameter is optional. Default value: the security group of the ECS instance.
|
|
470
441
|
*
|
|
471
442
|
* @example
|
|
472
443
|
* sg-bp15ed6xe1yxeycg****
|
|
@@ -474,17 +445,16 @@ export declare class CreateLaunchTemplateRequestNetworkInterface extends $dara.M
|
|
|
474
445
|
securityGroupId?: string;
|
|
475
446
|
/**
|
|
476
447
|
* @remarks
|
|
477
|
-
* The IDs of security groups to which
|
|
448
|
+
* The IDs of one or more security groups to which the network interface controller (NIC) belongs.
|
|
478
449
|
*
|
|
479
|
-
* -
|
|
480
|
-
*
|
|
481
|
-
* - The second N in this parameter indicates that one or more security group IDs can be specified. The valid values of N vary based on the maximum number of security groups to which an instance can belong. For more information, see the [Security group limits](~~25412#SecurityGroupQuota1~~) section of the "Limits" topic.
|
|
450
|
+
* - 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.
|
|
451
|
+
* - 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~~).
|
|
482
452
|
*
|
|
483
453
|
* Take note of the following items:
|
|
484
454
|
*
|
|
485
|
-
* - If
|
|
455
|
+
* - 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`.
|
|
486
456
|
*
|
|
487
|
-
* - If
|
|
457
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, this parameter is optional. Default value: the security group of the ECS instance.
|
|
488
458
|
*
|
|
489
459
|
* @example
|
|
490
460
|
* sg-bp67acfmxazb4p****
|
|
@@ -492,15 +462,15 @@ export declare class CreateLaunchTemplateRequestNetworkInterface extends $dara.M
|
|
|
492
462
|
securityGroupIds?: string[];
|
|
493
463
|
/**
|
|
494
464
|
* @remarks
|
|
495
|
-
* The ID of the
|
|
465
|
+
* The vSwitch ID of the network interface controller (NIC).
|
|
496
466
|
*
|
|
497
467
|
* Take note of the following items:
|
|
498
468
|
*
|
|
499
|
-
* - Valid values of N: 1
|
|
469
|
+
* - 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.
|
|
500
470
|
*
|
|
501
|
-
* - If
|
|
471
|
+
* - 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`.
|
|
502
472
|
*
|
|
503
|
-
* - If
|
|
473
|
+
* - If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, this parameter is optional. Default value: the vSwitch of the ECS instance.
|
|
504
474
|
*
|
|
505
475
|
* @example
|
|
506
476
|
* vsw-bp1s5fnvk4gn2tws0****
|
|
@@ -520,25 +490,20 @@ export declare class CreateLaunchTemplateRequestNetworkInterface extends $dara.M
|
|
|
520
490
|
export declare class CreateLaunchTemplateRequestSecurityOptions extends $dara.Model {
|
|
521
491
|
/**
|
|
522
492
|
* @remarks
|
|
523
|
-
* The trusted system mode.
|
|
524
|
-
*
|
|
525
|
-
* Currently, the following instance families support the trusted system mode:
|
|
526
|
-
*
|
|
527
|
-
* - g7, c7, r7.
|
|
528
|
-
*
|
|
529
|
-
* - Security-enhanced instance families (g7t, c7t, r7t).
|
|
530
|
-
*
|
|
531
|
-
* When you create an ECS instance using one of the above instance families, you must configure this parameter as follows:
|
|
493
|
+
* The trusted system mode. Set the value to vTPM.
|
|
532
494
|
*
|
|
533
|
-
*
|
|
495
|
+
* The following instance families support trusted system mode:
|
|
496
|
+
* - g7, c7, and r7.
|
|
497
|
+
* - Enhanced instance families (g7t, c7t, and r7t).
|
|
534
498
|
*
|
|
535
|
-
*
|
|
499
|
+
* When you create ECS instances of the preceding instance types, you must configure this parameter. Take note of the following items:
|
|
536
500
|
*
|
|
537
|
-
* -
|
|
501
|
+
* - To use Alibaba Cloud Trusted System, set this parameter to vTPM. Then, Alibaba Cloud Trusted System performs trusted verification when the instance starts.
|
|
502
|
+
* - 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.
|
|
503
|
+
* - When you use OpenAPI to create a trusted ECS instance, you can only invoke `RunInstances`. `CreateInstance` does not support the `SecurityOptions.TrustedSystemMode` parameter.
|
|
504
|
+
* > 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.
|
|
538
505
|
*
|
|
539
|
-
*
|
|
540
|
-
*
|
|
541
|
-
* 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).
|
|
506
|
+
* For more information about the trusted system, see [Overview of trusted features for security-enhanced instances](https://help.aliyun.com/document_detail/201394.html).
|
|
542
507
|
*
|
|
543
508
|
* @example
|
|
544
509
|
* vTPM
|
|
@@ -558,7 +523,7 @@ export declare class CreateLaunchTemplateRequestSecurityOptions extends $dara.Mo
|
|
|
558
523
|
export declare class CreateLaunchTemplateRequestTag extends $dara.Model {
|
|
559
524
|
/**
|
|
560
525
|
* @remarks
|
|
561
|
-
* The
|
|
526
|
+
* 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://.
|
|
562
527
|
*
|
|
563
528
|
* @example
|
|
564
529
|
* TestKey
|
|
@@ -566,7 +531,7 @@ export declare class CreateLaunchTemplateRequestTag extends $dara.Model {
|
|
|
566
531
|
key?: string;
|
|
567
532
|
/**
|
|
568
533
|
* @remarks
|
|
569
|
-
* The
|
|
534
|
+
* 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://.
|
|
570
535
|
*
|
|
571
536
|
* @example
|
|
572
537
|
* TestValue
|
|
@@ -586,7 +551,7 @@ export declare class CreateLaunchTemplateRequestTag extends $dara.Model {
|
|
|
586
551
|
export declare class CreateLaunchTemplateRequestTemplateTag extends $dara.Model {
|
|
587
552
|
/**
|
|
588
553
|
* @remarks
|
|
589
|
-
* The key of
|
|
554
|
+
* 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://`.
|
|
590
555
|
*
|
|
591
556
|
* @example
|
|
592
557
|
* TestKey
|
|
@@ -594,7 +559,7 @@ export declare class CreateLaunchTemplateRequestTemplateTag extends $dara.Model
|
|
|
594
559
|
key?: string;
|
|
595
560
|
/**
|
|
596
561
|
* @remarks
|
|
597
|
-
* The value of
|
|
562
|
+
* 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://`.
|
|
598
563
|
*
|
|
599
564
|
* @example
|
|
600
565
|
* TestValue
|
|
@@ -615,13 +580,13 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
615
580
|
systemDisk?: CreateLaunchTemplateRequestSystemDisk;
|
|
616
581
|
/**
|
|
617
582
|
* @remarks
|
|
618
|
-
* The automatic release time
|
|
583
|
+
* 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.
|
|
619
584
|
*
|
|
620
|
-
* - If the value of `ss` is not `00`, the time is automatically rounded down to the
|
|
585
|
+
* - If the value of seconds (`ss`) is not `00`, the time is automatically rounded down to the start of the current minute (`mm`).
|
|
621
586
|
*
|
|
622
|
-
* - The
|
|
587
|
+
* - The earliest release time is 30 minutes after the current time.
|
|
623
588
|
*
|
|
624
|
-
* - The
|
|
589
|
+
* - The latest release time cannot be more than three years from the current time.
|
|
625
590
|
*
|
|
626
591
|
* @example
|
|
627
592
|
* 2018-01-01T12:05:00Z
|
|
@@ -631,13 +596,12 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
631
596
|
* @remarks
|
|
632
597
|
* Specifies whether to enable auto-renewal. Valid values:
|
|
633
598
|
*
|
|
634
|
-
* - true
|
|
635
|
-
*
|
|
636
|
-
* - false
|
|
599
|
+
* - true: enables auto-renewal.
|
|
600
|
+
* - false: does not enable auto-renewal.
|
|
637
601
|
*
|
|
638
602
|
* Default value: false.
|
|
639
603
|
*
|
|
640
|
-
* > This parameter takes effect only
|
|
604
|
+
* > This parameter takes effect only when `InstanceChargeType` is set to `PrePaid`.
|
|
641
605
|
*
|
|
642
606
|
* @example
|
|
643
607
|
* true
|
|
@@ -645,9 +609,15 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
645
609
|
autoRenew?: boolean;
|
|
646
610
|
/**
|
|
647
611
|
* @remarks
|
|
648
|
-
* The auto-renewal period
|
|
612
|
+
* The auto-renewal period. Valid values:
|
|
613
|
+
*
|
|
614
|
+
* <props="china">
|
|
615
|
+
* - If PeriodUnit is set to Week: 1, 2, and 3.
|
|
616
|
+
* - If PeriodUnit is set to Month: 1, 2, 3, 6, 12, 24, 36, 48, and 60.
|
|
617
|
+
*
|
|
618
|
+
*
|
|
649
619
|
*
|
|
650
|
-
*
|
|
620
|
+
* <props="intl">If PeriodUnit is set to Month: 1, 2, 3, 6, 12, 24, 36, 48, and 60.
|
|
651
621
|
*
|
|
652
622
|
* Default value: 1.
|
|
653
623
|
*
|
|
@@ -657,11 +627,10 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
657
627
|
autoRenewPeriod?: number;
|
|
658
628
|
/**
|
|
659
629
|
* @remarks
|
|
660
|
-
* The
|
|
630
|
+
* The running mode of the burstable instance. Valid values:
|
|
661
631
|
*
|
|
662
|
-
* - Standard:
|
|
663
|
-
*
|
|
664
|
-
* - 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).
|
|
632
|
+
* - 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).
|
|
633
|
+
* - Unlimited: unlimited mode. For more information, see the unlimited mode section in [Overview of burstable instances](https://help.aliyun.com/document_detail/59977.html).
|
|
665
634
|
*
|
|
666
635
|
* @example
|
|
667
636
|
* Standard
|
|
@@ -669,20 +638,19 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
669
638
|
creditSpecification?: string;
|
|
670
639
|
/**
|
|
671
640
|
* @remarks
|
|
672
|
-
* The data
|
|
641
|
+
* The list of data disk information.
|
|
673
642
|
*/
|
|
674
643
|
dataDisk?: CreateLaunchTemplateRequestDataDisk[];
|
|
675
644
|
/**
|
|
676
645
|
* @remarks
|
|
677
|
-
*
|
|
678
|
-
*
|
|
679
|
-
* - true
|
|
646
|
+
* 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:
|
|
647
|
+
* - true: enables release protection.
|
|
680
648
|
*
|
|
681
|
-
* - false
|
|
649
|
+
* - false: disables release protection.
|
|
682
650
|
*
|
|
683
651
|
* Default value: false.
|
|
684
652
|
*
|
|
685
|
-
* > This
|
|
653
|
+
* > This attribute applies only to pay-as-you-go instances. It can only restrict manual release operations and does not affect system-initiated releases.
|
|
686
654
|
*
|
|
687
655
|
* @example
|
|
688
656
|
* false
|
|
@@ -690,7 +658,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
690
658
|
deletionProtection?: boolean;
|
|
691
659
|
/**
|
|
692
660
|
* @remarks
|
|
693
|
-
* The ID of the deployment set
|
|
661
|
+
* The ID of the deployment set.
|
|
694
662
|
*
|
|
695
663
|
* @example
|
|
696
664
|
* ds-bp1brhwhoqinyjd6****
|
|
@@ -698,7 +666,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
698
666
|
deploymentSetId?: string;
|
|
699
667
|
/**
|
|
700
668
|
* @remarks
|
|
701
|
-
* The instance
|
|
669
|
+
* The description of the instance. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
|
|
702
670
|
*
|
|
703
671
|
* @example
|
|
704
672
|
* testECSDescription
|
|
@@ -707,8 +675,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
707
675
|
/**
|
|
708
676
|
* @remarks
|
|
709
677
|
* Specifies whether to enable the operating system configuration of the instance.
|
|
710
|
-
*
|
|
711
|
-
* > This parameter will be removed in the future. To ensure future compatibility, we recommend that you use other parameters.
|
|
678
|
+
* > This parameter will be deprecated. For better compatibility, use other parameters.
|
|
712
679
|
*
|
|
713
680
|
* @example
|
|
714
681
|
* false
|
|
@@ -716,13 +683,11 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
716
683
|
enableVmOsConfig?: boolean;
|
|
717
684
|
/**
|
|
718
685
|
* @remarks
|
|
719
|
-
* The
|
|
720
|
-
*
|
|
721
|
-
* - The hostname cannot start or end with a period (.) or hyphen (-). It cannot contain consecutive periods (.) or hyphens (-).
|
|
722
|
-
*
|
|
723
|
-
* - 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 (-).
|
|
686
|
+
* The hostname of the Elastic Compute Service server.
|
|
724
687
|
*
|
|
725
|
-
* -
|
|
688
|
+
* - The hostname cannot start or end with a period (.) or a hyphen (-). It cannot contain consecutive periods (.) or hyphens (-).
|
|
689
|
+
* - 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 (-).
|
|
690
|
+
* - 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 (-).
|
|
726
691
|
*
|
|
727
692
|
* @example
|
|
728
693
|
* testHostName
|
|
@@ -732,13 +697,12 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
732
697
|
* @remarks
|
|
733
698
|
* Specifies whether to enable the access channel for instance metadata. Valid values:
|
|
734
699
|
*
|
|
735
|
-
* - enabled
|
|
736
|
-
*
|
|
737
|
-
* - disabled
|
|
700
|
+
* - enabled: enables the access channel.
|
|
701
|
+
* - disabled: disables the access channel.
|
|
738
702
|
*
|
|
739
703
|
* Default value: enabled.
|
|
740
704
|
*
|
|
741
|
-
* > For information about instance metadata, see [
|
|
705
|
+
* > For more information about instance metadata, see [Overview of ECS instance metadata](https://help.aliyun.com/document_detail/108460.html).
|
|
742
706
|
*
|
|
743
707
|
* @example
|
|
744
708
|
* enabled
|
|
@@ -746,7 +710,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
746
710
|
httpEndpoint?: string;
|
|
747
711
|
/**
|
|
748
712
|
* @remarks
|
|
749
|
-
* > This parameter is not
|
|
713
|
+
* > This parameter is not available for use.
|
|
750
714
|
*
|
|
751
715
|
* @example
|
|
752
716
|
* 3
|
|
@@ -754,15 +718,15 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
754
718
|
httpPutResponseHopLimit?: number;
|
|
755
719
|
/**
|
|
756
720
|
* @remarks
|
|
757
|
-
* Specifies whether to forcefully use the security
|
|
758
|
-
*
|
|
759
|
-
* - optional: does not forcefully use the security hardening mode (IMDSv2).
|
|
721
|
+
* Specifies whether to forcefully use the security-hardened mode (IMDSv2) to access instance metadata. Valid values:
|
|
760
722
|
*
|
|
761
|
-
* -
|
|
723
|
+
* - optional: does not forcefully use the security-hardened mode.
|
|
724
|
+
* - required: forcefully uses the security-hardened mode. After you set this value, instance metadata cannot be accessed in normal mode.
|
|
762
725
|
*
|
|
763
726
|
* Default value: optional.
|
|
764
727
|
*
|
|
765
|
-
* > For information about the modes
|
|
728
|
+
* > For more information about the modes for
|
|
729
|
+
* [Instance metadata overview](https://help.aliyun.com/document_detail/108460.html)
|
|
766
730
|
*
|
|
767
731
|
* @example
|
|
768
732
|
* optional
|
|
@@ -770,7 +734,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
770
734
|
httpTokens?: string;
|
|
771
735
|
/**
|
|
772
736
|
* @remarks
|
|
773
|
-
* The
|
|
737
|
+
* The image ID. You can call [DescribeImages](https://help.aliyun.com/document_detail/25534.html) to query available image resources.
|
|
774
738
|
*
|
|
775
739
|
* @example
|
|
776
740
|
* win2008r2_64_ent_sp1_en-us_40G_alibase_20170915.vhd
|
|
@@ -778,20 +742,17 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
778
742
|
imageId?: string;
|
|
779
743
|
/**
|
|
780
744
|
* @remarks
|
|
781
|
-
*
|
|
745
|
+
* The image-related property information.
|
|
782
746
|
*/
|
|
783
747
|
imageOptions?: CreateLaunchTemplateRequestImageOptions;
|
|
784
748
|
/**
|
|
785
749
|
* @remarks
|
|
786
750
|
* The source of the image. Valid values:
|
|
787
751
|
*
|
|
788
|
-
* - system: public image provided by Alibaba Cloud.
|
|
789
|
-
*
|
|
790
|
-
* -
|
|
791
|
-
*
|
|
792
|
-
* - others: shared image from another Alibaba Cloud account.
|
|
793
|
-
*
|
|
794
|
-
* - 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.
|
|
752
|
+
* - system: a public image provided by Alibaba Cloud.
|
|
753
|
+
* - self: a custom image that you created.
|
|
754
|
+
* - others: a shared image from another Alibaba Cloud account.
|
|
755
|
+
* - 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.
|
|
795
756
|
*
|
|
796
757
|
* @example
|
|
797
758
|
* system
|
|
@@ -801,8 +762,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
801
762
|
* @remarks
|
|
802
763
|
* The billing method of the instance. Valid values:
|
|
803
764
|
*
|
|
804
|
-
* - PrePaid: subscription. If you set this parameter to PrePaid,
|
|
805
|
-
*
|
|
765
|
+
* - 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.
|
|
806
766
|
* - PostPaid: pay-as-you-go.
|
|
807
767
|
*
|
|
808
768
|
* @example
|
|
@@ -811,9 +771,9 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
811
771
|
instanceChargeType?: string;
|
|
812
772
|
/**
|
|
813
773
|
* @remarks
|
|
814
|
-
* The instance
|
|
774
|
+
* 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.
|
|
815
775
|
*
|
|
816
|
-
* When you create multiple ECS instances
|
|
776
|
+
* 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).
|
|
817
777
|
*
|
|
818
778
|
* @example
|
|
819
779
|
* k8s-node-[1,4]-alibabacloud
|
|
@@ -821,7 +781,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
821
781
|
instanceName?: string;
|
|
822
782
|
/**
|
|
823
783
|
* @remarks
|
|
824
|
-
* The instance type
|
|
784
|
+
* 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.
|
|
825
785
|
*
|
|
826
786
|
* @example
|
|
827
787
|
* ecs.g5.large
|
|
@@ -831,11 +791,10 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
831
791
|
* @remarks
|
|
832
792
|
* The billing method for network usage. Valid values:
|
|
833
793
|
*
|
|
834
|
-
* - PayByBandwidth: pay-by-bandwidth
|
|
835
|
-
*
|
|
836
|
-
* - PayByTraffic: pay-by-traffic
|
|
794
|
+
* - PayByBandwidth: pay-by-bandwidth.
|
|
795
|
+
* - PayByTraffic: pay-by-traffic.
|
|
837
796
|
*
|
|
838
|
-
* >
|
|
797
|
+
* > 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.
|
|
839
798
|
*
|
|
840
799
|
* @example
|
|
841
800
|
* PayByTraffic
|
|
@@ -845,9 +804,8 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
845
804
|
* @remarks
|
|
846
805
|
* The maximum inbound public bandwidth. Unit: Mbit/s. Valid values:
|
|
847
806
|
*
|
|
848
|
-
* -
|
|
849
|
-
*
|
|
850
|
-
* - 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.
|
|
807
|
+
* - If the purchased outbound public bandwidth is less than or equal to 10 Mbit/s: 1 to 10. Default value: 10.
|
|
808
|
+
* - If the purchased outbound public bandwidth is greater than 10 Mbit/s: 1 to the value of `InternetMaxBandwidthOut`. Default value: the value of `InternetMaxBandwidthOut`.
|
|
851
809
|
*
|
|
852
810
|
* @example
|
|
853
811
|
* 10
|
|
@@ -863,11 +821,10 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
863
821
|
internetMaxBandwidthOut?: number;
|
|
864
822
|
/**
|
|
865
823
|
* @remarks
|
|
866
|
-
* Specifies whether
|
|
824
|
+
* Specifies whether the instance is I/O optimized. Valid values:
|
|
867
825
|
*
|
|
868
|
-
* -
|
|
869
|
-
*
|
|
870
|
-
* - optimized: creates an I/O optimized instance.
|
|
826
|
+
* - none: not I/O optimized.
|
|
827
|
+
* - optimized: I/O optimized.
|
|
871
828
|
*
|
|
872
829
|
* @example
|
|
873
830
|
* optimized
|
|
@@ -875,7 +832,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
875
832
|
ioOptimized?: string;
|
|
876
833
|
/**
|
|
877
834
|
* @remarks
|
|
878
|
-
* The number of IPv6 addresses to
|
|
835
|
+
* The number of randomly generated IPv6 addresses to assign to the primary ENI. Valid values: 1 to 10.
|
|
879
836
|
*
|
|
880
837
|
* @example
|
|
881
838
|
* 1
|
|
@@ -883,11 +840,10 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
883
840
|
ipv6AddressCount?: number;
|
|
884
841
|
/**
|
|
885
842
|
* @remarks
|
|
886
|
-
* The name of the key pair.
|
|
887
|
-
*
|
|
888
|
-
* - For Windows instances, this parameter is ignored The `Password` parameter takes effect even if the KeyPairName parameter is specified.
|
|
843
|
+
* The name of the key pair.
|
|
889
844
|
*
|
|
890
|
-
* -
|
|
845
|
+
* - For Windows instances, this parameter is ignored. Even if you specify this parameter, only the `Password` content is used.
|
|
846
|
+
* - For Linux instances, password-based logon is disabled during initialization.
|
|
891
847
|
*
|
|
892
848
|
* @example
|
|
893
849
|
* testKeyPairName
|
|
@@ -895,7 +851,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
895
851
|
keyPairName?: string;
|
|
896
852
|
/**
|
|
897
853
|
* @remarks
|
|
898
|
-
* The name of the launch template. The name must be 2 to 128 characters in length.
|
|
854
|
+
* 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 (-).
|
|
899
855
|
*
|
|
900
856
|
* This parameter is required.
|
|
901
857
|
*
|
|
@@ -905,16 +861,15 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
905
861
|
launchTemplateName?: string;
|
|
906
862
|
/**
|
|
907
863
|
* @remarks
|
|
908
|
-
* The
|
|
864
|
+
* The network interface controller (NIC) information.
|
|
909
865
|
*/
|
|
910
866
|
networkInterface?: CreateLaunchTemplateRequestNetworkInterface[];
|
|
911
867
|
/**
|
|
912
868
|
* @remarks
|
|
913
869
|
* The network type of the instance. Valid values:
|
|
914
870
|
*
|
|
915
|
-
* - classic: classic network
|
|
916
|
-
*
|
|
917
|
-
* - vpc: VPC
|
|
871
|
+
* - classic: classic network. This feature has been retired. For more information, see [Retirement notice](https://help.aliyun.com/document_detail/2833134.html).
|
|
872
|
+
* - vpc: VPC.
|
|
918
873
|
*
|
|
919
874
|
* @example
|
|
920
875
|
* vpc
|
|
@@ -924,9 +879,9 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
924
879
|
ownerId?: number;
|
|
925
880
|
/**
|
|
926
881
|
* @remarks
|
|
927
|
-
* Specifies whether to use the preset
|
|
882
|
+
* Specifies whether to use the password preset in the image.
|
|
928
883
|
*
|
|
929
|
-
* >
|
|
884
|
+
* > When you use this parameter, the Password parameter must be empty. Make sure that the image you use has a password configured.
|
|
930
885
|
*
|
|
931
886
|
* @example
|
|
932
887
|
* false
|
|
@@ -934,7 +889,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
934
889
|
passwordInherit?: boolean;
|
|
935
890
|
/**
|
|
936
891
|
* @remarks
|
|
937
|
-
* The subscription duration of the
|
|
892
|
+
* 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.
|
|
938
893
|
*
|
|
939
894
|
* @example
|
|
940
895
|
* 1
|
|
@@ -942,9 +897,15 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
942
897
|
period?: number;
|
|
943
898
|
/**
|
|
944
899
|
* @remarks
|
|
945
|
-
* The unit of the subscription
|
|
900
|
+
* The unit of the subscription billable methods duration. Valid values:
|
|
901
|
+
*
|
|
902
|
+
* <props="china">
|
|
903
|
+
* - Week.
|
|
904
|
+
* - Month (default).
|
|
905
|
+
*
|
|
946
906
|
*
|
|
947
|
-
*
|
|
907
|
+
*
|
|
908
|
+
* <props="intl">Month (default).
|
|
948
909
|
*
|
|
949
910
|
* @example
|
|
950
911
|
* Month
|
|
@@ -952,9 +913,9 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
952
913
|
periodUnit?: string;
|
|
953
914
|
/**
|
|
954
915
|
* @remarks
|
|
955
|
-
* The private IP address
|
|
916
|
+
* The private IP address of the instance.
|
|
956
917
|
*
|
|
957
|
-
*
|
|
918
|
+
* 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`).
|
|
958
919
|
*
|
|
959
920
|
* @example
|
|
960
921
|
* ``10.1.**.**``
|
|
@@ -962,7 +923,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
962
923
|
privateIpAddress?: string;
|
|
963
924
|
/**
|
|
964
925
|
* @remarks
|
|
965
|
-
* The name of the instance
|
|
926
|
+
* 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.
|
|
966
927
|
*
|
|
967
928
|
* @example
|
|
968
929
|
* testRamRoleName
|
|
@@ -970,7 +931,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
970
931
|
ramRoleName?: string;
|
|
971
932
|
/**
|
|
972
933
|
* @remarks
|
|
973
|
-
* The
|
|
934
|
+
* The region ID. You can call [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) to query the most recent region list.
|
|
974
935
|
*
|
|
975
936
|
* This parameter is required.
|
|
976
937
|
*
|
|
@@ -980,7 +941,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
980
941
|
regionId?: string;
|
|
981
942
|
/**
|
|
982
943
|
* @remarks
|
|
983
|
-
* The ID of the resource group to which
|
|
944
|
+
* The ID of the resource group to which the instance, block storage, and elastic network interface controller (NIC) belong.
|
|
984
945
|
*
|
|
985
946
|
* @example
|
|
986
947
|
* rg-bp67acfmxazb4p****
|
|
@@ -992,9 +953,8 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
992
953
|
* @remarks
|
|
993
954
|
* Specifies whether to enable security hardening for the operating system. Valid values:
|
|
994
955
|
*
|
|
995
|
-
* -
|
|
996
|
-
*
|
|
997
|
-
* - Deactive: does not enable security hardening. This value is applicable to all images.
|
|
956
|
+
* - Active: enables security hardening. This value is applicable only to public images.
|
|
957
|
+
* - Deactive: does not enable security hardening. This value is applicable to all image types.
|
|
998
958
|
*
|
|
999
959
|
* @example
|
|
1000
960
|
* Deactive
|
|
@@ -1002,9 +962,9 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1002
962
|
securityEnhancementStrategy?: string;
|
|
1003
963
|
/**
|
|
1004
964
|
* @remarks
|
|
1005
|
-
* The ID of the security group to which
|
|
965
|
+
* 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.
|
|
1006
966
|
*
|
|
1007
|
-
* > You cannot specify both
|
|
967
|
+
* > You cannot specify both `SecurityGroupId` and `SecurityGroupIds.N`.
|
|
1008
968
|
*
|
|
1009
969
|
* @example
|
|
1010
970
|
* sg-bp15ed6xe1yxeycg****
|
|
@@ -1012,9 +972,9 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1012
972
|
securityGroupId?: string;
|
|
1013
973
|
/**
|
|
1014
974
|
* @remarks
|
|
1015
|
-
* The IDs of
|
|
975
|
+
* 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).
|
|
1016
976
|
*
|
|
1017
|
-
* > You cannot specify both
|
|
977
|
+
* > You cannot specify both `SecurityGroupId` and `SecurityGroupIds.N`.
|
|
1018
978
|
*
|
|
1019
979
|
* @example
|
|
1020
980
|
* sg-bp15ed6xe1yxeycg7****
|
|
@@ -1022,20 +982,18 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1022
982
|
securityGroupIds?: string[];
|
|
1023
983
|
/**
|
|
1024
984
|
* @remarks
|
|
1025
|
-
*
|
|
985
|
+
* The security options.
|
|
1026
986
|
*/
|
|
1027
987
|
securityOptions?: CreateLaunchTemplateRequestSecurityOptions;
|
|
1028
988
|
/**
|
|
1029
989
|
* @remarks
|
|
1030
990
|
* The protection period of the spot instance. Unit: hours. Default value: 1. Valid values:
|
|
991
|
+
* - 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.
|
|
992
|
+
* - 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.
|
|
1031
993
|
*
|
|
1032
|
-
*
|
|
994
|
+
* 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.
|
|
1033
995
|
*
|
|
1034
|
-
*
|
|
1035
|
-
*
|
|
1036
|
-
* 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.
|
|
1037
|
-
*
|
|
1038
|
-
* > This parameter takes effect only if SpotStrategy is set to SpotWithPriceLimit or SpotAsPriceGo.
|
|
996
|
+
* > This parameter takes effect only when SpotStrategy is set to SpotWithPriceLimit or SpotAsPriceGo.
|
|
1039
997
|
*
|
|
1040
998
|
* @example
|
|
1041
999
|
* 1
|
|
@@ -1043,7 +1001,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1043
1001
|
spotDuration?: number;
|
|
1044
1002
|
/**
|
|
1045
1003
|
* @remarks
|
|
1046
|
-
* The maximum hourly price of the instance.
|
|
1004
|
+
* The maximum hourly price of the instance. This parameter supports up to three decimal places and takes effect when `SpotStrategy` is set to `SpotWithPriceLimit`.
|
|
1047
1005
|
*
|
|
1048
1006
|
* @example
|
|
1049
1007
|
* 0.97
|
|
@@ -1051,13 +1009,11 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1051
1009
|
spotPriceLimit?: number;
|
|
1052
1010
|
/**
|
|
1053
1011
|
* @remarks
|
|
1054
|
-
* The
|
|
1055
|
-
*
|
|
1056
|
-
* - NoSpot: The instance is a regular pay-as-you-go instance.
|
|
1012
|
+
* The preemption policy for the pay-as-you-go instance. This parameter takes effect when `InstanceChargeType` is set to `PostPaid`. Valid values:
|
|
1057
1013
|
*
|
|
1058
|
-
* -
|
|
1059
|
-
*
|
|
1060
|
-
* -
|
|
1014
|
+
* - NoSpot: The instance is a regular pay-as-you-go instance.
|
|
1015
|
+
* - SpotWithPriceLimit: The instance is a spot instance with a user-defined maximum hourly price.
|
|
1016
|
+
* - SpotAsPriceGo: The instance is a spot instance for which the market price at the time of purchase is automatically used as the bid price.
|
|
1061
1017
|
*
|
|
1062
1018
|
* @example
|
|
1063
1019
|
* NoSpot
|
|
@@ -1065,11 +1021,12 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1065
1021
|
spotStrategy?: string;
|
|
1066
1022
|
/**
|
|
1067
1023
|
* @remarks
|
|
1068
|
-
* The tags
|
|
1069
|
-
*
|
|
1070
|
-
* **Scenario**
|
|
1024
|
+
* The tags for instances, disks, and primary ENIs created from this template version.
|
|
1071
1025
|
*
|
|
1072
|
-
*
|
|
1026
|
+
* <details>
|
|
1027
|
+
* <summary>Scenarios</summary>
|
|
1028
|
+
* 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.
|
|
1029
|
+
* </details>
|
|
1073
1030
|
*/
|
|
1074
1031
|
tag?: CreateLaunchTemplateRequestTag[];
|
|
1075
1032
|
/**
|
|
@@ -1082,14 +1039,14 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1082
1039
|
templateResourceGroupId?: string;
|
|
1083
1040
|
/**
|
|
1084
1041
|
* @remarks
|
|
1085
|
-
* The
|
|
1042
|
+
* The tag key-value pairs of the launch template itself.
|
|
1086
1043
|
*
|
|
1087
|
-
* >
|
|
1044
|
+
* > 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.
|
|
1088
1045
|
*/
|
|
1089
1046
|
templateTag?: CreateLaunchTemplateRequestTemplateTag[];
|
|
1090
1047
|
/**
|
|
1091
1048
|
* @remarks
|
|
1092
|
-
* The user data
|
|
1049
|
+
* The instance user data. The data must be Base64-encoded. The maximum size of the raw data is 32 KB.
|
|
1093
1050
|
*
|
|
1094
1051
|
* @example
|
|
1095
1052
|
* ZWNobyBoZWxsbyBlY3Mh
|
|
@@ -1097,7 +1054,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1097
1054
|
userData?: string;
|
|
1098
1055
|
/**
|
|
1099
1056
|
* @remarks
|
|
1100
|
-
* The
|
|
1057
|
+
* The vSwitch ID. This parameter is required when you create a VPC-connected instance.
|
|
1101
1058
|
*
|
|
1102
1059
|
* @example
|
|
1103
1060
|
* vsw-bp1s5fnvk4gn2tws0****
|
|
@@ -1121,7 +1078,7 @@ export declare class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1121
1078
|
vpcId?: string;
|
|
1122
1079
|
/**
|
|
1123
1080
|
* @remarks
|
|
1124
|
-
* The ID of the
|
|
1081
|
+
* The zone ID of the instance.
|
|
1125
1082
|
*
|
|
1126
1083
|
* @example
|
|
1127
1084
|
* cn-hangzhou-g
|