@alicloud/ecs20140526 4.1.5 → 4.1.7
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 +506 -316
- package/dist/client.js +561 -331
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +575 -316
package/dist/client.d.ts
CHANGED
|
@@ -2815,6 +2815,7 @@ export declare class CreateNetworkInterfaceRequest extends $tea.Model {
|
|
|
2815
2815
|
ipv6Prefix?: string[];
|
|
2816
2816
|
ipv6PrefixCount?: number;
|
|
2817
2817
|
networkInterfaceName?: string;
|
|
2818
|
+
networkInterfaceTrafficConfig?: CreateNetworkInterfaceRequestNetworkInterfaceTrafficConfig;
|
|
2818
2819
|
networkInterfaceTrafficMode?: string;
|
|
2819
2820
|
ownerAccount?: string;
|
|
2820
2821
|
ownerId?: number;
|
|
@@ -9166,6 +9167,7 @@ export declare class DescribeNetworkInterfaceAttributeResponseBody extends $tea.
|
|
|
9166
9167
|
macAddress?: string;
|
|
9167
9168
|
networkInterfaceId?: string;
|
|
9168
9169
|
networkInterfaceName?: string;
|
|
9170
|
+
networkInterfaceTrafficConfig?: DescribeNetworkInterfaceAttributeResponseBodyNetworkInterfaceTrafficConfig;
|
|
9169
9171
|
networkInterfaceTrafficMode?: string;
|
|
9170
9172
|
ownerId?: string;
|
|
9171
9173
|
privateIpAddress?: string;
|
|
@@ -10232,6 +10234,8 @@ export declare class DescribeSavingsPlanPriceResponse extends $tea.Model {
|
|
|
10232
10234
|
}
|
|
10233
10235
|
export declare class DescribeSecurityGroupAttributeRequest extends $tea.Model {
|
|
10234
10236
|
direction?: string;
|
|
10237
|
+
maxResults?: number;
|
|
10238
|
+
nextToken?: string;
|
|
10235
10239
|
nicType?: string;
|
|
10236
10240
|
ownerAccount?: string;
|
|
10237
10241
|
ownerId?: number;
|
|
@@ -10252,6 +10256,7 @@ export declare class DescribeSecurityGroupAttributeRequest extends $tea.Model {
|
|
|
10252
10256
|
export declare class DescribeSecurityGroupAttributeResponseBody extends $tea.Model {
|
|
10253
10257
|
description?: string;
|
|
10254
10258
|
innerAccessPolicy?: string;
|
|
10259
|
+
nextToken?: string;
|
|
10255
10260
|
permissions?: DescribeSecurityGroupAttributeResponseBodyPermissions;
|
|
10256
10261
|
regionId?: string;
|
|
10257
10262
|
requestId?: string;
|
|
@@ -14979,6 +14984,7 @@ export declare class ModifyNetworkInterfaceAttributeRequest extends $tea.Model {
|
|
|
14979
14984
|
description?: string;
|
|
14980
14985
|
networkInterfaceId?: string;
|
|
14981
14986
|
networkInterfaceName?: string;
|
|
14987
|
+
networkInterfaceTrafficConfig?: ModifyNetworkInterfaceAttributeRequestNetworkInterfaceTrafficConfig;
|
|
14982
14988
|
ownerAccount?: string;
|
|
14983
14989
|
ownerId?: number;
|
|
14984
14990
|
queueNumber?: number;
|
|
@@ -19394,6 +19400,22 @@ export declare class CreateNetworkInterfaceRequestConnectionTrackingConfiguratio
|
|
|
19394
19400
|
[key: string]: any;
|
|
19395
19401
|
});
|
|
19396
19402
|
}
|
|
19403
|
+
export declare class CreateNetworkInterfaceRequestNetworkInterfaceTrafficConfig extends $tea.Model {
|
|
19404
|
+
networkInterfaceTrafficMode?: string;
|
|
19405
|
+
queueNumber?: number;
|
|
19406
|
+
queuePairNumber?: number;
|
|
19407
|
+
rxQueueSize?: number;
|
|
19408
|
+
txQueueSize?: number;
|
|
19409
|
+
static names(): {
|
|
19410
|
+
[key: string]: string;
|
|
19411
|
+
};
|
|
19412
|
+
static types(): {
|
|
19413
|
+
[key: string]: any;
|
|
19414
|
+
};
|
|
19415
|
+
constructor(map?: {
|
|
19416
|
+
[key: string]: any;
|
|
19417
|
+
});
|
|
19418
|
+
}
|
|
19397
19419
|
export declare class CreateNetworkInterfaceRequestTag extends $tea.Model {
|
|
19398
19420
|
key?: string;
|
|
19399
19421
|
value?: string;
|
|
@@ -25358,6 +25380,20 @@ export declare class DescribeNetworkInterfaceAttributeResponseBodyIpv6Sets exten
|
|
|
25358
25380
|
[key: string]: any;
|
|
25359
25381
|
});
|
|
25360
25382
|
}
|
|
25383
|
+
export declare class DescribeNetworkInterfaceAttributeResponseBodyNetworkInterfaceTrafficConfig extends $tea.Model {
|
|
25384
|
+
networkInterfaceTrafficMode?: string;
|
|
25385
|
+
queueNumber?: number;
|
|
25386
|
+
queuePairNumber?: number;
|
|
25387
|
+
static names(): {
|
|
25388
|
+
[key: string]: string;
|
|
25389
|
+
};
|
|
25390
|
+
static types(): {
|
|
25391
|
+
[key: string]: any;
|
|
25392
|
+
};
|
|
25393
|
+
constructor(map?: {
|
|
25394
|
+
[key: string]: any;
|
|
25395
|
+
});
|
|
25396
|
+
}
|
|
25361
25397
|
export declare class DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSetAssociatedPublicIp extends $tea.Model {
|
|
25362
25398
|
allocationId?: string;
|
|
25363
25399
|
publicIpAddress?: string;
|
|
@@ -28822,6 +28858,22 @@ export declare class ModifyNetworkInterfaceAttributeRequestConnectionTrackingCon
|
|
|
28822
28858
|
[key: string]: any;
|
|
28823
28859
|
});
|
|
28824
28860
|
}
|
|
28861
|
+
export declare class ModifyNetworkInterfaceAttributeRequestNetworkInterfaceTrafficConfig extends $tea.Model {
|
|
28862
|
+
networkInterfaceTrafficMode?: string;
|
|
28863
|
+
queueNumber?: number;
|
|
28864
|
+
queuePairNumber?: number;
|
|
28865
|
+
rxQueueSize?: number;
|
|
28866
|
+
txQueueSize?: number;
|
|
28867
|
+
static names(): {
|
|
28868
|
+
[key: string]: string;
|
|
28869
|
+
};
|
|
28870
|
+
static types(): {
|
|
28871
|
+
[key: string]: any;
|
|
28872
|
+
};
|
|
28873
|
+
constructor(map?: {
|
|
28874
|
+
[key: string]: any;
|
|
28875
|
+
});
|
|
28876
|
+
}
|
|
28825
28877
|
export declare class ModifyPrefixListRequestAddEntry extends $tea.Model {
|
|
28826
28878
|
cidr?: string;
|
|
28827
28879
|
description?: string;
|
|
@@ -29529,7 +29581,7 @@ export default class Client extends OpenApi {
|
|
|
29529
29581
|
[key: string]: string;
|
|
29530
29582
|
}, endpoint: string): string;
|
|
29531
29583
|
/**
|
|
29532
|
-
* @summary
|
|
29584
|
+
* @summary in the Inquiring state and authorizes the system to perform the default operations.
|
|
29533
29585
|
*
|
|
29534
29586
|
* @param request AcceptInquiredSystemEventRequest
|
|
29535
29587
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -29537,7 +29589,7 @@ export default class Client extends OpenApi {
|
|
|
29537
29589
|
*/
|
|
29538
29590
|
acceptInquiredSystemEventWithOptions(request: AcceptInquiredSystemEventRequest, runtime: $Util.RuntimeOptions): Promise<AcceptInquiredSystemEventResponse>;
|
|
29539
29591
|
/**
|
|
29540
|
-
* @summary
|
|
29592
|
+
* @summary in the Inquiring state and authorizes the system to perform the default operations.
|
|
29541
29593
|
*
|
|
29542
29594
|
* @param request AcceptInquiredSystemEventRequest
|
|
29543
29595
|
* @return AcceptInquiredSystemEventResponse
|
|
@@ -29701,14 +29753,15 @@ export default class Client extends OpenApi {
|
|
|
29701
29753
|
/**
|
|
29702
29754
|
* @summary Assigns one or more IPv6 addresses to an elastic network interface (ENI).
|
|
29703
29755
|
*
|
|
29704
|
-
* @description
|
|
29705
|
-
*
|
|
29756
|
+
* @description ## [](#)Usage notes
|
|
29757
|
+
* You can specify IPv6 addresses in the CIDR block of the vSwitch to which the ENI is connected. You can also specify the number of IPv6 addresses that the system assigns to the ENI. Take note of the following items:
|
|
29758
|
+
* * IPv6 must be enabled on the vSwitch to which the ENI is connected. For more information, see [Enable IPv6 for a vSwitch](https://help.aliyun.com/document_detail/98923.html).
|
|
29706
29759
|
* * The ENI must be in the Available (Available) or InUse (InUse) state.
|
|
29707
|
-
* * If you want to assign IPv6 addresses to a primary ENI, make sure that the instance to which the ENI is attached is in the Running (Running) or Stopped (Stopped) state.
|
|
29708
|
-
* * The maximum number of IPv6 addresses that can be assigned to an ENI varies based on the instance type.
|
|
29709
|
-
* * If the ENI is in the Available (Available) state,
|
|
29710
|
-
* * If the ENI is
|
|
29711
|
-
* * After the operation is called, the IPv6 addresses that are assigned to the ENI
|
|
29760
|
+
* * If you want to assign IPv6 addresses to a primary ENI, make sure that the Elastic Compute Service (ECS) instance to which the ENI is attached is in the Running (Running) or Stopped (Stopped) state.
|
|
29761
|
+
* * The maximum number of IPv6 addresses that can be assigned to an ENI varies based on the instance type of the instance to which the ENI is attached.
|
|
29762
|
+
* * If the ENI is in the Available (Available) state, up to 10 IPv6 addresses can be assigned to the ENI.
|
|
29763
|
+
* * If the ENI is attached to an ECS instance, the maximum number of IPv6 addresses that can be assigned to the ENI varies based on the instance type. For more information, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html).
|
|
29764
|
+
* * After the operation is called, you can obtain the IPv6 addresses that are assigned to the ENI from the response.
|
|
29712
29765
|
*
|
|
29713
29766
|
* @param request AssignIpv6AddressesRequest
|
|
29714
29767
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -29718,27 +29771,28 @@ export default class Client extends OpenApi {
|
|
|
29718
29771
|
/**
|
|
29719
29772
|
* @summary Assigns one or more IPv6 addresses to an elastic network interface (ENI).
|
|
29720
29773
|
*
|
|
29721
|
-
* @description
|
|
29722
|
-
*
|
|
29774
|
+
* @description ## [](#)Usage notes
|
|
29775
|
+
* You can specify IPv6 addresses in the CIDR block of the vSwitch to which the ENI is connected. You can also specify the number of IPv6 addresses that the system assigns to the ENI. Take note of the following items:
|
|
29776
|
+
* * IPv6 must be enabled on the vSwitch to which the ENI is connected. For more information, see [Enable IPv6 for a vSwitch](https://help.aliyun.com/document_detail/98923.html).
|
|
29723
29777
|
* * The ENI must be in the Available (Available) or InUse (InUse) state.
|
|
29724
|
-
* * If you want to assign IPv6 addresses to a primary ENI, make sure that the instance to which the ENI is attached is in the Running (Running) or Stopped (Stopped) state.
|
|
29725
|
-
* * The maximum number of IPv6 addresses that can be assigned to an ENI varies based on the instance type.
|
|
29726
|
-
* * If the ENI is in the Available (Available) state,
|
|
29727
|
-
* * If the ENI is
|
|
29728
|
-
* * After the operation is called, the IPv6 addresses that are assigned to the ENI
|
|
29778
|
+
* * If you want to assign IPv6 addresses to a primary ENI, make sure that the Elastic Compute Service (ECS) instance to which the ENI is attached is in the Running (Running) or Stopped (Stopped) state.
|
|
29779
|
+
* * The maximum number of IPv6 addresses that can be assigned to an ENI varies based on the instance type of the instance to which the ENI is attached.
|
|
29780
|
+
* * If the ENI is in the Available (Available) state, up to 10 IPv6 addresses can be assigned to the ENI.
|
|
29781
|
+
* * If the ENI is attached to an ECS instance, the maximum number of IPv6 addresses that can be assigned to the ENI varies based on the instance type. For more information, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html).
|
|
29782
|
+
* * After the operation is called, you can obtain the IPv6 addresses that are assigned to the ENI from the response.
|
|
29729
29783
|
*
|
|
29730
29784
|
* @param request AssignIpv6AddressesRequest
|
|
29731
29785
|
* @return AssignIpv6AddressesResponse
|
|
29732
29786
|
*/
|
|
29733
29787
|
assignIpv6Addresses(request: AssignIpv6AddressesRequest): Promise<AssignIpv6AddressesResponse>;
|
|
29734
29788
|
/**
|
|
29735
|
-
* @summary Assigns
|
|
29789
|
+
* @summary Assigns secondary private IP addresses to an elastic network interface (ENI). You can specify available private IP addresses within the CIDR block of the vSwitch that is connected to the ENI. Alternatively, you can specify a number of private IP addresses to automatically assign from the CIDR block of the vSwitch to the ENI.
|
|
29736
29790
|
*
|
|
29737
|
-
* @description ## Usage notes
|
|
29791
|
+
* @description ## [](#)Usage notes
|
|
29738
29792
|
* * The ENI to which you want to assign secondary private IP addresses must be in the Available (Available) or InUse (InUse) state.
|
|
29739
|
-
* * When you assign
|
|
29740
|
-
* * When an ENI is in the Available state, you can assign up to
|
|
29741
|
-
* * After
|
|
29793
|
+
* * When you assign private IP addresses to 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.
|
|
29794
|
+
* * When an ENI is in the Available state, you can assign up to 49 secondary private IP addresses to the ENI. When an ENI is attached to an instance, the number of secondary private IP addresses that can be assigned to the ENI varies based on the instance type. For more information, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html).
|
|
29795
|
+
* * After the operation is called, you can obtain the assigned secondary private IP addresses from the response.
|
|
29742
29796
|
*
|
|
29743
29797
|
* @param request AssignPrivateIpAddressesRequest
|
|
29744
29798
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -29746,13 +29800,13 @@ export default class Client extends OpenApi {
|
|
|
29746
29800
|
*/
|
|
29747
29801
|
assignPrivateIpAddressesWithOptions(request: AssignPrivateIpAddressesRequest, runtime: $Util.RuntimeOptions): Promise<AssignPrivateIpAddressesResponse>;
|
|
29748
29802
|
/**
|
|
29749
|
-
* @summary Assigns
|
|
29803
|
+
* @summary Assigns secondary private IP addresses to an elastic network interface (ENI). You can specify available private IP addresses within the CIDR block of the vSwitch that is connected to the ENI. Alternatively, you can specify a number of private IP addresses to automatically assign from the CIDR block of the vSwitch to the ENI.
|
|
29750
29804
|
*
|
|
29751
|
-
* @description ## Usage notes
|
|
29805
|
+
* @description ## [](#)Usage notes
|
|
29752
29806
|
* * The ENI to which you want to assign secondary private IP addresses must be in the Available (Available) or InUse (InUse) state.
|
|
29753
|
-
* * When you assign
|
|
29754
|
-
* * When an ENI is in the Available state, you can assign up to
|
|
29755
|
-
* * After
|
|
29807
|
+
* * When you assign private IP addresses to 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.
|
|
29808
|
+
* * When an ENI is in the Available state, you can assign up to 49 secondary private IP addresses to the ENI. When an ENI is attached to an instance, the number of secondary private IP addresses that can be assigned to the ENI varies based on the instance type. For more information, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html).
|
|
29809
|
+
* * After the operation is called, you can obtain the assigned secondary private IP addresses from the response.
|
|
29756
29810
|
*
|
|
29757
29811
|
* @param request AssignPrivateIpAddressesRequest
|
|
29758
29812
|
* @return AssignPrivateIpAddressesResponse
|
|
@@ -30284,13 +30338,14 @@ export default class Client extends OpenApi {
|
|
|
30284
30338
|
/**
|
|
30285
30339
|
* @summary Copies a custom image from one region to another. You can deploy or copy Elastic Compute Service (ECS) instances across regions by copying custom images.
|
|
30286
30340
|
*
|
|
30287
|
-
* @description
|
|
30288
|
-
*
|
|
30289
|
-
*
|
|
30341
|
+
* @description ## [](#)Usage notes
|
|
30342
|
+
* After you copy a custom image to the destination region, you can use the image copy (new image) to create ECS instances by calling the RunInstances operation or replace the system disks of instances by calling the ReplaceSystemDisk operation in the destination region.
|
|
30343
|
+
* Take note of the following items:
|
|
30344
|
+
* * Only custom images that are in the `Available` state can be copied.
|
|
30290
30345
|
* * Custom images that you want to copy must belong to your Alibaba Cloud account or be shared to you by others, and cannot be copied across accounts.
|
|
30291
|
-
* * When an image is being copied, the image
|
|
30292
|
-
* * A region can have only one image
|
|
30293
|
-
* * You can configure
|
|
30346
|
+
* * When an image is being copied, the image cannot be deleted by calling the [DeleteImage](https://help.aliyun.com/document_detail/25537.html) operation. However, you can cancel the ongoing image copy task by calling the [CancelCopyImage](https://help.aliyun.com/document_detail/25539.html) operation.
|
|
30347
|
+
* * A region can have only one ongoing image copy task at a time. Other image copy tasks queue up to run in sequence after the ongoing task is completed.
|
|
30348
|
+
* * You can configure `ResourceGroupId` to specify the resource group to which to assign the new image. If you do not configure `ResourceGroupId`, the new image is assigned to the default resource group.
|
|
30294
30349
|
*
|
|
30295
30350
|
* @param request CopyImageRequest
|
|
30296
30351
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30300,13 +30355,14 @@ export default class Client extends OpenApi {
|
|
|
30300
30355
|
/**
|
|
30301
30356
|
* @summary Copies a custom image from one region to another. You can deploy or copy Elastic Compute Service (ECS) instances across regions by copying custom images.
|
|
30302
30357
|
*
|
|
30303
|
-
* @description
|
|
30304
|
-
*
|
|
30305
|
-
*
|
|
30358
|
+
* @description ## [](#)Usage notes
|
|
30359
|
+
* After you copy a custom image to the destination region, you can use the image copy (new image) to create ECS instances by calling the RunInstances operation or replace the system disks of instances by calling the ReplaceSystemDisk operation in the destination region.
|
|
30360
|
+
* Take note of the following items:
|
|
30361
|
+
* * Only custom images that are in the `Available` state can be copied.
|
|
30306
30362
|
* * Custom images that you want to copy must belong to your Alibaba Cloud account or be shared to you by others, and cannot be copied across accounts.
|
|
30307
|
-
* * When an image is being copied, the image
|
|
30308
|
-
* * A region can have only one image
|
|
30309
|
-
* * You can configure
|
|
30363
|
+
* * When an image is being copied, the image cannot be deleted by calling the [DeleteImage](https://help.aliyun.com/document_detail/25537.html) operation. However, you can cancel the ongoing image copy task by calling the [CancelCopyImage](https://help.aliyun.com/document_detail/25539.html) operation.
|
|
30364
|
+
* * A region can have only one ongoing image copy task at a time. Other image copy tasks queue up to run in sequence after the ongoing task is completed.
|
|
30365
|
+
* * You can configure `ResourceGroupId` to specify the resource group to which to assign the new image. If you do not configure `ResourceGroupId`, the new image is assigned to the default resource group.
|
|
30310
30366
|
*
|
|
30311
30367
|
* @param request CopyImageRequest
|
|
30312
30368
|
* @return CopyImageResponse
|
|
@@ -32388,9 +32444,10 @@ export default class Client extends OpenApi {
|
|
|
32388
32444
|
*/
|
|
32389
32445
|
describeDedicatedHostAutoRenew(request: DescribeDedicatedHostAutoRenewRequest): Promise<DescribeDedicatedHostAutoRenewResponse>;
|
|
32390
32446
|
/**
|
|
32391
|
-
* @summary Queries the
|
|
32447
|
+
* @summary Queries the information about one or more dedicated host clusters.
|
|
32392
32448
|
*
|
|
32393
|
-
* @description
|
|
32449
|
+
* @description ## [](#)Usage notes
|
|
32450
|
+
* You can specify multiple request parameters to filter query results. Specified request parameters have logical AND relations. Only the specified parameters are included in the filter conditions. However, if `DedicatedHostClusterIds` is set to an empty JSON array (`[]`), this parameter is regarded as a valid filter condition and an empty result is returned.
|
|
32394
32451
|
*
|
|
32395
32452
|
* @param request DescribeDedicatedHostClustersRequest
|
|
32396
32453
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32398,9 +32455,10 @@ export default class Client extends OpenApi {
|
|
|
32398
32455
|
*/
|
|
32399
32456
|
describeDedicatedHostClustersWithOptions(request: DescribeDedicatedHostClustersRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDedicatedHostClustersResponse>;
|
|
32400
32457
|
/**
|
|
32401
|
-
* @summary Queries the
|
|
32458
|
+
* @summary Queries the information about one or more dedicated host clusters.
|
|
32402
32459
|
*
|
|
32403
|
-
* @description
|
|
32460
|
+
* @description ## [](#)Usage notes
|
|
32461
|
+
* You can specify multiple request parameters to filter query results. Specified request parameters have logical AND relations. Only the specified parameters are included in the filter conditions. However, if `DedicatedHostClusterIds` is set to an empty JSON array (`[]`), this parameter is regarded as a valid filter condition and an empty result is returned.
|
|
32404
32462
|
*
|
|
32405
32463
|
* @param request DescribeDedicatedHostClustersRequest
|
|
32406
32464
|
* @return DescribeDedicatedHostClustersResponse
|
|
@@ -32422,12 +32480,12 @@ export default class Client extends OpenApi {
|
|
|
32422
32480
|
*/
|
|
32423
32481
|
describeDedicatedHostTypes(request: DescribeDedicatedHostTypesRequest): Promise<DescribeDedicatedHostTypesResponse>;
|
|
32424
32482
|
/**
|
|
32425
|
-
* @summary Queries the information about dedicated hosts, including the physical performance specifications, machine codes, and
|
|
32483
|
+
* @summary Queries the information about dedicated hosts, including the physical performance specifications, machine codes, and status of the dedicated hosts, and Elastic Compute Service (ECS) instances that are created on the dedicated hosts.
|
|
32426
32484
|
*
|
|
32427
32485
|
* @description ## [](#)Usage notes
|
|
32428
32486
|
* You can use one of the following methods to query the information about dedicated hosts:
|
|
32429
|
-
* * Specify `DedicatedHostIds` to query the
|
|
32430
|
-
* * Specify `DedicatedHostClusterId` to query the
|
|
32487
|
+
* * Specify `DedicatedHostIds` to query the details of specified dedicated hosts.
|
|
32488
|
+
* * Specify `DedicatedHostClusterId` to query the details of dedicated hosts in a dedicated host cluster.
|
|
32431
32489
|
*
|
|
32432
32490
|
* @param request DescribeDedicatedHostsRequest
|
|
32433
32491
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32435,12 +32493,12 @@ export default class Client extends OpenApi {
|
|
|
32435
32493
|
*/
|
|
32436
32494
|
describeDedicatedHostsWithOptions(request: DescribeDedicatedHostsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDedicatedHostsResponse>;
|
|
32437
32495
|
/**
|
|
32438
|
-
* @summary Queries the information about dedicated hosts, including the physical performance specifications, machine codes, and
|
|
32496
|
+
* @summary Queries the information about dedicated hosts, including the physical performance specifications, machine codes, and status of the dedicated hosts, and Elastic Compute Service (ECS) instances that are created on the dedicated hosts.
|
|
32439
32497
|
*
|
|
32440
32498
|
* @description ## [](#)Usage notes
|
|
32441
32499
|
* You can use one of the following methods to query the information about dedicated hosts:
|
|
32442
|
-
* * Specify `DedicatedHostIds` to query the
|
|
32443
|
-
* * Specify `DedicatedHostClusterId` to query the
|
|
32500
|
+
* * Specify `DedicatedHostIds` to query the details of specified dedicated hosts.
|
|
32501
|
+
* * Specify `DedicatedHostClusterId` to query the details of dedicated hosts in a dedicated host cluster.
|
|
32444
32502
|
*
|
|
32445
32503
|
* @param request DescribeDedicatedHostsRequest
|
|
32446
32504
|
* @return DescribeDedicatedHostsResponse
|
|
@@ -32793,9 +32851,9 @@ export default class Client extends OpenApi {
|
|
|
32793
32851
|
*/
|
|
32794
32852
|
describeHpcClusters(request: DescribeHpcClustersRequest): Promise<DescribeHpcClustersResponse>;
|
|
32795
32853
|
/**
|
|
32796
|
-
* @summary Queries the
|
|
32854
|
+
* @summary Queries the information about one or more image components.
|
|
32797
32855
|
*
|
|
32798
|
-
* @description You can use `NextToken` to configure the query token. Set the value to the `NextToken` value that is returned in the
|
|
32856
|
+
* @description You can use `NextToken` to configure the query token. Set the value to the `NextToken` value that is returned in the previous call to the DescribeImageComponents operation. Then, use `MaxResults` to specify the maximum number of entries to return on each page.
|
|
32799
32857
|
*
|
|
32800
32858
|
* @param request DescribeImageComponentsRequest
|
|
32801
32859
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32803,9 +32861,9 @@ export default class Client extends OpenApi {
|
|
|
32803
32861
|
*/
|
|
32804
32862
|
describeImageComponentsWithOptions(request: DescribeImageComponentsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImageComponentsResponse>;
|
|
32805
32863
|
/**
|
|
32806
|
-
* @summary Queries the
|
|
32864
|
+
* @summary Queries the information about one or more image components.
|
|
32807
32865
|
*
|
|
32808
|
-
* @description You can use `NextToken` to configure the query token. Set the value to the `NextToken` value that is returned in the
|
|
32866
|
+
* @description You can use `NextToken` to configure the query token. Set the value to the `NextToken` value that is returned in the previous call to the DescribeImageComponents operation. Then, use `MaxResults` to specify the maximum number of entries to return on each page.
|
|
32809
32867
|
*
|
|
32810
32868
|
* @param request DescribeImageComponentsRequest
|
|
32811
32869
|
* @return DescribeImageComponentsResponse
|
|
@@ -32854,10 +32912,9 @@ export default class Client extends OpenApi {
|
|
|
32854
32912
|
*/
|
|
32855
32913
|
describeImagePipelineExecutions(request: DescribeImagePipelineExecutionsRequest): Promise<DescribeImagePipelineExecutionsResponse>;
|
|
32856
32914
|
/**
|
|
32857
|
-
* @summary Queries the
|
|
32915
|
+
* @summary Queries the information about one or more image templates.
|
|
32858
32916
|
*
|
|
32859
|
-
* @description
|
|
32860
|
-
* 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.
|
|
32917
|
+
* @description You can use `NextToken` to configure the query token. Set the value to the `NextToken` value that is returned in the previous call to the `DescribeImagePipelines` operation. Then, use `MaxResults` to specify the maximum number of entries to return on each page.
|
|
32861
32918
|
*
|
|
32862
32919
|
* @param request DescribeImagePipelinesRequest
|
|
32863
32920
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32865,17 +32922,16 @@ export default class Client extends OpenApi {
|
|
|
32865
32922
|
*/
|
|
32866
32923
|
describeImagePipelinesWithOptions(request: DescribeImagePipelinesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImagePipelinesResponse>;
|
|
32867
32924
|
/**
|
|
32868
|
-
* @summary Queries the
|
|
32925
|
+
* @summary Queries the information about one or more image templates.
|
|
32869
32926
|
*
|
|
32870
|
-
* @description
|
|
32871
|
-
* 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.
|
|
32927
|
+
* @description You can use `NextToken` to configure the query token. Set the value to the `NextToken` value that is returned in the previous call to the `DescribeImagePipelines` operation. Then, use `MaxResults` to specify the maximum number of entries to return on each page.
|
|
32872
32928
|
*
|
|
32873
32929
|
* @param request DescribeImagePipelinesRequest
|
|
32874
32930
|
* @return DescribeImagePipelinesResponse
|
|
32875
32931
|
*/
|
|
32876
32932
|
describeImagePipelines(request: DescribeImagePipelinesRequest): Promise<DescribeImagePipelinesResponse>;
|
|
32877
32933
|
/**
|
|
32878
|
-
* @summary
|
|
32934
|
+
* @summary Queries the accounts with which a custom image is shared. The response can be displayed by page. By default, 10 entries are displayed per page.
|
|
32879
32935
|
*
|
|
32880
32936
|
* @param request DescribeImageSharePermissionRequest
|
|
32881
32937
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32883,7 +32939,7 @@ export default class Client extends OpenApi {
|
|
|
32883
32939
|
*/
|
|
32884
32940
|
describeImageSharePermissionWithOptions(request: DescribeImageSharePermissionRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImageSharePermissionResponse>;
|
|
32885
32941
|
/**
|
|
32886
|
-
* @summary
|
|
32942
|
+
* @summary Queries the accounts with which a custom image is shared. The response can be displayed by page. By default, 10 entries are displayed per page.
|
|
32887
32943
|
*
|
|
32888
32944
|
* @param request DescribeImageSharePermissionRequest
|
|
32889
32945
|
* @return DescribeImageSharePermissionResponse
|
|
@@ -33225,15 +33281,16 @@ export default class Client extends OpenApi {
|
|
|
33225
33281
|
*/
|
|
33226
33282
|
describeInstanceVncUrl(request: DescribeInstanceVncUrlRequest): Promise<DescribeInstanceVncUrlResponse>;
|
|
33227
33283
|
/**
|
|
33228
|
-
* @summary Queries the
|
|
33284
|
+
* @summary Queries the information about Elastic Compute Service (ECS) instances.
|
|
33229
33285
|
*
|
|
33230
|
-
* @description
|
|
33231
|
-
* *
|
|
33232
|
-
* *
|
|
33233
|
-
* *
|
|
33234
|
-
*
|
|
33235
|
-
* *
|
|
33236
|
-
*
|
|
33286
|
+
* @description ## [](#)Usage notes
|
|
33287
|
+
* * You can specify multiple request parameters to filter query results. Specified request parameters have logical AND relations. Only the specified parameters are included in the filter conditions. However, if InstanceIds is set to an empty JSON array, this parameter is regarded as a valid filter condition and an empty result is returned.
|
|
33288
|
+
* * If you are using a Resource Access Management (RAM) user or RAM role that does not have the permissions to call this operation, an empty list is returned. You can include `DryRun` in your request to check whether the empty list is caused by lack of permissions.
|
|
33289
|
+
* * When you call the API operation by using Alibaba Cloud CLI, you must specify request parameter values of different data types in the required formats. For more information, see [Parameter formats](https://help.aliyun.com/document_detail/110340.html).
|
|
33290
|
+
* * You can use one of the following methods to check the responses:
|
|
33291
|
+
* * Method 1: During a paged query, when you call the DescribeInstances operation to retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeInstances operation to retrieve a new page of results, 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.
|
|
33292
|
+
* * Method 2: Use `PageSize` to specify the number of entries to return on each page and then use `PageNumber` to specify the number of the page to return.
|
|
33293
|
+
* You can use only one of the preceding methods. If a large number of entries are to be returned, we recommend that you use Method 1. When `MaxResults` or `NextToken` is specified, the `PageSize` and `PageNumber` request parameters do not take effect and the `TotalCount` response parameter is invalid.
|
|
33237
33294
|
*
|
|
33238
33295
|
* @param request DescribeInstancesRequest
|
|
33239
33296
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -33241,24 +33298,26 @@ export default class Client extends OpenApi {
|
|
|
33241
33298
|
*/
|
|
33242
33299
|
describeInstancesWithOptions(request: DescribeInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstancesResponse>;
|
|
33243
33300
|
/**
|
|
33244
|
-
* @summary Queries the
|
|
33301
|
+
* @summary Queries the information about Elastic Compute Service (ECS) instances.
|
|
33245
33302
|
*
|
|
33246
|
-
* @description
|
|
33247
|
-
* *
|
|
33248
|
-
* *
|
|
33249
|
-
* *
|
|
33250
|
-
*
|
|
33251
|
-
* *
|
|
33252
|
-
*
|
|
33303
|
+
* @description ## [](#)Usage notes
|
|
33304
|
+
* * You can specify multiple request parameters to filter query results. Specified request parameters have logical AND relations. Only the specified parameters are included in the filter conditions. However, if InstanceIds is set to an empty JSON array, this parameter is regarded as a valid filter condition and an empty result is returned.
|
|
33305
|
+
* * If you are using a Resource Access Management (RAM) user or RAM role that does not have the permissions to call this operation, an empty list is returned. You can include `DryRun` in your request to check whether the empty list is caused by lack of permissions.
|
|
33306
|
+
* * When you call the API operation by using Alibaba Cloud CLI, you must specify request parameter values of different data types in the required formats. For more information, see [Parameter formats](https://help.aliyun.com/document_detail/110340.html).
|
|
33307
|
+
* * You can use one of the following methods to check the responses:
|
|
33308
|
+
* * Method 1: During a paged query, when you call the DescribeInstances operation to retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeInstances operation to retrieve a new page of results, 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.
|
|
33309
|
+
* * Method 2: Use `PageSize` to specify the number of entries to return on each page and then use `PageNumber` to specify the number of the page to return.
|
|
33310
|
+
* You can use only one of the preceding methods. If a large number of entries are to be returned, we recommend that you use Method 1. When `MaxResults` or `NextToken` is specified, the `PageSize` and `PageNumber` request parameters do not take effect and the `TotalCount` response parameter is invalid.
|
|
33253
33311
|
*
|
|
33254
33312
|
* @param request DescribeInstancesRequest
|
|
33255
33313
|
* @return DescribeInstancesResponse
|
|
33256
33314
|
*/
|
|
33257
33315
|
describeInstances(request: DescribeInstancesRequest): Promise<DescribeInstancesResponse>;
|
|
33258
33316
|
/**
|
|
33259
|
-
* @summary Queries the full status information of Elastic Compute Service (ECS) instances. The full status information includes instance
|
|
33317
|
+
* @summary Queries the full status information of one or more Elastic Compute Service (ECS) instances. The full status information includes the instance status and the status of instance system events. The instance status is the lifecycle status of instances. The status of instance system events is the health status of maintenance events.
|
|
33260
33318
|
*
|
|
33261
|
-
* @description
|
|
33319
|
+
* @description ## [](#)Usage notes
|
|
33320
|
+
* The response includes the instance status and the instance system events that are in the Scheduled state.
|
|
33262
33321
|
* You can specify a period of time to query events that occurred within the period of time.
|
|
33263
33322
|
*
|
|
33264
33323
|
* @param request DescribeInstancesFullStatusRequest
|
|
@@ -33267,9 +33326,10 @@ export default class Client extends OpenApi {
|
|
|
33267
33326
|
*/
|
|
33268
33327
|
describeInstancesFullStatusWithOptions(request: DescribeInstancesFullStatusRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstancesFullStatusResponse>;
|
|
33269
33328
|
/**
|
|
33270
|
-
* @summary Queries the full status information of Elastic Compute Service (ECS) instances. The full status information includes instance
|
|
33329
|
+
* @summary Queries the full status information of one or more Elastic Compute Service (ECS) instances. The full status information includes the instance status and the status of instance system events. The instance status is the lifecycle status of instances. The status of instance system events is the health status of maintenance events.
|
|
33271
33330
|
*
|
|
33272
|
-
* @description
|
|
33331
|
+
* @description ## [](#)Usage notes
|
|
33332
|
+
* The response includes the instance status and the instance system events that are in the Scheduled state.
|
|
33273
33333
|
* You can specify a period of time to query events that occurred within the period of time.
|
|
33274
33334
|
*
|
|
33275
33335
|
* @param request DescribeInstancesFullStatusRequest
|
|
@@ -33718,7 +33778,7 @@ export default class Client extends OpenApi {
|
|
|
33718
33778
|
*/
|
|
33719
33779
|
describeResourceByTags(request: DescribeResourceByTagsRequest): Promise<DescribeResourceByTagsResponse>;
|
|
33720
33780
|
/**
|
|
33721
|
-
* @summary Queries available resources
|
|
33781
|
+
* @summary Queries available resources in a specific zone when you upgrade or downgrade Elastic Compute Service (ECS) instance types or replace system disks.
|
|
33722
33782
|
*
|
|
33723
33783
|
* @description ## Debugging
|
|
33724
33784
|
* [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=DescribeResourcesModification\\&type=RPC\\&version=2014-05-26)
|
|
@@ -33729,7 +33789,7 @@ export default class Client extends OpenApi {
|
|
|
33729
33789
|
*/
|
|
33730
33790
|
describeResourcesModificationWithOptions(request: DescribeResourcesModificationRequest, runtime: $Util.RuntimeOptions): Promise<DescribeResourcesModificationResponse>;
|
|
33731
33791
|
/**
|
|
33732
|
-
* @summary Queries available resources
|
|
33792
|
+
* @summary Queries available resources in a specific zone when you upgrade or downgrade Elastic Compute Service (ECS) instance types or replace system disks.
|
|
33733
33793
|
*
|
|
33734
33794
|
* @description ## Debugging
|
|
33735
33795
|
* [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=DescribeResourcesModification\\&type=RPC\\&version=2014-05-26)
|
|
@@ -34695,40 +34755,74 @@ export default class Client extends OpenApi {
|
|
|
34695
34755
|
* @description ### [](#)Usage notes
|
|
34696
34756
|
* Take note of the following items:
|
|
34697
34757
|
* * Before you import an image, you must upload the image to an Object Storage Service (OSS) bucket. For more information, see [Upload objects](https://help.aliyun.com/document_detail/31886.html).
|
|
34698
|
-
* * In
|
|
34699
|
-
* * Before you import images for the first time, you must use Resource Access Management (RAM) to authorize ECS to access your OSS buckets. If ECS is not authorized to access your OSS buckets, the `
|
|
34700
|
-
*
|
|
34758
|
+
* * In specific scenarios, you may want to create a custom image based on the operating system data of a source server, import the image to Alibaba Cloud, and then create an ECS instance from the image. The source server can be a physical server, a virtual machine, or a cloud host. If the virtio driver is not installed on the source server, the created ECS instance may be unable to start. To prevent this issue, verify that the virtio driver is installed on the source server before you import the image to Alibaba Cloud. For more information, see [Install the virtio driver](https://help.aliyun.com/document_detail/62423.html).
|
|
34759
|
+
* * Before you import images for the first time, you must use Resource Access Management (RAM) to authorize ECS to access your OSS buckets. If ECS is not authorized to access your OSS buckets, the `NoSetRoletoECSServiceAccount` or `InvalidOperation.CloudBoxImageImportRoleRequired` error code is returned when you call the ImportImage operation. The authorization configuration varies based on whether the image files are imported from a cloud box.
|
|
34760
|
+
* * **If the image files are not imported from a cloud box**, you can complete the authorization on the [Cloud Resource Access Authorization](https://ram.console.aliyun.com/?spm=5176.2020520101image.0.0.2ffa4df57kSoHX#/role/authorize?request=%7B%22Requests%22%3A%20%7B%22request1%22%3A%20%7B%22RoleName%22%3A%20%22AliyunECSImageImportDefaultRole%22%2C%20%22TemplateId%22%3A%20%22ECSImportRole%22%7D%2C%20%22request2%22%3A%20%7B%22RoleName%22%3A%20%22AliyunECSImageExportDefaultRole%22%2C%20%22TemplateId%22%3A%20%22ECSExportRole%22%7D%7D%2C%20%22ReturnUrl%22%3A%20%22https%3A//ecs.console.aliyun.com/%22%2C%20%22Service%22%3A%20%22ECS%22%7D) page of the RAM console. You can also complete the authorization by using a RAM role and RAM policies. The following example shows the policies and permissions required for specific steps in the authorization procedure. For more information, see [Control access to ECS resources by using RAM users](https://help.aliyun.com/document_detail/25481.html).
|
|
34761
|
+
* 1. Create a RAM role named `AliyunECSImageImportDefaultRole`. You must use this exact role name. Otherwise, the image cannot be imported. Configure the following trust policy for the role:
|
|
34762
|
+
* {
|
|
34763
|
+
* "Statement": [
|
|
34764
|
+
* {
|
|
34765
|
+
* "Action": "sts:AssumeRole",
|
|
34766
|
+
* "Effect": "Allow",
|
|
34767
|
+
* "Principal": {
|
|
34768
|
+
* "Service": [
|
|
34769
|
+
* "ecs.aliyuncs.com"
|
|
34770
|
+
* ]
|
|
34771
|
+
* }
|
|
34772
|
+
* }
|
|
34773
|
+
* ],
|
|
34774
|
+
* "Version": "1"
|
|
34775
|
+
* }
|
|
34776
|
+
* 2. Attach the `AliyunECSImageImportRolePolicy` system policy to the RAM role. You can also create a custom policy that contains the following content and attach the policy to the role:
|
|
34777
|
+
* ```
|
|
34701
34778
|
* {
|
|
34779
|
+
* "Version": "1",
|
|
34702
34780
|
* "Statement": [
|
|
34703
34781
|
* {
|
|
34704
|
-
* "Action":
|
|
34705
|
-
*
|
|
34706
|
-
*
|
|
34707
|
-
*
|
|
34708
|
-
*
|
|
34709
|
-
*
|
|
34710
|
-
*
|
|
34711
|
-
*
|
|
34712
|
-
*
|
|
34713
|
-
* "Version": "1"
|
|
34782
|
+
* "Action": [
|
|
34783
|
+
* "oss:GetObject",
|
|
34784
|
+
* "oss:GetBucketLocation",
|
|
34785
|
+
* "oss:GetBucketInfo"
|
|
34786
|
+
* ],
|
|
34787
|
+
* "Resource": "*",
|
|
34788
|
+
* "Effect": "Allow"
|
|
34789
|
+
* }
|
|
34790
|
+
* ]
|
|
34714
34791
|
* }
|
|
34715
|
-
*
|
|
34716
|
-
*
|
|
34717
|
-
*
|
|
34718
|
-
*
|
|
34719
|
-
*
|
|
34720
|
-
*
|
|
34721
|
-
*
|
|
34722
|
-
*
|
|
34723
|
-
*
|
|
34724
|
-
*
|
|
34725
|
-
*
|
|
34726
|
-
*
|
|
34727
|
-
*
|
|
34728
|
-
*
|
|
34729
|
-
*
|
|
34730
|
-
*
|
|
34731
|
-
*
|
|
34792
|
+
* ```
|
|
34793
|
+
* * **If the image files are imported from a cloud box**, you can complete the authorization on the [Cloud Resource Access Authorization](https://ram.console.aliyun.com/role/authorize?request=%7B%22ReturnUrl%22%3A%22https%3A%2F%2Fecs.console.aliyun.com%2F%22%2C%22Services%22%3A%5B%7B%22Roles%22%3A%5B%7B%22RoleName%22%3A%22AliyunECSCloudBoxImageImportDefaultRole%22%2C%22TemplateId%22%3A%22AliyunECSCloudBoxImageImportDefaultRole%22%7D%5D%2C%22Service%22%3A%22ECS%22%7D%5D%7D) page of the RAM console. You can also complete the authorization by using a RAM role and RAM policies. The following example shows the policies and permissions required for specific steps in the authorization procedure. For more information, see [Control access to ECS resources by using RAM users](https://help.aliyun.com/document_detail/25481.html).
|
|
34794
|
+
* 1. Create a RAM role named `AliyunECSCloudBoxImageImportDefaultRole`. You must use this exact role name. Otherwise, the image cannot be imported. Configure the following trust policy for the role:
|
|
34795
|
+
* {
|
|
34796
|
+
* "Statement": [
|
|
34797
|
+
* {
|
|
34798
|
+
* "Action": "sts:AssumeRole",
|
|
34799
|
+
* "Effect": "Allow",
|
|
34800
|
+
* "Principal": {
|
|
34801
|
+
* "Service": [
|
|
34802
|
+
* "ecs.aliyuncs.com"
|
|
34803
|
+
* ]
|
|
34804
|
+
* }
|
|
34805
|
+
* }
|
|
34806
|
+
* ],
|
|
34807
|
+
* "Version": "1"
|
|
34808
|
+
* }
|
|
34809
|
+
* 2. Attach the `AliyunECSCloudBoxImageImportRolePolicy` system policy to the RAM role. You can also create a custom policy that contains the following content and attach the policy to the role:
|
|
34810
|
+
* ```
|
|
34811
|
+
* {
|
|
34812
|
+
* "Version": "1",
|
|
34813
|
+
* "Statement": [
|
|
34814
|
+
* {
|
|
34815
|
+
* "Action": [
|
|
34816
|
+
* "oss-cloudbox:GetObject",
|
|
34817
|
+
* "oss-cloudbox:GetBucketLocation",
|
|
34818
|
+
* "oss-cloudbox:GetBucketInfo"
|
|
34819
|
+
* ],
|
|
34820
|
+
* "Resource": "*",
|
|
34821
|
+
* "Effect": "Allow"
|
|
34822
|
+
* }
|
|
34823
|
+
* ]
|
|
34824
|
+
* }
|
|
34825
|
+
* ```
|
|
34732
34826
|
* * You cannot delete an image that is being imported. However, you can call the [CancelTask](https://help.aliyun.com/document_detail/25624.html) operation to cancel the image import task.
|
|
34733
34827
|
* * You can import an image only to the same region as the OSS bucket to which the image file is uploaded.
|
|
34734
34828
|
* * The valid values of N in `DiskDeviceMapping.N` range from 1 to 17. When N is set to 1, the disk is a system disk. When N is set to a value from 2 to 17, the disk is a data disk. When N is set to a value greater than 17, parameters prefixed with DiskDeviceMapping.N are ignored.
|
|
@@ -34743,7 +34837,7 @@ export default class Client extends OpenApi {
|
|
|
34743
34837
|
* * The image supports the resize2fs command. To support this command, you must install the `e2fsprogs` package. By default, the package is installed on the operating system. If the package is not installed, install it.
|
|
34744
34838
|
* * Alibaba Cloud cloud-init of the latest version is installed on the operating system. If the version of cloud-init is 19.1, the minor version must be 19.1.3 or later. If the version of cloud-init is 0.7.6a in some early versions of operating systems, the minor version must be 0.7.6a15 or later. For more information, see [Install cloud-init](https://help.aliyun.com/document_detail/57803.html).
|
|
34745
34839
|
* * If the image that you want to import uses the Arm64 architecture, configure the real-time clock (RTC) to use the Coordinated Universal Time (UTC) time standard. For more information, see [Linux time and time zones](https://help.aliyun.com/document_detail/405080.html).
|
|
34746
|
-
* * When you import images, we recommend that you specify DetectionStrategy. This way, you can optimize the images based on the image check results. For more information, see [Overview](https://help.aliyun.com/document_detail/439819.html).
|
|
34840
|
+
* * When you import images, we recommend that you specify DetectionStrategy. This way, you can optimize the images based on the image check results. For more information, see [Overview of image check](https://help.aliyun.com/document_detail/439819.html).
|
|
34747
34841
|
*
|
|
34748
34842
|
* @param request ImportImageRequest
|
|
34749
34843
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -34756,40 +34850,74 @@ export default class Client extends OpenApi {
|
|
|
34756
34850
|
* @description ### [](#)Usage notes
|
|
34757
34851
|
* Take note of the following items:
|
|
34758
34852
|
* * Before you import an image, you must upload the image to an Object Storage Service (OSS) bucket. For more information, see [Upload objects](https://help.aliyun.com/document_detail/31886.html).
|
|
34759
|
-
* * In
|
|
34760
|
-
* * Before you import images for the first time, you must use Resource Access Management (RAM) to authorize ECS to access your OSS buckets. If ECS is not authorized to access your OSS buckets, the `
|
|
34761
|
-
*
|
|
34853
|
+
* * In specific scenarios, you may want to create a custom image based on the operating system data of a source server, import the image to Alibaba Cloud, and then create an ECS instance from the image. The source server can be a physical server, a virtual machine, or a cloud host. If the virtio driver is not installed on the source server, the created ECS instance may be unable to start. To prevent this issue, verify that the virtio driver is installed on the source server before you import the image to Alibaba Cloud. For more information, see [Install the virtio driver](https://help.aliyun.com/document_detail/62423.html).
|
|
34854
|
+
* * Before you import images for the first time, you must use Resource Access Management (RAM) to authorize ECS to access your OSS buckets. If ECS is not authorized to access your OSS buckets, the `NoSetRoletoECSServiceAccount` or `InvalidOperation.CloudBoxImageImportRoleRequired` error code is returned when you call the ImportImage operation. The authorization configuration varies based on whether the image files are imported from a cloud box.
|
|
34855
|
+
* * **If the image files are not imported from a cloud box**, you can complete the authorization on the [Cloud Resource Access Authorization](https://ram.console.aliyun.com/?spm=5176.2020520101image.0.0.2ffa4df57kSoHX#/role/authorize?request=%7B%22Requests%22%3A%20%7B%22request1%22%3A%20%7B%22RoleName%22%3A%20%22AliyunECSImageImportDefaultRole%22%2C%20%22TemplateId%22%3A%20%22ECSImportRole%22%7D%2C%20%22request2%22%3A%20%7B%22RoleName%22%3A%20%22AliyunECSImageExportDefaultRole%22%2C%20%22TemplateId%22%3A%20%22ECSExportRole%22%7D%7D%2C%20%22ReturnUrl%22%3A%20%22https%3A//ecs.console.aliyun.com/%22%2C%20%22Service%22%3A%20%22ECS%22%7D) page of the RAM console. You can also complete the authorization by using a RAM role and RAM policies. The following example shows the policies and permissions required for specific steps in the authorization procedure. For more information, see [Control access to ECS resources by using RAM users](https://help.aliyun.com/document_detail/25481.html).
|
|
34856
|
+
* 1. Create a RAM role named `AliyunECSImageImportDefaultRole`. You must use this exact role name. Otherwise, the image cannot be imported. Configure the following trust policy for the role:
|
|
34857
|
+
* {
|
|
34858
|
+
* "Statement": [
|
|
34859
|
+
* {
|
|
34860
|
+
* "Action": "sts:AssumeRole",
|
|
34861
|
+
* "Effect": "Allow",
|
|
34862
|
+
* "Principal": {
|
|
34863
|
+
* "Service": [
|
|
34864
|
+
* "ecs.aliyuncs.com"
|
|
34865
|
+
* ]
|
|
34866
|
+
* }
|
|
34867
|
+
* }
|
|
34868
|
+
* ],
|
|
34869
|
+
* "Version": "1"
|
|
34870
|
+
* }
|
|
34871
|
+
* 2. Attach the `AliyunECSImageImportRolePolicy` system policy to the RAM role. You can also create a custom policy that contains the following content and attach the policy to the role:
|
|
34872
|
+
* ```
|
|
34873
|
+
* {
|
|
34874
|
+
* "Version": "1",
|
|
34875
|
+
* "Statement": [
|
|
34876
|
+
* {
|
|
34877
|
+
* "Action": [
|
|
34878
|
+
* "oss:GetObject",
|
|
34879
|
+
* "oss:GetBucketLocation",
|
|
34880
|
+
* "oss:GetBucketInfo"
|
|
34881
|
+
* ],
|
|
34882
|
+
* "Resource": "*",
|
|
34883
|
+
* "Effect": "Allow"
|
|
34884
|
+
* }
|
|
34885
|
+
* ]
|
|
34886
|
+
* }
|
|
34887
|
+
* ```
|
|
34888
|
+
* * **If the image files are imported from a cloud box**, you can complete the authorization on the [Cloud Resource Access Authorization](https://ram.console.aliyun.com/role/authorize?request=%7B%22ReturnUrl%22%3A%22https%3A%2F%2Fecs.console.aliyun.com%2F%22%2C%22Services%22%3A%5B%7B%22Roles%22%3A%5B%7B%22RoleName%22%3A%22AliyunECSCloudBoxImageImportDefaultRole%22%2C%22TemplateId%22%3A%22AliyunECSCloudBoxImageImportDefaultRole%22%7D%5D%2C%22Service%22%3A%22ECS%22%7D%5D%7D) page of the RAM console. You can also complete the authorization by using a RAM role and RAM policies. The following example shows the policies and permissions required for specific steps in the authorization procedure. For more information, see [Control access to ECS resources by using RAM users](https://help.aliyun.com/document_detail/25481.html).
|
|
34889
|
+
* 1. Create a RAM role named `AliyunECSCloudBoxImageImportDefaultRole`. You must use this exact role name. Otherwise, the image cannot be imported. Configure the following trust policy for the role:
|
|
34890
|
+
* {
|
|
34891
|
+
* "Statement": [
|
|
34892
|
+
* {
|
|
34893
|
+
* "Action": "sts:AssumeRole",
|
|
34894
|
+
* "Effect": "Allow",
|
|
34895
|
+
* "Principal": {
|
|
34896
|
+
* "Service": [
|
|
34897
|
+
* "ecs.aliyuncs.com"
|
|
34898
|
+
* ]
|
|
34899
|
+
* }
|
|
34900
|
+
* }
|
|
34901
|
+
* ],
|
|
34902
|
+
* "Version": "1"
|
|
34903
|
+
* }
|
|
34904
|
+
* 2. Attach the `AliyunECSCloudBoxImageImportRolePolicy` system policy to the RAM role. You can also create a custom policy that contains the following content and attach the policy to the role:
|
|
34905
|
+
* ```
|
|
34762
34906
|
* {
|
|
34907
|
+
* "Version": "1",
|
|
34763
34908
|
* "Statement": [
|
|
34764
34909
|
* {
|
|
34765
|
-
* "Action":
|
|
34766
|
-
*
|
|
34767
|
-
*
|
|
34768
|
-
*
|
|
34769
|
-
*
|
|
34770
|
-
*
|
|
34771
|
-
*
|
|
34772
|
-
*
|
|
34773
|
-
*
|
|
34774
|
-
* "Version": "1"
|
|
34910
|
+
* "Action": [
|
|
34911
|
+
* "oss-cloudbox:GetObject",
|
|
34912
|
+
* "oss-cloudbox:GetBucketLocation",
|
|
34913
|
+
* "oss-cloudbox:GetBucketInfo"
|
|
34914
|
+
* ],
|
|
34915
|
+
* "Resource": "*",
|
|
34916
|
+
* "Effect": "Allow"
|
|
34917
|
+
* }
|
|
34918
|
+
* ]
|
|
34775
34919
|
* }
|
|
34776
|
-
*
|
|
34777
|
-
* ```
|
|
34778
|
-
* {
|
|
34779
|
-
* "Version": "1",
|
|
34780
|
-
* "Statement": [
|
|
34781
|
-
* {
|
|
34782
|
-
* "Action": [
|
|
34783
|
-
* "oss:GetObject",
|
|
34784
|
-
* "oss:GetBucketLocation",
|
|
34785
|
-
* "oss:GetBucketInfo"
|
|
34786
|
-
* ],
|
|
34787
|
-
* "Resource": "*",
|
|
34788
|
-
* "Effect": "Allow"
|
|
34789
|
-
* }
|
|
34790
|
-
* ]
|
|
34791
|
-
* }
|
|
34792
|
-
* ```
|
|
34920
|
+
* ```
|
|
34793
34921
|
* * You cannot delete an image that is being imported. However, you can call the [CancelTask](https://help.aliyun.com/document_detail/25624.html) operation to cancel the image import task.
|
|
34794
34922
|
* * You can import an image only to the same region as the OSS bucket to which the image file is uploaded.
|
|
34795
34923
|
* * The valid values of N in `DiskDeviceMapping.N` range from 1 to 17. When N is set to 1, the disk is a system disk. When N is set to a value from 2 to 17, the disk is a data disk. When N is set to a value greater than 17, parameters prefixed with DiskDeviceMapping.N are ignored.
|
|
@@ -34804,7 +34932,7 @@ export default class Client extends OpenApi {
|
|
|
34804
34932
|
* * The image supports the resize2fs command. To support this command, you must install the `e2fsprogs` package. By default, the package is installed on the operating system. If the package is not installed, install it.
|
|
34805
34933
|
* * Alibaba Cloud cloud-init of the latest version is installed on the operating system. If the version of cloud-init is 19.1, the minor version must be 19.1.3 or later. If the version of cloud-init is 0.7.6a in some early versions of operating systems, the minor version must be 0.7.6a15 or later. For more information, see [Install cloud-init](https://help.aliyun.com/document_detail/57803.html).
|
|
34806
34934
|
* * If the image that you want to import uses the Arm64 architecture, configure the real-time clock (RTC) to use the Coordinated Universal Time (UTC) time standard. For more information, see [Linux time and time zones](https://help.aliyun.com/document_detail/405080.html).
|
|
34807
|
-
* * When you import images, we recommend that you specify DetectionStrategy. This way, you can optimize the images based on the image check results. For more information, see [Overview](https://help.aliyun.com/document_detail/439819.html).
|
|
34935
|
+
* * When you import images, we recommend that you specify DetectionStrategy. This way, you can optimize the images based on the image check results. For more information, see [Overview of image check](https://help.aliyun.com/document_detail/439819.html).
|
|
34808
34936
|
*
|
|
34809
34937
|
* @param request ImportImageRequest
|
|
34810
34938
|
* @return ImportImageResponse
|
|
@@ -35361,15 +35489,14 @@ export default class Client extends OpenApi {
|
|
|
35361
35489
|
*/
|
|
35362
35490
|
modifyDiskAttribute(request: ModifyDiskAttributeRequest): Promise<ModifyDiskAttributeResponse>;
|
|
35363
35491
|
/**
|
|
35364
|
-
* @summary Changes the billing method of disks that are attached to
|
|
35492
|
+
* @summary Changes the billing method of data disks that are attached to a subscription Elastic Compute Service (ECS) instance.
|
|
35365
35493
|
*
|
|
35366
|
-
* @description
|
|
35367
|
-
*
|
|
35368
|
-
*
|
|
35369
|
-
* *
|
|
35370
|
-
* * The instance cannot be in the Stopped state due to
|
|
35371
|
-
* *
|
|
35372
|
-
* * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
|
|
35494
|
+
* @description # [](#)Usage notes
|
|
35495
|
+
* After you change the billing method, the payment (if any) is automatically completed. Maintain sufficient balance in your account. Otherwise, your order becomes invalid and must be canceled. If your account balance is insufficient, you can set AutoPay to false to generate an unpaid order. Then, you can go to the [Orders page](https://usercenter2-intl.aliyun.com/order/list) in the Expenses and Costs console and pay for the order.
|
|
35496
|
+
* Take note of the following items:
|
|
35497
|
+
* * Only pay-as-you-go disks can be attached to pay-as-you-go instances, and the billing methods of the disks cannot be changed.
|
|
35498
|
+
* * The instance cannot be in the Stopped state due to expiration.
|
|
35499
|
+
* * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are nonrefundable.
|
|
35373
35500
|
* * You cannot change the billing method again within 5 minutes of a successful change.
|
|
35374
35501
|
*
|
|
35375
35502
|
* @param request ModifyDiskChargeTypeRequest
|
|
@@ -35378,15 +35505,14 @@ export default class Client extends OpenApi {
|
|
|
35378
35505
|
*/
|
|
35379
35506
|
modifyDiskChargeTypeWithOptions(request: ModifyDiskChargeTypeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDiskChargeTypeResponse>;
|
|
35380
35507
|
/**
|
|
35381
|
-
* @summary Changes the billing method of disks that are attached to
|
|
35508
|
+
* @summary Changes the billing method of data disks that are attached to a subscription Elastic Compute Service (ECS) instance.
|
|
35382
35509
|
*
|
|
35383
|
-
* @description
|
|
35384
|
-
*
|
|
35385
|
-
*
|
|
35386
|
-
* *
|
|
35387
|
-
* * The instance cannot be in the Stopped state due to
|
|
35388
|
-
* *
|
|
35389
|
-
* * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
|
|
35510
|
+
* @description # [](#)Usage notes
|
|
35511
|
+
* After you change the billing method, the payment (if any) is automatically completed. Maintain sufficient balance in your account. Otherwise, your order becomes invalid and must be canceled. If your account balance is insufficient, you can set AutoPay to false to generate an unpaid order. Then, you can go to the [Orders page](https://usercenter2-intl.aliyun.com/order/list) in the Expenses and Costs console and pay for the order.
|
|
35512
|
+
* Take note of the following items:
|
|
35513
|
+
* * Only pay-as-you-go disks can be attached to pay-as-you-go instances, and the billing methods of the disks cannot be changed.
|
|
35514
|
+
* * The instance cannot be in the Stopped state due to expiration.
|
|
35515
|
+
* * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are nonrefundable.
|
|
35390
35516
|
* * You cannot change the billing method again within 5 minutes of a successful change.
|
|
35391
35517
|
*
|
|
35392
35518
|
* @param request ModifyDiskChargeTypeRequest
|
|
@@ -36354,7 +36480,7 @@ export default class Client extends OpenApi {
|
|
|
36354
36480
|
*/
|
|
36355
36481
|
modifySecurityGroupEgressRule(request: ModifySecurityGroupEgressRuleRequest): Promise<ModifySecurityGroupEgressRuleResponse>;
|
|
36356
36482
|
/**
|
|
36357
|
-
* @summary Modifies the internal access control policy of a basic security group. The internal access control
|
|
36483
|
+
* @summary Modifies the internal access control policy of instances in a basic security group. The internal access control policy of instances in an advanced security group cannot be modified.
|
|
36358
36484
|
*
|
|
36359
36485
|
* @description Take note of the following items:
|
|
36360
36486
|
* * 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.
|
|
@@ -36367,7 +36493,7 @@ export default class Client extends OpenApi {
|
|
|
36367
36493
|
*/
|
|
36368
36494
|
modifySecurityGroupPolicyWithOptions(request: ModifySecurityGroupPolicyRequest, runtime: $Util.RuntimeOptions): Promise<ModifySecurityGroupPolicyResponse>;
|
|
36369
36495
|
/**
|
|
36370
|
-
* @summary Modifies the internal access control policy of a basic security group. The internal access control
|
|
36496
|
+
* @summary Modifies the internal access control policy of instances in a basic security group. The internal access control policy of instances in an advanced security group cannot be modified.
|
|
36371
36497
|
*
|
|
36372
36498
|
* @description Take note of the following items:
|
|
36373
36499
|
* * 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.
|
|
@@ -36547,7 +36673,8 @@ export default class Client extends OpenApi {
|
|
|
36547
36673
|
/**
|
|
36548
36674
|
* @summary Purchases a reserved instance. Reserved instances can be automatically matched to pay-as-you-go instances to offset the fees of the pay-as-you-go instances.
|
|
36549
36675
|
*
|
|
36550
|
-
* @description
|
|
36676
|
+
* @description ## [](#)Usage notes
|
|
36677
|
+
* * Before you call this operation, make sure that you fully understand the billing method of reserved instances. For more information, see [Reserved instances](https://help.aliyun.com/document_detail/100371.html).
|
|
36551
36678
|
* * Before you purchase a reserved instance, you can call the [DescribeAvailableResource](https://help.aliyun.com/document_detail/66186.html) operation to query available instance resources.
|
|
36552
36679
|
*
|
|
36553
36680
|
* @param request PurchaseReservedInstancesOfferingRequest
|
|
@@ -36558,7 +36685,8 @@ export default class Client extends OpenApi {
|
|
|
36558
36685
|
/**
|
|
36559
36686
|
* @summary Purchases a reserved instance. Reserved instances can be automatically matched to pay-as-you-go instances to offset the fees of the pay-as-you-go instances.
|
|
36560
36687
|
*
|
|
36561
|
-
* @description
|
|
36688
|
+
* @description ## [](#)Usage notes
|
|
36689
|
+
* * Before you call this operation, make sure that you fully understand the billing method of reserved instances. For more information, see [Reserved instances](https://help.aliyun.com/document_detail/100371.html).
|
|
36562
36690
|
* * Before you purchase a reserved instance, you can call the [DescribeAvailableResource](https://help.aliyun.com/document_detail/66186.html) operation to query available instance resources.
|
|
36563
36691
|
*
|
|
36564
36692
|
* @param request PurchaseReservedInstancesOfferingRequest
|
|
@@ -36953,23 +37081,21 @@ export default class Client extends OpenApi {
|
|
|
36953
37081
|
*/
|
|
36954
37082
|
renewReservedInstances(request: RenewReservedInstancesRequest): Promise<RenewReservedInstancesResponse>;
|
|
36955
37083
|
/**
|
|
36956
|
-
* @summary Replaces the
|
|
37084
|
+
* @summary Replaces the operating system of an Elastic Compute Service (ECS) instance. After you perform an operating system replacement operation, the original disk is released and a new system disk is created. This causes the ID of the system disk to change.
|
|
36957
37085
|
*
|
|
36958
|
-
* @description ##
|
|
36959
|
-
*
|
|
36960
|
-
* * You must specify the ImageId parameter or the DiskId parameter. You cannot specify both of these parameters at the same time. Otherwise, the call fails and an error message is returned.
|
|
36961
|
-
* > You can use the `DiskId` parameter to replace the operating system of an instance. This feature is available to select users. To use this feature, [submit a ticket](https://workorder-intl.console.aliyun.com/console.htm).
|
|
37086
|
+
* @description ## [](#)Usage notes
|
|
37087
|
+
* Take note of the following items:
|
|
36962
37088
|
* * The category of the system disk cannot be changed.
|
|
36963
37089
|
* * The billing method of the system disk cannot be changed.
|
|
36964
37090
|
* * The instance must be in the `Stopped` state.
|
|
36965
37091
|
* **
|
|
36966
|
-
* **Note**
|
|
36967
|
-
* * If the response contains `
|
|
36968
|
-
* *
|
|
36969
|
-
* * You can configure
|
|
36970
|
-
* After you call
|
|
36971
|
-
* * Call the [DescribeDisks](https://help.aliyun.com/document_detail/25514.html) operation to query the
|
|
36972
|
-
* * Call the [DescribeInstances](https://help.aliyun.com/document_detail/25506.html) operation to query the
|
|
37092
|
+
* **Note** The operation is applicable only to instances of the Virtual Private Cloud (VPC) type. If the instance is a pay-as-you-go instance and economical mode is enabled by default for the instance, you must disable economical mode and enable standard mode when you stop the instance. This prevents the instance from being unable to restart due to insufficient ECS resources after the system disk is replaced. For more information, see [StopInstance](https://help.aliyun.com/document_detail/25501.html).
|
|
37093
|
+
* * The ECS instance cannot be locked for security reasons. If the value of `OperationLocks` in the DescribeInstances response contains `"LockReason": "security"` for an instance, the instance is locked for security reasons. For more information, see [API behavior when an instance is locked for security reasons](https://help.aliyun.com/document_detail/25695.html).
|
|
37094
|
+
* * No unpaid orders are associated with the instance.
|
|
37095
|
+
* * You can configure `SystemDisk.Size` to specify the capacity of the new system disk.
|
|
37096
|
+
* After you call the ReplaceSystemDisk operation, you can use one of the following methods to check whether the system disk is replaced:
|
|
37097
|
+
* * Call the [DescribeDisks](https://help.aliyun.com/document_detail/25514.html) operation to query the status of the new system disk. If the new system disk is in the In Use state, the system disk is replaced.
|
|
37098
|
+
* * Call the [DescribeInstances](https://help.aliyun.com/document_detail/25506.html) operation to query the status of the instance whose system disk is replaced. If the `OperationLocks` parameter is empty, the system disk is replaced.
|
|
36973
37099
|
*
|
|
36974
37100
|
* @param request ReplaceSystemDiskRequest
|
|
36975
37101
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -36977,23 +37103,21 @@ export default class Client extends OpenApi {
|
|
|
36977
37103
|
*/
|
|
36978
37104
|
replaceSystemDiskWithOptions(request: ReplaceSystemDiskRequest, runtime: $Util.RuntimeOptions): Promise<ReplaceSystemDiskResponse>;
|
|
36979
37105
|
/**
|
|
36980
|
-
* @summary Replaces the
|
|
37106
|
+
* @summary Replaces the operating system of an Elastic Compute Service (ECS) instance. After you perform an operating system replacement operation, the original disk is released and a new system disk is created. This causes the ID of the system disk to change.
|
|
36981
37107
|
*
|
|
36982
|
-
* @description ##
|
|
36983
|
-
*
|
|
36984
|
-
* * You must specify the ImageId parameter or the DiskId parameter. You cannot specify both of these parameters at the same time. Otherwise, the call fails and an error message is returned.
|
|
36985
|
-
* > You can use the `DiskId` parameter to replace the operating system of an instance. This feature is available to select users. To use this feature, [submit a ticket](https://workorder-intl.console.aliyun.com/console.htm).
|
|
37108
|
+
* @description ## [](#)Usage notes
|
|
37109
|
+
* Take note of the following items:
|
|
36986
37110
|
* * The category of the system disk cannot be changed.
|
|
36987
37111
|
* * The billing method of the system disk cannot be changed.
|
|
36988
37112
|
* * The instance must be in the `Stopped` state.
|
|
36989
37113
|
* **
|
|
36990
|
-
* **Note**
|
|
36991
|
-
* * If the response contains `
|
|
36992
|
-
* *
|
|
36993
|
-
* * You can configure
|
|
36994
|
-
* After you call
|
|
36995
|
-
* * Call the [DescribeDisks](https://help.aliyun.com/document_detail/25514.html) operation to query the
|
|
36996
|
-
* * Call the [DescribeInstances](https://help.aliyun.com/document_detail/25506.html) operation to query the
|
|
37114
|
+
* **Note** The operation is applicable only to instances of the Virtual Private Cloud (VPC) type. If the instance is a pay-as-you-go instance and economical mode is enabled by default for the instance, you must disable economical mode and enable standard mode when you stop the instance. This prevents the instance from being unable to restart due to insufficient ECS resources after the system disk is replaced. For more information, see [StopInstance](https://help.aliyun.com/document_detail/25501.html).
|
|
37115
|
+
* * The ECS instance cannot be locked for security reasons. If the value of `OperationLocks` in the DescribeInstances response contains `"LockReason": "security"` for an instance, the instance is locked for security reasons. For more information, see [API behavior when an instance is locked for security reasons](https://help.aliyun.com/document_detail/25695.html).
|
|
37116
|
+
* * No unpaid orders are associated with the instance.
|
|
37117
|
+
* * You can configure `SystemDisk.Size` to specify the capacity of the new system disk.
|
|
37118
|
+
* After you call the ReplaceSystemDisk operation, you can use one of the following methods to check whether the system disk is replaced:
|
|
37119
|
+
* * Call the [DescribeDisks](https://help.aliyun.com/document_detail/25514.html) operation to query the status of the new system disk. If the new system disk is in the In Use state, the system disk is replaced.
|
|
37120
|
+
* * Call the [DescribeInstances](https://help.aliyun.com/document_detail/25506.html) operation to query the status of the instance whose system disk is replaced. If the `OperationLocks` parameter is empty, the system disk is replaced.
|
|
36997
37121
|
*
|
|
36998
37122
|
* @param request ReplaceSystemDiskRequest
|
|
36999
37123
|
* @return ReplaceSystemDiskResponse
|
|
@@ -37015,7 +37139,7 @@ export default class Client extends OpenApi {
|
|
|
37015
37139
|
*/
|
|
37016
37140
|
reportInstancesStatus(request: ReportInstancesStatusRequest): Promise<ReportInstancesStatusResponse>;
|
|
37017
37141
|
/**
|
|
37018
|
-
* @summary Rolls back a disk to a specific point in time based on a snapshot of the disk.
|
|
37142
|
+
* @summary Rolls back a disk to the state at a specific point in time based on a snapshot of the disk.
|
|
37019
37143
|
*
|
|
37020
37144
|
* @description When you call this operation, take note of the following items:
|
|
37021
37145
|
* * The disk must be in the In Use (In_Use) or Unattached (Available) state.
|
|
@@ -37029,7 +37153,7 @@ export default class Client extends OpenApi {
|
|
|
37029
37153
|
*/
|
|
37030
37154
|
resetDiskWithOptions(request: ResetDiskRequest, runtime: $Util.RuntimeOptions): Promise<ResetDiskResponse>;
|
|
37031
37155
|
/**
|
|
37032
|
-
* @summary Rolls back a disk to a specific point in time based on a snapshot of the disk.
|
|
37156
|
+
* @summary Rolls back a disk to the state at a specific point in time based on a snapshot of the disk.
|
|
37033
37157
|
*
|
|
37034
37158
|
* @description When you call this operation, take note of the following items:
|
|
37035
37159
|
* * The disk must be in the In Use (In_Use) or Unattached (Available) state.
|
|
@@ -37094,30 +37218,45 @@ export default class Client extends OpenApi {
|
|
|
37094
37218
|
/**
|
|
37095
37219
|
* @summary Deletes one or more inbound security group rules.
|
|
37096
37220
|
*
|
|
37097
|
-
* @description In the security group-related API documents, inbound traffic
|
|
37221
|
+
* @description In the security group-related API documents, inbound traffic refers to the traffic sent by the source and received by the destination.
|
|
37098
37222
|
* When you call this operation, you can use one of the following groups of parameters to specify the security group rules that you want to delete:
|
|
37099
|
-
* *
|
|
37223
|
+
* * Parameters used to specify the IDs of security group rules. We recommend that you specify the IDs of security group rules to delete the rules. - If the security group rule ID that you specify does not exist, an error is reported. - You cannot specify the parameters that are no longer available and their Permissions.N-prefixed counterparts at the same time. - Sample request:
|
|
37100
37224
|
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup
|
|
37101
37225
|
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
37102
37226
|
* &SecurityGroupRuleId.1=sgr-bpdfmk****
|
|
37103
37227
|
* &SecurityGroupRuleId.2=sgr-bpdfmg****
|
|
37104
37228
|
* &<Common request parameters>
|
|
37105
|
-
* * Parameters prefixed with Permissions.N.
|
|
37106
|
-
* * If no security group rule matches the specified parameters, the call to RevokeSecurityGroup is successful but no security group
|
|
37107
|
-
* * You cannot specify
|
|
37108
|
-
* * You can
|
|
37109
|
-
* * Parameters used to
|
|
37110
|
-
*
|
|
37111
|
-
*
|
|
37112
|
-
*
|
|
37113
|
-
*
|
|
37114
|
-
*
|
|
37115
|
-
*
|
|
37116
|
-
*
|
|
37117
|
-
*
|
|
37118
|
-
*
|
|
37119
|
-
*
|
|
37120
|
-
*
|
|
37229
|
+
* * Parameters that are prefixed with Permissions.N.
|
|
37230
|
+
* * If no security group rule matches the specified parameters, the call to RevokeSecurityGroup is successful but no security group rules are deleted.
|
|
37231
|
+
* * You cannot specify SecurityGroupRuleId.N or the parameters that are not prefixed with Permissions.N.
|
|
37232
|
+
* * You can determine an inbound security group rule by specifying one of the following groups of parameters. You cannot determine an inbound security group rule by specifying only one parameter.
|
|
37233
|
+
* * Parameters used to determine an inbound security group rule that controls access from a CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, DestCidrIp (optional), and SourceCidrIp. Sample request:
|
|
37234
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup
|
|
37235
|
+
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
37236
|
+
* &Permissions.1.SourceCidrIp=10.0.0.0/8
|
|
37237
|
+
* &Permissions.1.IpProtocol=TCP
|
|
37238
|
+
* &Permissions.1.PortRange=80/80
|
|
37239
|
+
* &Permissions.1.NicType=intranet
|
|
37240
|
+
* &Permissions.1.Policy=accept
|
|
37241
|
+
* &<Common request parameters>
|
|
37242
|
+
* * Parameters used to determine an inbound security group rule that controls access from another security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, DestCidrIp (optional), and SourceGroupId. Sample request:
|
|
37243
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup
|
|
37244
|
+
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
37245
|
+
* &Permissions.1.SourceGroupId=sg-bp67acfmxa123b****
|
|
37246
|
+
* &Permissions.1.IpProtocol=TCP
|
|
37247
|
+
* &Permissions.1.PortRange=80/80
|
|
37248
|
+
* &Permissions.1.NicType=intranet
|
|
37249
|
+
* &Permissions.1.Policy=accept
|
|
37250
|
+
* &<Common request parameters>
|
|
37251
|
+
* * Parameters used to determine an inbound security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, DestCidrIp (optional), and SourcePrefixListId. Sample request:
|
|
37252
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup
|
|
37253
|
+
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
37254
|
+
* &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
37255
|
+
* &Permissions.1.IpProtocol=TCP
|
|
37256
|
+
* &Permissions.1.PortRange=80/80
|
|
37257
|
+
* &Permissions.1.NicType=intranet
|
|
37258
|
+
* &Permissions.1.Policy=accept
|
|
37259
|
+
* &<Common request parameters>
|
|
37121
37260
|
*
|
|
37122
37261
|
* @param request RevokeSecurityGroupRequest
|
|
37123
37262
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -37127,30 +37266,45 @@ export default class Client extends OpenApi {
|
|
|
37127
37266
|
/**
|
|
37128
37267
|
* @summary Deletes one or more inbound security group rules.
|
|
37129
37268
|
*
|
|
37130
|
-
* @description In the security group-related API documents, inbound traffic
|
|
37269
|
+
* @description In the security group-related API documents, inbound traffic refers to the traffic sent by the source and received by the destination.
|
|
37131
37270
|
* When you call this operation, you can use one of the following groups of parameters to specify the security group rules that you want to delete:
|
|
37132
|
-
* *
|
|
37271
|
+
* * Parameters used to specify the IDs of security group rules. We recommend that you specify the IDs of security group rules to delete the rules. - If the security group rule ID that you specify does not exist, an error is reported. - You cannot specify the parameters that are no longer available and their Permissions.N-prefixed counterparts at the same time. - Sample request:
|
|
37133
37272
|
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup
|
|
37134
37273
|
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
37135
37274
|
* &SecurityGroupRuleId.1=sgr-bpdfmk****
|
|
37136
37275
|
* &SecurityGroupRuleId.2=sgr-bpdfmg****
|
|
37137
37276
|
* &<Common request parameters>
|
|
37138
|
-
* * Parameters prefixed with Permissions.N.
|
|
37139
|
-
* * If no security group rule matches the specified parameters, the call to RevokeSecurityGroup is successful but no security group
|
|
37140
|
-
* * You cannot specify
|
|
37141
|
-
* * You can
|
|
37142
|
-
* * Parameters used to
|
|
37143
|
-
*
|
|
37144
|
-
*
|
|
37145
|
-
*
|
|
37146
|
-
*
|
|
37147
|
-
*
|
|
37148
|
-
*
|
|
37149
|
-
*
|
|
37150
|
-
*
|
|
37151
|
-
*
|
|
37152
|
-
*
|
|
37153
|
-
*
|
|
37277
|
+
* * Parameters that are prefixed with Permissions.N.
|
|
37278
|
+
* * If no security group rule matches the specified parameters, the call to RevokeSecurityGroup is successful but no security group rules are deleted.
|
|
37279
|
+
* * You cannot specify SecurityGroupRuleId.N or the parameters that are not prefixed with Permissions.N.
|
|
37280
|
+
* * You can determine an inbound security group rule by specifying one of the following groups of parameters. You cannot determine an inbound security group rule by specifying only one parameter.
|
|
37281
|
+
* * Parameters used to determine an inbound security group rule that controls access from a CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, DestCidrIp (optional), and SourceCidrIp. Sample request:
|
|
37282
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup
|
|
37283
|
+
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
37284
|
+
* &Permissions.1.SourceCidrIp=10.0.0.0/8
|
|
37285
|
+
* &Permissions.1.IpProtocol=TCP
|
|
37286
|
+
* &Permissions.1.PortRange=80/80
|
|
37287
|
+
* &Permissions.1.NicType=intranet
|
|
37288
|
+
* &Permissions.1.Policy=accept
|
|
37289
|
+
* &<Common request parameters>
|
|
37290
|
+
* * Parameters used to determine an inbound security group rule that controls access from another security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, DestCidrIp (optional), and SourceGroupId. Sample request:
|
|
37291
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup
|
|
37292
|
+
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
37293
|
+
* &Permissions.1.SourceGroupId=sg-bp67acfmxa123b****
|
|
37294
|
+
* &Permissions.1.IpProtocol=TCP
|
|
37295
|
+
* &Permissions.1.PortRange=80/80
|
|
37296
|
+
* &Permissions.1.NicType=intranet
|
|
37297
|
+
* &Permissions.1.Policy=accept
|
|
37298
|
+
* &<Common request parameters>
|
|
37299
|
+
* * Parameters used to determine an inbound security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, DestCidrIp (optional), and SourcePrefixListId. Sample request:
|
|
37300
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup
|
|
37301
|
+
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
37302
|
+
* &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
37303
|
+
* &Permissions.1.IpProtocol=TCP
|
|
37304
|
+
* &Permissions.1.PortRange=80/80
|
|
37305
|
+
* &Permissions.1.NicType=intranet
|
|
37306
|
+
* &Permissions.1.Policy=accept
|
|
37307
|
+
* &<Common request parameters>
|
|
37154
37308
|
*
|
|
37155
37309
|
* @param request RevokeSecurityGroupRequest
|
|
37156
37310
|
* @return RevokeSecurityGroupResponse
|
|
@@ -37159,8 +37313,9 @@ export default class Client extends OpenApi {
|
|
|
37159
37313
|
/**
|
|
37160
37314
|
* @summary Deletes outbound security group rules.
|
|
37161
37315
|
*
|
|
37162
|
-
* @description
|
|
37163
|
-
*
|
|
37316
|
+
* @description In the security group-related API documents, outbound traffic refers to the traffic sent by the source and received by the destination.
|
|
37317
|
+
* When you call this operation, you can use one of the following groups of parameters to specify the security group rules that you want to delete:
|
|
37318
|
+
* * Parameters used to specify the IDs of security group rules. We recommend that you specify the IDs of security group rules to delete the rules. - If the security group rule ID that you specify does not exist, an error is reported. - You cannot specify the parameters that are no longer available and their Permissions.N-prefixed counterparts at the same time. - Sample request:
|
|
37164
37319
|
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
37165
37320
|
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
37166
37321
|
* &SecurityGroupRuleId.1=sgr-bpdfmk****
|
|
@@ -37168,20 +37323,35 @@ export default class Client extends OpenApi {
|
|
|
37168
37323
|
* &<Common request parameters>
|
|
37169
37324
|
* * Parameters that are prefixed with Permissions.N.
|
|
37170
37325
|
* * If no security group rule matches the specified parameters, the call to RevokeSecurityGroupEgress is successful but no security group rules are deleted.
|
|
37171
|
-
* *
|
|
37326
|
+
* * You cannot specify SecurityGroupRuleId.N or the parameters that are not prefixed with Permissions.N.
|
|
37172
37327
|
* * You can determine a security group rule by specifying one of the following groups of parameters. You cannot determine a security group rule by specifying only one parameter.
|
|
37173
|
-
* * Parameters used to determine an outbound security group rule that controls access to a
|
|
37174
|
-
*
|
|
37175
|
-
*
|
|
37176
|
-
*
|
|
37328
|
+
* * Parameters used to determine an outbound security group rule that controls access to a CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestCidrIp. Sample request:
|
|
37329
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
37330
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
37331
|
+
* &Permissions.1.IpProtocol=TCP
|
|
37332
|
+
* &Permissions.1.DestCidrIp=10.0.0.0/8
|
|
37333
|
+
* &Permissions.1.PortRange=-22/22
|
|
37334
|
+
* &Permissions.1.NicType=intranet
|
|
37335
|
+
* &Permissions.1.Policy=accept
|
|
37336
|
+
* &<Common request parameters>
|
|
37177
37337
|
* * Parameters used to determine an outbound security group rule that controls access to another security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestGroupId. Sample request:
|
|
37178
|
-
*
|
|
37179
|
-
*
|
|
37180
|
-
*
|
|
37338
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
37339
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
37340
|
+
* &Permissions.1.DestGroupId=sg-bp67acfmxa123b****
|
|
37341
|
+
* &Permissions.1.IpProtocol=TCP
|
|
37342
|
+
* &Permissions.1.PortRange=22/22
|
|
37343
|
+
* &Permissions.1.NicType=intranet
|
|
37344
|
+
* &Permissions.1.Policy=accept
|
|
37345
|
+
* &<Common request parameters>
|
|
37181
37346
|
* * Parameters used to determine an outbound security group rule that controls access to a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestPrefixListId. Sample request:
|
|
37182
|
-
*
|
|
37183
|
-
*
|
|
37184
|
-
*
|
|
37347
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
37348
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
37349
|
+
* &Permissions.1.IpProtocol=TCP
|
|
37350
|
+
* &Permissions.1.DestPrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
37351
|
+
* &Permissions.1.PortRange=-22/22
|
|
37352
|
+
* &Permissions.1.NicType=intranet
|
|
37353
|
+
* &Permissions.1.Policy=accept
|
|
37354
|
+
* &<Common request parameters>
|
|
37185
37355
|
*
|
|
37186
37356
|
* @param request RevokeSecurityGroupEgressRequest
|
|
37187
37357
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -37191,8 +37361,9 @@ export default class Client extends OpenApi {
|
|
|
37191
37361
|
/**
|
|
37192
37362
|
* @summary Deletes outbound security group rules.
|
|
37193
37363
|
*
|
|
37194
|
-
* @description
|
|
37195
|
-
*
|
|
37364
|
+
* @description In the security group-related API documents, outbound traffic refers to the traffic sent by the source and received by the destination.
|
|
37365
|
+
* When you call this operation, you can use one of the following groups of parameters to specify the security group rules that you want to delete:
|
|
37366
|
+
* * Parameters used to specify the IDs of security group rules. We recommend that you specify the IDs of security group rules to delete the rules. - If the security group rule ID that you specify does not exist, an error is reported. - You cannot specify the parameters that are no longer available and their Permissions.N-prefixed counterparts at the same time. - Sample request:
|
|
37196
37367
|
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
37197
37368
|
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
37198
37369
|
* &SecurityGroupRuleId.1=sgr-bpdfmk****
|
|
@@ -37200,20 +37371,35 @@ export default class Client extends OpenApi {
|
|
|
37200
37371
|
* &<Common request parameters>
|
|
37201
37372
|
* * Parameters that are prefixed with Permissions.N.
|
|
37202
37373
|
* * If no security group rule matches the specified parameters, the call to RevokeSecurityGroupEgress is successful but no security group rules are deleted.
|
|
37203
|
-
* *
|
|
37374
|
+
* * You cannot specify SecurityGroupRuleId.N or the parameters that are not prefixed with Permissions.N.
|
|
37204
37375
|
* * You can determine a security group rule by specifying one of the following groups of parameters. You cannot determine a security group rule by specifying only one parameter.
|
|
37205
|
-
* * Parameters used to determine an outbound security group rule that controls access to a
|
|
37206
|
-
*
|
|
37207
|
-
*
|
|
37208
|
-
*
|
|
37376
|
+
* * Parameters used to determine an outbound security group rule that controls access to a CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestCidrIp. Sample request:
|
|
37377
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
37378
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
37379
|
+
* &Permissions.1.IpProtocol=TCP
|
|
37380
|
+
* &Permissions.1.DestCidrIp=10.0.0.0/8
|
|
37381
|
+
* &Permissions.1.PortRange=-22/22
|
|
37382
|
+
* &Permissions.1.NicType=intranet
|
|
37383
|
+
* &Permissions.1.Policy=accept
|
|
37384
|
+
* &<Common request parameters>
|
|
37209
37385
|
* * Parameters used to determine an outbound security group rule that controls access to another security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestGroupId. Sample request:
|
|
37210
|
-
*
|
|
37211
|
-
*
|
|
37212
|
-
*
|
|
37386
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
37387
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
37388
|
+
* &Permissions.1.DestGroupId=sg-bp67acfmxa123b****
|
|
37389
|
+
* &Permissions.1.IpProtocol=TCP
|
|
37390
|
+
* &Permissions.1.PortRange=22/22
|
|
37391
|
+
* &Permissions.1.NicType=intranet
|
|
37392
|
+
* &Permissions.1.Policy=accept
|
|
37393
|
+
* &<Common request parameters>
|
|
37213
37394
|
* * Parameters used to determine an outbound security group rule that controls access to a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestPrefixListId. Sample request:
|
|
37214
|
-
*
|
|
37215
|
-
*
|
|
37216
|
-
*
|
|
37395
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
37396
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
37397
|
+
* &Permissions.1.IpProtocol=TCP
|
|
37398
|
+
* &Permissions.1.DestPrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
37399
|
+
* &Permissions.1.PortRange=-22/22
|
|
37400
|
+
* &Permissions.1.NicType=intranet
|
|
37401
|
+
* &Permissions.1.Policy=accept
|
|
37402
|
+
* &<Common request parameters>
|
|
37217
37403
|
*
|
|
37218
37404
|
* @param request RevokeSecurityGroupEgressRequest
|
|
37219
37405
|
* @return RevokeSecurityGroupEgressResponse
|
|
@@ -37223,21 +37409,21 @@ export default class Client extends OpenApi {
|
|
|
37223
37409
|
* @summary Runs a shell, PowerShell, or batch command on Elastic Compute Service (ECS) instances.
|
|
37224
37410
|
*
|
|
37225
37411
|
* @description ## [](#)Usage notes
|
|
37226
|
-
* Unlike the [CreateCommand](https://help.aliyun.com/document_detail/64844.html) and [InvokeCommand](https://help.aliyun.com/document_detail/64841.html) operations, RunCommand can be used to create and run a command in a single request.
|
|
37412
|
+
* Unlike the [CreateCommand](https://help.aliyun.com/document_detail/64844.html) and [InvokeCommand](https://help.aliyun.com/document_detail/64841.html) operations, the RunCommand operation can be used to create and run a command in a single request.
|
|
37227
37413
|
* Take note of the following items:
|
|
37228
37414
|
* * The instances on which you want to run a command must be in the Running (`Running`) state. You can call the [DescribeInstances](https://help.aliyun.com/document_detail/25506.html) operation to query the status of instances.
|
|
37229
37415
|
* * [Cloud Assistant Agent](https://help.aliyun.com/document_detail/64921.html) must be installed on the instances.
|
|
37230
37416
|
* * Before you run a PowerShell command on a Windows instance, make sure that the PowerShell module is installed on the instance.
|
|
37231
|
-
* * When you use a cron expression to specify a schedule, 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
|
|
37417
|
+
* * When you use a cron expression to specify a schedule, 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 instances. Make sure that the time or time zone of the instances meets your business requirements. For information about time zones, see [Configure the NTP service for ECS instances that run CentOS 6](https://help.aliyun.com/document_detail/92803.html) or [Configure the NTP service for Windows instances](https://help.aliyun.com/document_detail/51890.html).
|
|
37232
37418
|
* * You can set `Timeout` to specify the timeout period for executions of the command on ECS instances. If an execution times out, Cloud Assistant Agent forcefully terminates the command process.
|
|
37233
37419
|
* * When the one-time execution of the command times out, the execution state ([InvokeRecordStatus](https://help.aliyun.com/document_detail/64845.html)) of the command becomes Failed.
|
|
37234
37420
|
* * 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. When a scheduled execution of the command times out, the execution state ([InvokeRecordStatus](https://help.aliyun.com/document_detail/64845.html)) of the command becomes Failed.
|
|
37235
|
-
* To ensure that scheduled tasks can run as expected, make sure that the version of Cloud Assistant Agent is not earlier than the following ones. A scheduled task can run a command at a specified interval, only once at a specified time, or at designated times based on a cron expression in a specified year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update Cloud Assistant Agent to the latest version. For more information, see [Upgrade or disable upgrades
|
|
37236
|
-
*
|
|
37237
|
-
*
|
|
37238
|
-
* * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If a command execution fails, no execution information is generated. For more information, see [
|
|
37239
|
-
* * If you set
|
|
37240
|
-
* * You can retain up to 500 to
|
|
37421
|
+
* To ensure that scheduled tasks can run as expected, make sure that the version of Cloud Assistant Agent is not earlier than the following ones. A scheduled task can run a command at a specified interval, only once at a specified time, or at designated times based on a cron expression in a specified year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update Cloud Assistant Agent to the latest version. For more information, see [Upgrade or disable upgrades of Cloud Assistant Agent](https://help.aliyun.com/document_detail/134383.html).
|
|
37422
|
+
* - Linux: 2.2.3.282.
|
|
37423
|
+
* - Windows: 2.1.3.282.
|
|
37424
|
+
* * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If a command execution fails, no execution information is generated. For more information, see the [Command errors and solutions](https://help.aliyun.com/document_detail/87029.html) section in the "Check execution results and troubleshoot common issues" topic.
|
|
37425
|
+
* * If you set `EnableParameter` to true, the custom parameter feature is enabled. When you configure `CommandContent`, you can define custom parameters in the `{{parameter}}` format. Then, when the command is run, the key-value pairs of the custom parameters are passed in.
|
|
37426
|
+
* * You can retain up to 500 to 50,000 Cloud Assistant commands in each region. You can also apply for a quota increase. For information about how to query and increase quotas, see [Manage quotas](https://help.aliyun.com/document_detail/184116.html).
|
|
37241
37427
|
* * Before you run a command on instances, especially new instances, we recommend that you call the [DescribeCloudAssistantStatus](https://help.aliyun.com/document_detail/87346.html) operation to query the status of Cloud Assistant Agent on the instances and run the command when the value of CloudAssistantStatus in the response is true for the instances.
|
|
37242
37428
|
*
|
|
37243
37429
|
* @param tmpReq RunCommandRequest
|
|
@@ -37249,21 +37435,21 @@ export default class Client extends OpenApi {
|
|
|
37249
37435
|
* @summary Runs a shell, PowerShell, or batch command on Elastic Compute Service (ECS) instances.
|
|
37250
37436
|
*
|
|
37251
37437
|
* @description ## [](#)Usage notes
|
|
37252
|
-
* Unlike the [CreateCommand](https://help.aliyun.com/document_detail/64844.html) and [InvokeCommand](https://help.aliyun.com/document_detail/64841.html) operations, RunCommand can be used to create and run a command in a single request.
|
|
37438
|
+
* Unlike the [CreateCommand](https://help.aliyun.com/document_detail/64844.html) and [InvokeCommand](https://help.aliyun.com/document_detail/64841.html) operations, the RunCommand operation can be used to create and run a command in a single request.
|
|
37253
37439
|
* Take note of the following items:
|
|
37254
37440
|
* * The instances on which you want to run a command must be in the Running (`Running`) state. You can call the [DescribeInstances](https://help.aliyun.com/document_detail/25506.html) operation to query the status of instances.
|
|
37255
37441
|
* * [Cloud Assistant Agent](https://help.aliyun.com/document_detail/64921.html) must be installed on the instances.
|
|
37256
37442
|
* * Before you run a PowerShell command on a Windows instance, make sure that the PowerShell module is installed on the instance.
|
|
37257
|
-
* * When you use a cron expression to specify a schedule, 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
|
|
37443
|
+
* * When you use a cron expression to specify a schedule, 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 instances. Make sure that the time or time zone of the instances meets your business requirements. For information about time zones, see [Configure the NTP service for ECS instances that run CentOS 6](https://help.aliyun.com/document_detail/92803.html) or [Configure the NTP service for Windows instances](https://help.aliyun.com/document_detail/51890.html).
|
|
37258
37444
|
* * You can set `Timeout` to specify the timeout period for executions of the command on ECS instances. If an execution times out, Cloud Assistant Agent forcefully terminates the command process.
|
|
37259
37445
|
* * When the one-time execution of the command times out, the execution state ([InvokeRecordStatus](https://help.aliyun.com/document_detail/64845.html)) of the command becomes Failed.
|
|
37260
37446
|
* * 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. When a scheduled execution of the command times out, the execution state ([InvokeRecordStatus](https://help.aliyun.com/document_detail/64845.html)) of the command becomes Failed.
|
|
37261
|
-
* To ensure that scheduled tasks can run as expected, make sure that the version of Cloud Assistant Agent is not earlier than the following ones. A scheduled task can run a command at a specified interval, only once at a specified time, or at designated times based on a cron expression in a specified year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update Cloud Assistant Agent to the latest version. For more information, see [Upgrade or disable upgrades
|
|
37262
|
-
*
|
|
37263
|
-
*
|
|
37264
|
-
* * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If a command execution fails, no execution information is generated. For more information, see [
|
|
37265
|
-
* * If you set
|
|
37266
|
-
* * You can retain up to 500 to
|
|
37447
|
+
* To ensure that scheduled tasks can run as expected, make sure that the version of Cloud Assistant Agent is not earlier than the following ones. A scheduled task can run a command at a specified interval, only once at a specified time, or at designated times based on a cron expression in a specified year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update Cloud Assistant Agent to the latest version. For more information, see [Upgrade or disable upgrades of Cloud Assistant Agent](https://help.aliyun.com/document_detail/134383.html).
|
|
37448
|
+
* - Linux: 2.2.3.282.
|
|
37449
|
+
* - Windows: 2.1.3.282.
|
|
37450
|
+
* * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If a command execution fails, no execution information is generated. For more information, see the [Command errors and solutions](https://help.aliyun.com/document_detail/87029.html) section in the "Check execution results and troubleshoot common issues" topic.
|
|
37451
|
+
* * If you set `EnableParameter` to true, the custom parameter feature is enabled. When you configure `CommandContent`, you can define custom parameters in the `{{parameter}}` format. Then, when the command is run, the key-value pairs of the custom parameters are passed in.
|
|
37452
|
+
* * You can retain up to 500 to 50,000 Cloud Assistant commands in each region. You can also apply for a quota increase. For information about how to query and increase quotas, see [Manage quotas](https://help.aliyun.com/document_detail/184116.html).
|
|
37267
37453
|
* * Before you run a command on instances, especially new instances, we recommend that you call the [DescribeCloudAssistantStatus](https://help.aliyun.com/document_detail/87346.html) operation to query the status of Cloud Assistant Agent on the instances and run the command when the value of CloudAssistantStatus in the response is true for the instances.
|
|
37268
37454
|
*
|
|
37269
37455
|
* @param request RunCommandRequest
|
|
@@ -37514,14 +37700,14 @@ export default class Client extends OpenApi {
|
|
|
37514
37700
|
/**
|
|
37515
37701
|
* @summary Sends a file to one or more Elastic Compute Service (ECS) instances.
|
|
37516
37702
|
*
|
|
37517
|
-
* @description ## Usage notes
|
|
37518
|
-
* * The instances to which to send a file must be in the Running (`Running`) state.
|
|
37519
|
-
* * [Cloud Assistant Agent
|
|
37703
|
+
* @description ## [](#)Usage notes
|
|
37704
|
+
* * The instances to which you want to send a file must be in the Running (`Running`) state.
|
|
37705
|
+
* * [Cloud Assistant Agent](https://help.aliyun.com/document_detail/64921.html) must be installed on the instances.
|
|
37520
37706
|
* * Only Cloud Assistant Agent versions that are later than the following ones support file sending. If the `ClientNeedUpgrade` error code is returned, update Cloud Assistant Agent to the latest version.
|
|
37521
37707
|
* * For Linux instances, the version of Cloud Assistant Agent must be later than 1.0.2.569.
|
|
37522
37708
|
* * For Windows instances, the version of Cloud Assistant Agent must be later than 1.0.0.149.
|
|
37523
|
-
* * The file
|
|
37524
|
-
* * The file may fail to be sent due to instance exceptions, network exceptions, or exceptions on Cloud Assistant Agent.
|
|
37709
|
+
* * The file to be sent must not exceed 32 KB in size after it is encoded in Base64.
|
|
37710
|
+
* * The file may fail to be sent due to instance exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If the file fails to be sent, call the [DescribeSendFileResults](https://help.aliyun.com/document_detail/184117.html) operation or see [Check execution results and troubleshoot common issues](https://help.aliyun.com/document_detail/87029.html) for troubleshooting.
|
|
37525
37711
|
*
|
|
37526
37712
|
* @param request SendFileRequest
|
|
37527
37713
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -37531,14 +37717,14 @@ export default class Client extends OpenApi {
|
|
|
37531
37717
|
/**
|
|
37532
37718
|
* @summary Sends a file to one or more Elastic Compute Service (ECS) instances.
|
|
37533
37719
|
*
|
|
37534
|
-
* @description ## Usage notes
|
|
37535
|
-
* * The instances to which to send a file must be in the Running (`Running`) state.
|
|
37536
|
-
* * [Cloud Assistant Agent
|
|
37720
|
+
* @description ## [](#)Usage notes
|
|
37721
|
+
* * The instances to which you want to send a file must be in the Running (`Running`) state.
|
|
37722
|
+
* * [Cloud Assistant Agent](https://help.aliyun.com/document_detail/64921.html) must be installed on the instances.
|
|
37537
37723
|
* * Only Cloud Assistant Agent versions that are later than the following ones support file sending. If the `ClientNeedUpgrade` error code is returned, update Cloud Assistant Agent to the latest version.
|
|
37538
37724
|
* * For Linux instances, the version of Cloud Assistant Agent must be later than 1.0.2.569.
|
|
37539
37725
|
* * For Windows instances, the version of Cloud Assistant Agent must be later than 1.0.0.149.
|
|
37540
|
-
* * The file
|
|
37541
|
-
* * The file may fail to be sent due to instance exceptions, network exceptions, or exceptions on Cloud Assistant Agent.
|
|
37726
|
+
* * The file to be sent must not exceed 32 KB in size after it is encoded in Base64.
|
|
37727
|
+
* * The file may fail to be sent due to instance exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If the file fails to be sent, call the [DescribeSendFileResults](https://help.aliyun.com/document_detail/184117.html) operation or see [Check execution results and troubleshoot common issues](https://help.aliyun.com/document_detail/87029.html) for troubleshooting.
|
|
37542
37728
|
*
|
|
37543
37729
|
* @param request SendFileRequest
|
|
37544
37730
|
* @return SendFileResponse
|
|
@@ -37600,16 +37786,13 @@ export default class Client extends OpenApi {
|
|
|
37600
37786
|
*/
|
|
37601
37787
|
startInstance(request: StartInstanceRequest): Promise<StartInstanceResponse>;
|
|
37602
37788
|
/**
|
|
37603
|
-
* @summary
|
|
37604
|
-
* * The ECS instances that you want to start must be in the **Stopped** state.``
|
|
37605
|
-
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the ECS instance is locked to ensure security. No operations are allowed on the ECS instance.
|
|
37606
|
-
* * You can start multiple ECS instances at the same time and use the `BatchOptimization` parameter to specify the batch operation mode.
|
|
37789
|
+
* @summary Starts Elastic Compute Service (ECS) instances that are in the Stopped state. After the operation is called, the instances enter the Starting state.
|
|
37607
37790
|
*
|
|
37608
|
-
* @description
|
|
37609
|
-
*
|
|
37610
|
-
*
|
|
37611
|
-
* *
|
|
37612
|
-
*
|
|
37791
|
+
* @description ## [](#)Usage notes
|
|
37792
|
+
* Take note of the following items:
|
|
37793
|
+
* * The instances to be started must be in the **Stopped** (`Stopped`) state.
|
|
37794
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons. No operations are allowed on the instance.
|
|
37795
|
+
* * You can use `BatchOptimization` to specify the batch operation mode and restart multiple instances at a time.
|
|
37613
37796
|
*
|
|
37614
37797
|
* @param request StartInstancesRequest
|
|
37615
37798
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -37617,16 +37800,13 @@ export default class Client extends OpenApi {
|
|
|
37617
37800
|
*/
|
|
37618
37801
|
startInstancesWithOptions(request: StartInstancesRequest, runtime: $Util.RuntimeOptions): Promise<StartInstancesResponse>;
|
|
37619
37802
|
/**
|
|
37620
|
-
* @summary
|
|
37621
|
-
* * The ECS instances that you want to start must be in the **Stopped** state.``
|
|
37622
|
-
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the ECS instance is locked to ensure security. No operations are allowed on the ECS instance.
|
|
37623
|
-
* * You can start multiple ECS instances at the same time and use the `BatchOptimization` parameter to specify the batch operation mode.
|
|
37803
|
+
* @summary Starts Elastic Compute Service (ECS) instances that are in the Stopped state. After the operation is called, the instances enter the Starting state.
|
|
37624
37804
|
*
|
|
37625
|
-
* @description
|
|
37626
|
-
*
|
|
37627
|
-
*
|
|
37628
|
-
* *
|
|
37629
|
-
*
|
|
37805
|
+
* @description ## [](#)Usage notes
|
|
37806
|
+
* Take note of the following items:
|
|
37807
|
+
* * The instances to be started must be in the **Stopped** (`Stopped`) state.
|
|
37808
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons. No operations are allowed on the instance.
|
|
37809
|
+
* * You can use `BatchOptimization` to specify the batch operation mode and restart multiple instances at a time.
|
|
37630
37810
|
*
|
|
37631
37811
|
* @param request StartInstancesRequest
|
|
37632
37812
|
* @return StartInstancesResponse
|
|
@@ -37670,7 +37850,7 @@ export default class Client extends OpenApi {
|
|
|
37670
37850
|
*/
|
|
37671
37851
|
startTerminalSession(request: StartTerminalSessionRequest): Promise<StartTerminalSessionResponse>;
|
|
37672
37852
|
/**
|
|
37673
|
-
* @summary Stops an Elastic Compute Service (ECS) instance in the Running state. After
|
|
37853
|
+
* @summary Stops an Elastic Compute Service (ECS) instance in the Running state. After you call this operation, the state of the instance changes to Stopping and then to Stopped.
|
|
37674
37854
|
*
|
|
37675
37855
|
* @description * If you call the DescribeInstances operation to query the details of an instance and `OperationLocks` in the response contains `"LockReason": "security"`, the instance is locked for security reasons and cannot be stopped. For more information, see [API behavior when an instance is locked for security reasons](https://help.aliyun.com/document_detail/25695.html).
|
|
37676
37856
|
* * If the economical mode is enabled, you can set `StoppedMode` to KeepCharging to switch to the standard mode. This allows an instance that is stopped in standard mode to retain its instance type resources and public IP address. However, you continue to be charged for the instance.
|
|
@@ -37681,7 +37861,7 @@ export default class Client extends OpenApi {
|
|
|
37681
37861
|
*/
|
|
37682
37862
|
stopInstanceWithOptions(request: StopInstanceRequest, runtime: $Util.RuntimeOptions): Promise<StopInstanceResponse>;
|
|
37683
37863
|
/**
|
|
37684
|
-
* @summary Stops an Elastic Compute Service (ECS) instance in the Running state. After
|
|
37864
|
+
* @summary Stops an Elastic Compute Service (ECS) instance in the Running state. After you call this operation, the state of the instance changes to Stopping and then to Stopped.
|
|
37685
37865
|
*
|
|
37686
37866
|
* @description * If you call the DescribeInstances operation to query the details of an instance and `OperationLocks` in the response contains `"LockReason": "security"`, the instance is locked for security reasons and cannot be stopped. For more information, see [API behavior when an instance is locked for security reasons](https://help.aliyun.com/document_detail/25695.html).
|
|
37687
37867
|
* * If the economical mode is enabled, you can set `StoppedMode` to KeepCharging to switch to the standard mode. This allows an instance that is stopped in standard mode to retain its instance type resources and public IP address. However, you continue to be charged for the instance.
|
|
@@ -37691,10 +37871,11 @@ export default class Client extends OpenApi {
|
|
|
37691
37871
|
*/
|
|
37692
37872
|
stopInstance(request: StopInstanceRequest): Promise<StopInstanceResponse>;
|
|
37693
37873
|
/**
|
|
37694
|
-
* @summary Stops Elastic Compute Service (ECS) instances. After the operation is called, the state of the instances changes to Stopping and then to Stopped.
|
|
37874
|
+
* @summary Stops one or more Elastic Compute Service (ECS) instances that are in the Running state. After the operation is called, the state of the instances changes to Stopping and then to Stopped.
|
|
37695
37875
|
*
|
|
37696
|
-
* @description
|
|
37697
|
-
* *
|
|
37876
|
+
* @description ## [](#)Usage notes
|
|
37877
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons. No operations are allowed on the instance.
|
|
37878
|
+
* * After you enable economical mode for a pay-as-you-go instance that resides in a virtual private cloud (VPC), you can set `StoppedMode` to KeepCharging. This way, the pay-as-you-go instance continues to be billed after the instance is stopped. The instance type resources and public IP address of the instance are retained.
|
|
37698
37879
|
* * Batch operations are supported. You can use `BatchOptimization` to specify the batch operation mode.
|
|
37699
37880
|
*
|
|
37700
37881
|
* @param request StopInstancesRequest
|
|
@@ -37703,10 +37884,11 @@ export default class Client extends OpenApi {
|
|
|
37703
37884
|
*/
|
|
37704
37885
|
stopInstancesWithOptions(request: StopInstancesRequest, runtime: $Util.RuntimeOptions): Promise<StopInstancesResponse>;
|
|
37705
37886
|
/**
|
|
37706
|
-
* @summary Stops Elastic Compute Service (ECS) instances. After the operation is called, the state of the instances changes to Stopping and then to Stopped.
|
|
37887
|
+
* @summary Stops one or more Elastic Compute Service (ECS) instances that are in the Running state. After the operation is called, the state of the instances changes to Stopping and then to Stopped.
|
|
37707
37888
|
*
|
|
37708
|
-
* @description
|
|
37709
|
-
* *
|
|
37889
|
+
* @description ## [](#)Usage notes
|
|
37890
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons. No operations are allowed on the instance.
|
|
37891
|
+
* * After you enable economical mode for a pay-as-you-go instance that resides in a virtual private cloud (VPC), you can set `StoppedMode` to KeepCharging. This way, the pay-as-you-go instance continues to be billed after the instance is stopped. The instance type resources and public IP address of the instance are retained.
|
|
37710
37892
|
* * Batch operations are supported. You can use `BatchOptimization` to specify the batch operation mode.
|
|
37711
37893
|
*
|
|
37712
37894
|
* @param request StopInstancesRequest
|
|
@@ -37717,7 +37899,9 @@ export default class Client extends OpenApi {
|
|
|
37717
37899
|
* @summary * If you stop the process of a command that runs only once, the executions that have started are not interrupted. The executions that have not started are canceled.
|
|
37718
37900
|
* * If you stop the process of a scheduled invocation command, the executions that have started are not interrupted. However, the execution does not start in the next period.
|
|
37719
37901
|
*
|
|
37720
|
-
* @description
|
|
37902
|
+
* @description ## [](#)Usage notes
|
|
37903
|
+
* * If you stop the process of a command that runs only once, the executions that have started are not interrupted. The executions that have not started are canceled.
|
|
37904
|
+
* * If you stop the process of a command that runs on a schedule, the executions that have started are not interrupted. Subsequent executions are not scheduled.
|
|
37721
37905
|
*
|
|
37722
37906
|
* @param request StopInvocationRequest
|
|
37723
37907
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -37728,7 +37912,9 @@ export default class Client extends OpenApi {
|
|
|
37728
37912
|
* @summary * If you stop the process of a command that runs only once, the executions that have started are not interrupted. The executions that have not started are canceled.
|
|
37729
37913
|
* * If you stop the process of a scheduled invocation command, the executions that have started are not interrupted. However, the execution does not start in the next period.
|
|
37730
37914
|
*
|
|
37731
|
-
* @description
|
|
37915
|
+
* @description ## [](#)Usage notes
|
|
37916
|
+
* * If you stop the process of a command that runs only once, the executions that have started are not interrupted. The executions that have not started are canceled.
|
|
37917
|
+
* * If you stop the process of a command that runs on a schedule, the executions that have started are not interrupted. Subsequent executions are not scheduled.
|
|
37732
37918
|
*
|
|
37733
37919
|
* @param request StopInvocationRequest
|
|
37734
37920
|
* @return StopInvocationResponse
|
|
@@ -37784,7 +37970,7 @@ export default class Client extends OpenApi {
|
|
|
37784
37970
|
*/
|
|
37785
37971
|
terminateVirtualBorderRouter(request: TerminateVirtualBorderRouterRequest): Promise<TerminateVirtualBorderRouterResponse>;
|
|
37786
37972
|
/**
|
|
37787
|
-
* @summary Unassigns
|
|
37973
|
+
* @summary Unassigns IPv6 addresses from an elastic network interface (ENI).
|
|
37788
37974
|
*
|
|
37789
37975
|
* @description ## [](#)Usage notes
|
|
37790
37976
|
* Take note of the following items:
|
|
@@ -37797,7 +37983,7 @@ export default class Client extends OpenApi {
|
|
|
37797
37983
|
*/
|
|
37798
37984
|
unassignIpv6AddressesWithOptions(request: UnassignIpv6AddressesRequest, runtime: $Util.RuntimeOptions): Promise<UnassignIpv6AddressesResponse>;
|
|
37799
37985
|
/**
|
|
37800
|
-
* @summary Unassigns
|
|
37986
|
+
* @summary Unassigns IPv6 addresses from an elastic network interface (ENI).
|
|
37801
37987
|
*
|
|
37802
37988
|
* @description ## [](#)Usage notes
|
|
37803
37989
|
* Take note of the following items:
|
|
@@ -37809,11 +37995,11 @@ export default class Client extends OpenApi {
|
|
|
37809
37995
|
*/
|
|
37810
37996
|
unassignIpv6Addresses(request: UnassignIpv6AddressesRequest): Promise<UnassignIpv6AddressesResponse>;
|
|
37811
37997
|
/**
|
|
37812
|
-
* @summary Unassigns
|
|
37998
|
+
* @summary Unassigns secondary private IP addresses from an elastic network interface (ENI).
|
|
37813
37999
|
*
|
|
37814
|
-
* @description ## Usage notes
|
|
37815
|
-
*
|
|
37816
|
-
*
|
|
38000
|
+
* @description ## [](#)Usage notes
|
|
38001
|
+
* * The ENI from which to unassign secondary private IP addresses must be in the **Available** (Available) or **InUse** (InUse) state.
|
|
38002
|
+
* * 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.
|
|
37817
38003
|
*
|
|
37818
38004
|
* @param request UnassignPrivateIpAddressesRequest
|
|
37819
38005
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -37821,11 +38007,11 @@ export default class Client extends OpenApi {
|
|
|
37821
38007
|
*/
|
|
37822
38008
|
unassignPrivateIpAddressesWithOptions(request: UnassignPrivateIpAddressesRequest, runtime: $Util.RuntimeOptions): Promise<UnassignPrivateIpAddressesResponse>;
|
|
37823
38009
|
/**
|
|
37824
|
-
* @summary Unassigns
|
|
38010
|
+
* @summary Unassigns secondary private IP addresses from an elastic network interface (ENI).
|
|
37825
38011
|
*
|
|
37826
|
-
* @description ## Usage notes
|
|
37827
|
-
*
|
|
37828
|
-
*
|
|
38012
|
+
* @description ## [](#)Usage notes
|
|
38013
|
+
* * The ENI from which to unassign secondary private IP addresses must be in the **Available** (Available) or **InUse** (InUse) state.
|
|
38014
|
+
* * 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.
|
|
37829
38015
|
*
|
|
37830
38016
|
* @param request UnassignPrivateIpAddressesRequest
|
|
37831
38017
|
* @return UnassignPrivateIpAddressesResponse
|
|
@@ -37862,12 +38048,16 @@ export default class Client extends OpenApi {
|
|
|
37862
38048
|
*/
|
|
37863
38049
|
unassociateHaVip(request: UnassociateHaVipRequest): Promise<UnassociateHaVipResponse>;
|
|
37864
38050
|
/**
|
|
38051
|
+
* @summary Removes tags from Elastic Compute Service (ECS) resources. After a tag is removed from a resource, the tag is automatically deleted if it is not added to other resources.
|
|
38052
|
+
*
|
|
37865
38053
|
* @param request UntagResourcesRequest
|
|
37866
38054
|
* @param runtime runtime options for this request RuntimeOptions
|
|
37867
38055
|
* @return UntagResourcesResponse
|
|
37868
38056
|
*/
|
|
37869
38057
|
untagResourcesWithOptions(request: UntagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<UntagResourcesResponse>;
|
|
37870
38058
|
/**
|
|
38059
|
+
* @summary Removes tags from Elastic Compute Service (ECS) resources. After a tag is removed from a resource, the tag is automatically deleted if it is not added to other resources.
|
|
38060
|
+
*
|
|
37871
38061
|
* @param request UntagResourcesRequest
|
|
37872
38062
|
* @return UntagResourcesResponse
|
|
37873
38063
|
*/
|