@alicloud/ecs20140526 3.0.3 → 3.0.4
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 +178 -880
- package/dist/client.js +198 -888
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +205 -888
package/dist/client.js
CHANGED
|
@@ -11047,6 +11047,7 @@ class DescribeImageSupportInstanceTypesRequest extends $tea.Model {
|
|
|
11047
11047
|
}
|
|
11048
11048
|
static names() {
|
|
11049
11049
|
return {
|
|
11050
|
+
actionType: 'ActionType',
|
|
11050
11051
|
filter: 'Filter',
|
|
11051
11052
|
imageId: 'ImageId',
|
|
11052
11053
|
ownerId: 'OwnerId',
|
|
@@ -11057,6 +11058,7 @@ class DescribeImageSupportInstanceTypesRequest extends $tea.Model {
|
|
|
11057
11058
|
}
|
|
11058
11059
|
static types() {
|
|
11059
11060
|
return {
|
|
11061
|
+
actionType: 'string',
|
|
11060
11062
|
filter: { 'type': 'array', 'itemType': DescribeImageSupportInstanceTypesRequestFilter },
|
|
11061
11063
|
imageId: 'string',
|
|
11062
11064
|
ownerId: 'number',
|
|
@@ -24838,6 +24840,7 @@ class RunInstancesRequest extends $tea.Model {
|
|
|
24838
24840
|
httpTokens: 'HttpTokens',
|
|
24839
24841
|
imageFamily: 'ImageFamily',
|
|
24840
24842
|
imageId: 'ImageId',
|
|
24843
|
+
imageOptions: 'ImageOptions',
|
|
24841
24844
|
instanceChargeType: 'InstanceChargeType',
|
|
24842
24845
|
instanceName: 'InstanceName',
|
|
24843
24846
|
instanceType: 'InstanceType',
|
|
@@ -24916,6 +24919,7 @@ class RunInstancesRequest extends $tea.Model {
|
|
|
24916
24919
|
httpTokens: 'string',
|
|
24917
24920
|
imageFamily: 'string',
|
|
24918
24921
|
imageId: 'string',
|
|
24922
|
+
imageOptions: RunInstancesRequestImageOptions,
|
|
24919
24923
|
instanceChargeType: 'string',
|
|
24920
24924
|
instanceName: 'string',
|
|
24921
24925
|
instanceType: 'string',
|
|
@@ -41117,6 +41121,22 @@ class RunInstancesRequestDataDisk extends $tea.Model {
|
|
|
41117
41121
|
}
|
|
41118
41122
|
}
|
|
41119
41123
|
exports.RunInstancesRequestDataDisk = RunInstancesRequestDataDisk;
|
|
41124
|
+
class RunInstancesRequestImageOptions extends $tea.Model {
|
|
41125
|
+
constructor(map) {
|
|
41126
|
+
super(map);
|
|
41127
|
+
}
|
|
41128
|
+
static names() {
|
|
41129
|
+
return {
|
|
41130
|
+
loginAsNonRoot: 'LoginAsNonRoot',
|
|
41131
|
+
};
|
|
41132
|
+
}
|
|
41133
|
+
static types() {
|
|
41134
|
+
return {
|
|
41135
|
+
loginAsNonRoot: 'boolean',
|
|
41136
|
+
};
|
|
41137
|
+
}
|
|
41138
|
+
}
|
|
41139
|
+
exports.RunInstancesRequestImageOptions = RunInstancesRequestImageOptions;
|
|
41120
41140
|
class RunInstancesRequestNetworkInterface extends $tea.Model {
|
|
41121
41141
|
constructor(map) {
|
|
41122
41142
|
super(map);
|
|
@@ -50995,14 +51015,6 @@ class Client extends openapi_client_1.default {
|
|
|
50995
51015
|
let runtime = new $Util.RuntimeOptions({});
|
|
50996
51016
|
return await this.describeDisksWithOptions(request, runtime);
|
|
50997
51017
|
}
|
|
50998
|
-
/**
|
|
50999
|
-
* * The full status information of an EBS device includes the lifecycle status provided by the `Status` parameter, health status provided by the `HealthStatus` parameter, and event type provided by the `EventType` parameter of the EBS device. You can filter the results based on these parameters.
|
|
51000
|
-
* * The release time, scheduled execution time, and actual execution time of each EBS device event are identical. If you specify a period of time by using the `EventTime.Start` and `EventTime.End` parameters, all events that occurred within this period are queried. You can query events that occurred within the last seven days.
|
|
51001
|
-
*
|
|
51002
|
-
* @param request DescribeDisksFullStatusRequest
|
|
51003
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
51004
|
-
* @return DescribeDisksFullStatusResponse
|
|
51005
|
-
*/
|
|
51006
51018
|
async describeDisksFullStatusWithOptions(request, runtime) {
|
|
51007
51019
|
tea_util_1.default.validateModel(request);
|
|
51008
51020
|
let query = {};
|
|
@@ -51070,13 +51082,6 @@ class Client extends openapi_client_1.default {
|
|
|
51070
51082
|
});
|
|
51071
51083
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDisksFullStatusResponse({}));
|
|
51072
51084
|
}
|
|
51073
|
-
/**
|
|
51074
|
-
* * The full status information of an EBS device includes the lifecycle status provided by the `Status` parameter, health status provided by the `HealthStatus` parameter, and event type provided by the `EventType` parameter of the EBS device. You can filter the results based on these parameters.
|
|
51075
|
-
* * The release time, scheduled execution time, and actual execution time of each EBS device event are identical. If you specify a period of time by using the `EventTime.Start` and `EventTime.End` parameters, all events that occurred within this period are queried. You can query events that occurred within the last seven days.
|
|
51076
|
-
*
|
|
51077
|
-
* @param request DescribeDisksFullStatusRequest
|
|
51078
|
-
* @return DescribeDisksFullStatusResponse
|
|
51079
|
-
*/
|
|
51080
51085
|
async describeDisksFullStatus(request) {
|
|
51081
51086
|
let runtime = new $Util.RuntimeOptions({});
|
|
51082
51087
|
return await this.describeDisksFullStatusWithOptions(request, runtime);
|
|
@@ -51824,13 +51829,6 @@ class Client extends openapi_client_1.default {
|
|
|
51824
51829
|
let runtime = new $Util.RuntimeOptions({});
|
|
51825
51830
|
return await this.describeImagePipelineExecutionsWithOptions(request, runtime);
|
|
51826
51831
|
}
|
|
51827
|
-
/**
|
|
51828
|
-
* You can use `NextToken` to configure the query token. Set the value to the `NextToken` value that is returned in the last call to the `DescribeImagePipelines` operation. Then, use `MaxResults` to specify the maximum number of entries to return on each page.
|
|
51829
|
-
*
|
|
51830
|
-
* @param request DescribeImagePipelinesRequest
|
|
51831
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
51832
|
-
* @return DescribeImagePipelinesResponse
|
|
51833
|
-
*/
|
|
51834
51832
|
async describeImagePipelinesWithOptions(request, runtime) {
|
|
51835
51833
|
tea_util_1.default.validateModel(request);
|
|
51836
51834
|
let query = {};
|
|
@@ -51889,12 +51887,6 @@ class Client extends openapi_client_1.default {
|
|
|
51889
51887
|
});
|
|
51890
51888
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeImagePipelinesResponse({}));
|
|
51891
51889
|
}
|
|
51892
|
-
/**
|
|
51893
|
-
* You can use `NextToken` to configure the query token. Set the value to the `NextToken` value that is returned in the last call to the `DescribeImagePipelines` operation. Then, use `MaxResults` to specify the maximum number of entries to return on each page.
|
|
51894
|
-
*
|
|
51895
|
-
* @param request DescribeImagePipelinesRequest
|
|
51896
|
-
* @return DescribeImagePipelinesResponse
|
|
51897
|
-
*/
|
|
51898
51890
|
async describeImagePipelines(request) {
|
|
51899
51891
|
let runtime = new $Util.RuntimeOptions({});
|
|
51900
51892
|
return await this.describeImagePipelinesWithOptions(request, runtime);
|
|
@@ -51949,6 +51941,9 @@ class Client extends openapi_client_1.default {
|
|
|
51949
51941
|
async describeImageSupportInstanceTypesWithOptions(request, runtime) {
|
|
51950
51942
|
tea_util_1.default.validateModel(request);
|
|
51951
51943
|
let query = {};
|
|
51944
|
+
if (!tea_util_1.default.isUnset(request.actionType)) {
|
|
51945
|
+
query["ActionType"] = request.actionType;
|
|
51946
|
+
}
|
|
51952
51947
|
if (!tea_util_1.default.isUnset(request.filter)) {
|
|
51953
51948
|
query["Filter"] = request.filter;
|
|
51954
51949
|
}
|
|
@@ -52637,14 +52632,6 @@ class Client extends openapi_client_1.default {
|
|
|
52637
52632
|
let runtime = new $Util.RuntimeOptions({});
|
|
52638
52633
|
return await this.describeInstanceRamRoleWithOptions(request, runtime);
|
|
52639
52634
|
}
|
|
52640
|
-
/**
|
|
52641
|
-
* * For information about the lifecycle states of an ECS instance, see [Instance states](~~25687~~).
|
|
52642
|
-
* * You can also call this operation to query the list of ECS instances.
|
|
52643
|
-
*
|
|
52644
|
-
* @param request DescribeInstanceStatusRequest
|
|
52645
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
52646
|
-
* @return DescribeInstanceStatusResponse
|
|
52647
|
-
*/
|
|
52648
52635
|
async describeInstanceStatusWithOptions(request, runtime) {
|
|
52649
52636
|
tea_util_1.default.validateModel(request);
|
|
52650
52637
|
let query = {};
|
|
@@ -52694,13 +52681,6 @@ class Client extends openapi_client_1.default {
|
|
|
52694
52681
|
});
|
|
52695
52682
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceStatusResponse({}));
|
|
52696
52683
|
}
|
|
52697
|
-
/**
|
|
52698
|
-
* * For information about the lifecycle states of an ECS instance, see [Instance states](~~25687~~).
|
|
52699
|
-
* * You can also call this operation to query the list of ECS instances.
|
|
52700
|
-
*
|
|
52701
|
-
* @param request DescribeInstanceStatusRequest
|
|
52702
|
-
* @return DescribeInstanceStatusResponse
|
|
52703
|
-
*/
|
|
52704
52684
|
async describeInstanceStatus(request) {
|
|
52705
52685
|
let runtime = new $Util.RuntimeOptions({});
|
|
52706
52686
|
return await this.describeInstanceStatusWithOptions(request, runtime);
|
|
@@ -52797,18 +52777,6 @@ class Client extends openapi_client_1.default {
|
|
|
52797
52777
|
let runtime = new $Util.RuntimeOptions({});
|
|
52798
52778
|
return await this.describeInstanceTypeFamiliesWithOptions(request, runtime);
|
|
52799
52779
|
}
|
|
52800
|
-
/**
|
|
52801
|
-
* ## Description
|
|
52802
|
-
* Before you call this operation, take note of the following items:
|
|
52803
|
-
* * The MaxResults parameter specifies the maximum number of entries to return on each page. The maximum value of this parameter is changed from 1600 to 100. If you called this operation in 2022, you can continue to use 1600 as the maximum value of MaxResults until November 15, 2023. As of November 15, 2023, only 100 can be used as the maximum value of MaxResults. If you do not specify the NextToken parameter when you call the DescribeInstanceTypes operation, only the first page of results that contains up to 100 entries is returned. If you want to retrieve more results, specify the NextToken parameter to perform paged queries, or specify filter conditions to filter results. For information about the best practices for using DescribeInstanceTypes, see [Compare the specifications of instance types](https://help.aliyun.com/practice_detail/461278) .
|
|
52804
|
-
* * We recommend that you specify the MaxResults and NextToken parameters to perform paged queries. The first time you call the DescribeInstanceTypes operation, specify MaxResults to limit the maximum number of entries to return in the call. If the number of entries to return exceeds the specified value of MaxResults, the response includes a NextToken value. You can set NextToken to the return value and specify MaxResults in your next request to DescribeInstanceTypes to retrieve the next page of results.
|
|
52805
|
-
* * The DescribeInstanceTypes operation is used to query only the specifications and performance information of instance types. To query instance types that are available in a specific region, call the [DescribeAvailableResource](~~66186~~) operation.
|
|
52806
|
-
* * To use special instance types such as instance types that are unavailable for purchase, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm).
|
|
52807
|
-
*
|
|
52808
|
-
* @param request DescribeInstanceTypesRequest
|
|
52809
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
52810
|
-
* @return DescribeInstanceTypesResponse
|
|
52811
|
-
*/
|
|
52812
52780
|
async describeInstanceTypesWithOptions(request, runtime) {
|
|
52813
52781
|
tea_util_1.default.validateModel(request);
|
|
52814
52782
|
let query = {};
|
|
@@ -52951,17 +52919,6 @@ class Client extends openapi_client_1.default {
|
|
|
52951
52919
|
});
|
|
52952
52920
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceTypesResponse({}));
|
|
52953
52921
|
}
|
|
52954
|
-
/**
|
|
52955
|
-
* ## Description
|
|
52956
|
-
* Before you call this operation, take note of the following items:
|
|
52957
|
-
* * The MaxResults parameter specifies the maximum number of entries to return on each page. The maximum value of this parameter is changed from 1600 to 100. If you called this operation in 2022, you can continue to use 1600 as the maximum value of MaxResults until November 15, 2023. As of November 15, 2023, only 100 can be used as the maximum value of MaxResults. If you do not specify the NextToken parameter when you call the DescribeInstanceTypes operation, only the first page of results that contains up to 100 entries is returned. If you want to retrieve more results, specify the NextToken parameter to perform paged queries, or specify filter conditions to filter results. For information about the best practices for using DescribeInstanceTypes, see [Compare the specifications of instance types](https://help.aliyun.com/practice_detail/461278) .
|
|
52958
|
-
* * We recommend that you specify the MaxResults and NextToken parameters to perform paged queries. The first time you call the DescribeInstanceTypes operation, specify MaxResults to limit the maximum number of entries to return in the call. If the number of entries to return exceeds the specified value of MaxResults, the response includes a NextToken value. You can set NextToken to the return value and specify MaxResults in your next request to DescribeInstanceTypes to retrieve the next page of results.
|
|
52959
|
-
* * The DescribeInstanceTypes operation is used to query only the specifications and performance information of instance types. To query instance types that are available in a specific region, call the [DescribeAvailableResource](~~66186~~) operation.
|
|
52960
|
-
* * To use special instance types such as instance types that are unavailable for purchase, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm).
|
|
52961
|
-
*
|
|
52962
|
-
* @param request DescribeInstanceTypesRequest
|
|
52963
|
-
* @return DescribeInstanceTypesResponse
|
|
52964
|
-
*/
|
|
52965
52922
|
async describeInstanceTypes(request) {
|
|
52966
52923
|
let runtime = new $Util.RuntimeOptions({});
|
|
52967
52924
|
return await this.describeInstanceTypesWithOptions(request, runtime);
|
|
@@ -53366,14 +53323,6 @@ class Client extends openapi_client_1.default {
|
|
|
53366
53323
|
let runtime = new $Util.RuntimeOptions({});
|
|
53367
53324
|
return await this.describeInstancesFullStatusWithOptions(request, runtime);
|
|
53368
53325
|
}
|
|
53369
|
-
/**
|
|
53370
|
-
* * After you run a command, the command may not succeed or return the expected results. You can call this operation to query the actual execution results.
|
|
53371
|
-
* * You can query information about command executions within the last four weeks. A maximum of 100,000 pieces of execution information can be retained.
|
|
53372
|
-
*
|
|
53373
|
-
* @param request DescribeInvocationResultsRequest
|
|
53374
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
53375
|
-
* @return DescribeInvocationResultsResponse
|
|
53376
|
-
*/
|
|
53377
53326
|
async describeInvocationResultsWithOptions(request, runtime) {
|
|
53378
53327
|
tea_util_1.default.validateModel(request);
|
|
53379
53328
|
let query = {};
|
|
@@ -53441,13 +53390,6 @@ class Client extends openapi_client_1.default {
|
|
|
53441
53390
|
});
|
|
53442
53391
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeInvocationResultsResponse({}));
|
|
53443
53392
|
}
|
|
53444
|
-
/**
|
|
53445
|
-
* * After you run a command, the command may not succeed or return the expected results. You can call this operation to query the actual execution results.
|
|
53446
|
-
* * You can query information about command executions within the last four weeks. A maximum of 100,000 pieces of execution information can be retained.
|
|
53447
|
-
*
|
|
53448
|
-
* @param request DescribeInvocationResultsRequest
|
|
53449
|
-
* @return DescribeInvocationResultsResponse
|
|
53450
|
-
*/
|
|
53451
53393
|
async describeInvocationResults(request) {
|
|
53452
53394
|
let runtime = new $Util.RuntimeOptions({});
|
|
53453
53395
|
return await this.describeInvocationResultsWithOptions(request, runtime);
|
|
@@ -54010,14 +53952,6 @@ class Client extends openapi_client_1.default {
|
|
|
54010
53952
|
let runtime = new $Util.RuntimeOptions({});
|
|
54011
53953
|
return await this.describeNetworkInterfacePermissionsWithOptions(request, runtime);
|
|
54012
53954
|
}
|
|
54013
|
-
/**
|
|
54014
|
-
* The `DescribeNetworkInterfaces` operation supports multiple pagination mechanisms. We recommend that you set `MaxResults` to specify the maximum number of entries to return in each request. The returned value of `NextToken` is a pagination token, which can be used in the next request to retrieve a new page of results. When you perform the next request, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
|
|
54015
|
-
* > If you specify `MaxResults` or `NextToken`, the system returns results based on the preceding pagination mechanism. Otherwise, the system paginates the results based on the `PageNumber` and `PageSize` parameters.
|
|
54016
|
-
*
|
|
54017
|
-
* @param request DescribeNetworkInterfacesRequest
|
|
54018
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
54019
|
-
* @return DescribeNetworkInterfacesResponse
|
|
54020
|
-
*/
|
|
54021
53955
|
async describeNetworkInterfacesWithOptions(request, runtime) {
|
|
54022
53956
|
tea_util_1.default.validateModel(request);
|
|
54023
53957
|
let query = {};
|
|
@@ -54112,13 +54046,6 @@ class Client extends openapi_client_1.default {
|
|
|
54112
54046
|
});
|
|
54113
54047
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeNetworkInterfacesResponse({}));
|
|
54114
54048
|
}
|
|
54115
|
-
/**
|
|
54116
|
-
* The `DescribeNetworkInterfaces` operation supports multiple pagination mechanisms. We recommend that you set `MaxResults` to specify the maximum number of entries to return in each request. The returned value of `NextToken` is a pagination token, which can be used in the next request to retrieve a new page of results. When you perform the next request, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
|
|
54117
|
-
* > If you specify `MaxResults` or `NextToken`, the system returns results based on the preceding pagination mechanism. Otherwise, the system paginates the results based on the `PageNumber` and `PageSize` parameters.
|
|
54118
|
-
*
|
|
54119
|
-
* @param request DescribeNetworkInterfacesRequest
|
|
54120
|
-
* @return DescribeNetworkInterfacesResponse
|
|
54121
|
-
*/
|
|
54122
54049
|
async describeNetworkInterfaces(request) {
|
|
54123
54050
|
let runtime = new $Util.RuntimeOptions({});
|
|
54124
54051
|
return await this.describeNetworkInterfacesWithOptions(request, runtime);
|
|
@@ -54350,14 +54277,6 @@ class Client extends openapi_client_1.default {
|
|
|
54350
54277
|
let runtime = new $Util.RuntimeOptions({});
|
|
54351
54278
|
return await this.describePrefixListAttributesWithOptions(request, runtime);
|
|
54352
54279
|
}
|
|
54353
|
-
/**
|
|
54354
|
-
* ## Description
|
|
54355
|
-
* You can specify the `AddressFamily`, `PrefixListId.N`, and `PrefixListName` request parameters to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
|
|
54356
|
-
*
|
|
54357
|
-
* @param request DescribePrefixListsRequest
|
|
54358
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
54359
|
-
* @return DescribePrefixListsResponse
|
|
54360
|
-
*/
|
|
54361
54280
|
async describePrefixListsWithOptions(request, runtime) {
|
|
54362
54281
|
tea_util_1.default.validateModel(request);
|
|
54363
54282
|
let query = {};
|
|
@@ -54410,33 +54329,10 @@ class Client extends openapi_client_1.default {
|
|
|
54410
54329
|
});
|
|
54411
54330
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribePrefixListsResponse({}));
|
|
54412
54331
|
}
|
|
54413
|
-
/**
|
|
54414
|
-
* ## Description
|
|
54415
|
-
* You can specify the `AddressFamily`, `PrefixListId.N`, and `PrefixListName` request parameters to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
|
|
54416
|
-
*
|
|
54417
|
-
* @param request DescribePrefixListsRequest
|
|
54418
|
-
* @return DescribePrefixListsResponse
|
|
54419
|
-
*/
|
|
54420
54332
|
async describePrefixLists(request) {
|
|
54421
54333
|
let runtime = new $Util.RuntimeOptions({});
|
|
54422
54334
|
return await this.describePrefixListsWithOptions(request, runtime);
|
|
54423
54335
|
}
|
|
54424
|
-
/**
|
|
54425
|
-
* ## Description
|
|
54426
|
-
* * The required parameters vary based on the types of resources whose prices you want to query.
|
|
54427
|
-
* * When the `ResourceType` parameter is set to instance, you must specify the `InstanceType` parameter.
|
|
54428
|
-
* * When the `ResourceType` parameter is set to disk, you must specify both the `DataDisk.1.Category` and `DataDisk.1.Size` parameters. When the `ResourceType` parameter is set to disk, only pay-as-you-go prices of cloud disks are returned. In this scenario, the `PriceUnit` parameter must be set to `Hour`.
|
|
54429
|
-
* * When the `ResourceType` parameter is set to ddh, you must specify the `DedicatedHostType` parameter.
|
|
54430
|
-
* * When the `ResourceType` parameter is set to ElasticityAssurance, you must specify the `InstanceType` parameter.
|
|
54431
|
-
* * When the `ResourceType` parameter is set to CapacityReservation, you must specify the `InstanceType` parameter.
|
|
54432
|
-
* * When the `ResourceType` parameter is set to bandwidth, only the pay-by-traffic (`PayByTraffic`) price for network usage is returned.
|
|
54433
|
-
* * When the `ResourceType` parameter is set to instance, the prices of up to four data disks can be queried.
|
|
54434
|
-
* * By default, the `ChargeType` parameter is set to `PostPaid`. You can specify the `PriceUnit` parameter to query the prices of ECS resources that have different billing cycles.
|
|
54435
|
-
*
|
|
54436
|
-
* @param request DescribePriceRequest
|
|
54437
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
54438
|
-
* @return DescribePriceResponse
|
|
54439
|
-
*/
|
|
54440
54336
|
async describePriceWithOptions(request, runtime) {
|
|
54441
54337
|
tea_util_1.default.validateModel(request);
|
|
54442
54338
|
let query = {};
|
|
@@ -54549,21 +54445,6 @@ class Client extends openapi_client_1.default {
|
|
|
54549
54445
|
});
|
|
54550
54446
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribePriceResponse({}));
|
|
54551
54447
|
}
|
|
54552
|
-
/**
|
|
54553
|
-
* ## Description
|
|
54554
|
-
* * The required parameters vary based on the types of resources whose prices you want to query.
|
|
54555
|
-
* * When the `ResourceType` parameter is set to instance, you must specify the `InstanceType` parameter.
|
|
54556
|
-
* * When the `ResourceType` parameter is set to disk, you must specify both the `DataDisk.1.Category` and `DataDisk.1.Size` parameters. When the `ResourceType` parameter is set to disk, only pay-as-you-go prices of cloud disks are returned. In this scenario, the `PriceUnit` parameter must be set to `Hour`.
|
|
54557
|
-
* * When the `ResourceType` parameter is set to ddh, you must specify the `DedicatedHostType` parameter.
|
|
54558
|
-
* * When the `ResourceType` parameter is set to ElasticityAssurance, you must specify the `InstanceType` parameter.
|
|
54559
|
-
* * When the `ResourceType` parameter is set to CapacityReservation, you must specify the `InstanceType` parameter.
|
|
54560
|
-
* * When the `ResourceType` parameter is set to bandwidth, only the pay-by-traffic (`PayByTraffic`) price for network usage is returned.
|
|
54561
|
-
* * When the `ResourceType` parameter is set to instance, the prices of up to four data disks can be queried.
|
|
54562
|
-
* * By default, the `ChargeType` parameter is set to `PostPaid`. You can specify the `PriceUnit` parameter to query the prices of ECS resources that have different billing cycles.
|
|
54563
|
-
*
|
|
54564
|
-
* @param request DescribePriceRequest
|
|
54565
|
-
* @return DescribePriceResponse
|
|
54566
|
-
*/
|
|
54567
54448
|
async describePrice(request) {
|
|
54568
54449
|
let runtime = new $Util.RuntimeOptions({});
|
|
54569
54450
|
return await this.describePriceWithOptions(request, runtime);
|
|
@@ -54708,17 +54589,6 @@ class Client extends openapi_client_1.default {
|
|
|
54708
54589
|
let runtime = new $Util.RuntimeOptions({});
|
|
54709
54590
|
return await this.describeRegionsWithOptions(request, runtime);
|
|
54710
54591
|
}
|
|
54711
|
-
/**
|
|
54712
|
-
* ## Description
|
|
54713
|
-
* * You can call this operation to query the price for renewing a subscription instance for a specific period of time or to a synchronized expiration date.
|
|
54714
|
-
* * Take note of the following items:
|
|
54715
|
-
* * If you set only the required parameters, the price for renewing a specified instance for one month is queried by default.
|
|
54716
|
-
* * The renewal period-related parameter pair (`Period` and `PeriodUnit`) and the synchronized expiration date-related parameter (`ExpectedRenewDay`) are mutually exclusive. You cannot set these parameters together to query the prices for renewing a specified instance for a period of time and to a synchronized expiration date at the same time.
|
|
54717
|
-
*
|
|
54718
|
-
* @param request DescribeRenewalPriceRequest
|
|
54719
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
54720
|
-
* @return DescribeRenewalPriceResponse
|
|
54721
|
-
*/
|
|
54722
54592
|
async describeRenewalPriceWithOptions(request, runtime) {
|
|
54723
54593
|
tea_util_1.default.validateModel(request);
|
|
54724
54594
|
let query = {};
|
|
@@ -54768,16 +54638,6 @@ class Client extends openapi_client_1.default {
|
|
|
54768
54638
|
});
|
|
54769
54639
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeRenewalPriceResponse({}));
|
|
54770
54640
|
}
|
|
54771
|
-
/**
|
|
54772
|
-
* ## Description
|
|
54773
|
-
* * You can call this operation to query the price for renewing a subscription instance for a specific period of time or to a synchronized expiration date.
|
|
54774
|
-
* * Take note of the following items:
|
|
54775
|
-
* * If you set only the required parameters, the price for renewing a specified instance for one month is queried by default.
|
|
54776
|
-
* * The renewal period-related parameter pair (`Period` and `PeriodUnit`) and the synchronized expiration date-related parameter (`ExpectedRenewDay`) are mutually exclusive. You cannot set these parameters together to query the prices for renewing a specified instance for a period of time and to a synchronized expiration date at the same time.
|
|
54777
|
-
*
|
|
54778
|
-
* @param request DescribeRenewalPriceRequest
|
|
54779
|
-
* @return DescribeRenewalPriceResponse
|
|
54780
|
-
*/
|
|
54781
54641
|
async describeRenewalPrice(request) {
|
|
54782
54642
|
let runtime = new $Util.RuntimeOptions({});
|
|
54783
54643
|
return await this.describeRenewalPriceWithOptions(request, runtime);
|
|
@@ -55511,15 +55371,6 @@ class Client extends openapi_client_1.default {
|
|
|
55511
55371
|
let runtime = new $Util.RuntimeOptions({});
|
|
55512
55372
|
return await this.describeSnapshotGroupsWithOptions(request, runtime);
|
|
55513
55373
|
}
|
|
55514
|
-
/**
|
|
55515
|
-
* When you call this operation, take note of the following items:
|
|
55516
|
-
* * You can specify multiple request parameters such as `RegionId`, `DiskIds`, and `InstanceId` to be queried. Specified parameters have logical AND relations.
|
|
55517
|
-
* * Only the specified parameters are used as filter conditions. If the `DiskIds` and `SnapshotLinkIds` parameters are set to empty JSON arrays, they are regarded as valid filter conditions and an empty result is returned.
|
|
55518
|
-
*
|
|
55519
|
-
* @param request DescribeSnapshotLinksRequest
|
|
55520
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
55521
|
-
* @return DescribeSnapshotLinksResponse
|
|
55522
|
-
*/
|
|
55523
55374
|
async describeSnapshotLinksWithOptions(request, runtime) {
|
|
55524
55375
|
tea_util_1.default.validateModel(request);
|
|
55525
55376
|
let query = {};
|
|
@@ -55569,14 +55420,6 @@ class Client extends openapi_client_1.default {
|
|
|
55569
55420
|
});
|
|
55570
55421
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSnapshotLinksResponse({}));
|
|
55571
55422
|
}
|
|
55572
|
-
/**
|
|
55573
|
-
* When you call this operation, take note of the following items:
|
|
55574
|
-
* * You can specify multiple request parameters such as `RegionId`, `DiskIds`, and `InstanceId` to be queried. Specified parameters have logical AND relations.
|
|
55575
|
-
* * Only the specified parameters are used as filter conditions. If the `DiskIds` and `SnapshotLinkIds` parameters are set to empty JSON arrays, they are regarded as valid filter conditions and an empty result is returned.
|
|
55576
|
-
*
|
|
55577
|
-
* @param request DescribeSnapshotLinksRequest
|
|
55578
|
-
* @return DescribeSnapshotLinksResponse
|
|
55579
|
-
*/
|
|
55580
55423
|
async describeSnapshotLinks(request) {
|
|
55581
55424
|
let runtime = new $Util.RuntimeOptions({});
|
|
55582
55425
|
return await this.describeSnapshotLinksWithOptions(request, runtime);
|
|
@@ -56200,13 +56043,6 @@ class Client extends openapi_client_1.default {
|
|
|
56200
56043
|
let runtime = new $Util.RuntimeOptions({});
|
|
56201
56044
|
return await this.describeStorageSetsWithOptions(request, runtime);
|
|
56202
56045
|
}
|
|
56203
|
-
/**
|
|
56204
|
-
* If a tag key is specified and no tag values are specified, all tags that contain the tag key are returned. If a tag key-value pair is specified, only tags that exactly match the key-value pair are returned.
|
|
56205
|
-
*
|
|
56206
|
-
* @param request DescribeTagsRequest
|
|
56207
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
56208
|
-
* @return DescribeTagsResponse
|
|
56209
|
-
*/
|
|
56210
56046
|
async describeTagsWithOptions(request, runtime) {
|
|
56211
56047
|
tea_util_1.default.validateModel(request);
|
|
56212
56048
|
let query = {};
|
|
@@ -56256,12 +56092,6 @@ class Client extends openapi_client_1.default {
|
|
|
56256
56092
|
});
|
|
56257
56093
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTagsResponse({}));
|
|
56258
56094
|
}
|
|
56259
|
-
/**
|
|
56260
|
-
* If a tag key is specified and no tag values are specified, all tags that contain the tag key are returned. If a tag key-value pair is specified, only tags that exactly match the key-value pair are returned.
|
|
56261
|
-
*
|
|
56262
|
-
* @param request DescribeTagsRequest
|
|
56263
|
-
* @return DescribeTagsResponse
|
|
56264
|
-
*/
|
|
56265
56095
|
async describeTags(request) {
|
|
56266
56096
|
let runtime = new $Util.RuntimeOptions({});
|
|
56267
56097
|
return await this.describeTagsWithOptions(request, runtime);
|
|
@@ -57008,15 +56838,6 @@ class Client extends openapi_client_1.default {
|
|
|
57008
56838
|
let runtime = new $Util.RuntimeOptions({});
|
|
57009
56839
|
return await this.detachInstanceRamRoleWithOptions(request, runtime);
|
|
57010
56840
|
}
|
|
57011
|
-
/**
|
|
57012
|
-
* When you call this operation, take note of the following items:
|
|
57013
|
-
* * After you detach an SSH key pair from an instance, you must call the [RebootInstance](~~25502~~) operation to restart the instance for the detach operation to take effect.
|
|
57014
|
-
* * The username and password authentication method is automatically selected for an instance after you unbind an SSH key pair from the instance.
|
|
57015
|
-
*
|
|
57016
|
-
* @param request DetachKeyPairRequest
|
|
57017
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
57018
|
-
* @return DetachKeyPairResponse
|
|
57019
|
-
*/
|
|
57020
56841
|
async detachKeyPairWithOptions(request, runtime) {
|
|
57021
56842
|
tea_util_1.default.validateModel(request);
|
|
57022
56843
|
let query = {};
|
|
@@ -57054,35 +56875,10 @@ class Client extends openapi_client_1.default {
|
|
|
57054
56875
|
});
|
|
57055
56876
|
return $tea.cast(await this.callApi(params, req, runtime), new DetachKeyPairResponse({}));
|
|
57056
56877
|
}
|
|
57057
|
-
/**
|
|
57058
|
-
* When you call this operation, take note of the following items:
|
|
57059
|
-
* * After you detach an SSH key pair from an instance, you must call the [RebootInstance](~~25502~~) operation to restart the instance for the detach operation to take effect.
|
|
57060
|
-
* * The username and password authentication method is automatically selected for an instance after you unbind an SSH key pair from the instance.
|
|
57061
|
-
*
|
|
57062
|
-
* @param request DetachKeyPairRequest
|
|
57063
|
-
* @return DetachKeyPairResponse
|
|
57064
|
-
*/
|
|
57065
56878
|
async detachKeyPair(request) {
|
|
57066
56879
|
let runtime = new $Util.RuntimeOptions({});
|
|
57067
56880
|
return await this.detachKeyPairWithOptions(request, runtime);
|
|
57068
56881
|
}
|
|
57069
|
-
/**
|
|
57070
|
-
* ## Description
|
|
57071
|
-
* When you call this operation, take note of the following items:
|
|
57072
|
-
* * Primary ENIs cannot be detached from ECS instances.
|
|
57073
|
-
* * The ENI must be in the Detaching (Detaching) or InUse (InUse) state.
|
|
57074
|
-
* * The instance must be in the Running (Running) or Stopped (Stopped) state.
|
|
57075
|
-
* * This operation is an asynchronous operation. After this operation is called to detach an ENI, you can check the state or events of the ENI to determine whether the ENI is detached. The following figure shows the transitions between the states of the ENI.
|
|
57076
|
-
* 
|
|
57077
|
-
* * If the ENI is in the Detaching state, the ENI detachment request is sent and the ENI is being detached from its associated instance.
|
|
57078
|
-
* * If the ENI is in the Available state, the ENI is detached from its associated instance.
|
|
57079
|
-
* * If the ENI is stuck in the Detaching state, the ENI may fail to be detached from the associated instance due to specific reasons. For example, the ENI may fail to be detached because the operating system did not respond to the ENI detachment request. If this occurs, you can re-initiate the request to detach the ENI. If the problem persists, restart the instance.
|
|
57080
|
-
* **For information about examples on how to call this operation, see **[Detach an ENI](~~471551~~).
|
|
57081
|
-
*
|
|
57082
|
-
* @param request DetachNetworkInterfaceRequest
|
|
57083
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
57084
|
-
* @return DetachNetworkInterfaceResponse
|
|
57085
|
-
*/
|
|
57086
56882
|
async detachNetworkInterfaceWithOptions(request, runtime) {
|
|
57087
56883
|
tea_util_1.default.validateModel(request);
|
|
57088
56884
|
let query = {};
|
|
@@ -57129,34 +56925,10 @@ class Client extends openapi_client_1.default {
|
|
|
57129
56925
|
});
|
|
57130
56926
|
return $tea.cast(await this.callApi(params, req, runtime), new DetachNetworkInterfaceResponse({}));
|
|
57131
56927
|
}
|
|
57132
|
-
/**
|
|
57133
|
-
* ## Description
|
|
57134
|
-
* When you call this operation, take note of the following items:
|
|
57135
|
-
* * Primary ENIs cannot be detached from ECS instances.
|
|
57136
|
-
* * The ENI must be in the Detaching (Detaching) or InUse (InUse) state.
|
|
57137
|
-
* * The instance must be in the Running (Running) or Stopped (Stopped) state.
|
|
57138
|
-
* * This operation is an asynchronous operation. After this operation is called to detach an ENI, you can check the state or events of the ENI to determine whether the ENI is detached. The following figure shows the transitions between the states of the ENI.
|
|
57139
|
-
* 
|
|
57140
|
-
* * If the ENI is in the Detaching state, the ENI detachment request is sent and the ENI is being detached from its associated instance.
|
|
57141
|
-
* * If the ENI is in the Available state, the ENI is detached from its associated instance.
|
|
57142
|
-
* * If the ENI is stuck in the Detaching state, the ENI may fail to be detached from the associated instance due to specific reasons. For example, the ENI may fail to be detached because the operating system did not respond to the ENI detachment request. If this occurs, you can re-initiate the request to detach the ENI. If the problem persists, restart the instance.
|
|
57143
|
-
* **For information about examples on how to call this operation, see **[Detach an ENI](~~471551~~).
|
|
57144
|
-
*
|
|
57145
|
-
* @param request DetachNetworkInterfaceRequest
|
|
57146
|
-
* @return DetachNetworkInterfaceResponse
|
|
57147
|
-
*/
|
|
57148
56928
|
async detachNetworkInterface(request) {
|
|
57149
56929
|
let runtime = new $Util.RuntimeOptions({});
|
|
57150
56930
|
return await this.detachNetworkInterfaceWithOptions(request, runtime);
|
|
57151
56931
|
}
|
|
57152
|
-
/**
|
|
57153
|
-
* ## Description
|
|
57154
|
-
* To prevent an activation code from being leaked, you can call the DisableActivation operation to disable the activation code. Disabled activation codes cannot be used to register new managed instances. However, managed instances that are already registered are not affected.
|
|
57155
|
-
*
|
|
57156
|
-
* @param request DisableActivationRequest
|
|
57157
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
57158
|
-
* @return DisableActivationResponse
|
|
57159
|
-
*/
|
|
57160
56932
|
async disableActivationWithOptions(request, runtime) {
|
|
57161
56933
|
tea_util_1.default.validateModel(request);
|
|
57162
56934
|
let query = {};
|
|
@@ -57197,13 +56969,6 @@ class Client extends openapi_client_1.default {
|
|
|
57197
56969
|
});
|
|
57198
56970
|
return $tea.cast(await this.callApi(params, req, runtime), new DisableActivationResponse({}));
|
|
57199
56971
|
}
|
|
57200
|
-
/**
|
|
57201
|
-
* ## Description
|
|
57202
|
-
* To prevent an activation code from being leaked, you can call the DisableActivation operation to disable the activation code. Disabled activation codes cannot be used to register new managed instances. However, managed instances that are already registered are not affected.
|
|
57203
|
-
*
|
|
57204
|
-
* @param request DisableActivationRequest
|
|
57205
|
-
* @return DisableActivationResponse
|
|
57206
|
-
*/
|
|
57207
56972
|
async disableActivation(request) {
|
|
57208
56973
|
let runtime = new $Util.RuntimeOptions({});
|
|
57209
56974
|
return await this.disableActivationWithOptions(request, runtime);
|
|
@@ -57647,15 +57412,6 @@ class Client extends openapi_client_1.default {
|
|
|
57647
57412
|
let runtime = new $Util.RuntimeOptions({});
|
|
57648
57413
|
return await this.exportSnapshotWithOptions(request, runtime);
|
|
57649
57414
|
}
|
|
57650
|
-
/**
|
|
57651
|
-
* * ECS is a virtualized cloud-based service and cannot be connected to display devices. However, Alibaba Cloud caches system command outputs for the last start, restart, or shutdown of ECS instances. You can call the GetInstanceConsoleOutput operation to obtain the command outputs.
|
|
57652
|
-
* * The command outputs of instances that use the retired instance types cannot be obtained. For more information, see [Retired instance types](~~55263~~).
|
|
57653
|
-
* * The command outputs of Windows instances cannot be obtained.
|
|
57654
|
-
*
|
|
57655
|
-
* @param request GetInstanceConsoleOutputRequest
|
|
57656
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
57657
|
-
* @return GetInstanceConsoleOutputResponse
|
|
57658
|
-
*/
|
|
57659
57415
|
async getInstanceConsoleOutputWithOptions(request, runtime) {
|
|
57660
57416
|
tea_util_1.default.validateModel(request);
|
|
57661
57417
|
let query = {};
|
|
@@ -57699,28 +57455,10 @@ class Client extends openapi_client_1.default {
|
|
|
57699
57455
|
});
|
|
57700
57456
|
return $tea.cast(await this.callApi(params, req, runtime), new GetInstanceConsoleOutputResponse({}));
|
|
57701
57457
|
}
|
|
57702
|
-
/**
|
|
57703
|
-
* * ECS is a virtualized cloud-based service and cannot be connected to display devices. However, Alibaba Cloud caches system command outputs for the last start, restart, or shutdown of ECS instances. You can call the GetInstanceConsoleOutput operation to obtain the command outputs.
|
|
57704
|
-
* * The command outputs of instances that use the retired instance types cannot be obtained. For more information, see [Retired instance types](~~55263~~).
|
|
57705
|
-
* * The command outputs of Windows instances cannot be obtained.
|
|
57706
|
-
*
|
|
57707
|
-
* @param request GetInstanceConsoleOutputRequest
|
|
57708
|
-
* @return GetInstanceConsoleOutputResponse
|
|
57709
|
-
*/
|
|
57710
57458
|
async getInstanceConsoleOutput(request) {
|
|
57711
57459
|
let runtime = new $Util.RuntimeOptions({});
|
|
57712
57460
|
return await this.getInstanceConsoleOutputWithOptions(request, runtime);
|
|
57713
57461
|
}
|
|
57714
|
-
/**
|
|
57715
|
-
* ECS returns an instance screenshot that is in the JPG format and encoded in Base64. You must manually decode the screenshot. We recommend that you call this operation for troubleshooting and diagnosis. When you call this operation, take note of the following items:
|
|
57716
|
-
* * The instance must be in the Running state.
|
|
57717
|
-
* * You cannot obtain screenshots of instances whose instance types have been retired. For more information, see [Retired instance types](~~55263~~).
|
|
57718
|
-
* * If you want to call this operation on the same instance multiple times, you must wait at least 10 seconds between each call. Otherwise, the `Throttling` error code is returned.
|
|
57719
|
-
*
|
|
57720
|
-
* @param request GetInstanceScreenshotRequest
|
|
57721
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
57722
|
-
* @return GetInstanceScreenshotResponse
|
|
57723
|
-
*/
|
|
57724
57462
|
async getInstanceScreenshotWithOptions(request, runtime) {
|
|
57725
57463
|
tea_util_1.default.validateModel(request);
|
|
57726
57464
|
let query = {};
|
|
@@ -57764,15 +57502,6 @@ class Client extends openapi_client_1.default {
|
|
|
57764
57502
|
});
|
|
57765
57503
|
return $tea.cast(await this.callApi(params, req, runtime), new GetInstanceScreenshotResponse({}));
|
|
57766
57504
|
}
|
|
57767
|
-
/**
|
|
57768
|
-
* ECS returns an instance screenshot that is in the JPG format and encoded in Base64. You must manually decode the screenshot. We recommend that you call this operation for troubleshooting and diagnosis. When you call this operation, take note of the following items:
|
|
57769
|
-
* * The instance must be in the Running state.
|
|
57770
|
-
* * You cannot obtain screenshots of instances whose instance types have been retired. For more information, see [Retired instance types](~~55263~~).
|
|
57771
|
-
* * If you want to call this operation on the same instance multiple times, you must wait at least 10 seconds between each call. Otherwise, the `Throttling` error code is returned.
|
|
57772
|
-
*
|
|
57773
|
-
* @param request GetInstanceScreenshotRequest
|
|
57774
|
-
* @return GetInstanceScreenshotResponse
|
|
57775
|
-
*/
|
|
57776
57505
|
async getInstanceScreenshot(request) {
|
|
57777
57506
|
let runtime = new $Util.RuntimeOptions({});
|
|
57778
57507
|
return await this.getInstanceScreenshotWithOptions(request, runtime);
|
|
@@ -57959,27 +57688,6 @@ class Client extends openapi_client_1.default {
|
|
|
57959
57688
|
let runtime = new $Util.RuntimeOptions({});
|
|
57960
57689
|
return await this.importImageWithOptions(request, runtime);
|
|
57961
57690
|
}
|
|
57962
|
-
/**
|
|
57963
|
-
* When you call this operation, take note of the following items:
|
|
57964
|
-
* * A maximum of 500 key pairs can be created in each region.
|
|
57965
|
-
* * The key pair that you wan to import must support one of the following encryption methods:
|
|
57966
|
-
* * rsa
|
|
57967
|
-
* * dsa
|
|
57968
|
-
* * ssh-rsa
|
|
57969
|
-
* * ssh-dss
|
|
57970
|
-
* * ecdsa
|
|
57971
|
-
* * ssh-rsa-cert-v00@openssh.com
|
|
57972
|
-
* * ssh-dss-cert-v00@openssh.com
|
|
57973
|
-
* * ssh-rsa-cert-v01@openssh.com
|
|
57974
|
-
* * ssh-dss-cert-v01@openssh.com
|
|
57975
|
-
* * ecdsa-sha2-nistp256-cert-v01@openssh.com
|
|
57976
|
-
* * ecdsa-sha2-nistp384-cert-v01@openssh.com
|
|
57977
|
-
* * ecdsa-sha2-nistp521-cert-v01@openssh.com
|
|
57978
|
-
*
|
|
57979
|
-
* @param request ImportKeyPairRequest
|
|
57980
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
57981
|
-
* @return ImportKeyPairResponse
|
|
57982
|
-
*/
|
|
57983
57691
|
async importKeyPairWithOptions(request, runtime) {
|
|
57984
57692
|
tea_util_1.default.validateModel(request);
|
|
57985
57693
|
let query = {};
|
|
@@ -58023,26 +57731,6 @@ class Client extends openapi_client_1.default {
|
|
|
58023
57731
|
});
|
|
58024
57732
|
return $tea.cast(await this.callApi(params, req, runtime), new ImportKeyPairResponse({}));
|
|
58025
57733
|
}
|
|
58026
|
-
/**
|
|
58027
|
-
* When you call this operation, take note of the following items:
|
|
58028
|
-
* * A maximum of 500 key pairs can be created in each region.
|
|
58029
|
-
* * The key pair that you wan to import must support one of the following encryption methods:
|
|
58030
|
-
* * rsa
|
|
58031
|
-
* * dsa
|
|
58032
|
-
* * ssh-rsa
|
|
58033
|
-
* * ssh-dss
|
|
58034
|
-
* * ecdsa
|
|
58035
|
-
* * ssh-rsa-cert-v00@openssh.com
|
|
58036
|
-
* * ssh-dss-cert-v00@openssh.com
|
|
58037
|
-
* * ssh-rsa-cert-v01@openssh.com
|
|
58038
|
-
* * ssh-dss-cert-v01@openssh.com
|
|
58039
|
-
* * ecdsa-sha2-nistp256-cert-v01@openssh.com
|
|
58040
|
-
* * ecdsa-sha2-nistp384-cert-v01@openssh.com
|
|
58041
|
-
* * ecdsa-sha2-nistp521-cert-v01@openssh.com
|
|
58042
|
-
*
|
|
58043
|
-
* @param request ImportKeyPairRequest
|
|
58044
|
-
* @return ImportKeyPairResponse
|
|
58045
|
-
*/
|
|
58046
57734
|
async importKeyPair(request) {
|
|
58047
57735
|
let runtime = new $Util.RuntimeOptions({});
|
|
58048
57736
|
return await this.importKeyPairWithOptions(request, runtime);
|
|
@@ -58109,6 +57797,13 @@ class Client extends openapi_client_1.default {
|
|
|
58109
57797
|
let runtime = new $Util.RuntimeOptions({});
|
|
58110
57798
|
return await this.importSnapshotWithOptions(request, runtime);
|
|
58111
57799
|
}
|
|
57800
|
+
/**
|
|
57801
|
+
* After you call the InstallCloudAssistant operation and then the [RebootInstance](~~25502~~) operation, the Cloud Assistant client is installed and takes effect.
|
|
57802
|
+
*
|
|
57803
|
+
* @param request InstallCloudAssistantRequest
|
|
57804
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
57805
|
+
* @return InstallCloudAssistantResponse
|
|
57806
|
+
*/
|
|
58112
57807
|
async installCloudAssistantWithOptions(request, runtime) {
|
|
58113
57808
|
tea_util_1.default.validateModel(request);
|
|
58114
57809
|
let query = {};
|
|
@@ -58149,30 +57844,16 @@ class Client extends openapi_client_1.default {
|
|
|
58149
57844
|
});
|
|
58150
57845
|
return $tea.cast(await this.callApi(params, req, runtime), new InstallCloudAssistantResponse({}));
|
|
58151
57846
|
}
|
|
57847
|
+
/**
|
|
57848
|
+
* After you call the InstallCloudAssistant operation and then the [RebootInstance](~~25502~~) operation, the Cloud Assistant client is installed and takes effect.
|
|
57849
|
+
*
|
|
57850
|
+
* @param request InstallCloudAssistantRequest
|
|
57851
|
+
* @return InstallCloudAssistantResponse
|
|
57852
|
+
*/
|
|
58152
57853
|
async installCloudAssistant(request) {
|
|
58153
57854
|
let runtime = new $Util.RuntimeOptions({});
|
|
58154
57855
|
return await this.installCloudAssistantWithOptions(request, runtime);
|
|
58155
57856
|
}
|
|
58156
|
-
/**
|
|
58157
|
-
* * The ECS instances on which you want to run the Cloud Assistant command must meet the following requirements. If you specify multiple ECS instances and one of the instances does not meet the requirements to run the command, the call fails. Specify instances that meet the requirements and call the InvokeCommand operation again.
|
|
58158
|
-
* * The network type is virtual private cloud (VPC). For more information, see [What is a VPC?](~~34217~~)
|
|
58159
|
-
* * The instances are in the Running (`Running`) state.
|
|
58160
|
-
* * The Cloud Assistant client is installed on the instances. For more information, see [Install the Cloud Assistant client](~~64921~~).
|
|
58161
|
-
* * Before you run PowerShell commands, make sure that the PowerShell module is configured for the instances.
|
|
58162
|
-
* * If you set the `Timed` parameter to false, the command is run only once.
|
|
58163
|
-
* * If you set the `Timed` parameter to true, the command is run on a schedule.
|
|
58164
|
-
* * The schedule is specified by the `Frequency` parameter. The execution results of a command do not affect the next command execution.
|
|
58165
|
-
* * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information, see [Configure the NTP service and time zone for Linux instances](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
|
|
58166
|
-
* To ensure that scheduled tasks can run as expected, make sure that the version of the Cloud Assistant client is not earlier than the following versions. A scheduled task can run a command at a specified interval, only once at a specified time, or at specific times based on a cron expression that includes a specific year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update the Cloud Assistant client to the latest version. For more information, see [Upgrade or disable upgrades for the Cloud Assistant client](~~134383~~).
|
|
58167
|
-
* - Linux: 2.2.3.282
|
|
58168
|
-
* - Windows: 2.1.3.282
|
|
58169
|
-
* * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on the Cloud Assistant client. If an execution fails, no execution information is generated.
|
|
58170
|
-
* * If you enable the custom parameter feature by setting the EnableParameter parameter to true when you create a command, you must specify custom parameters (`Parameters`) when you run the command.
|
|
58171
|
-
*
|
|
58172
|
-
* @param tmpReq InvokeCommandRequest
|
|
58173
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
58174
|
-
* @return InvokeCommandResponse
|
|
58175
|
-
*/
|
|
58176
57857
|
async invokeCommandWithOptions(tmpReq, runtime) {
|
|
58177
57858
|
tea_util_1.default.validateModel(tmpReq);
|
|
58178
57859
|
let request = new InvokeCommandShrinkRequest({});
|
|
@@ -58254,36 +57935,10 @@ class Client extends openapi_client_1.default {
|
|
|
58254
57935
|
});
|
|
58255
57936
|
return $tea.cast(await this.callApi(params, req, runtime), new InvokeCommandResponse({}));
|
|
58256
57937
|
}
|
|
58257
|
-
/**
|
|
58258
|
-
* * The ECS instances on which you want to run the Cloud Assistant command must meet the following requirements. If you specify multiple ECS instances and one of the instances does not meet the requirements to run the command, the call fails. Specify instances that meet the requirements and call the InvokeCommand operation again.
|
|
58259
|
-
* * The network type is virtual private cloud (VPC). For more information, see [What is a VPC?](~~34217~~)
|
|
58260
|
-
* * The instances are in the Running (`Running`) state.
|
|
58261
|
-
* * The Cloud Assistant client is installed on the instances. For more information, see [Install the Cloud Assistant client](~~64921~~).
|
|
58262
|
-
* * Before you run PowerShell commands, make sure that the PowerShell module is configured for the instances.
|
|
58263
|
-
* * If you set the `Timed` parameter to false, the command is run only once.
|
|
58264
|
-
* * If you set the `Timed` parameter to true, the command is run on a schedule.
|
|
58265
|
-
* * The schedule is specified by the `Frequency` parameter. The execution results of a command do not affect the next command execution.
|
|
58266
|
-
* * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information, see [Configure the NTP service and time zone for Linux instances](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
|
|
58267
|
-
* To ensure that scheduled tasks can run as expected, make sure that the version of the Cloud Assistant client is not earlier than the following versions. A scheduled task can run a command at a specified interval, only once at a specified time, or at specific times based on a cron expression that includes a specific year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update the Cloud Assistant client to the latest version. For more information, see [Upgrade or disable upgrades for the Cloud Assistant client](~~134383~~).
|
|
58268
|
-
* - Linux: 2.2.3.282
|
|
58269
|
-
* - Windows: 2.1.3.282
|
|
58270
|
-
* * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on the Cloud Assistant client. If an execution fails, no execution information is generated.
|
|
58271
|
-
* * If you enable the custom parameter feature by setting the EnableParameter parameter to true when you create a command, you must specify custom parameters (`Parameters`) when you run the command.
|
|
58272
|
-
*
|
|
58273
|
-
* @param request InvokeCommandRequest
|
|
58274
|
-
* @return InvokeCommandResponse
|
|
58275
|
-
*/
|
|
58276
57938
|
async invokeCommand(request) {
|
|
58277
57939
|
let runtime = new $Util.RuntimeOptions({});
|
|
58278
57940
|
return await this.invokeCommandWithOptions(request, runtime);
|
|
58279
57941
|
}
|
|
58280
|
-
/**
|
|
58281
|
-
* A resource is a cloud service entity that you create in Alibaba Cloud, such as an ECS instance, elastic network interface (ENI), or image. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources and monitor and run tasks in a centralized manner without switching between Alibaba Cloud services.
|
|
58282
|
-
*
|
|
58283
|
-
* @param request JoinResourceGroupRequest
|
|
58284
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
58285
|
-
* @return JoinResourceGroupResponse
|
|
58286
|
-
*/
|
|
58287
57942
|
async joinResourceGroupWithOptions(request, runtime) {
|
|
58288
57943
|
tea_util_1.default.validateModel(request);
|
|
58289
57944
|
let query = {};
|
|
@@ -58327,32 +57982,10 @@ class Client extends openapi_client_1.default {
|
|
|
58327
57982
|
});
|
|
58328
57983
|
return $tea.cast(await this.callApi(params, req, runtime), new JoinResourceGroupResponse({}));
|
|
58329
57984
|
}
|
|
58330
|
-
/**
|
|
58331
|
-
* A resource is a cloud service entity that you create in Alibaba Cloud, such as an ECS instance, elastic network interface (ENI), or image. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources and monitor and run tasks in a centralized manner without switching between Alibaba Cloud services.
|
|
58332
|
-
*
|
|
58333
|
-
* @param request JoinResourceGroupRequest
|
|
58334
|
-
* @return JoinResourceGroupResponse
|
|
58335
|
-
*/
|
|
58336
57985
|
async joinResourceGroup(request) {
|
|
58337
57986
|
let runtime = new $Util.RuntimeOptions({});
|
|
58338
57987
|
return await this.joinResourceGroupWithOptions(request, runtime);
|
|
58339
57988
|
}
|
|
58340
|
-
/**
|
|
58341
|
-
* > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add instances to or remove instances from a security group, and call the [ModifyNetworkInterfaceAttribute](~~58513~~) operation to add ENIs to or remove ENIs from a security group.
|
|
58342
|
-
* When you call this operation, take note of the following items:
|
|
58343
|
-
* * Before you add an instance to a security group, the instance must be in the **Stopped** (Stopped) or **Running** (Running) state.
|
|
58344
|
-
* * An instance can be added to up to five security groups.
|
|
58345
|
-
* * To add an instance to more security groups, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm). An instance can be added to up to 16 security groups.
|
|
58346
|
-
* *
|
|
58347
|
-
* * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
|
|
58348
|
-
* * The security group and the instance must belong to the same region.
|
|
58349
|
-
* * The security group and the instance must be of the same network type. If the network type is Virtual Private Cloud (VPC), the security group and the instance must be in the same VPC.
|
|
58350
|
-
* * An instance and an ENI cannot be added to a security group at the same time. You cannot specify the `InstanceId` and `NetworkInterfaceId` parameters at the same time.
|
|
58351
|
-
*
|
|
58352
|
-
* @param request JoinSecurityGroupRequest
|
|
58353
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
58354
|
-
* @return JoinSecurityGroupResponse
|
|
58355
|
-
*/
|
|
58356
57989
|
async joinSecurityGroupWithOptions(request, runtime) {
|
|
58357
57990
|
tea_util_1.default.validateModel(request);
|
|
58358
57991
|
let query = {};
|
|
@@ -58396,21 +58029,6 @@ class Client extends openapi_client_1.default {
|
|
|
58396
58029
|
});
|
|
58397
58030
|
return $tea.cast(await this.callApi(params, req, runtime), new JoinSecurityGroupResponse({}));
|
|
58398
58031
|
}
|
|
58399
|
-
/**
|
|
58400
|
-
* > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add instances to or remove instances from a security group, and call the [ModifyNetworkInterfaceAttribute](~~58513~~) operation to add ENIs to or remove ENIs from a security group.
|
|
58401
|
-
* When you call this operation, take note of the following items:
|
|
58402
|
-
* * Before you add an instance to a security group, the instance must be in the **Stopped** (Stopped) or **Running** (Running) state.
|
|
58403
|
-
* * An instance can be added to up to five security groups.
|
|
58404
|
-
* * To add an instance to more security groups, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm). An instance can be added to up to 16 security groups.
|
|
58405
|
-
* *
|
|
58406
|
-
* * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
|
|
58407
|
-
* * The security group and the instance must belong to the same region.
|
|
58408
|
-
* * The security group and the instance must be of the same network type. If the network type is Virtual Private Cloud (VPC), the security group and the instance must be in the same VPC.
|
|
58409
|
-
* * An instance and an ENI cannot be added to a security group at the same time. You cannot specify the `InstanceId` and `NetworkInterfaceId` parameters at the same time.
|
|
58410
|
-
*
|
|
58411
|
-
* @param request JoinSecurityGroupRequest
|
|
58412
|
-
* @return JoinSecurityGroupResponse
|
|
58413
|
-
*/
|
|
58414
58032
|
async joinSecurityGroup(request) {
|
|
58415
58033
|
let runtime = new $Util.RuntimeOptions({});
|
|
58416
58034
|
return await this.joinSecurityGroupWithOptions(request, runtime);
|
|
@@ -58483,15 +58101,6 @@ class Client extends openapi_client_1.default {
|
|
|
58483
58101
|
let runtime = new $Util.RuntimeOptions({});
|
|
58484
58102
|
return await this.leaveSecurityGroupWithOptions(request, runtime);
|
|
58485
58103
|
}
|
|
58486
|
-
/**
|
|
58487
|
-
* Before you call this operation to query the states of Cloud Assistant plug-ins on ECS instances, make sure that the versions of the Cloud Assistant client installed on the instances are not earlier than the following ones:
|
|
58488
|
-
* - 2.2.3.344 for Linux instances
|
|
58489
|
-
* - 2.1.3.344 for Windows instances
|
|
58490
|
-
*
|
|
58491
|
-
* @param request ListPluginStatusRequest
|
|
58492
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
58493
|
-
* @return ListPluginStatusResponse
|
|
58494
|
-
*/
|
|
58495
58104
|
async listPluginStatusWithOptions(request, runtime) {
|
|
58496
58105
|
tea_util_1.default.validateModel(request);
|
|
58497
58106
|
let query = {};
|
|
@@ -58541,31 +58150,10 @@ class Client extends openapi_client_1.default {
|
|
|
58541
58150
|
});
|
|
58542
58151
|
return $tea.cast(await this.callApi(params, req, runtime), new ListPluginStatusResponse({}));
|
|
58543
58152
|
}
|
|
58544
|
-
/**
|
|
58545
|
-
* Before you call this operation to query the states of Cloud Assistant plug-ins on ECS instances, make sure that the versions of the Cloud Assistant client installed on the instances are not earlier than the following ones:
|
|
58546
|
-
* - 2.2.3.344 for Linux instances
|
|
58547
|
-
* - 2.1.3.344 for Windows instances
|
|
58548
|
-
*
|
|
58549
|
-
* @param request ListPluginStatusRequest
|
|
58550
|
-
* @return ListPluginStatusResponse
|
|
58551
|
-
*/
|
|
58552
58153
|
async listPluginStatus(request) {
|
|
58553
58154
|
let runtime = new $Util.RuntimeOptions({});
|
|
58554
58155
|
return await this.listPluginStatusWithOptions(request, runtime);
|
|
58555
58156
|
}
|
|
58556
|
-
/**
|
|
58557
|
-
* Specify at least one of the following parameters or parameter pairs in a request to determine a query object:
|
|
58558
|
-
* * `ResourceId.N`
|
|
58559
|
-
* * `Tag.N` parameter pair (`Tag.N.Key` and `Tag.N.Value`)
|
|
58560
|
-
* * `TagFilter.N`
|
|
58561
|
-
* If one of the following sets of request parameters is specified as filter conditions, only ECS resources that meet all of the specified filter conditions are returned:
|
|
58562
|
-
* * Set 1: `Tag.N.Key, Tag.N.Value`, and `ResourceId.N`
|
|
58563
|
-
* * Set 2: `TagFilter.N.TagKey, TagFilter.N.TagValues.N`, and `ResourceId.N`
|
|
58564
|
-
*
|
|
58565
|
-
* @param request ListTagResourcesRequest
|
|
58566
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
58567
|
-
* @return ListTagResourcesResponse
|
|
58568
|
-
*/
|
|
58569
58157
|
async listTagResourcesWithOptions(request, runtime) {
|
|
58570
58158
|
tea_util_1.default.validateModel(request);
|
|
58571
58159
|
let query = {};
|
|
@@ -58618,31 +58206,10 @@ class Client extends openapi_client_1.default {
|
|
|
58618
58206
|
});
|
|
58619
58207
|
return $tea.cast(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
58620
58208
|
}
|
|
58621
|
-
/**
|
|
58622
|
-
* Specify at least one of the following parameters or parameter pairs in a request to determine a query object:
|
|
58623
|
-
* * `ResourceId.N`
|
|
58624
|
-
* * `Tag.N` parameter pair (`Tag.N.Key` and `Tag.N.Value`)
|
|
58625
|
-
* * `TagFilter.N`
|
|
58626
|
-
* If one of the following sets of request parameters is specified as filter conditions, only ECS resources that meet all of the specified filter conditions are returned:
|
|
58627
|
-
* * Set 1: `Tag.N.Key, Tag.N.Value`, and `ResourceId.N`
|
|
58628
|
-
* * Set 2: `TagFilter.N.TagKey, TagFilter.N.TagValues.N`, and `ResourceId.N`
|
|
58629
|
-
*
|
|
58630
|
-
* @param request ListTagResourcesRequest
|
|
58631
|
-
* @return ListTagResourcesResponse
|
|
58632
|
-
*/
|
|
58633
58209
|
async listTagResources(request) {
|
|
58634
58210
|
let runtime = new $Util.RuntimeOptions({});
|
|
58635
58211
|
return await this.listTagResourcesWithOptions(request, runtime);
|
|
58636
58212
|
}
|
|
58637
|
-
/**
|
|
58638
|
-
* Before you call this operation, take note of the following items:
|
|
58639
|
-
* * If you modify the capacity or capacity-related settings of an auto provisioning group, the group executes the scheduling task once after the modification.
|
|
58640
|
-
* * You cannot modify an auto provisioning group when the group is being deleted.
|
|
58641
|
-
*
|
|
58642
|
-
* @param request ModifyAutoProvisioningGroupRequest
|
|
58643
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
58644
|
-
* @return ModifyAutoProvisioningGroupResponse
|
|
58645
|
-
*/
|
|
58646
58213
|
async modifyAutoProvisioningGroupWithOptions(request, runtime) {
|
|
58647
58214
|
tea_util_1.default.validateModel(request);
|
|
58648
58215
|
let query = {};
|
|
@@ -58707,14 +58274,6 @@ class Client extends openapi_client_1.default {
|
|
|
58707
58274
|
});
|
|
58708
58275
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyAutoProvisioningGroupResponse({}));
|
|
58709
58276
|
}
|
|
58710
|
-
/**
|
|
58711
|
-
* Before you call this operation, take note of the following items:
|
|
58712
|
-
* * If you modify the capacity or capacity-related settings of an auto provisioning group, the group executes the scheduling task once after the modification.
|
|
58713
|
-
* * You cannot modify an auto provisioning group when the group is being deleted.
|
|
58714
|
-
*
|
|
58715
|
-
* @param request ModifyAutoProvisioningGroupRequest
|
|
58716
|
-
* @return ModifyAutoProvisioningGroupResponse
|
|
58717
|
-
*/
|
|
58718
58277
|
async modifyAutoProvisioningGroup(request) {
|
|
58719
58278
|
let runtime = new $Util.RuntimeOptions({});
|
|
58720
58279
|
return await this.modifyAutoProvisioningGroupWithOptions(request, runtime);
|
|
@@ -58970,14 +58529,6 @@ class Client extends openapi_client_1.default {
|
|
|
58970
58529
|
let runtime = new $Util.RuntimeOptions({});
|
|
58971
58530
|
return await this.modifyCapacityReservationWithOptions(request, runtime);
|
|
58972
58531
|
}
|
|
58973
|
-
/**
|
|
58974
|
-
* You can modify a command when it is being executed. After the command is modified, the new command content applies to subsequent executions.
|
|
58975
|
-
* You cannot modify the command type. For example, you cannot change a shell command (RunShellScript) to a batch command (RunBatScript).
|
|
58976
|
-
*
|
|
58977
|
-
* @param request ModifyCommandRequest
|
|
58978
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
58979
|
-
* @return ModifyCommandResponse
|
|
58980
|
-
*/
|
|
58981
58532
|
async modifyCommandWithOptions(request, runtime) {
|
|
58982
58533
|
tea_util_1.default.validateModel(request);
|
|
58983
58534
|
let query = {};
|
|
@@ -59033,26 +58584,10 @@ class Client extends openapi_client_1.default {
|
|
|
59033
58584
|
});
|
|
59034
58585
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyCommandResponse({}));
|
|
59035
58586
|
}
|
|
59036
|
-
/**
|
|
59037
|
-
* You can modify a command when it is being executed. After the command is modified, the new command content applies to subsequent executions.
|
|
59038
|
-
* You cannot modify the command type. For example, you cannot change a shell command (RunShellScript) to a batch command (RunBatScript).
|
|
59039
|
-
*
|
|
59040
|
-
* @param request ModifyCommandRequest
|
|
59041
|
-
* @return ModifyCommandResponse
|
|
59042
|
-
*/
|
|
59043
58587
|
async modifyCommand(request) {
|
|
59044
58588
|
let runtime = new $Util.RuntimeOptions({});
|
|
59045
58589
|
return await this.modifyCommandWithOptions(request, runtime);
|
|
59046
58590
|
}
|
|
59047
|
-
/**
|
|
59048
|
-
* ## Description
|
|
59049
|
-
* * All the Elastic Compute Service (ECS) instances that are hosted on a dedicated host must be in the Stopped (`Stopped`) state before you can modify the CPU overcommit ratio of the dedicated host.
|
|
59050
|
-
* * Modifications to the CPU overcommit ratio of a dedicated host do not affect the operation of the dedicated host. After the CPU overcommit ratio is modified, the number of allocated vCPUs on the dedicated host cannot exceed the new total number of vCPUs. Otherwise, ECS instances that use the excess vCPUs cannot start.
|
|
59051
|
-
*
|
|
59052
|
-
* @param request ModifyDedicatedHostAttributeRequest
|
|
59053
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
59054
|
-
* @return ModifyDedicatedHostAttributeResponse
|
|
59055
|
-
*/
|
|
59056
58591
|
async modifyDedicatedHostAttributeWithOptions(request, runtime) {
|
|
59057
58592
|
tea_util_1.default.validateModel(request);
|
|
59058
58593
|
let query = {};
|
|
@@ -59111,25 +58646,10 @@ class Client extends openapi_client_1.default {
|
|
|
59111
58646
|
});
|
|
59112
58647
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDedicatedHostAttributeResponse({}));
|
|
59113
58648
|
}
|
|
59114
|
-
/**
|
|
59115
|
-
* ## Description
|
|
59116
|
-
* * All the Elastic Compute Service (ECS) instances that are hosted on a dedicated host must be in the Stopped (`Stopped`) state before you can modify the CPU overcommit ratio of the dedicated host.
|
|
59117
|
-
* * Modifications to the CPU overcommit ratio of a dedicated host do not affect the operation of the dedicated host. After the CPU overcommit ratio is modified, the number of allocated vCPUs on the dedicated host cannot exceed the new total number of vCPUs. Otherwise, ECS instances that use the excess vCPUs cannot start.
|
|
59118
|
-
*
|
|
59119
|
-
* @param request ModifyDedicatedHostAttributeRequest
|
|
59120
|
-
* @return ModifyDedicatedHostAttributeResponse
|
|
59121
|
-
*/
|
|
59122
58649
|
async modifyDedicatedHostAttribute(request) {
|
|
59123
58650
|
let runtime = new $Util.RuntimeOptions({});
|
|
59124
58651
|
return await this.modifyDedicatedHostAttributeWithOptions(request, runtime);
|
|
59125
58652
|
}
|
|
59126
|
-
/**
|
|
59127
|
-
* The pay-as-you-go dedicated host is automatically released at the specified time. Make sure that the dedicated host is no longer needed and that its data is backed up.
|
|
59128
|
-
*
|
|
59129
|
-
* @param request ModifyDedicatedHostAutoReleaseTimeRequest
|
|
59130
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
59131
|
-
* @return ModifyDedicatedHostAutoReleaseTimeResponse
|
|
59132
|
-
*/
|
|
59133
58653
|
async modifyDedicatedHostAutoReleaseTimeWithOptions(request, runtime) {
|
|
59134
58654
|
tea_util_1.default.validateModel(request);
|
|
59135
58655
|
let query = {};
|
|
@@ -59170,25 +58690,10 @@ class Client extends openapi_client_1.default {
|
|
|
59170
58690
|
});
|
|
59171
58691
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDedicatedHostAutoReleaseTimeResponse({}));
|
|
59172
58692
|
}
|
|
59173
|
-
/**
|
|
59174
|
-
* The pay-as-you-go dedicated host is automatically released at the specified time. Make sure that the dedicated host is no longer needed and that its data is backed up.
|
|
59175
|
-
*
|
|
59176
|
-
* @param request ModifyDedicatedHostAutoReleaseTimeRequest
|
|
59177
|
-
* @return ModifyDedicatedHostAutoReleaseTimeResponse
|
|
59178
|
-
*/
|
|
59179
58693
|
async modifyDedicatedHostAutoReleaseTime(request) {
|
|
59180
58694
|
let runtime = new $Util.RuntimeOptions({});
|
|
59181
58695
|
return await this.modifyDedicatedHostAutoReleaseTimeWithOptions(request, runtime);
|
|
59182
58696
|
}
|
|
59183
|
-
/**
|
|
59184
|
-
* ## Description
|
|
59185
|
-
* * If you enable auto-renewal for your subscription dedicated host, the dedicated host is automatically renewed nine days before expiration. The renewal fees are automatically paid at 08:00:00 (UTC+8). If the fees are not paid, they are paid at the same point in time the next day. Automatic payment stops after the fees are paid or after the dedicated host expires and is locked. Make sure that you have sufficient balance within your account.
|
|
59186
|
-
* * Subscription dedicated hosts can be automatically renewed along with the subscription Elastic Compute Service (ECS) instances hosted on the dedicated hosts. For more information, see the description of the AutoRenewWithEcs parameter.
|
|
59187
|
-
*
|
|
59188
|
-
* @param request ModifyDedicatedHostAutoRenewAttributeRequest
|
|
59189
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
59190
|
-
* @return ModifyDedicatedHostAutoRenewAttributeResponse
|
|
59191
|
-
*/
|
|
59192
58697
|
async modifyDedicatedHostAutoRenewAttributeWithOptions(request, runtime) {
|
|
59193
58698
|
tea_util_1.default.validateModel(request);
|
|
59194
58699
|
let query = {};
|
|
@@ -59241,14 +58746,6 @@ class Client extends openapi_client_1.default {
|
|
|
59241
58746
|
});
|
|
59242
58747
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDedicatedHostAutoRenewAttributeResponse({}));
|
|
59243
58748
|
}
|
|
59244
|
-
/**
|
|
59245
|
-
* ## Description
|
|
59246
|
-
* * If you enable auto-renewal for your subscription dedicated host, the dedicated host is automatically renewed nine days before expiration. The renewal fees are automatically paid at 08:00:00 (UTC+8). If the fees are not paid, they are paid at the same point in time the next day. Automatic payment stops after the fees are paid or after the dedicated host expires and is locked. Make sure that you have sufficient balance within your account.
|
|
59247
|
-
* * Subscription dedicated hosts can be automatically renewed along with the subscription Elastic Compute Service (ECS) instances hosted on the dedicated hosts. For more information, see the description of the AutoRenewWithEcs parameter.
|
|
59248
|
-
*
|
|
59249
|
-
* @param request ModifyDedicatedHostAutoRenewAttributeRequest
|
|
59250
|
-
* @return ModifyDedicatedHostAutoRenewAttributeResponse
|
|
59251
|
-
*/
|
|
59252
58749
|
async modifyDedicatedHostAutoRenewAttribute(request) {
|
|
59253
58750
|
let runtime = new $Util.RuntimeOptions({});
|
|
59254
58751
|
return await this.modifyDedicatedHostAutoRenewAttributeWithOptions(request, runtime);
|
|
@@ -59362,6 +58859,14 @@ class Client extends openapi_client_1.default {
|
|
|
59362
58859
|
let runtime = new $Util.RuntimeOptions({});
|
|
59363
58860
|
return await this.modifyDedicatedHostsChargeTypeWithOptions(request, runtime);
|
|
59364
58861
|
}
|
|
58862
|
+
/**
|
|
58863
|
+
* You can call this operation to modify the demand information about instance types. Alibaba Cloud provides the requested resources based on your demand. You can file demands only for I/O optimized instance types and instances of the virtual private cloud (VPC) type. Parameters except `DemandName` and `DemandDescription` can be modified only for demands that are in the Rejected state.
|
|
58864
|
+
* > This operation is in internal preview and has not been officially released. We recommend that you do not use this operation.
|
|
58865
|
+
*
|
|
58866
|
+
* @param request ModifyDemandRequest
|
|
58867
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
58868
|
+
* @return ModifyDemandResponse
|
|
58869
|
+
*/
|
|
59365
58870
|
async modifyDemandWithOptions(request, runtime) {
|
|
59366
58871
|
tea_util_1.default.validateModel(request);
|
|
59367
58872
|
let query = {};
|
|
@@ -59432,6 +58937,13 @@ class Client extends openapi_client_1.default {
|
|
|
59432
58937
|
});
|
|
59433
58938
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDemandResponse({}));
|
|
59434
58939
|
}
|
|
58940
|
+
/**
|
|
58941
|
+
* You can call this operation to modify the demand information about instance types. Alibaba Cloud provides the requested resources based on your demand. You can file demands only for I/O optimized instance types and instances of the virtual private cloud (VPC) type. Parameters except `DemandName` and `DemandDescription` can be modified only for demands that are in the Rejected state.
|
|
58942
|
+
* > This operation is in internal preview and has not been officially released. We recommend that you do not use this operation.
|
|
58943
|
+
*
|
|
58944
|
+
* @param request ModifyDemandRequest
|
|
58945
|
+
* @return ModifyDemandResponse
|
|
58946
|
+
*/
|
|
59435
58947
|
async modifyDemand(request) {
|
|
59436
58948
|
let runtime = new $Util.RuntimeOptions({});
|
|
59437
58949
|
return await this.modifyDemandWithOptions(request, runtime);
|
|
@@ -59601,21 +59113,6 @@ class Client extends openapi_client_1.default {
|
|
|
59601
59113
|
let runtime = new $Util.RuntimeOptions({});
|
|
59602
59114
|
return await this.modifyDiskAttributeWithOptions(request, runtime);
|
|
59603
59115
|
}
|
|
59604
|
-
/**
|
|
59605
|
-
* After you change the billing method, the payment (if any) is automatically completed. Maintain a sufficient account balance. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the AutoPay parameter to false to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
|
|
59606
|
-
* When you call this operation, take note of the following items:
|
|
59607
|
-
* * You can change the billing method from subscription to pay-as-you-go for disks that are attached to a subscription instance.
|
|
59608
|
-
* * You can change the billing method from pay-as-you-go to subscription for data disks that are attached to a subscription or pay-as-you-go instance.
|
|
59609
|
-
* * The instance cannot be in the Stopped state due to overdue payments.
|
|
59610
|
-
* * You can change the billing method of each disk up to three times. Up to three refunds can be made for the price differences for each disk.
|
|
59611
|
-
* * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
|
|
59612
|
-
* * You cannot change the billing method again within 5 minutes of a successful change.
|
|
59613
|
-
* * The billing method of disks with the multi-attach feature enabled must be pay-as-you-go and cannot be changed to subscription.
|
|
59614
|
-
*
|
|
59615
|
-
* @param request ModifyDiskChargeTypeRequest
|
|
59616
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
59617
|
-
* @return ModifyDiskChargeTypeResponse
|
|
59618
|
-
*/
|
|
59619
59116
|
async modifyDiskChargeTypeWithOptions(request, runtime) {
|
|
59620
59117
|
tea_util_1.default.validateModel(request);
|
|
59621
59118
|
let query = {};
|
|
@@ -59665,24 +59162,26 @@ class Client extends openapi_client_1.default {
|
|
|
59665
59162
|
});
|
|
59666
59163
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDiskChargeTypeResponse({}));
|
|
59667
59164
|
}
|
|
59668
|
-
/**
|
|
59669
|
-
* After you change the billing method, the payment (if any) is automatically completed. Maintain a sufficient account balance. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the AutoPay parameter to false to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
|
|
59670
|
-
* When you call this operation, take note of the following items:
|
|
59671
|
-
* * You can change the billing method from subscription to pay-as-you-go for disks that are attached to a subscription instance.
|
|
59672
|
-
* * You can change the billing method from pay-as-you-go to subscription for data disks that are attached to a subscription or pay-as-you-go instance.
|
|
59673
|
-
* * The instance cannot be in the Stopped state due to overdue payments.
|
|
59674
|
-
* * You can change the billing method of each disk up to three times. Up to three refunds can be made for the price differences for each disk.
|
|
59675
|
-
* * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
|
|
59676
|
-
* * You cannot change the billing method again within 5 minutes of a successful change.
|
|
59677
|
-
* * The billing method of disks with the multi-attach feature enabled must be pay-as-you-go and cannot be changed to subscription.
|
|
59678
|
-
*
|
|
59679
|
-
* @param request ModifyDiskChargeTypeRequest
|
|
59680
|
-
* @return ModifyDiskChargeTypeResponse
|
|
59681
|
-
*/
|
|
59682
59165
|
async modifyDiskChargeType(request) {
|
|
59683
59166
|
let runtime = new $Util.RuntimeOptions({});
|
|
59684
59167
|
return await this.modifyDiskChargeTypeWithOptions(request, runtime);
|
|
59685
59168
|
}
|
|
59169
|
+
/**
|
|
59170
|
+
* ## Description
|
|
59171
|
+
* When you call this operation, take note of the following items:
|
|
59172
|
+
* * To modify the performance level of an ESSD, take note of the following items:
|
|
59173
|
+
* * For a subscription ESSD, you can only upgrade its performance level.
|
|
59174
|
+
* * For a pay-as-you-go ESSD, You can upgrade or downgrade its performance level. However, you cannot downgrade the performance level to PL0.
|
|
59175
|
+
* * The ESSD must be in the **In Use** (In_Use) or **Unattached** (Available) state.
|
|
59176
|
+
* * If the ESSD is attached to an ECS instance, the instance must be in the **Running** (Running) or **Stopped** (Stopped) state. The instance cannot be in the Expired state or stopped due to an overdue payment.
|
|
59177
|
+
* * If you cannot upgrade the performance level of the ESSD due to its capacity, resize the ESSD by calling the [ResizeDisk](~~25522~~) operation and then try again. For more information, see [Enhanced SSDs](~~122389~~).
|
|
59178
|
+
* * For more information about the limits on changing the category of a disk, see the "Limits" section of the [Change the category of a disk](~~161980~~) topic.
|
|
59179
|
+
* The new disk category or performance level takes effect immediately after this operation is executed. Alibaba Cloud calculates the bill based on the new disk category and performance level.
|
|
59180
|
+
*
|
|
59181
|
+
* @param request ModifyDiskSpecRequest
|
|
59182
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
59183
|
+
* @return ModifyDiskSpecResponse
|
|
59184
|
+
*/
|
|
59686
59185
|
async modifyDiskSpecWithOptions(request, runtime) {
|
|
59687
59186
|
tea_util_1.default.validateModel(request);
|
|
59688
59187
|
let query = {};
|
|
@@ -59729,6 +59228,21 @@ class Client extends openapi_client_1.default {
|
|
|
59729
59228
|
});
|
|
59730
59229
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDiskSpecResponse({}));
|
|
59731
59230
|
}
|
|
59231
|
+
/**
|
|
59232
|
+
* ## Description
|
|
59233
|
+
* When you call this operation, take note of the following items:
|
|
59234
|
+
* * To modify the performance level of an ESSD, take note of the following items:
|
|
59235
|
+
* * For a subscription ESSD, you can only upgrade its performance level.
|
|
59236
|
+
* * For a pay-as-you-go ESSD, You can upgrade or downgrade its performance level. However, you cannot downgrade the performance level to PL0.
|
|
59237
|
+
* * The ESSD must be in the **In Use** (In_Use) or **Unattached** (Available) state.
|
|
59238
|
+
* * If the ESSD is attached to an ECS instance, the instance must be in the **Running** (Running) or **Stopped** (Stopped) state. The instance cannot be in the Expired state or stopped due to an overdue payment.
|
|
59239
|
+
* * If you cannot upgrade the performance level of the ESSD due to its capacity, resize the ESSD by calling the [ResizeDisk](~~25522~~) operation and then try again. For more information, see [Enhanced SSDs](~~122389~~).
|
|
59240
|
+
* * For more information about the limits on changing the category of a disk, see the "Limits" section of the [Change the category of a disk](~~161980~~) topic.
|
|
59241
|
+
* The new disk category or performance level takes effect immediately after this operation is executed. Alibaba Cloud calculates the bill based on the new disk category and performance level.
|
|
59242
|
+
*
|
|
59243
|
+
* @param request ModifyDiskSpecRequest
|
|
59244
|
+
* @return ModifyDiskSpecResponse
|
|
59245
|
+
*/
|
|
59732
59246
|
async modifyDiskSpec(request) {
|
|
59733
59247
|
let runtime = new $Util.RuntimeOptions({});
|
|
59734
59248
|
return await this.modifyDiskSpecWithOptions(request, runtime);
|
|
@@ -60279,29 +59793,6 @@ class Client extends openapi_client_1.default {
|
|
|
60279
59793
|
let runtime = new $Util.RuntimeOptions({});
|
|
60280
59794
|
return await this.modifyInstanceAttachmentAttributesWithOptions(request, runtime);
|
|
60281
59795
|
}
|
|
60282
|
-
/**
|
|
60283
|
-
* If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons and all operations are prohibited on it.
|
|
60284
|
-
* When you call this operation, take note of the following items:
|
|
60285
|
-
* * Modify the hostname (`HostName`): After the hostname is modified, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. The new hostname does not take effect if you restart the instance from within the operating system.
|
|
60286
|
-
* * Reset the password (`Password`):
|
|
60287
|
-
* * The instance must not be in the **Starting** (`Starting`) state.
|
|
60288
|
-
* * After the password is reset, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. The new password does not take effect if you restart the instance from within the operating system.
|
|
60289
|
-
* * Modify user data (`UserData`):
|
|
60290
|
-
* * The instance must be in the **Stopped** (`Stopped`) state.
|
|
60291
|
-
* * The instance must meet the conditions on user data. For more information, see [Overview of ECS instance user data](~~49121~~).
|
|
60292
|
-
* * Change the security group (`SecurityGroupIds.N`):
|
|
60293
|
-
* * You can move an instance to a security group of a different type. Before you move an instance to a security group of a different type, we recommend that you evaluate the differences in rule configurations of the two security group types. This helps prevent business continuity issues when you switch security groups.
|
|
60294
|
-
* * Security groups of instances in the classic network cannot be changed. For more information, see the description of the `SecurityGroupIds.N` parameter.
|
|
60295
|
-
* * Modify the number of queues supported by the primary elastic network interface (ENI) (`NetworkInterfaceQueueNumber`):
|
|
60296
|
-
* * The instance must be in the Stopped (`Stopped`) state.
|
|
60297
|
-
* * The value of this parameter cannot exceed the maximum number of queues per ENI allowed for the instance type.
|
|
60298
|
-
* * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. To obtain the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` parameters.
|
|
60299
|
-
* * If you set the NetworkInterfaceQueueNumber parameter to -1, the value is reset to the default value for the instance type. To obtain the default number of queues supported by the primary ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `PrimaryEniQueueNumber` parameter.
|
|
60300
|
-
*
|
|
60301
|
-
* @param request ModifyInstanceAttributeRequest
|
|
60302
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
60303
|
-
* @return ModifyInstanceAttributeResponse
|
|
60304
|
-
*/
|
|
60305
59796
|
async modifyInstanceAttributeWithOptions(request, runtime) {
|
|
60306
59797
|
tea_util_1.default.validateModel(request);
|
|
60307
59798
|
let query = {};
|
|
@@ -60372,28 +59863,6 @@ class Client extends openapi_client_1.default {
|
|
|
60372
59863
|
});
|
|
60373
59864
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceAttributeResponse({}));
|
|
60374
59865
|
}
|
|
60375
|
-
/**
|
|
60376
|
-
* If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons and all operations are prohibited on it.
|
|
60377
|
-
* When you call this operation, take note of the following items:
|
|
60378
|
-
* * Modify the hostname (`HostName`): After the hostname is modified, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. The new hostname does not take effect if you restart the instance from within the operating system.
|
|
60379
|
-
* * Reset the password (`Password`):
|
|
60380
|
-
* * The instance must not be in the **Starting** (`Starting`) state.
|
|
60381
|
-
* * After the password is reset, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. The new password does not take effect if you restart the instance from within the operating system.
|
|
60382
|
-
* * Modify user data (`UserData`):
|
|
60383
|
-
* * The instance must be in the **Stopped** (`Stopped`) state.
|
|
60384
|
-
* * The instance must meet the conditions on user data. For more information, see [Overview of ECS instance user data](~~49121~~).
|
|
60385
|
-
* * Change the security group (`SecurityGroupIds.N`):
|
|
60386
|
-
* * You can move an instance to a security group of a different type. Before you move an instance to a security group of a different type, we recommend that you evaluate the differences in rule configurations of the two security group types. This helps prevent business continuity issues when you switch security groups.
|
|
60387
|
-
* * Security groups of instances in the classic network cannot be changed. For more information, see the description of the `SecurityGroupIds.N` parameter.
|
|
60388
|
-
* * Modify the number of queues supported by the primary elastic network interface (ENI) (`NetworkInterfaceQueueNumber`):
|
|
60389
|
-
* * The instance must be in the Stopped (`Stopped`) state.
|
|
60390
|
-
* * The value of this parameter cannot exceed the maximum number of queues per ENI allowed for the instance type.
|
|
60391
|
-
* * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. To obtain the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` parameters.
|
|
60392
|
-
* * If you set the NetworkInterfaceQueueNumber parameter to -1, the value is reset to the default value for the instance type. To obtain the default number of queues supported by the primary ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `PrimaryEniQueueNumber` parameter.
|
|
60393
|
-
*
|
|
60394
|
-
* @param request ModifyInstanceAttributeRequest
|
|
60395
|
-
* @return ModifyInstanceAttributeResponse
|
|
60396
|
-
*/
|
|
60397
59866
|
async modifyInstanceAttribute(request) {
|
|
60398
59867
|
let runtime = new $Util.RuntimeOptions({});
|
|
60399
59868
|
return await this.modifyInstanceAttributeWithOptions(request, runtime);
|
|
@@ -60514,23 +59983,6 @@ class Client extends openapi_client_1.default {
|
|
|
60514
59983
|
let runtime = new $Util.RuntimeOptions({});
|
|
60515
59984
|
return await this.modifyInstanceAutoRenewAttributeWithOptions(request, runtime);
|
|
60516
59985
|
}
|
|
60517
|
-
/**
|
|
60518
|
-
* Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
|
|
60519
|
-
* When you call this operation, take note of the following items:
|
|
60520
|
-
* * The instances must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state, and you have no overdue payments for them.
|
|
60521
|
-
* * After you change the billing method, automatic payment is enabled by default. Make sure that you have sufficient balance in your account. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the `AutoPay` parameter to `false` to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
|
|
60522
|
-
* * **Change the billing method from subscription to pay-as-you-go**:
|
|
60523
|
-
* * Your ECS usage determines whether the billing method of an instance can be changed from subscription to pay-as-you-go.
|
|
60524
|
-
* * After you change the billing method of an instance from subscription to pay-as-you-go, the new billing method remains in effect for the remaining lifecycle of the instance. The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
|
|
60525
|
-
* * **Refund rule**: You have a quota for the total refund amount each month, and unused balance of this quota is not carried forward into the next month. After you use up the refund quota of the current month, you can change the billing method only when the next month arrives. The refund amount incurred when you change the billing method is calculated based on the following formula: **Number of vCPUs × (Number of remaining days × 24 ± Number of remaining or elapsed hours)**.
|
|
60526
|
-
* * **Change the billing method from pay-as-you-go to subscription**:
|
|
60527
|
-
* * You can change the billing method of all data disks attached to an instance from pay-as-you-go to subscription.
|
|
60528
|
-
* * This operation cannot be called for a pay-as-you-go instance that has an automatic release time set.
|
|
60529
|
-
*
|
|
60530
|
-
* @param request ModifyInstanceChargeTypeRequest
|
|
60531
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
60532
|
-
* @return ModifyInstanceChargeTypeResponse
|
|
60533
|
-
*/
|
|
60534
59986
|
async modifyInstanceChargeTypeWithOptions(request, runtime) {
|
|
60535
59987
|
tea_util_1.default.validateModel(request);
|
|
60536
59988
|
let query = {};
|
|
@@ -60592,22 +60044,6 @@ class Client extends openapi_client_1.default {
|
|
|
60592
60044
|
});
|
|
60593
60045
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceChargeTypeResponse({}));
|
|
60594
60046
|
}
|
|
60595
|
-
/**
|
|
60596
|
-
* Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
|
|
60597
|
-
* When you call this operation, take note of the following items:
|
|
60598
|
-
* * The instances must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state, and you have no overdue payments for them.
|
|
60599
|
-
* * After you change the billing method, automatic payment is enabled by default. Make sure that you have sufficient balance in your account. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the `AutoPay` parameter to `false` to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
|
|
60600
|
-
* * **Change the billing method from subscription to pay-as-you-go**:
|
|
60601
|
-
* * Your ECS usage determines whether the billing method of an instance can be changed from subscription to pay-as-you-go.
|
|
60602
|
-
* * After you change the billing method of an instance from subscription to pay-as-you-go, the new billing method remains in effect for the remaining lifecycle of the instance. The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
|
|
60603
|
-
* * **Refund rule**: You have a quota for the total refund amount each month, and unused balance of this quota is not carried forward into the next month. After you use up the refund quota of the current month, you can change the billing method only when the next month arrives. The refund amount incurred when you change the billing method is calculated based on the following formula: **Number of vCPUs × (Number of remaining days × 24 ± Number of remaining or elapsed hours)**.
|
|
60604
|
-
* * **Change the billing method from pay-as-you-go to subscription**:
|
|
60605
|
-
* * You can change the billing method of all data disks attached to an instance from pay-as-you-go to subscription.
|
|
60606
|
-
* * This operation cannot be called for a pay-as-you-go instance that has an automatic release time set.
|
|
60607
|
-
*
|
|
60608
|
-
* @param request ModifyInstanceChargeTypeRequest
|
|
60609
|
-
* @return ModifyInstanceChargeTypeResponse
|
|
60610
|
-
*/
|
|
60611
60047
|
async modifyInstanceChargeType(request) {
|
|
60612
60048
|
let runtime = new $Util.RuntimeOptions({});
|
|
60613
60049
|
return await this.modifyInstanceChargeTypeWithOptions(request, runtime);
|
|
@@ -60708,15 +60144,6 @@ class Client extends openapi_client_1.default {
|
|
|
60708
60144
|
let runtime = new $Util.RuntimeOptions({});
|
|
60709
60145
|
return await this.modifyInstanceDeploymentWithOptions(request, runtime);
|
|
60710
60146
|
}
|
|
60711
|
-
/**
|
|
60712
|
-
* This operation is used to modify the maintenance policy of an instance. The maintenance policy consists of the following maintenance attributes:
|
|
60713
|
-
* * Maintenance window: the time period that you specify for maintenance.
|
|
60714
|
-
* * Maintenance action: the action that you specify in response to instance shutdown.
|
|
60715
|
-
*
|
|
60716
|
-
* @param request ModifyInstanceMaintenanceAttributesRequest
|
|
60717
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
60718
|
-
* @return ModifyInstanceMaintenanceAttributesResponse
|
|
60719
|
-
*/
|
|
60720
60147
|
async modifyInstanceMaintenanceAttributesWithOptions(request, runtime) {
|
|
60721
60148
|
tea_util_1.default.validateModel(request);
|
|
60722
60149
|
let query = {};
|
|
@@ -60763,14 +60190,6 @@ class Client extends openapi_client_1.default {
|
|
|
60763
60190
|
});
|
|
60764
60191
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceMaintenanceAttributesResponse({}));
|
|
60765
60192
|
}
|
|
60766
|
-
/**
|
|
60767
|
-
* This operation is used to modify the maintenance policy of an instance. The maintenance policy consists of the following maintenance attributes:
|
|
60768
|
-
* * Maintenance window: the time period that you specify for maintenance.
|
|
60769
|
-
* * Maintenance action: the action that you specify in response to instance shutdown.
|
|
60770
|
-
*
|
|
60771
|
-
* @param request ModifyInstanceMaintenanceAttributesRequest
|
|
60772
|
-
* @return ModifyInstanceMaintenanceAttributesResponse
|
|
60773
|
-
*/
|
|
60774
60193
|
async modifyInstanceMaintenanceAttributes(request) {
|
|
60775
60194
|
let runtime = new $Util.RuntimeOptions({});
|
|
60776
60195
|
return await this.modifyInstanceMaintenanceAttributesWithOptions(request, runtime);
|
|
@@ -60919,24 +60338,6 @@ class Client extends openapi_client_1.default {
|
|
|
60919
60338
|
let runtime = new $Util.RuntimeOptions({});
|
|
60920
60339
|
return await this.modifyInstanceNetworkSpecWithOptions(request, runtime);
|
|
60921
60340
|
}
|
|
60922
|
-
/**
|
|
60923
|
-
* ## Description
|
|
60924
|
-
* Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, visit the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
|
|
60925
|
-
* For information about ECS SDK for Python used to change resource configurations, see [Query available resources for configuration changes](~~109517~~).
|
|
60926
|
-
* When you call this operation, take note of the following items:
|
|
60927
|
-
* * You must have no overdue payments in your account.
|
|
60928
|
-
* * You can adjust the public bandwidth of an instance only when the instance is in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
|
|
60929
|
-
* * Before you change the instance type of a pay-as-you-go instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change.
|
|
60930
|
-
* * You can change the instance type of an instance only when the instance is in the **Stopped** (`Stopped`) state.
|
|
60931
|
-
* * The instance type and the public bandwidth of an instance cannot be changed together.
|
|
60932
|
-
* * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to throttling policies for your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
|
|
60933
|
-
* * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
|
|
60934
|
-
* * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
|
|
60935
|
-
*
|
|
60936
|
-
* @param request ModifyInstanceSpecRequest
|
|
60937
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
60938
|
-
* @return ModifyInstanceSpecResponse
|
|
60939
|
-
*/
|
|
60940
60341
|
async modifyInstanceSpecWithOptions(request, runtime) {
|
|
60941
60342
|
tea_util_1.default.validateModel(request);
|
|
60942
60343
|
let query = {};
|
|
@@ -60995,23 +60396,6 @@ class Client extends openapi_client_1.default {
|
|
|
60995
60396
|
});
|
|
60996
60397
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceSpecResponse({}));
|
|
60997
60398
|
}
|
|
60998
|
-
/**
|
|
60999
|
-
* ## Description
|
|
61000
|
-
* Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, visit the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
|
|
61001
|
-
* For information about ECS SDK for Python used to change resource configurations, see [Query available resources for configuration changes](~~109517~~).
|
|
61002
|
-
* When you call this operation, take note of the following items:
|
|
61003
|
-
* * You must have no overdue payments in your account.
|
|
61004
|
-
* * You can adjust the public bandwidth of an instance only when the instance is in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
|
|
61005
|
-
* * Before you change the instance type of a pay-as-you-go instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change.
|
|
61006
|
-
* * You can change the instance type of an instance only when the instance is in the **Stopped** (`Stopped`) state.
|
|
61007
|
-
* * The instance type and the public bandwidth of an instance cannot be changed together.
|
|
61008
|
-
* * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to throttling policies for your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
|
|
61009
|
-
* * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
|
|
61010
|
-
* * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
|
|
61011
|
-
*
|
|
61012
|
-
* @param request ModifyInstanceSpecRequest
|
|
61013
|
-
* @return ModifyInstanceSpecResponse
|
|
61014
|
-
*/
|
|
61015
60399
|
async modifyInstanceSpec(request) {
|
|
61016
60400
|
let runtime = new $Util.RuntimeOptions({});
|
|
61017
60401
|
return await this.modifyInstanceSpecWithOptions(request, runtime);
|
|
@@ -61433,19 +60817,6 @@ class Client extends openapi_client_1.default {
|
|
|
61433
60817
|
let runtime = new $Util.RuntimeOptions({});
|
|
61434
60818
|
return await this.modifyPhysicalConnectionAttributeWithOptions(request, runtime);
|
|
61435
60819
|
}
|
|
61436
|
-
/**
|
|
61437
|
-
* ## Description
|
|
61438
|
-
* * The specified CIDR block must be valid. For example, 10.0.0.0/8 is a valid CIDR block while 10.0.0.1/8 is not. For more information, see the [What is CIDR?](https://www.alibabacloud.com/help/doc-detail/40637.htm#section-jua-0tj-q5m) section in Network FAQ.
|
|
61439
|
-
* * When you add or delete an entry, you cannot specify duplicate CIDR blocks. Examples:
|
|
61440
|
-
* * For IPv4 CIDR blocks, you cannot specify the 10.0.0.0/8 CIDR block in two entries. You cannot specify the 10.0.0.1/32 CIDR block in one entry and the 10.0.0.1 CIDR block in another entry. These two CIDR blocks are the same.
|
|
61441
|
-
* * For IPv6 CIDR blocks, you cannot specify the 2001:fd01:0:0:0:0:0:0/32 CIDR block in one entry and the 2001:fd01::/32 CIDR block in another entry. These two CIDR blocks are the same.
|
|
61442
|
-
* * The CIDR block in an entry to be added cannot the same as that in an entry to be deleted. For example, when you add an entry in which the 10.0.0.0/8 CIDR block is specified, the entry to be deleted cannot have the 10.0.0.0/8 CIDR block specified.
|
|
61443
|
-
* * If you want to modify the description of an entry, you must specify the CIDR block (`AddEntry.N.Cidr`) and new description (`AddEntry.N.Description`) in the entry.
|
|
61444
|
-
*
|
|
61445
|
-
* @param request ModifyPrefixListRequest
|
|
61446
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
61447
|
-
* @return ModifyPrefixListResponse
|
|
61448
|
-
*/
|
|
61449
60820
|
async modifyPrefixListWithOptions(request, runtime) {
|
|
61450
60821
|
tea_util_1.default.validateModel(request);
|
|
61451
60822
|
let query = {};
|
|
@@ -61498,40 +60869,10 @@ class Client extends openapi_client_1.default {
|
|
|
61498
60869
|
});
|
|
61499
60870
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyPrefixListResponse({}));
|
|
61500
60871
|
}
|
|
61501
|
-
/**
|
|
61502
|
-
* ## Description
|
|
61503
|
-
* * The specified CIDR block must be valid. For example, 10.0.0.0/8 is a valid CIDR block while 10.0.0.1/8 is not. For more information, see the [What is CIDR?](https://www.alibabacloud.com/help/doc-detail/40637.htm#section-jua-0tj-q5m) section in Network FAQ.
|
|
61504
|
-
* * When you add or delete an entry, you cannot specify duplicate CIDR blocks. Examples:
|
|
61505
|
-
* * For IPv4 CIDR blocks, you cannot specify the 10.0.0.0/8 CIDR block in two entries. You cannot specify the 10.0.0.1/32 CIDR block in one entry and the 10.0.0.1 CIDR block in another entry. These two CIDR blocks are the same.
|
|
61506
|
-
* * For IPv6 CIDR blocks, you cannot specify the 2001:fd01:0:0:0:0:0:0/32 CIDR block in one entry and the 2001:fd01::/32 CIDR block in another entry. These two CIDR blocks are the same.
|
|
61507
|
-
* * The CIDR block in an entry to be added cannot the same as that in an entry to be deleted. For example, when you add an entry in which the 10.0.0.0/8 CIDR block is specified, the entry to be deleted cannot have the 10.0.0.0/8 CIDR block specified.
|
|
61508
|
-
* * If you want to modify the description of an entry, you must specify the CIDR block (`AddEntry.N.Cidr`) and new description (`AddEntry.N.Description`) in the entry.
|
|
61509
|
-
*
|
|
61510
|
-
* @param request ModifyPrefixListRequest
|
|
61511
|
-
* @return ModifyPrefixListResponse
|
|
61512
|
-
*/
|
|
61513
60872
|
async modifyPrefixList(request) {
|
|
61514
60873
|
let runtime = new $Util.RuntimeOptions({});
|
|
61515
60874
|
return await this.modifyPrefixListWithOptions(request, runtime);
|
|
61516
60875
|
}
|
|
61517
|
-
/**
|
|
61518
|
-
* Before you call this operation, make sure that you understand the billing methods, pricing schedule, and refund policies of [ECS](https://www.alibabacloud.com/product/ecs#pricing). For more information, see [Request a refund for the downgrade of resource specifications](~~201955~~).
|
|
61519
|
-
* Before you change the instance type of a subscription instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the supported instance types. You can use ECS SDK for Python to query the instance types to which you can change. For more information, see [Query available resources for configuration changes](~~109517~~).
|
|
61520
|
-
* When you call this operation, take note of the following item:
|
|
61521
|
-
* * You cannot change the instance type of an expired instance. Renew the instance and try again.
|
|
61522
|
-
* * When you downgrade the instance type of an instance, take note of the following items:
|
|
61523
|
-
* * The instance must be in the **Stopped** (`Stopped`) state.
|
|
61524
|
-
* * You must specify the operation type by setting the `OperatorType` parameter to downgrade.
|
|
61525
|
-
* * You can downgrade the configurations of an instance for up to three times. In this case, you can apply for up to three refunds for price differences for an instance. Downgrade operations include instance type downgrades, bandwidth configuration downgrades, and the change of the disk billing method from subscription to pay-as-you-go.
|
|
61526
|
-
* * The price difference is refunded to the payment account that you used to purchase the instance. You cannot apply for a refund for vouchers that you already redeemed.
|
|
61527
|
-
* * This operation is asynchronous. The system requires 5 to 10 seconds to change the instance type of an instance. For the instance type change to take effect, you must restart the instance in the ECS console or by calling the RebootInstance operation. If you restart only the operating system of the instance, the instance type change does not take effect.
|
|
61528
|
-
* * If the instance is in the **Stopped** state, you need to only start the instance. You do not need to restart the instance after it enters the Running state.
|
|
61529
|
-
* * If you set the `RebootWhenFinished` parameter to true for the instance, you do not need to restart the instance.
|
|
61530
|
-
*
|
|
61531
|
-
* @param request ModifyPrepayInstanceSpecRequest
|
|
61532
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
61533
|
-
* @return ModifyPrepayInstanceSpecResponse
|
|
61534
|
-
*/
|
|
61535
60876
|
async modifyPrepayInstanceSpecWithOptions(request, runtime) {
|
|
61536
60877
|
tea_util_1.default.validateModel(request);
|
|
61537
60878
|
let query = {};
|
|
@@ -61596,23 +60937,6 @@ class Client extends openapi_client_1.default {
|
|
|
61596
60937
|
});
|
|
61597
60938
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyPrepayInstanceSpecResponse({}));
|
|
61598
60939
|
}
|
|
61599
|
-
/**
|
|
61600
|
-
* Before you call this operation, make sure that you understand the billing methods, pricing schedule, and refund policies of [ECS](https://www.alibabacloud.com/product/ecs#pricing). For more information, see [Request a refund for the downgrade of resource specifications](~~201955~~).
|
|
61601
|
-
* Before you change the instance type of a subscription instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the supported instance types. You can use ECS SDK for Python to query the instance types to which you can change. For more information, see [Query available resources for configuration changes](~~109517~~).
|
|
61602
|
-
* When you call this operation, take note of the following item:
|
|
61603
|
-
* * You cannot change the instance type of an expired instance. Renew the instance and try again.
|
|
61604
|
-
* * When you downgrade the instance type of an instance, take note of the following items:
|
|
61605
|
-
* * The instance must be in the **Stopped** (`Stopped`) state.
|
|
61606
|
-
* * You must specify the operation type by setting the `OperatorType` parameter to downgrade.
|
|
61607
|
-
* * You can downgrade the configurations of an instance for up to three times. In this case, you can apply for up to three refunds for price differences for an instance. Downgrade operations include instance type downgrades, bandwidth configuration downgrades, and the change of the disk billing method from subscription to pay-as-you-go.
|
|
61608
|
-
* * The price difference is refunded to the payment account that you used to purchase the instance. You cannot apply for a refund for vouchers that you already redeemed.
|
|
61609
|
-
* * This operation is asynchronous. The system requires 5 to 10 seconds to change the instance type of an instance. For the instance type change to take effect, you must restart the instance in the ECS console or by calling the RebootInstance operation. If you restart only the operating system of the instance, the instance type change does not take effect.
|
|
61610
|
-
* * If the instance is in the **Stopped** state, you need to only start the instance. You do not need to restart the instance after it enters the Running state.
|
|
61611
|
-
* * If you set the `RebootWhenFinished` parameter to true for the instance, you do not need to restart the instance.
|
|
61612
|
-
*
|
|
61613
|
-
* @param request ModifyPrepayInstanceSpecRequest
|
|
61614
|
-
* @return ModifyPrepayInstanceSpecResponse
|
|
61615
|
-
*/
|
|
61616
60940
|
async modifyPrepayInstanceSpec(request) {
|
|
61617
60941
|
let runtime = new $Util.RuntimeOptions({});
|
|
61618
60942
|
return await this.modifyPrepayInstanceSpecWithOptions(request, runtime);
|
|
@@ -62042,16 +61366,6 @@ class Client extends openapi_client_1.default {
|
|
|
62042
61366
|
let runtime = new $Util.RuntimeOptions({});
|
|
62043
61367
|
return await this.modifySecurityGroupEgressRuleWithOptions(request, runtime);
|
|
62044
61368
|
}
|
|
62045
|
-
/**
|
|
62046
|
-
* When you call this operation, take note of the following items:
|
|
62047
|
-
* * When InnerAccessPolicy is set to Accept for a security group, the instances in the security group can communicate with each other. In this case, the Accept internal access control policy takes precedence over user-created security group rules to keep instances in the security group accessible to each other.
|
|
62048
|
-
* * When InnerAccessPolicy is set to Drop for a security group, the instances in the security group are isolated from each other. In this case, user-created security group rules take precedence over the Drop internal access control policy and can be used to allow access between the instances. For example, you can call the [AuthorizeSecurityGroup](~~25554~~) operation to create an inbound security group rule that allows the instances in the security group to communicate with each other.
|
|
62049
|
-
* * You can call the [DescribeSecurityGroupAttribute](~~25555~~) operation to query the internal access policy of a security group.
|
|
62050
|
-
*
|
|
62051
|
-
* @param request ModifySecurityGroupPolicyRequest
|
|
62052
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
62053
|
-
* @return ModifySecurityGroupPolicyResponse
|
|
62054
|
-
*/
|
|
62055
61369
|
async modifySecurityGroupPolicyWithOptions(request, runtime) {
|
|
62056
61370
|
tea_util_1.default.validateModel(request);
|
|
62057
61371
|
let query = {};
|
|
@@ -62095,15 +61409,6 @@ class Client extends openapi_client_1.default {
|
|
|
62095
61409
|
});
|
|
62096
61410
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifySecurityGroupPolicyResponse({}));
|
|
62097
61411
|
}
|
|
62098
|
-
/**
|
|
62099
|
-
* When you call this operation, take note of the following items:
|
|
62100
|
-
* * When InnerAccessPolicy is set to Accept for a security group, the instances in the security group can communicate with each other. In this case, the Accept internal access control policy takes precedence over user-created security group rules to keep instances in the security group accessible to each other.
|
|
62101
|
-
* * When InnerAccessPolicy is set to Drop for a security group, the instances in the security group are isolated from each other. In this case, user-created security group rules take precedence over the Drop internal access control policy and can be used to allow access between the instances. For example, you can call the [AuthorizeSecurityGroup](~~25554~~) operation to create an inbound security group rule that allows the instances in the security group to communicate with each other.
|
|
62102
|
-
* * You can call the [DescribeSecurityGroupAttribute](~~25555~~) operation to query the internal access policy of a security group.
|
|
62103
|
-
*
|
|
62104
|
-
* @param request ModifySecurityGroupPolicyRequest
|
|
62105
|
-
* @return ModifySecurityGroupPolicyResponse
|
|
62106
|
-
*/
|
|
62107
61412
|
async modifySecurityGroupPolicy(request) {
|
|
62108
61413
|
let runtime = new $Util.RuntimeOptions({});
|
|
62109
61414
|
return await this.modifySecurityGroupPolicyWithOptions(request, runtime);
|
|
@@ -62728,14 +62033,6 @@ class Client extends openapi_client_1.default {
|
|
|
62728
62033
|
let runtime = new $Util.RuntimeOptions({});
|
|
62729
62034
|
return await this.modifyVpcAttributeWithOptions(request, runtime);
|
|
62730
62035
|
}
|
|
62731
|
-
/**
|
|
62732
|
-
* * Before you call this operation, make sure that you are familiar with the billing method of reserved instances. For more information, see [Reserved instances](~~100371~~).
|
|
62733
|
-
* * Before you purchase a reserved instance, you can call the [DescribeAvailableResource](~~66186~~) operation to query available instance resources.
|
|
62734
|
-
*
|
|
62735
|
-
* @param request PurchaseReservedInstancesOfferingRequest
|
|
62736
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
62737
|
-
* @return PurchaseReservedInstancesOfferingResponse
|
|
62738
|
-
*/
|
|
62739
62036
|
async purchaseReservedInstancesOfferingWithOptions(request, runtime) {
|
|
62740
62037
|
tea_util_1.default.validateModel(request);
|
|
62741
62038
|
let query = {};
|
|
@@ -62815,13 +62112,6 @@ class Client extends openapi_client_1.default {
|
|
|
62815
62112
|
});
|
|
62816
62113
|
return $tea.cast(await this.callApi(params, req, runtime), new PurchaseReservedInstancesOfferingResponse({}));
|
|
62817
62114
|
}
|
|
62818
|
-
/**
|
|
62819
|
-
* * Before you call this operation, make sure that you are familiar with the billing method of reserved instances. For more information, see [Reserved instances](~~100371~~).
|
|
62820
|
-
* * Before you purchase a reserved instance, you can call the [DescribeAvailableResource](~~66186~~) operation to query available instance resources.
|
|
62821
|
-
*
|
|
62822
|
-
* @param request PurchaseReservedInstancesOfferingRequest
|
|
62823
|
-
* @return PurchaseReservedInstancesOfferingResponse
|
|
62824
|
-
*/
|
|
62825
62115
|
async purchaseReservedInstancesOffering(request) {
|
|
62826
62116
|
let runtime = new $Util.RuntimeOptions({});
|
|
62827
62117
|
return await this.purchaseReservedInstancesOfferingWithOptions(request, runtime);
|
|
@@ -63071,6 +62361,16 @@ class Client extends openapi_client_1.default {
|
|
|
63071
62361
|
let runtime = new $Util.RuntimeOptions({});
|
|
63072
62362
|
return await this.rebootInstanceWithOptions(request, runtime);
|
|
63073
62363
|
}
|
|
62364
|
+
/**
|
|
62365
|
+
* * The ECS instances to which you want to restart are in the **Running** (`Running`) state.
|
|
62366
|
+
* * You can restart multiple instances at a time and use the `BatchOptimization` parameter to specify the batch operation mode.
|
|
62367
|
+
* * Instances can be forcefully restarted. A force restart (`ForceStop`) is equivalent to powering off traditional servers to restart them. This operation may lead to data loss if data in the instance operating system is not written to block storage devices.
|
|
62368
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of the instance, the instance is locked for security reasons and all operations are prohibited on it.
|
|
62369
|
+
*
|
|
62370
|
+
* @param request RebootInstancesRequest
|
|
62371
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
62372
|
+
* @return RebootInstancesResponse
|
|
62373
|
+
*/
|
|
63074
62374
|
async rebootInstancesWithOptions(request, runtime) {
|
|
63075
62375
|
tea_util_1.default.validateModel(request);
|
|
63076
62376
|
let query = {};
|
|
@@ -63117,6 +62417,15 @@ class Client extends openapi_client_1.default {
|
|
|
63117
62417
|
});
|
|
63118
62418
|
return $tea.cast(await this.callApi(params, req, runtime), new RebootInstancesResponse({}));
|
|
63119
62419
|
}
|
|
62420
|
+
/**
|
|
62421
|
+
* * The ECS instances to which you want to restart are in the **Running** (`Running`) state.
|
|
62422
|
+
* * You can restart multiple instances at a time and use the `BatchOptimization` parameter to specify the batch operation mode.
|
|
62423
|
+
* * Instances can be forcefully restarted. A force restart (`ForceStop`) is equivalent to powering off traditional servers to restart them. This operation may lead to data loss if data in the instance operating system is not written to block storage devices.
|
|
62424
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of the instance, the instance is locked for security reasons and all operations are prohibited on it.
|
|
62425
|
+
*
|
|
62426
|
+
* @param request RebootInstancesRequest
|
|
62427
|
+
* @return RebootInstancesResponse
|
|
62428
|
+
*/
|
|
63120
62429
|
async rebootInstances(request) {
|
|
63121
62430
|
let runtime = new $Util.RuntimeOptions({});
|
|
63122
62431
|
return await this.rebootInstancesWithOptions(request, runtime);
|
|
@@ -63224,33 +62533,6 @@ class Client extends openapi_client_1.default {
|
|
|
63224
62533
|
let runtime = new $Util.RuntimeOptions({});
|
|
63225
62534
|
return await this.redeployDedicatedHostWithOptions(request, runtime);
|
|
63226
62535
|
}
|
|
63227
|
-
/**
|
|
63228
|
-
* RedeployInstance is an asynchronous operation. This operation migrates data before it restarts the instance. After the instance is redeployed, the instance enters the Running (`Running`) state. If the instance fails to be redeployed, the instance returns to the original physical server and the state before the redeployment.
|
|
63229
|
-
* When you call this operation, take note of the following items:
|
|
63230
|
-
* * The instance must be in the Running or Stopped state. After the instance is redeployed, the following changes occur to the status of the instance:
|
|
63231
|
-
* * If the instance is in the Running (`Running`) state, the instance enters the Stopping (`Stopping`) state.
|
|
63232
|
-
* * If the instance is in the Stopped (`Stopped`) state, the instance enters the Starting (`Starting`) state.
|
|
63233
|
-
* * If an instance is deployed on a dedicated host, you cannot redeploy the instance.
|
|
63234
|
-
* * If the `OperationLocks` parameter in the DescribeInstances response contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons and cannot be redeployed.
|
|
63235
|
-
* * If you receive notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for an instance, you cannot redeploy the instance.
|
|
63236
|
-
* * When you handle a local disk-related system event for an instance, if the damaged local disk is isolated but the **SystemMaintenance.RebootAndReInitErrorDisk** event is not sent, you can still call the RedeployInstance operation to redeploy the instance. The SystemMaintenance.RebootAndReInitErrorDisk event indicates that the instance is restarted and the damaged disks are reinitialized due to system maintenance. For more information, see [System events for ECS instances equipped with local disks](~~107693~~).
|
|
63237
|
-
* The following table describes the system events that you can handle by calling the RedeployInstance operation. The table also provides the possible event status.
|
|
63238
|
-
* |System event|Event status|
|
|
63239
|
-
* |---|---|
|
|
63240
|
-
* |Instance restart due to system maintenance (SystemMaintenance.Reboot)|Inquiring and Scheduled|
|
|
63241
|
-
* |Instance redeployment due to system maintenance (SystemMaintenance.Redeploy)|Inquiring and Scheduled|
|
|
63242
|
-
* |Instance restart and replacement of damaged disks due to system maintenance (SystemMaintenance.RebootAndIsolateErrorDisk)|Inquiring|
|
|
63243
|
-
* |Instance restart and re-initialization of damaged disks due to system maintenance (SystemMaintenance.RebootAndReInitErrorDisk)|Inquiring|
|
|
63244
|
-
* |Instance redeployment due to system errors (SystemFailure.Redeploy)|Inquiring and Scheduled|
|
|
63245
|
-
* |For ECS instances that use only local disks: instance restart due to a system error (SystemFailure.Reboot)|Executing|
|
|
63246
|
-
* |Isolation of damaged disks due to system maintenance (SystemMaintenance.IsolateErrorDisk)|Inquiring|
|
|
63247
|
-
* |Re-initialization of damaged disks due to system maintenance (SystemMaintenance.ReInitErrorDisk)|Inquiring|
|
|
63248
|
-
* **Note**When instances that use local disks are redeployed, the local disks are re-initialized and data in the local disks is cleared.
|
|
63249
|
-
*
|
|
63250
|
-
* @param request RedeployInstanceRequest
|
|
63251
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
63252
|
-
* @return RedeployInstanceResponse
|
|
63253
|
-
*/
|
|
63254
62536
|
async redeployInstanceWithOptions(request, runtime) {
|
|
63255
62537
|
tea_util_1.default.validateModel(request);
|
|
63256
62538
|
let query = {};
|
|
@@ -63288,43 +62570,10 @@ class Client extends openapi_client_1.default {
|
|
|
63288
62570
|
});
|
|
63289
62571
|
return $tea.cast(await this.callApi(params, req, runtime), new RedeployInstanceResponse({}));
|
|
63290
62572
|
}
|
|
63291
|
-
/**
|
|
63292
|
-
* RedeployInstance is an asynchronous operation. This operation migrates data before it restarts the instance. After the instance is redeployed, the instance enters the Running (`Running`) state. If the instance fails to be redeployed, the instance returns to the original physical server and the state before the redeployment.
|
|
63293
|
-
* When you call this operation, take note of the following items:
|
|
63294
|
-
* * The instance must be in the Running or Stopped state. After the instance is redeployed, the following changes occur to the status of the instance:
|
|
63295
|
-
* * If the instance is in the Running (`Running`) state, the instance enters the Stopping (`Stopping`) state.
|
|
63296
|
-
* * If the instance is in the Stopped (`Stopped`) state, the instance enters the Starting (`Starting`) state.
|
|
63297
|
-
* * If an instance is deployed on a dedicated host, you cannot redeploy the instance.
|
|
63298
|
-
* * If the `OperationLocks` parameter in the DescribeInstances response contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons and cannot be redeployed.
|
|
63299
|
-
* * If you receive notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for an instance, you cannot redeploy the instance.
|
|
63300
|
-
* * When you handle a local disk-related system event for an instance, if the damaged local disk is isolated but the **SystemMaintenance.RebootAndReInitErrorDisk** event is not sent, you can still call the RedeployInstance operation to redeploy the instance. The SystemMaintenance.RebootAndReInitErrorDisk event indicates that the instance is restarted and the damaged disks are reinitialized due to system maintenance. For more information, see [System events for ECS instances equipped with local disks](~~107693~~).
|
|
63301
|
-
* The following table describes the system events that you can handle by calling the RedeployInstance operation. The table also provides the possible event status.
|
|
63302
|
-
* |System event|Event status|
|
|
63303
|
-
* |---|---|
|
|
63304
|
-
* |Instance restart due to system maintenance (SystemMaintenance.Reboot)|Inquiring and Scheduled|
|
|
63305
|
-
* |Instance redeployment due to system maintenance (SystemMaintenance.Redeploy)|Inquiring and Scheduled|
|
|
63306
|
-
* |Instance restart and replacement of damaged disks due to system maintenance (SystemMaintenance.RebootAndIsolateErrorDisk)|Inquiring|
|
|
63307
|
-
* |Instance restart and re-initialization of damaged disks due to system maintenance (SystemMaintenance.RebootAndReInitErrorDisk)|Inquiring|
|
|
63308
|
-
* |Instance redeployment due to system errors (SystemFailure.Redeploy)|Inquiring and Scheduled|
|
|
63309
|
-
* |For ECS instances that use only local disks: instance restart due to a system error (SystemFailure.Reboot)|Executing|
|
|
63310
|
-
* |Isolation of damaged disks due to system maintenance (SystemMaintenance.IsolateErrorDisk)|Inquiring|
|
|
63311
|
-
* |Re-initialization of damaged disks due to system maintenance (SystemMaintenance.ReInitErrorDisk)|Inquiring|
|
|
63312
|
-
* **Note**When instances that use local disks are redeployed, the local disks are re-initialized and data in the local disks is cleared.
|
|
63313
|
-
*
|
|
63314
|
-
* @param request RedeployInstanceRequest
|
|
63315
|
-
* @return RedeployInstanceResponse
|
|
63316
|
-
*/
|
|
63317
62573
|
async redeployInstance(request) {
|
|
63318
62574
|
let runtime = new $Util.RuntimeOptions({});
|
|
63319
62575
|
return await this.redeployInstanceWithOptions(request, runtime);
|
|
63320
62576
|
}
|
|
63321
|
-
/**
|
|
63322
|
-
* When the release mode of an immediate capacity reservation is set to manual release, you can call this operation to release the capacity reservation.
|
|
63323
|
-
*
|
|
63324
|
-
* @param request ReleaseCapacityReservationRequest
|
|
63325
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
63326
|
-
* @return ReleaseCapacityReservationResponse
|
|
63327
|
-
*/
|
|
63328
62577
|
async releaseCapacityReservationWithOptions(request, runtime) {
|
|
63329
62578
|
tea_util_1.default.validateModel(request);
|
|
63330
62579
|
let query = {};
|
|
@@ -63365,12 +62614,6 @@ class Client extends openapi_client_1.default {
|
|
|
63365
62614
|
});
|
|
63366
62615
|
return $tea.cast(await this.callApi(params, req, runtime), new ReleaseCapacityReservationResponse({}));
|
|
63367
62616
|
}
|
|
63368
|
-
/**
|
|
63369
|
-
* When the release mode of an immediate capacity reservation is set to manual release, you can call this operation to release the capacity reservation.
|
|
63370
|
-
*
|
|
63371
|
-
* @param request ReleaseCapacityReservationRequest
|
|
63372
|
-
* @return ReleaseCapacityReservationResponse
|
|
63373
|
-
*/
|
|
63374
62617
|
async releaseCapacityReservation(request) {
|
|
63375
62618
|
let runtime = new $Util.RuntimeOptions({});
|
|
63376
62619
|
return await this.releaseCapacityReservationWithOptions(request, runtime);
|
|
@@ -63663,6 +62906,16 @@ class Client extends openapi_client_1.default {
|
|
|
63663
62906
|
let runtime = new $Util.RuntimeOptions({});
|
|
63664
62907
|
return await this.renewDedicatedHostsWithOptions(request, runtime);
|
|
63665
62908
|
}
|
|
62909
|
+
/**
|
|
62910
|
+
* * Before you call this operation, make sure that you are familiar with the billing methods and pricing schedule of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
|
|
62911
|
+
* * You can call this operation to renew a subscription ECS instance for a period of time or to a synchronized expiration date.
|
|
62912
|
+
* * You cannot renew a subscription instance for a specific period of time and to a synchronized expiration date at the same time by calling this operation. The parameter pair (`Period` and `PeriodUnit`) that is related to the renewal period and the `ExpectedRenewDay` parameter are mutually exclusive.
|
|
62913
|
+
* * Your account must have sufficient credits.
|
|
62914
|
+
*
|
|
62915
|
+
* @param request RenewInstanceRequest
|
|
62916
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
62917
|
+
* @return RenewInstanceResponse
|
|
62918
|
+
*/
|
|
63666
62919
|
async renewInstanceWithOptions(request, runtime) {
|
|
63667
62920
|
tea_util_1.default.validateModel(request);
|
|
63668
62921
|
let query = {};
|
|
@@ -63709,6 +62962,15 @@ class Client extends openapi_client_1.default {
|
|
|
63709
62962
|
});
|
|
63710
62963
|
return $tea.cast(await this.callApi(params, req, runtime), new RenewInstanceResponse({}));
|
|
63711
62964
|
}
|
|
62965
|
+
/**
|
|
62966
|
+
* * Before you call this operation, make sure that you are familiar with the billing methods and pricing schedule of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
|
|
62967
|
+
* * You can call this operation to renew a subscription ECS instance for a period of time or to a synchronized expiration date.
|
|
62968
|
+
* * You cannot renew a subscription instance for a specific period of time and to a synchronized expiration date at the same time by calling this operation. The parameter pair (`Period` and `PeriodUnit`) that is related to the renewal period and the `ExpectedRenewDay` parameter are mutually exclusive.
|
|
62969
|
+
* * Your account must have sufficient credits.
|
|
62970
|
+
*
|
|
62971
|
+
* @param request RenewInstanceRequest
|
|
62972
|
+
* @return RenewInstanceResponse
|
|
62973
|
+
*/
|
|
63712
62974
|
async renewInstance(request) {
|
|
63713
62975
|
let runtime = new $Util.RuntimeOptions({});
|
|
63714
62976
|
return await this.renewInstanceWithOptions(request, runtime);
|
|
@@ -63961,13 +63223,6 @@ class Client extends openapi_client_1.default {
|
|
|
63961
63223
|
let runtime = new $Util.RuntimeOptions({});
|
|
63962
63224
|
return await this.resetDiskWithOptions(request, runtime);
|
|
63963
63225
|
}
|
|
63964
|
-
/**
|
|
63965
|
-
* This operation will be removed in the future. We recommend that you call the [ResetDisk](~~25520~~) operation to roll back a disk.
|
|
63966
|
-
*
|
|
63967
|
-
* @param request ResetDisksRequest
|
|
63968
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
63969
|
-
* @return ResetDisksResponse
|
|
63970
|
-
*/
|
|
63971
63226
|
async resetDisksWithOptions(request, runtime) {
|
|
63972
63227
|
tea_util_1.default.validateModel(request);
|
|
63973
63228
|
let query = {};
|
|
@@ -64008,12 +63263,6 @@ class Client extends openapi_client_1.default {
|
|
|
64008
63263
|
});
|
|
64009
63264
|
return $tea.cast(await this.callApi(params, req, runtime), new ResetDisksResponse({}));
|
|
64010
63265
|
}
|
|
64011
|
-
/**
|
|
64012
|
-
* This operation will be removed in the future. We recommend that you call the [ResetDisk](~~25520~~) operation to roll back a disk.
|
|
64013
|
-
*
|
|
64014
|
-
* @param request ResetDisksRequest
|
|
64015
|
-
* @return ResetDisksResponse
|
|
64016
|
-
*/
|
|
64017
63266
|
async resetDisks(request) {
|
|
64018
63267
|
let runtime = new $Util.RuntimeOptions({});
|
|
64019
63268
|
return await this.resetDisksWithOptions(request, runtime);
|
|
@@ -64371,6 +63620,28 @@ class Client extends openapi_client_1.default {
|
|
|
64371
63620
|
let runtime = new $Util.RuntimeOptions({});
|
|
64372
63621
|
return await this.revokeSecurityGroupEgressWithOptions(request, runtime);
|
|
64373
63622
|
}
|
|
63623
|
+
/**
|
|
63624
|
+
* Compared with the [CreateCommand](~~64844~~) and [InvokeCommand](~~64841~~) operations, you can call the RunCommand operation once to create and run a command.
|
|
63625
|
+
* When you call this operation, take note of the following items:
|
|
63626
|
+
* * The instances on which you want to run a command must reside in a virtual private cloud (VPC).
|
|
63627
|
+
* * The instances must be in the `Running` state.
|
|
63628
|
+
* * The Cloud Assistant client must be installed on the instances. For more information, see [InstallCloudAssistant](~~85916~~).
|
|
63629
|
+
* * Before you run a PowerShell command on a Windows instance, make sure that the PowerShell module is installed on the instance.
|
|
63630
|
+
* * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For information about time zones, see [Configure the NTP service for ECS instances that run CentOS 6](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
|
|
63631
|
+
* * You can specify the `TimeOut` parameter to specify a timeout period for executions of the command on instances. If an execution times out, the Cloud Assistant client forcibly terminates the command process.
|
|
63632
|
+
* * If the one-time execution of a command times out, the execution state of the command changes to Failed. You can call the [InvokeRecordStatus](~~64845~~) operation to query the command execution state.
|
|
63633
|
+
* * For a scheduled task, the timeout period takes effect on each execution of the command. When a command execution times out, the subsequent executions of the command are not affected. If a scheduled execution of a command times out, the execution state of the command changes to Failed. You can call the [InvokeRecordStatus](~~64845~~) operation to query the command execution state.
|
|
63634
|
+
* To ensure that scheduled tasks can run as expected, make sure that the version of the Cloud Assistant client is not earlier than the following versions. A scheduled task can run a command at a specific interval, only once at a specific time, or at specific times based on a cron expression that includes a specific year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update the Cloud Assistant client to the latest version. For more information, see [Upgrade or disable upgrades for the Cloud Assistant client](~~134383~~).
|
|
63635
|
+
* - Linux: 2.2.3.282
|
|
63636
|
+
* - Windows: 2.1.3.282
|
|
63637
|
+
* * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on the Cloud Assistant client. If an execution fails, no execution information is generated.
|
|
63638
|
+
* * If you set the `EnableParameter` parameter to true, the custom parameter feature is enabled. If you specify the `CommandContent` parameter, you can specify custom parameters in the `{{parameter}}` format. After the command is run, the key-value pairs of the custom parameters are passed in.
|
|
63639
|
+
* * You can retain up to 500 to 10,000 Cloud Assistant commands in each region based on your ECS usage. You can call the [DescribeAccountAttribute](~~73772~~) operation to query quotas.
|
|
63640
|
+
*
|
|
63641
|
+
* @param tmpReq RunCommandRequest
|
|
63642
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
63643
|
+
* @return RunCommandResponse
|
|
63644
|
+
*/
|
|
64374
63645
|
async runCommandWithOptions(tmpReq, runtime) {
|
|
64375
63646
|
tea_util_1.default.validateModel(tmpReq);
|
|
64376
63647
|
let request = new RunCommandShrinkRequest({});
|
|
@@ -64473,6 +63744,27 @@ class Client extends openapi_client_1.default {
|
|
|
64473
63744
|
});
|
|
64474
63745
|
return $tea.cast(await this.callApi(params, req, runtime), new RunCommandResponse({}));
|
|
64475
63746
|
}
|
|
63747
|
+
/**
|
|
63748
|
+
* Compared with the [CreateCommand](~~64844~~) and [InvokeCommand](~~64841~~) operations, you can call the RunCommand operation once to create and run a command.
|
|
63749
|
+
* When you call this operation, take note of the following items:
|
|
63750
|
+
* * The instances on which you want to run a command must reside in a virtual private cloud (VPC).
|
|
63751
|
+
* * The instances must be in the `Running` state.
|
|
63752
|
+
* * The Cloud Assistant client must be installed on the instances. For more information, see [InstallCloudAssistant](~~85916~~).
|
|
63753
|
+
* * Before you run a PowerShell command on a Windows instance, make sure that the PowerShell module is installed on the instance.
|
|
63754
|
+
* * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For information about time zones, see [Configure the NTP service for ECS instances that run CentOS 6](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
|
|
63755
|
+
* * You can specify the `TimeOut` parameter to specify a timeout period for executions of the command on instances. If an execution times out, the Cloud Assistant client forcibly terminates the command process.
|
|
63756
|
+
* * If the one-time execution of a command times out, the execution state of the command changes to Failed. You can call the [InvokeRecordStatus](~~64845~~) operation to query the command execution state.
|
|
63757
|
+
* * For a scheduled task, the timeout period takes effect on each execution of the command. When a command execution times out, the subsequent executions of the command are not affected. If a scheduled execution of a command times out, the execution state of the command changes to Failed. You can call the [InvokeRecordStatus](~~64845~~) operation to query the command execution state.
|
|
63758
|
+
* To ensure that scheduled tasks can run as expected, make sure that the version of the Cloud Assistant client is not earlier than the following versions. A scheduled task can run a command at a specific interval, only once at a specific time, or at specific times based on a cron expression that includes a specific year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update the Cloud Assistant client to the latest version. For more information, see [Upgrade or disable upgrades for the Cloud Assistant client](~~134383~~).
|
|
63759
|
+
* - Linux: 2.2.3.282
|
|
63760
|
+
* - Windows: 2.1.3.282
|
|
63761
|
+
* * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on the Cloud Assistant client. If an execution fails, no execution information is generated.
|
|
63762
|
+
* * If you set the `EnableParameter` parameter to true, the custom parameter feature is enabled. If you specify the `CommandContent` parameter, you can specify custom parameters in the `{{parameter}}` format. After the command is run, the key-value pairs of the custom parameters are passed in.
|
|
63763
|
+
* * You can retain up to 500 to 10,000 Cloud Assistant commands in each region based on your ECS usage. You can call the [DescribeAccountAttribute](~~73772~~) operation to query quotas.
|
|
63764
|
+
*
|
|
63765
|
+
* @param request RunCommandRequest
|
|
63766
|
+
* @return RunCommandResponse
|
|
63767
|
+
*/
|
|
64476
63768
|
async runCommand(request) {
|
|
64477
63769
|
let runtime = new $Util.RuntimeOptions({});
|
|
64478
63770
|
return await this.runCommandWithOptions(request, runtime);
|
|
@@ -64549,6 +63841,9 @@ class Client extends openapi_client_1.default {
|
|
|
64549
63841
|
if (!tea_util_1.default.isUnset(request.imageId)) {
|
|
64550
63842
|
query["ImageId"] = request.imageId;
|
|
64551
63843
|
}
|
|
63844
|
+
if (!tea_util_1.default.isUnset(request.imageOptions)) {
|
|
63845
|
+
query["ImageOptions"] = request.imageOptions;
|
|
63846
|
+
}
|
|
64552
63847
|
if (!tea_util_1.default.isUnset(request.instanceChargeType)) {
|
|
64553
63848
|
query["InstanceChargeType"] = request.instanceChargeType;
|
|
64554
63849
|
}
|
|
@@ -65102,15 +64397,6 @@ class Client extends openapi_client_1.default {
|
|
|
65102
64397
|
let runtime = new $Util.RuntimeOptions({});
|
|
65103
64398
|
return await this.stopInstanceWithOptions(request, runtime);
|
|
65104
64399
|
}
|
|
65105
|
-
/**
|
|
65106
|
-
* * If you call the DescribeInstances operation and the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instances are locked for security reasons and cannot be stopped.
|
|
65107
|
-
* * If the economical mode is enabled for pay-as-you-go instances, you can set `StoppedMode` to KeepCharging to enable the standard mode for the instances. Then, after the instances are stopped in standard mode, you continue to be charged for them, and their instance type resources and public IP addresses are retained.
|
|
65108
|
-
* * Batch operations are supported. You can use the `BatchOptimization` parameter to specify the batch operation mode.
|
|
65109
|
-
*
|
|
65110
|
-
* @param request StopInstancesRequest
|
|
65111
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
65112
|
-
* @return StopInstancesResponse
|
|
65113
|
-
*/
|
|
65114
64400
|
async stopInstancesWithOptions(request, runtime) {
|
|
65115
64401
|
tea_util_1.default.validateModel(request);
|
|
65116
64402
|
let query = {};
|
|
@@ -65160,14 +64446,6 @@ class Client extends openapi_client_1.default {
|
|
|
65160
64446
|
});
|
|
65161
64447
|
return $tea.cast(await this.callApi(params, req, runtime), new StopInstancesResponse({}));
|
|
65162
64448
|
}
|
|
65163
|
-
/**
|
|
65164
|
-
* * If you call the DescribeInstances operation and the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instances are locked for security reasons and cannot be stopped.
|
|
65165
|
-
* * If the economical mode is enabled for pay-as-you-go instances, you can set `StoppedMode` to KeepCharging to enable the standard mode for the instances. Then, after the instances are stopped in standard mode, you continue to be charged for them, and their instance type resources and public IP addresses are retained.
|
|
65166
|
-
* * Batch operations are supported. You can use the `BatchOptimization` parameter to specify the batch operation mode.
|
|
65167
|
-
*
|
|
65168
|
-
* @param request StopInstancesRequest
|
|
65169
|
-
* @return StopInstancesResponse
|
|
65170
|
-
*/
|
|
65171
64449
|
async stopInstances(request) {
|
|
65172
64450
|
let runtime = new $Util.RuntimeOptions({});
|
|
65173
64451
|
return await this.stopInstancesWithOptions(request, runtime);
|
|
@@ -65390,6 +64668,15 @@ class Client extends openapi_client_1.default {
|
|
|
65390
64668
|
let runtime = new $Util.RuntimeOptions({});
|
|
65391
64669
|
return await this.terminateVirtualBorderRouterWithOptions(request, runtime);
|
|
65392
64670
|
}
|
|
64671
|
+
/**
|
|
64672
|
+
* When you call this operation, take note of the following items:
|
|
64673
|
+
* * The ENI must be in the **Available** (Available) or **InUse** (InUse) state.
|
|
64674
|
+
* * If the ENI is a primary ENI, the Elastic Compute Service (ECS) instance to which the ENI is attached must be in the **Running** (Running) or **Stopped** (Stopped) state.
|
|
64675
|
+
*
|
|
64676
|
+
* @param request UnassignIpv6AddressesRequest
|
|
64677
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
64678
|
+
* @return UnassignIpv6AddressesResponse
|
|
64679
|
+
*/
|
|
65393
64680
|
async unassignIpv6AddressesWithOptions(request, runtime) {
|
|
65394
64681
|
tea_util_1.default.validateModel(request);
|
|
65395
64682
|
let query = {};
|
|
@@ -65436,10 +64723,26 @@ class Client extends openapi_client_1.default {
|
|
|
65436
64723
|
});
|
|
65437
64724
|
return $tea.cast(await this.callApi(params, req, runtime), new UnassignIpv6AddressesResponse({}));
|
|
65438
64725
|
}
|
|
64726
|
+
/**
|
|
64727
|
+
* When you call this operation, take note of the following items:
|
|
64728
|
+
* * The ENI must be in the **Available** (Available) or **InUse** (InUse) state.
|
|
64729
|
+
* * If the ENI is a primary ENI, the Elastic Compute Service (ECS) instance to which the ENI is attached must be in the **Running** (Running) or **Stopped** (Stopped) state.
|
|
64730
|
+
*
|
|
64731
|
+
* @param request UnassignIpv6AddressesRequest
|
|
64732
|
+
* @return UnassignIpv6AddressesResponse
|
|
64733
|
+
*/
|
|
65439
64734
|
async unassignIpv6Addresses(request) {
|
|
65440
64735
|
let runtime = new $Util.RuntimeOptions({});
|
|
65441
64736
|
return await this.unassignIpv6AddressesWithOptions(request, runtime);
|
|
65442
64737
|
}
|
|
64738
|
+
/**
|
|
64739
|
+
* * The ENI from which to unassign secondary private IP addresses must be in the **Available** (Available) or **InUse** (InUse) state.
|
|
64740
|
+
* * If the ENI is a primary ENI, the Elastic Compute Service (ECS) instance to which the ENI is attached must be in the **Running** (Running) or **Stopped** (Stopped) state.
|
|
64741
|
+
*
|
|
64742
|
+
* @param request UnassignPrivateIpAddressesRequest
|
|
64743
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
64744
|
+
* @return UnassignPrivateIpAddressesResponse
|
|
64745
|
+
*/
|
|
65443
64746
|
async unassignPrivateIpAddressesWithOptions(request, runtime) {
|
|
65444
64747
|
tea_util_1.default.validateModel(request);
|
|
65445
64748
|
let query = {};
|
|
@@ -65486,6 +64789,13 @@ class Client extends openapi_client_1.default {
|
|
|
65486
64789
|
});
|
|
65487
64790
|
return $tea.cast(await this.callApi(params, req, runtime), new UnassignPrivateIpAddressesResponse({}));
|
|
65488
64791
|
}
|
|
64792
|
+
/**
|
|
64793
|
+
* * The ENI from which to unassign secondary private IP addresses must be in the **Available** (Available) or **InUse** (InUse) state.
|
|
64794
|
+
* * If the ENI is a primary ENI, the Elastic Compute Service (ECS) instance to which the ENI is attached must be in the **Running** (Running) or **Stopped** (Stopped) state.
|
|
64795
|
+
*
|
|
64796
|
+
* @param request UnassignPrivateIpAddressesRequest
|
|
64797
|
+
* @return UnassignPrivateIpAddressesResponse
|
|
64798
|
+
*/
|
|
65489
64799
|
async unassignPrivateIpAddresses(request) {
|
|
65490
64800
|
let runtime = new $Util.RuntimeOptions({});
|
|
65491
64801
|
return await this.unassignPrivateIpAddressesWithOptions(request, runtime);
|