@alicloud/ecs20140526 7.0.16 → 7.0.17
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 +28 -34
- package/dist/client.js +28 -108
- package/dist/client.js.map +1 -1
- package/dist/models/AllocateDedicatedHostsRequest.d.ts +2 -2
- package/dist/models/DescribeDedicatedHostsRequest.d.ts +15 -15
- package/dist/models/DescribeDedicatedHostsResponseBody.d.ts +2 -2
- package/dist/models/DescribeDeploymentSetsResponseBody.d.ts +1 -0
- package/dist/models/DescribeDeploymentSetsResponseBody.js +2 -0
- package/dist/models/DescribeDeploymentSetsResponseBody.js.map +1 -1
- package/dist/models/DescribeDisksRequest.d.ts +0 -2
- package/dist/models/DescribeDisksRequest.js.map +1 -1
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.d.ts +2 -0
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.js.map +1 -1
- package/dist/models/DescribeInstanceTypesResponseBody.d.ts +34 -0
- package/dist/models/DescribeInstanceTypesResponseBody.js.map +1 -1
- package/dist/models/DescribeLaunchTemplatesRequest.d.ts +5 -5
- package/dist/models/DescribeLaunchTemplatesResponseBody.d.ts +6 -6
- package/dist/models/DescribeTerminalSessionsResponseBody.d.ts +7 -2
- package/dist/models/DescribeTerminalSessionsResponseBody.js.map +1 -1
- package/dist/models/ImportImageRequest.d.ts +8 -7
- package/dist/models/ImportImageRequest.js.map +1 -1
- package/dist/models/ModifyElasticityAssuranceRequest.d.ts +10 -10
- package/dist/models/RunInstancesRequest.d.ts +33 -18
- package/dist/models/RunInstancesRequest.js.map +1 -1
- package/dist/models/RunInstancesResponseBody.d.ts +1 -1
- package/package.json +1 -1
- package/src/client.ts +28 -108
- package/src/models/AllocateDedicatedHostsRequest.ts +2 -2
- package/src/models/DescribeDedicatedHostsRequest.ts +15 -15
- package/src/models/DescribeDedicatedHostsResponseBody.ts +2 -2
- package/src/models/DescribeDeploymentSetsResponseBody.ts +3 -0
- package/src/models/DescribeDisksRequest.ts +0 -2
- package/src/models/DescribeInstanceHistoryEventsResponseBody.ts +2 -0
- package/src/models/DescribeInstanceTypesResponseBody.ts +34 -0
- package/src/models/DescribeLaunchTemplatesRequest.ts +5 -5
- package/src/models/DescribeLaunchTemplatesResponseBody.ts +6 -6
- package/src/models/DescribeTerminalSessionsResponseBody.ts +7 -2
- package/src/models/ImportImageRequest.ts +8 -7
- package/src/models/ModifyElasticityAssuranceRequest.ts +10 -10
- package/src/models/RunInstancesRequest.ts +33 -18
- package/src/models/RunInstancesResponseBody.ts +1 -1
|
@@ -90,9 +90,9 @@ export class AllocateDedicatedHostsRequest extends $dara.Model {
|
|
|
90
90
|
networkAttributes?: AllocateDedicatedHostsRequestNetworkAttributes;
|
|
91
91
|
/**
|
|
92
92
|
* @remarks
|
|
93
|
-
* The policy
|
|
93
|
+
* The policy for migrating the instances deployed on the dedicated host when the dedicated host fails or needs to be repaired online. Valid values:
|
|
94
94
|
*
|
|
95
|
-
* * Migrate: The instances are migrated to another physical
|
|
95
|
+
* * Migrate: The instances are migrated to another physical machine and then restarted.
|
|
96
96
|
*
|
|
97
97
|
* If cloud disks are attached to the dedicated host, the default value is Migrate.
|
|
98
98
|
*
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DescribeDedicatedHostsRequestTag extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The key of tag N of the
|
|
8
|
+
* The key of tag N of the DDH. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `acs:` or `aliyun`.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* TestKey
|
|
@@ -13,7 +13,7 @@ export class DescribeDedicatedHostsRequestTag extends $dara.Model {
|
|
|
13
13
|
key?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The value of tag N of the
|
|
16
|
+
* The value of tag N of the DDH. You can specify empty strings as tag values. The tag value can be up to 128 characters in length and cannot contain `http://` or `https://`.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* TestValue
|
|
@@ -53,7 +53,7 @@ export class DescribeDedicatedHostsRequest extends $dara.Model {
|
|
|
53
53
|
dedicatedHostClusterId?: string;
|
|
54
54
|
/**
|
|
55
55
|
* @remarks
|
|
56
|
-
* The
|
|
56
|
+
* The list of DDH IDs. You can specify up to 100 deployment set IDs in each request. Separate the deployment set IDs with commas (,).
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* ["dh-bp165p6xk2tlw61e****", "dh-bp1f9vxmno7emy96****"]
|
|
@@ -69,7 +69,7 @@ export class DescribeDedicatedHostsRequest extends $dara.Model {
|
|
|
69
69
|
dedicatedHostName?: string;
|
|
70
70
|
/**
|
|
71
71
|
* @remarks
|
|
72
|
-
* The
|
|
72
|
+
* The type of the DDH. You can call the [DescribeDedicatedHostTypes](https://help.aliyun.com/document_detail/134240.html) operation to query the most recent list of DDH types.
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
75
|
* ddh.g5
|
|
@@ -110,9 +110,7 @@ export class DescribeDedicatedHostsRequest extends $dara.Model {
|
|
|
110
110
|
ownerId?: number;
|
|
111
111
|
/**
|
|
112
112
|
* @remarks
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* Default value: 1.
|
|
113
|
+
* > This parameter will be removed in the future. You can use NextToken and MaxResults for a paged query.
|
|
116
114
|
*
|
|
117
115
|
* @example
|
|
118
116
|
* 1
|
|
@@ -120,11 +118,7 @@ export class DescribeDedicatedHostsRequest extends $dara.Model {
|
|
|
120
118
|
pageNumber?: number;
|
|
121
119
|
/**
|
|
122
120
|
* @remarks
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* Valid values: 1 to 100.
|
|
126
|
-
*
|
|
127
|
-
* Default value: 10.
|
|
121
|
+
* > This parameter will be removed in the future. You can use NextToken and MaxResults for a paged query.
|
|
128
122
|
*
|
|
129
123
|
* @example
|
|
130
124
|
* 10
|
|
@@ -155,11 +149,17 @@ export class DescribeDedicatedHostsRequest extends $dara.Model {
|
|
|
155
149
|
resourceOwnerId?: number;
|
|
156
150
|
/**
|
|
157
151
|
* @remarks
|
|
158
|
-
* Specifies whether to display socket information. Valid values:
|
|
152
|
+
* Specifies whether to display socket information. You can view the remaining resources (vCPUs, memory usage, remaining resources, and total resources) based on the capacity information of the socket dimension. Then you can determine whether ECS instances of the corresponding specifications can be created. Valid values:
|
|
159
153
|
*
|
|
160
|
-
* * true
|
|
154
|
+
* * true Only some DDHs support the information about resources in the socket dimension. For more information, see [View and export information about DDHs](https://help.aliyun.com/document_detail/68989.html).
|
|
161
155
|
* * false
|
|
162
156
|
*
|
|
157
|
+
* > Each DDH generally has two CPUs, and each CPU corresponds to Socket 0 and Socket 1. To maximize the performance of an ECS instance on a DDH, ECS instances are not created across sockets.
|
|
158
|
+
*
|
|
159
|
+
* * If one socket has available computing resources for creating the ECS instance, creation succeeds.
|
|
160
|
+
*
|
|
161
|
+
* * If not, creation fails even if the combined available resources of both sockets are sufficient. Although the remaining resources of the two sockets on the DDH are larger than the ECS instance type, the ECS instance cannot be created.
|
|
162
|
+
*
|
|
163
163
|
* @example
|
|
164
164
|
* true
|
|
165
165
|
*/
|
|
@@ -182,7 +182,7 @@ export class DescribeDedicatedHostsRequest extends $dara.Model {
|
|
|
182
182
|
status?: string;
|
|
183
183
|
/**
|
|
184
184
|
* @remarks
|
|
185
|
-
* The
|
|
185
|
+
* The list of tags. The list length ranges from 0 to 20.
|
|
186
186
|
*/
|
|
187
187
|
tag?: DescribeDedicatedHostsRequestTag[];
|
|
188
188
|
/**
|
|
@@ -717,7 +717,7 @@ export class DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost exten
|
|
|
717
717
|
cores?: number;
|
|
718
718
|
/**
|
|
719
719
|
* @remarks
|
|
720
|
-
* The CPU overcommit ratio.Valid values: 1 to 5.
|
|
720
|
+
* The CPU overcommit ratio. Valid values: 1 to 5.
|
|
721
721
|
*
|
|
722
722
|
* @example
|
|
723
723
|
* 1
|
|
@@ -1050,7 +1050,7 @@ export class DescribeDedicatedHostsResponseBodyDedicatedHosts extends $dara.Mode
|
|
|
1050
1050
|
export class DescribeDedicatedHostsResponseBody extends $dara.Model {
|
|
1051
1051
|
/**
|
|
1052
1052
|
* @remarks
|
|
1053
|
-
* Details about the
|
|
1053
|
+
* Details about the DDH.
|
|
1054
1054
|
*/
|
|
1055
1055
|
dedicatedHosts?: DescribeDedicatedHostsResponseBodyDedicatedHosts;
|
|
1056
1056
|
/**
|
|
@@ -105,6 +105,7 @@ export class DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetInstan
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
export class DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet extends $dara.Model {
|
|
108
|
+
accountId?: number;
|
|
108
109
|
/**
|
|
109
110
|
* @remarks
|
|
110
111
|
* Details of the capacities of the deployment set. This parameter is valid only when the deployment set contains ECS instances. The value contains information about the capacities of the deployment set in different zones.
|
|
@@ -199,6 +200,7 @@ export class DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet exten
|
|
|
199
200
|
strategy?: string;
|
|
200
201
|
static names(): { [key: string]: string } {
|
|
201
202
|
return {
|
|
203
|
+
accountId: 'AccountId',
|
|
202
204
|
capacities: 'Capacities',
|
|
203
205
|
creationTime: 'CreationTime',
|
|
204
206
|
deploymentSetDescription: 'DeploymentSetDescription',
|
|
@@ -216,6 +218,7 @@ export class DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet exten
|
|
|
216
218
|
|
|
217
219
|
static types(): { [key: string]: any } {
|
|
218
220
|
return {
|
|
221
|
+
accountId: 'number',
|
|
219
222
|
capacities: DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacities,
|
|
220
223
|
creationTime: 'string',
|
|
221
224
|
deploymentSetDescription: 'string',
|
|
@@ -297,8 +297,6 @@ export class DescribeDisksRequest extends $dara.Model {
|
|
|
297
297
|
*
|
|
298
298
|
* * financial: The disk is locked due to overdue payments.
|
|
299
299
|
* * security: The disk is locked due to security reasons.
|
|
300
|
-
* * recycling: The spot instance is locked and pending release.
|
|
301
|
-
* * dedicatedhostfinancial: The instance is locked due to overdue payments for the dedicated host.
|
|
302
300
|
*
|
|
303
301
|
* @example
|
|
304
302
|
* recycling
|
|
@@ -562,6 +562,8 @@ export class DescribeInstanceHistoryEventsResponseBody extends $dara.Model {
|
|
|
562
562
|
* @remarks
|
|
563
563
|
* A pagination token. It can be used in the next request to retrieve a new page of results.
|
|
564
564
|
*
|
|
565
|
+
* > If the NextToken parameter is not returned when you use the MaxResults and NextToken parameters to perform a paged query, no more data is returned.
|
|
566
|
+
*
|
|
565
567
|
* @example
|
|
566
568
|
* f1c9fa9de5752***
|
|
567
569
|
*/
|
|
@@ -3,7 +3,21 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeAttributesAttribute extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The name of the attribute.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* VirtualIntelSpeedSelectTechnologySupport
|
|
12
|
+
*/
|
|
6
13
|
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The attribute value.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 1
|
|
20
|
+
*/
|
|
7
21
|
value?: string;
|
|
8
22
|
static names(): { [key: string]: string } {
|
|
9
23
|
return {
|
|
@@ -55,6 +69,16 @@ export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeAttribute
|
|
|
55
69
|
}
|
|
56
70
|
|
|
57
71
|
export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeClock extends $dara.Model {
|
|
72
|
+
/**
|
|
73
|
+
* @remarks
|
|
74
|
+
* Whether PTP is supported. Possible values:
|
|
75
|
+
*
|
|
76
|
+
* * supported
|
|
77
|
+
* * unsupported
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* unsupported
|
|
81
|
+
*/
|
|
58
82
|
ptpSupport?: string;
|
|
59
83
|
static names(): { [key: string]: string } {
|
|
60
84
|
return {
|
|
@@ -308,6 +332,10 @@ export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupported
|
|
|
308
332
|
}
|
|
309
333
|
|
|
310
334
|
export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceType extends $dara.Model {
|
|
335
|
+
/**
|
|
336
|
+
* @remarks
|
|
337
|
+
* The list of specification attributes.
|
|
338
|
+
*/
|
|
311
339
|
attributes?: DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeAttributes;
|
|
312
340
|
/**
|
|
313
341
|
* @remarks
|
|
@@ -317,6 +345,10 @@ export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceType extends
|
|
|
317
345
|
* 4
|
|
318
346
|
*/
|
|
319
347
|
baselineCredit?: number;
|
|
348
|
+
/**
|
|
349
|
+
* @remarks
|
|
350
|
+
* The clock supported by the specification.
|
|
351
|
+
*/
|
|
320
352
|
clock?: DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeClock;
|
|
321
353
|
/**
|
|
322
354
|
* @remarks
|
|
@@ -613,6 +645,8 @@ export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceType extends
|
|
|
613
645
|
* * true
|
|
614
646
|
* * false
|
|
615
647
|
*
|
|
648
|
+
* > This parameter is in invitational preview and is not publicly available.
|
|
649
|
+
*
|
|
616
650
|
* @example
|
|
617
651
|
* true
|
|
618
652
|
*/
|
|
@@ -71,7 +71,7 @@ export class DescribeLaunchTemplatesRequest extends $dara.Model {
|
|
|
71
71
|
ownerId?: number;
|
|
72
72
|
/**
|
|
73
73
|
* @remarks
|
|
74
|
-
* The number
|
|
74
|
+
* The page number. Page starts from page 1.
|
|
75
75
|
*
|
|
76
76
|
* Default value: 1.
|
|
77
77
|
*
|
|
@@ -81,7 +81,7 @@ export class DescribeLaunchTemplatesRequest extends $dara.Model {
|
|
|
81
81
|
pageNumber?: number;
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
* The number of entries
|
|
84
|
+
* The number of entries per page.
|
|
85
85
|
*
|
|
86
86
|
* Default value: 10.
|
|
87
87
|
*
|
|
@@ -91,7 +91,7 @@ export class DescribeLaunchTemplatesRequest extends $dara.Model {
|
|
|
91
91
|
pageSize?: number;
|
|
92
92
|
/**
|
|
93
93
|
* @remarks
|
|
94
|
-
* The ID of the
|
|
94
|
+
* The region ID of the launch template. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) operation to query the most recent region list.
|
|
95
95
|
*
|
|
96
96
|
* This parameter is required.
|
|
97
97
|
*
|
|
@@ -105,7 +105,7 @@ export class DescribeLaunchTemplatesRequest extends $dara.Model {
|
|
|
105
105
|
* @remarks
|
|
106
106
|
* The ID of the resource group to which the launch template belongs. If you specify this parameter to query resources, up to 1,000 resources that belong to the specified resource group can be returned.
|
|
107
107
|
*
|
|
108
|
-
* >
|
|
108
|
+
* > The default resource group is not supported.
|
|
109
109
|
*
|
|
110
110
|
* @example
|
|
111
111
|
* rg-acfmxazb4p****
|
|
@@ -115,7 +115,7 @@ export class DescribeLaunchTemplatesRequest extends $dara.Model {
|
|
|
115
115
|
* @remarks
|
|
116
116
|
* The tags of the launch template.
|
|
117
117
|
*
|
|
118
|
-
* > You can only call API operations to add tags to and query the tags of a launch template. You cannot add tags to or view the tags of a launch template in the
|
|
118
|
+
* > You can only call API operations to add tags to and query the tags of a launch template. You cannot add tags to or view the tags of a launch template in the ECS console.
|
|
119
119
|
*/
|
|
120
120
|
templateTag?: DescribeLaunchTemplatesRequestTemplateTag[];
|
|
121
121
|
static names(): { [key: string]: string } {
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTagsTag extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The tag
|
|
8
|
+
* The tag value of the launch template.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* TestKey
|
|
@@ -13,7 +13,7 @@ export class DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplate
|
|
|
13
13
|
tagKey?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The tag
|
|
16
|
+
* The tag key of the launch template.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* TestValue
|
|
@@ -113,7 +113,7 @@ export class DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplate
|
|
|
113
113
|
launchTemplateId?: string;
|
|
114
114
|
/**
|
|
115
115
|
* @remarks
|
|
116
|
-
* The name of the template.
|
|
116
|
+
* The name of the launch template.
|
|
117
117
|
*
|
|
118
118
|
* @example
|
|
119
119
|
* wd-152630748****
|
|
@@ -218,7 +218,7 @@ export class DescribeLaunchTemplatesResponseBody extends $dara.Model {
|
|
|
218
218
|
launchTemplateSets?: DescribeLaunchTemplatesResponseBodyLaunchTemplateSets;
|
|
219
219
|
/**
|
|
220
220
|
* @remarks
|
|
221
|
-
* The page number
|
|
221
|
+
* The page number.
|
|
222
222
|
*
|
|
223
223
|
* @example
|
|
224
224
|
* 1
|
|
@@ -226,7 +226,7 @@ export class DescribeLaunchTemplatesResponseBody extends $dara.Model {
|
|
|
226
226
|
pageNumber?: number;
|
|
227
227
|
/**
|
|
228
228
|
* @remarks
|
|
229
|
-
* The number of entries
|
|
229
|
+
* The number of entries per page.
|
|
230
230
|
*
|
|
231
231
|
* @example
|
|
232
232
|
* 10
|
|
@@ -234,7 +234,7 @@ export class DescribeLaunchTemplatesResponseBody extends $dara.Model {
|
|
|
234
234
|
pageSize?: number;
|
|
235
235
|
/**
|
|
236
236
|
* @remarks
|
|
237
|
-
* The ID
|
|
237
|
+
* The request ID.
|
|
238
238
|
*
|
|
239
239
|
* @example
|
|
240
240
|
* 04F0F334-1335-436C-A1D7-6C044FE12CBA
|
|
@@ -28,6 +28,13 @@ export class DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConne
|
|
|
28
28
|
* 2024-01-19T09:16:46Z
|
|
29
29
|
*/
|
|
30
30
|
endTime?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* Cause of the connection failure. This parameter is returned only when the Status parameter is Failed.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* The Session Manager is closed normally.
|
|
37
|
+
*/
|
|
31
38
|
failedDetail?: string;
|
|
32
39
|
/**
|
|
33
40
|
* @remarks
|
|
@@ -51,8 +58,6 @@ export class DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConne
|
|
|
51
58
|
*
|
|
52
59
|
* * Connecting: The connection is being established.
|
|
53
60
|
* * Connected: The connection is established.
|
|
54
|
-
* * Disconnected: The connection is disconnected.
|
|
55
|
-
* * Terminating: The session is being terminated.
|
|
56
61
|
* * Terminated: The session is terminated.
|
|
57
62
|
* * Failed: The connection failed.
|
|
58
63
|
*
|
|
@@ -32,7 +32,7 @@ export class ImportImageRequestDiskDeviceMapping extends $dara.Model {
|
|
|
32
32
|
diskImSize?: number;
|
|
33
33
|
/**
|
|
34
34
|
* @remarks
|
|
35
|
-
* The size of disk N in the custom image after the image is imported.
|
|
35
|
+
* The size of disk N in the custom image after the source image is imported.
|
|
36
36
|
*
|
|
37
37
|
* You can use this parameter to specify the sizes of the system disk and data disks in the custom image. When you specify the size of the system disk, make sure that the specified size is greater than or equal to the size of the imported image file. Unit: GiB. Valid values:
|
|
38
38
|
*
|
|
@@ -47,13 +47,14 @@ export class ImportImageRequestDiskDeviceMapping extends $dara.Model {
|
|
|
47
47
|
diskImageSize?: number;
|
|
48
48
|
/**
|
|
49
49
|
* @remarks
|
|
50
|
-
* The image
|
|
50
|
+
* The format of the source image. Valid values:
|
|
51
51
|
*
|
|
52
52
|
* * RAW
|
|
53
53
|
* * VHD
|
|
54
54
|
* * QCOW2
|
|
55
|
+
* * VMDK (invitational preview)
|
|
55
56
|
*
|
|
56
|
-
* This parameter is empty by default, which indicates that the system checks the format
|
|
57
|
+
* This parameter is empty by default, which indicates that the system checks the image format and uses the check result as the value of this parameter.
|
|
57
58
|
*
|
|
58
59
|
* @example
|
|
59
60
|
* QCOW2
|
|
@@ -61,9 +62,9 @@ export class ImportImageRequestDiskDeviceMapping extends $dara.Model {
|
|
|
61
62
|
format?: string;
|
|
62
63
|
/**
|
|
63
64
|
* @remarks
|
|
64
|
-
* The OSS bucket where the image file is stored.
|
|
65
|
+
* The Object Storage Service (OSS) bucket where the image file is stored.
|
|
65
66
|
*
|
|
66
|
-
* > Before you import images for the first time, you must use RAM to authorize ECS to access your OSS buckets. If ECS is not authorized to access your OSS buckets, the `NoSetRoletoECSServiceAcount` error code is returned when you call the ImportImage operation. For more information, see
|
|
67
|
+
* > Before you import images for the first time, you must use RAM to authorize ECS to access your OSS buckets. If ECS is not authorized to access your OSS buckets, the `NoSetRoletoECSServiceAcount` error code is returned when you call the ImportImage operation. For more information, see **Usage notes**.
|
|
67
68
|
*
|
|
68
69
|
* @example
|
|
69
70
|
* ecsimageos
|
|
@@ -71,7 +72,7 @@ export class ImportImageRequestDiskDeviceMapping extends $dara.Model {
|
|
|
71
72
|
OSSBucket?: string;
|
|
72
73
|
/**
|
|
73
74
|
* @remarks
|
|
74
|
-
* The name (key) of the object that the
|
|
75
|
+
* The name (key) of the object that the image file is stored as in the OSS bucket.
|
|
75
76
|
*
|
|
76
77
|
* @example
|
|
77
78
|
* CentOS_5.4_32.raw
|
|
@@ -254,7 +255,7 @@ export class ImportImageRequest extends $dara.Model {
|
|
|
254
255
|
detectionStrategy?: string;
|
|
255
256
|
/**
|
|
256
257
|
* @remarks
|
|
257
|
-
*
|
|
258
|
+
* Details about the custom images.
|
|
258
259
|
*/
|
|
259
260
|
diskDeviceMapping?: ImportImageRequestDiskDeviceMapping[];
|
|
260
261
|
/**
|
|
@@ -47,7 +47,7 @@ export class ModifyElasticityAssuranceRequestPrivatePoolOptions extends $dara.Mo
|
|
|
47
47
|
export class ModifyElasticityAssuranceRequestRecurrenceRules extends $dara.Model {
|
|
48
48
|
/**
|
|
49
49
|
* @remarks
|
|
50
|
-
* The end time of the assurance period for the capacity reservation. Specify an on-the-hour point in time.
|
|
50
|
+
* The end time of the assurance period for the capacity reservation of the time-segmented elasticity assurance. Specify an on-the-hour point in time.
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
53
|
* 10
|
|
@@ -61,7 +61,7 @@ export class ModifyElasticityAssuranceRequestRecurrenceRules extends $dara.Model
|
|
|
61
61
|
* * Weekly
|
|
62
62
|
* * Monthly
|
|
63
63
|
*
|
|
64
|
-
* >
|
|
64
|
+
* > If you specify this parameter, you must specify `RecurrenceType` and `RecurrenceValue`.
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* Daily
|
|
@@ -69,13 +69,13 @@ export class ModifyElasticityAssuranceRequestRecurrenceRules extends $dara.Model
|
|
|
69
69
|
recurrenceType?: string;
|
|
70
70
|
/**
|
|
71
71
|
* @remarks
|
|
72
|
-
* The days of the week or month on which the capacity reservation takes effect or the interval, in number of days, at which the capacity reservation takes effect.
|
|
72
|
+
* The days of the week or month on which the capacity reservation of the time-segmented elasticity assurance takes effect or the interval, in number of days, at which the capacity reservation takes effect.
|
|
73
73
|
*
|
|
74
|
-
* * If you set `RecurrenceType` to `Daily`, you can specify only one value
|
|
75
|
-
* * If you set `RecurrenceType` to `Weekly`, you can specify multiple values
|
|
76
|
-
* * If you set `RecurrenceType` to `Monthly`, you can specify two values in the `A-B` format
|
|
74
|
+
* * If you set `RecurrenceType` to `Daily`, you can specify only one value. Valid values: 1 to 31. The value specifies that the capacity reservation takes effect every few days.
|
|
75
|
+
* * If you set `RecurrenceType` to `Weekly`, you can specify multiple values. Separate the values with commas (,). Valid values: 0, 1, 2, 3, 4, 5, and 6, which specify Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively. Example: `1,2`, which specifies that the capacity reservation takes effect on Monday and Tuesday.
|
|
76
|
+
* * If you set `RecurrenceType` to `Monthly`, you can specify two values in the `A-B` format. Valid values of A and B: 1 to 31. B must be greater than or equal to A. Example: `1-5`, which specifies that the capacity reservation takes effect every day from the first day up to the fifth day of each month.
|
|
77
77
|
*
|
|
78
|
-
* >
|
|
78
|
+
* > If this parameter is specified, you must specify `RecurrenceType` and `RecurrenceValue`.
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* 5
|
|
@@ -83,9 +83,9 @@ export class ModifyElasticityAssuranceRequestRecurrenceRules extends $dara.Model
|
|
|
83
83
|
recurrenceValue?: string;
|
|
84
84
|
/**
|
|
85
85
|
* @remarks
|
|
86
|
-
* The start time of the assurance period for the capacity reservation. Specify an on-the-hour point in time.
|
|
86
|
+
* The start time of the assurance period for the capacity reservation of the time-segmented elasticity assurance. Specify an on-the-hour point in time.
|
|
87
87
|
*
|
|
88
|
-
* > You must specify both `StartHour` and `EndHour`. EndHour must be at least
|
|
88
|
+
* > You must specify both `StartHour` and `EndHour`. The EndHour value must be at least 4 hours later than the StartHour value.
|
|
89
89
|
*
|
|
90
90
|
* @example
|
|
91
91
|
* 4
|
|
@@ -148,7 +148,7 @@ export class ModifyElasticityAssuranceRequest extends $dara.Model {
|
|
|
148
148
|
ownerId?: number;
|
|
149
149
|
/**
|
|
150
150
|
* @remarks
|
|
151
|
-
* The assurance schedules
|
|
151
|
+
* The assurance schedules of the time-segmented elasticity assurance.
|
|
152
152
|
*
|
|
153
153
|
* > Time-segmented elasticity assurances are available only in specific regions and to specific users. To use time-segmented elasticity assurances, [submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket-intl).
|
|
154
154
|
*/
|
|
@@ -5,9 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class RunInstancesRequestCpuOptions extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The number of CPU cores.
|
|
9
|
-
*
|
|
10
|
-
* For information about the default value, see [Customize CPU options](https://help.aliyun.com/document_detail/145895.html).
|
|
8
|
+
* The number of CPU cores.
|
|
11
9
|
*
|
|
12
10
|
* @example
|
|
13
11
|
* 2
|
|
@@ -791,8 +789,8 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
791
789
|
* @remarks
|
|
792
790
|
* Specifies whether to release ENI N when the associated instance is released. Valid values:
|
|
793
791
|
*
|
|
794
|
-
* * true
|
|
795
|
-
* * false
|
|
792
|
+
* * true: releases the ENI when the associated instance is released.
|
|
793
|
+
* * false: retains the ENI when the associated instance is released.
|
|
796
794
|
*
|
|
797
795
|
* Default value: true.
|
|
798
796
|
*
|
|
@@ -818,11 +816,11 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
818
816
|
description?: string;
|
|
819
817
|
/**
|
|
820
818
|
* @remarks
|
|
821
|
-
* The type of ENI N. The value of N cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html) or call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/2679699.html) operation.
|
|
819
|
+
* The type of ENI N. The value of the first N in this parameter cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html) or call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/2679699.html) operation.
|
|
822
820
|
*
|
|
823
821
|
* Valid values:
|
|
824
822
|
*
|
|
825
|
-
* * Primary
|
|
823
|
+
* * Primary: the primary ENI
|
|
826
824
|
* * Secondary
|
|
827
825
|
*
|
|
828
826
|
* Default value: Secondary.
|
|
@@ -862,7 +860,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
862
860
|
*
|
|
863
861
|
* Take note of the following items:
|
|
864
862
|
*
|
|
865
|
-
* * You can specify
|
|
863
|
+
* * You can specify NIC indexes only for instances of specific instance types.
|
|
866
864
|
* * If you set NetworkInterface.N.InstanceType to Primary, you can set NetworkInterface.N.NetworkCardIndex only to 0 for instance types that support network cards.
|
|
867
865
|
* * If you set NetworkInterface.N.InstanceType to Secondary or leave NetworkInterface.N.InstanceType empty, you can specify NetworkInterface.N.NetworkCardIndex based on instance types if the instance types support network cards. For more information, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html).
|
|
868
866
|
*
|
|
@@ -872,7 +870,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
872
870
|
networkCardIndex?: number;
|
|
873
871
|
/**
|
|
874
872
|
* @remarks
|
|
875
|
-
* The ID of ENI
|
|
873
|
+
* The ID of the ENI to attach to the instance.
|
|
876
874
|
*
|
|
877
875
|
* If you specify this parameter, you must set `Amount` to 1.
|
|
878
876
|
*
|
|
@@ -941,7 +939,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
941
939
|
*
|
|
942
940
|
* * The value of N cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html) or call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/2679699.html) operation.
|
|
943
941
|
* * The value of this parameter cannot exceed the maximum number of queues allowed per ENI.
|
|
944
|
-
* * The total number of queues for all ENIs
|
|
942
|
+
* * The total number of queues for all ENIs of an instance cannot exceed the queue quota for the instance type. To query the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/25620.html) operation and check the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` values in the response.
|
|
945
943
|
* * If you specify this parameter and set `NetworkInterface.N.InstanceType` to `Primary`, you cannot specify `NetworkInterfaceQueueNumber`.
|
|
946
944
|
*
|
|
947
945
|
* @example
|
|
@@ -984,7 +982,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
984
982
|
*
|
|
985
983
|
* * The value of N cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html) or call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/2679699.html) operation.
|
|
986
984
|
* * If `NetworkInterface.N.InstanceType` is set to `Primary`, you must specify this parameter. In this case, this parameter is equivalent to `SecurityGroupId` and you cannot specify `SecurityGroupId`, `SecurityGroupIds.N`, or `NetworkInterface.N.SecurityGroupIds.N`.
|
|
987
|
-
* * If `NetworkInterface.N.InstanceType`
|
|
985
|
+
* * If you set `NetworkInterface.N.InstanceType` to `Secondary` or leave NetworkInterface.N.InstanceType empty, you do not need to specify this parameter. The default value is the ID of the security group to which to assign the instance.
|
|
988
986
|
*
|
|
989
987
|
* @example
|
|
990
988
|
* sg-bp67acfmxazb4p****
|
|
@@ -995,7 +993,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
995
993
|
* The IDs of security groups to which to assign ENI N.
|
|
996
994
|
*
|
|
997
995
|
* * The value of the first N in this parameter cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html) or call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/2679699.html) operation.
|
|
998
|
-
* * The second N in this parameter indicates that one or more security group IDs can be specified. The valid values of the second N vary based on the maximum number of security groups to which an instance can belong. For more information, see
|
|
996
|
+
* * The second N in this parameter indicates that one or more security group IDs can be specified. The valid values of the second N vary based on the maximum number of security groups to which an instance can belong. For more information, see [Security group limits](~~25412#SecurityGroupQuota1~~).
|
|
999
997
|
*
|
|
1000
998
|
* Take note of the following items:
|
|
1001
999
|
*
|
|
@@ -1008,7 +1006,14 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
1008
1006
|
securityGroupIds?: string[];
|
|
1009
1007
|
/**
|
|
1010
1008
|
* @remarks
|
|
1011
|
-
*
|
|
1009
|
+
* Specifies whether to enable the source and destination IP address check feature. We recommend that you enable the feature to improve network security. Valid value:
|
|
1010
|
+
*
|
|
1011
|
+
* * true: enables the performance burst feature for the system disk.
|
|
1012
|
+
* * false: disables the performance burst feature for the data disk.
|
|
1013
|
+
*
|
|
1014
|
+
* Default value: false.
|
|
1015
|
+
*
|
|
1016
|
+
* > This feature is available only in some regions. Before you use this method, read [Source and destination IP address check](https://help.aliyun.com/document_detail/2863210.html).
|
|
1012
1017
|
*
|
|
1013
1018
|
* @example
|
|
1014
1019
|
* false
|
|
@@ -1034,7 +1039,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
1034
1039
|
* @remarks
|
|
1035
1040
|
* The ID of the vSwitch to which to connect ENI N.
|
|
1036
1041
|
*
|
|
1037
|
-
*
|
|
1042
|
+
* When you specify this parameter, take note of the following items:
|
|
1038
1043
|
*
|
|
1039
1044
|
* * The value of N cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html) or call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/2679699.html) operation.
|
|
1040
1045
|
* * If `NetworkInterface.N.InstanceType` is set to `Primary`, you must specify this parameter. In this case, this parameter is equivalent to `VSwitchId`. You cannot specify both NetworkInterface.N.VSwitchId and `VSwitchId` in the same request.
|
|
@@ -1412,10 +1417,12 @@ export class RunInstancesRequest extends $dara.Model {
|
|
|
1412
1417
|
dataDisk?: RunInstancesRequestDataDisk[];
|
|
1413
1418
|
/**
|
|
1414
1419
|
* @remarks
|
|
1415
|
-
* The ID of the dedicated host
|
|
1420
|
+
* The ID of the dedicated host.
|
|
1416
1421
|
*
|
|
1417
1422
|
* You can call the [DescribeDedicatedHosts](https://help.aliyun.com/document_detail/134242.html) operation to query the list of dedicated host IDs.
|
|
1418
1423
|
*
|
|
1424
|
+
* > Spot instances cannot be created on dedicated hosts. If you specify DedicatedHostId, SpotStrategy and SpotPriceLimit are automatically ignored.
|
|
1425
|
+
*
|
|
1419
1426
|
* @example
|
|
1420
1427
|
* dh-bp67acfmxazb4p****
|
|
1421
1428
|
*/
|
|
@@ -1925,12 +1932,20 @@ export class RunInstancesRequest extends $dara.Model {
|
|
|
1925
1932
|
securityGroupIds?: string[];
|
|
1926
1933
|
/**
|
|
1927
1934
|
* @remarks
|
|
1928
|
-
* The protection period of the spot instance. Unit: hours.
|
|
1935
|
+
* The protection period of the spot instance. Unit: hours. Valid values:
|
|
1929
1936
|
*
|
|
1930
1937
|
* * 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 or release the instance.
|
|
1931
|
-
* * 0: After a spot instance is created, Alibaba Cloud does not ensure that the instance
|
|
1938
|
+
* * 0: After a spot instance is created, Alibaba Cloud does not ensure that the instance can run for one hour. The system compares the biding price with the market prices and checks the resource inventory to determine whether to retain or release the instance.
|
|
1939
|
+
*
|
|
1940
|
+
* Default value: 1.
|
|
1941
|
+
*
|
|
1942
|
+
* >
|
|
1943
|
+
*
|
|
1944
|
+
* * You can set this parameter only to 0 or 1.
|
|
1945
|
+
*
|
|
1946
|
+
* * The spot instance is billed by second. Specify an appropriate protection period.
|
|
1932
1947
|
*
|
|
1933
|
-
* Alibaba Cloud sends an ECS system event to notify you 5 minutes before the instance is released.
|
|
1948
|
+
* * Alibaba Cloud sends an ECS system event to notify you 5 minutes before the instance is released.
|
|
1934
1949
|
*
|
|
1935
1950
|
* @example
|
|
1936
1951
|
* 1
|
|
@@ -31,7 +31,7 @@ export class RunInstancesResponseBodyInstanceIdSets extends $dara.Model {
|
|
|
31
31
|
export class RunInstancesResponseBody extends $dara.Model {
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The instance IDs
|
|
34
|
+
* The instance IDs.
|
|
35
35
|
*/
|
|
36
36
|
instanceIdSets?: RunInstancesResponseBodyInstanceIdSets;
|
|
37
37
|
/**
|