@alicloud/ecs20140526 3.0.2 → 3.0.3
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 +1422 -571
- package/dist/client.js +1595 -716
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1499 -595
package/dist/client.d.ts
CHANGED
|
@@ -396,6 +396,7 @@ export declare class ApplyAutoSnapshotPolicyResponse extends $tea.Model {
|
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
398
|
export declare class AssignIpv6AddressesRequest extends $tea.Model {
|
|
399
|
+
clientToken?: string;
|
|
399
400
|
ipv6Address?: string[];
|
|
400
401
|
ipv6AddressCount?: number;
|
|
401
402
|
ipv6Prefix?: string[];
|
|
@@ -2708,6 +2709,7 @@ export declare class CreateLaunchTemplateVersionRequest extends $tea.Model {
|
|
|
2708
2709
|
});
|
|
2709
2710
|
}
|
|
2710
2711
|
export declare class CreateLaunchTemplateVersionResponseBody extends $tea.Model {
|
|
2712
|
+
launchTemplateId?: string;
|
|
2711
2713
|
launchTemplateVersionNumber?: number;
|
|
2712
2714
|
requestId?: string;
|
|
2713
2715
|
static names(): {
|
|
@@ -4533,6 +4535,7 @@ export declare class DeleteLaunchTemplateRequest extends $tea.Model {
|
|
|
4533
4535
|
});
|
|
4534
4536
|
}
|
|
4535
4537
|
export declare class DeleteLaunchTemplateResponseBody extends $tea.Model {
|
|
4538
|
+
launchTemplateId?: string;
|
|
4536
4539
|
requestId?: string;
|
|
4537
4540
|
static names(): {
|
|
4538
4541
|
[key: string]: string;
|
|
@@ -4580,6 +4583,7 @@ export declare class DeleteLaunchTemplateVersionRequest extends $tea.Model {
|
|
|
4580
4583
|
});
|
|
4581
4584
|
}
|
|
4582
4585
|
export declare class DeleteLaunchTemplateVersionResponseBody extends $tea.Model {
|
|
4586
|
+
launchTemplateVersions?: DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersions;
|
|
4583
4587
|
requestId?: string;
|
|
4584
4588
|
static names(): {
|
|
4585
4589
|
[key: string]: string;
|
|
@@ -7570,7 +7574,6 @@ export declare class DescribeImageSharePermissionResponse extends $tea.Model {
|
|
|
7570
7574
|
});
|
|
7571
7575
|
}
|
|
7572
7576
|
export declare class DescribeImageSupportInstanceTypesRequest extends $tea.Model {
|
|
7573
|
-
actionType?: string;
|
|
7574
7577
|
filter?: DescribeImageSupportInstanceTypesRequestFilter[];
|
|
7575
7578
|
imageId?: string;
|
|
7576
7579
|
ownerId?: number;
|
|
@@ -7764,6 +7767,7 @@ export declare class DescribeInstanceAttributeResponseBody extends $tea.Model {
|
|
|
7764
7767
|
dedicatedHostAttribute?: DescribeInstanceAttributeResponseBodyDedicatedHostAttribute;
|
|
7765
7768
|
description?: string;
|
|
7766
7769
|
eipAddress?: DescribeInstanceAttributeResponseBodyEipAddress;
|
|
7770
|
+
enableJumboFrame?: boolean;
|
|
7767
7771
|
expiredTime?: string;
|
|
7768
7772
|
hostName?: string;
|
|
7769
7773
|
imageId?: string;
|
|
@@ -13897,6 +13901,7 @@ export declare class ModifyInstanceAttributeRequest extends $tea.Model {
|
|
|
13897
13901
|
creditSpecification?: string;
|
|
13898
13902
|
deletionProtection?: boolean;
|
|
13899
13903
|
description?: string;
|
|
13904
|
+
enableJumboFrame?: boolean;
|
|
13900
13905
|
hostName?: string;
|
|
13901
13906
|
instanceId?: string;
|
|
13902
13907
|
instanceName?: string;
|
|
@@ -14469,6 +14474,7 @@ export declare class ModifyLaunchTemplateDefaultVersionRequest extends $tea.Mode
|
|
|
14469
14474
|
});
|
|
14470
14475
|
}
|
|
14471
14476
|
export declare class ModifyLaunchTemplateDefaultVersionResponseBody extends $tea.Model {
|
|
14477
|
+
launchTemplateId?: string;
|
|
14472
14478
|
requestId?: string;
|
|
14473
14479
|
static names(): {
|
|
14474
14480
|
[key: string]: string;
|
|
@@ -17041,6 +17047,7 @@ export declare class RunInstancesRequest extends $tea.Model {
|
|
|
17041
17047
|
minAmount?: number;
|
|
17042
17048
|
networkInterface?: RunInstancesRequestNetworkInterface[];
|
|
17043
17049
|
networkInterfaceQueueNumber?: number;
|
|
17050
|
+
networkOptions?: RunInstancesRequestNetworkOptions;
|
|
17044
17051
|
ownerAccount?: string;
|
|
17045
17052
|
ownerId?: number;
|
|
17046
17053
|
password?: string;
|
|
@@ -17268,7 +17275,6 @@ export declare class StartInstanceRequest extends $tea.Model {
|
|
|
17268
17275
|
ownerId?: number;
|
|
17269
17276
|
resourceOwnerAccount?: string;
|
|
17270
17277
|
resourceOwnerId?: number;
|
|
17271
|
-
sourceRegionId?: string;
|
|
17272
17278
|
static names(): {
|
|
17273
17279
|
[key: string]: string;
|
|
17274
17280
|
};
|
|
@@ -18275,6 +18281,7 @@ export declare class CreateAutoProvisioningGroupRequestLaunchConfigurationTag ex
|
|
|
18275
18281
|
}
|
|
18276
18282
|
export declare class CreateAutoProvisioningGroupRequestLaunchConfiguration extends $tea.Model {
|
|
18277
18283
|
arn?: CreateAutoProvisioningGroupRequestLaunchConfigurationArn[];
|
|
18284
|
+
autoReleaseTime?: string;
|
|
18278
18285
|
creditSpecification?: string;
|
|
18279
18286
|
dataDisk?: CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk[];
|
|
18280
18287
|
deploymentSetId?: string;
|
|
@@ -19144,6 +19151,31 @@ export declare class DeleteActivationResponseBodyActivation extends $tea.Model {
|
|
|
19144
19151
|
[key: string]: any;
|
|
19145
19152
|
});
|
|
19146
19153
|
}
|
|
19154
|
+
export declare class DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersionsLaunchTemplateVersion extends $tea.Model {
|
|
19155
|
+
launchTemplateId?: string;
|
|
19156
|
+
launchTemplateVersionNumber?: number;
|
|
19157
|
+
static names(): {
|
|
19158
|
+
[key: string]: string;
|
|
19159
|
+
};
|
|
19160
|
+
static types(): {
|
|
19161
|
+
[key: string]: any;
|
|
19162
|
+
};
|
|
19163
|
+
constructor(map?: {
|
|
19164
|
+
[key: string]: any;
|
|
19165
|
+
});
|
|
19166
|
+
}
|
|
19167
|
+
export declare class DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersions extends $tea.Model {
|
|
19168
|
+
launchTemplateVersion?: DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersionsLaunchTemplateVersion[];
|
|
19169
|
+
static names(): {
|
|
19170
|
+
[key: string]: string;
|
|
19171
|
+
};
|
|
19172
|
+
static types(): {
|
|
19173
|
+
[key: string]: any;
|
|
19174
|
+
};
|
|
19175
|
+
constructor(map?: {
|
|
19176
|
+
[key: string]: any;
|
|
19177
|
+
});
|
|
19178
|
+
}
|
|
19147
19179
|
export declare class DeleteRouteEntryRequestNextHopList extends $tea.Model {
|
|
19148
19180
|
nextHopId?: string;
|
|
19149
19181
|
nextHopType?: string;
|
|
@@ -20521,6 +20553,7 @@ export declare class DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHo
|
|
|
20521
20553
|
}
|
|
20522
20554
|
export declare class DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance extends $tea.Model {
|
|
20523
20555
|
instanceId?: string;
|
|
20556
|
+
instanceOwnerId?: number;
|
|
20524
20557
|
instanceType?: string;
|
|
20525
20558
|
socketId?: string;
|
|
20526
20559
|
static names(): {
|
|
@@ -20644,7 +20677,7 @@ export declare class DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHo
|
|
|
20644
20677
|
});
|
|
20645
20678
|
}
|
|
20646
20679
|
export declare class DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost extends $tea.Model {
|
|
20647
|
-
schedulerOptions
|
|
20680
|
+
schedulerOptions?: DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSchedulerOptions;
|
|
20648
20681
|
actionOnMaintenance?: string;
|
|
20649
20682
|
autoPlacement?: string;
|
|
20650
20683
|
autoReleaseTime?: string;
|
|
@@ -20656,6 +20689,7 @@ export declare class DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHo
|
|
|
20656
20689
|
dedicatedHostClusterId?: string;
|
|
20657
20690
|
dedicatedHostId?: string;
|
|
20658
20691
|
dedicatedHostName?: string;
|
|
20692
|
+
dedicatedHostOwnerId?: number;
|
|
20659
20693
|
dedicatedHostType?: string;
|
|
20660
20694
|
description?: string;
|
|
20661
20695
|
expiredTime?: string;
|
|
@@ -22653,6 +22687,8 @@ export declare class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEven
|
|
|
22653
22687
|
});
|
|
22654
22688
|
}
|
|
22655
22689
|
export declare class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute extends $tea.Model {
|
|
22690
|
+
canAccept?: string;
|
|
22691
|
+
code?: string;
|
|
22656
22692
|
device?: string;
|
|
22657
22693
|
diskId?: string;
|
|
22658
22694
|
hostId?: string;
|
|
@@ -22660,6 +22696,9 @@ export declare class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEven
|
|
|
22660
22696
|
inactiveDisks?: DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks;
|
|
22661
22697
|
migrationOptions?: DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions;
|
|
22662
22698
|
onlineRepairPolicy?: string;
|
|
22699
|
+
punishDomain?: string;
|
|
22700
|
+
punishType?: string;
|
|
22701
|
+
punishUrl?: string;
|
|
22663
22702
|
rack?: string;
|
|
22664
22703
|
static names(): {
|
|
22665
22704
|
[key: string]: string;
|
|
@@ -24155,7 +24194,7 @@ export declare class DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVer
|
|
|
24155
24194
|
});
|
|
24156
24195
|
}
|
|
24157
24196
|
export declare class DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData extends $tea.Model {
|
|
24158
|
-
systemDisk
|
|
24197
|
+
systemDisk?: DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk;
|
|
24159
24198
|
autoReleaseTime?: string;
|
|
24160
24199
|
dataDisks?: DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisks;
|
|
24161
24200
|
deploymentSetId?: string;
|
|
@@ -28230,6 +28269,18 @@ export declare class RunInstancesRequestNetworkInterface extends $tea.Model {
|
|
|
28230
28269
|
[key: string]: any;
|
|
28231
28270
|
});
|
|
28232
28271
|
}
|
|
28272
|
+
export declare class RunInstancesRequestNetworkOptions extends $tea.Model {
|
|
28273
|
+
enableJumboFrame?: boolean;
|
|
28274
|
+
static names(): {
|
|
28275
|
+
[key: string]: string;
|
|
28276
|
+
};
|
|
28277
|
+
static types(): {
|
|
28278
|
+
[key: string]: any;
|
|
28279
|
+
};
|
|
28280
|
+
constructor(map?: {
|
|
28281
|
+
[key: string]: any;
|
|
28282
|
+
});
|
|
28283
|
+
}
|
|
28233
28284
|
export declare class RunInstancesRequestTag extends $tea.Model {
|
|
28234
28285
|
key?: string;
|
|
28235
28286
|
value?: string;
|
|
@@ -28534,10 +28585,9 @@ export default class Client extends OpenApi {
|
|
|
28534
28585
|
*/
|
|
28535
28586
|
assignIpv6Addresses(request: AssignIpv6AddressesRequest): Promise<AssignIpv6AddressesResponse>;
|
|
28536
28587
|
/**
|
|
28537
|
-
*
|
|
28538
|
-
* *
|
|
28539
|
-
* * When you assign secondary private IP addresses to
|
|
28540
|
-
* * When an ENI is in the Available (Available) state, you can assign up to 50 secondary private IP addresses to it. When an ENI is attached to an instance, the number of secondary private IP addresses that can be assigned to the ENI is subject to the instance type. For more information, see [Instance families](~~25378~~).
|
|
28588
|
+
* * The ENI to which you want to assign secondary private IP addresses must be in the Available or InUse state.
|
|
28589
|
+
* * When you assign secondary private IP addresses to a primary ENI, the instance to which the ENI is attached must be in the Running or Stopped state.
|
|
28590
|
+
* * When an ENI is in the Available state, you can assign up to 50 secondary private IP addresses to it. When an ENI is attached to an instance, the number of secondary private IP addresses that can be assigned to the ENI is subject to the instance type. For more information, see [Instance families](~~25378~~).
|
|
28541
28591
|
* * After you call this operation for an ENI, you can obtain the secondary private IP addresses that are assigned to the ENI from the response.
|
|
28542
28592
|
*
|
|
28543
28593
|
* @param request AssignPrivateIpAddressesRequest
|
|
@@ -28546,10 +28596,9 @@ export default class Client extends OpenApi {
|
|
|
28546
28596
|
*/
|
|
28547
28597
|
assignPrivateIpAddressesWithOptions(request: AssignPrivateIpAddressesRequest, runtime: $Util.RuntimeOptions): Promise<AssignPrivateIpAddressesResponse>;
|
|
28548
28598
|
/**
|
|
28549
|
-
*
|
|
28550
|
-
* *
|
|
28551
|
-
* * When you assign secondary private IP addresses to
|
|
28552
|
-
* * When an ENI is in the Available (Available) state, you can assign up to 50 secondary private IP addresses to it. When an ENI is attached to an instance, the number of secondary private IP addresses that can be assigned to the ENI is subject to the instance type. For more information, see [Instance families](~~25378~~).
|
|
28599
|
+
* * The ENI to which you want to assign secondary private IP addresses must be in the Available or InUse state.
|
|
28600
|
+
* * When you assign secondary private IP addresses to a primary ENI, the instance to which the ENI is attached must be in the Running or Stopped state.
|
|
28601
|
+
* * When an ENI is in the Available state, you can assign up to 50 secondary private IP addresses to it. When an ENI is attached to an instance, the number of secondary private IP addresses that can be assigned to the ENI is subject to the instance type. For more information, see [Instance families](~~25378~~).
|
|
28553
28602
|
* * After you call this operation for an ENI, you can obtain the secondary private IP addresses that are assigned to the ENI from the response.
|
|
28554
28603
|
*
|
|
28555
28604
|
* @param request AssignPrivateIpAddressesRequest
|
|
@@ -28681,7 +28730,8 @@ export default class Client extends OpenApi {
|
|
|
28681
28730
|
* * You can attach multiple ENIs to a single instance. For more information, see [ENI overview](~~58496~~).
|
|
28682
28731
|
* * The vSwitch to which the ENI is connected must be in the same zone and VPC as the vSwitch to which the instance is connected.
|
|
28683
28732
|
* * This operation is an asynchronous operation. After this operation is called to attach an ENI, you can check the status or events of the ENI to determine whether the ENI is attached. The following figure shows the transitions between the states of the ENI.
|
|
28684
|
-
* 
|
|
28734
|
+
* If the ENI is in the Attaching state, the ENI attachment request is sent and the ENI is being attached to the specified instance. If the ENI is in the InUse state, the ENI is attached to the specified instance. If the ENI is in the Available state, the ENI fails to be attached.
|
|
28685
28735
|
* **For information about examples on how to call this operation, see** [Attach an ENI](~~471550~~).
|
|
28686
28736
|
*
|
|
28687
28737
|
* @param request AttachNetworkInterfaceRequest
|
|
@@ -28697,7 +28747,8 @@ export default class Client extends OpenApi {
|
|
|
28697
28747
|
* * You can attach multiple ENIs to a single instance. For more information, see [ENI overview](~~58496~~).
|
|
28698
28748
|
* * The vSwitch to which the ENI is connected must be in the same zone and VPC as the vSwitch to which the instance is connected.
|
|
28699
28749
|
* * This operation is an asynchronous operation. After this operation is called to attach an ENI, you can check the status or events of the ENI to determine whether the ENI is attached. The following figure shows the transitions between the states of the ENI.
|
|
28700
|
-
* 
|
|
28751
|
+
* If the ENI is in the Attaching state, the ENI attachment request is sent and the ENI is being attached to the specified instance. If the ENI is in the InUse state, the ENI is attached to the specified instance. If the ENI is in the Available state, the ENI fails to be attached.
|
|
28701
28752
|
* **For information about examples on how to call this operation, see** [Attach an ENI](~~471550~~).
|
|
28702
28753
|
*
|
|
28703
28754
|
* @param request AttachNetworkInterfaceRequest
|
|
@@ -28705,56 +28756,47 @@ export default class Client extends OpenApi {
|
|
|
28705
28756
|
*/
|
|
28706
28757
|
attachNetworkInterface(request: AttachNetworkInterfaceRequest): Promise<AttachNetworkInterfaceResponse>;
|
|
28707
28758
|
/**
|
|
28708
|
-
*
|
|
28759
|
+
* ## Description
|
|
28709
28760
|
* When you call this operation, take note of the following items:
|
|
28710
|
-
*
|
|
28711
|
-
*
|
|
28712
|
-
*
|
|
28713
|
-
*
|
|
28714
|
-
*
|
|
28715
|
-
*
|
|
28716
|
-
*
|
|
28717
|
-
*
|
|
28718
|
-
*
|
|
28719
|
-
*
|
|
28720
|
-
*
|
|
28721
|
-
*
|
|
28722
|
-
*
|
|
28723
|
-
*
|
|
28724
|
-
*
|
|
28725
|
-
*
|
|
28726
|
-
*
|
|
28727
|
-
*
|
|
28728
|
-
*
|
|
28729
|
-
*
|
|
28730
|
-
*
|
|
28731
|
-
*
|
|
28732
|
-
*
|
|
28733
|
-
*
|
|
28734
|
-
*
|
|
28735
|
-
*
|
|
28736
|
-
*
|
|
28737
|
-
*
|
|
28738
|
-
*
|
|
28739
|
-
*
|
|
28740
|
-
*
|
|
28741
|
-
*
|
|
28742
|
-
*
|
|
28743
|
-
*
|
|
28744
|
-
*
|
|
28745
|
-
*
|
|
28746
|
-
*
|
|
28747
|
-
*
|
|
28748
|
-
*
|
|
28749
|
-
* &Permissions.1.SourceGroupOwnerAccount=test@aliyun.com
|
|
28750
|
-
* &Permissions.1.IpProtocol=TCP
|
|
28751
|
-
* &Permissions.1.PortRange=22/22
|
|
28752
|
-
* &Permissions.1.NicType=intranet
|
|
28753
|
-
* &Permissions.1.Policy=Drop
|
|
28754
|
-
* &<Common request parameters>
|
|
28755
|
-
*
|
|
28756
|
-
* ```
|
|
28757
|
-
* - For information about examples on security group rule settings, see [Security groups for different use cases](~~25475~~) and [Security group quintuple rules](~~97439~~).
|
|
28761
|
+
* * The total number of inbound and outbound security group rules in each security group cannot exceed 200. For more information, see the "Security group limits" section in [Limits](~~25412#SecurityGroupQuota1~~).
|
|
28762
|
+
* * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
|
|
28763
|
+
* * When multiple security group rules have the same priority, drop rules take precedence.
|
|
28764
|
+
* * The source can be a CIDR block specified by SourceCidrIp, Ipv6SourceCidrIp, or SourcePrefixListId or can be Elastic Compute Service (ECS) instances in a security group specified by SourceGroupId.
|
|
28765
|
+
* * For advanced security groups, security groups cannot be used as authorization objects.
|
|
28766
|
+
* * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
|
|
28767
|
+
* * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
|
|
28768
|
+
* * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
|
|
28769
|
+
* * 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.
|
|
28770
|
+
* * Parameters used to specify a security group rule that controls access from a specified CIDR block: IpProtocol, PortRange, SourcePortRange, NicType, Policy, and SourceCidrIp. For a security group of the Virtual Private Cloud (VPC) type, you must set the NicType parameter to intranet. For a security group of the classic network type, you can set the NicType parameter to either internet or intranet. Sample request:
|
|
28771
|
+
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
|
|
28772
|
+
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
28773
|
+
* &Permissions.1.SourceCidrIp=10.0.0.0/8
|
|
28774
|
+
* &Permissions.1.IpProtocol=TCP
|
|
28775
|
+
* &Permissions.1.PortRange=22/22
|
|
28776
|
+
* &Permissions.1.NicType=intranet
|
|
28777
|
+
* &Permissions.1.Policy=Accept
|
|
28778
|
+
* &<Common request parameters>
|
|
28779
|
+
* * Parameters used to specify a security group rule that controls access from a security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceGroupOwnerAccount, and SourceGroupId. In this case, you must set the NicType parameter to intranet. To allow mutual access between security groups in the classic network, you can allow or deny another security group within the same region access to your security group. The security group that is allowed access to your security group can belong to your own Alibaba Cloud account or another Alibaba Cloud account specified by the SourceGroupOwnerAccount parameter. To allow mutual access between security groups in VPCs, you can allow or deny another security group within the same VPC access to your security group. Sample request:
|
|
28780
|
+
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
|
|
28781
|
+
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
28782
|
+
* &Permissions.1.SourceGroupId=sg-1651FBB**
|
|
28783
|
+
* &Permissions.1.SourceGroupOwnerAccount=test@aliyun.com
|
|
28784
|
+
* &Permissions.1.IpProtocol=TCP
|
|
28785
|
+
* &Permissions.1.PortRange=22/22
|
|
28786
|
+
* &Permissions.1.NicType=intranet
|
|
28787
|
+
* &Permissions.1.Policy=Drop
|
|
28788
|
+
* &<Common request parameters>
|
|
28789
|
+
* * Parameters used to specify a security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestPrefixListId. In this case, prefix lists support only security groups in VPCs. NicType must be set to intranet. Sample request:
|
|
28790
|
+
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
|
|
28791
|
+
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
28792
|
+
* &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
28793
|
+
* &Permissions.1.SourceGroupOwnerAccount=test@aliyun.com
|
|
28794
|
+
* &Permissions.1.IpProtocol=TCP
|
|
28795
|
+
* &Permissions.1.PortRange=22/22
|
|
28796
|
+
* &Permissions.1.NicType=intranet
|
|
28797
|
+
* &Permissions.1.Policy=Drop
|
|
28798
|
+
* &<Common request parameters>
|
|
28799
|
+
* * For information about examples on security group rule settings, see [Security groups for different use cases](~~25475~~) and [Security group quintuple rules](~~97439~~).
|
|
28758
28800
|
*
|
|
28759
28801
|
* @param request AuthorizeSecurityGroupRequest
|
|
28760
28802
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28762,74 +28804,66 @@ export default class Client extends OpenApi {
|
|
|
28762
28804
|
*/
|
|
28763
28805
|
authorizeSecurityGroupWithOptions(request: AuthorizeSecurityGroupRequest, runtime: $Util.RuntimeOptions): Promise<AuthorizeSecurityGroupResponse>;
|
|
28764
28806
|
/**
|
|
28765
|
-
*
|
|
28807
|
+
* ## Description
|
|
28766
28808
|
* When you call this operation, take note of the following items:
|
|
28767
|
-
*
|
|
28768
|
-
*
|
|
28769
|
-
*
|
|
28770
|
-
*
|
|
28771
|
-
*
|
|
28772
|
-
*
|
|
28773
|
-
*
|
|
28774
|
-
*
|
|
28775
|
-
*
|
|
28776
|
-
*
|
|
28777
|
-
*
|
|
28778
|
-
*
|
|
28779
|
-
*
|
|
28780
|
-
*
|
|
28781
|
-
*
|
|
28782
|
-
*
|
|
28783
|
-
*
|
|
28784
|
-
*
|
|
28785
|
-
*
|
|
28786
|
-
*
|
|
28787
|
-
*
|
|
28788
|
-
*
|
|
28789
|
-
*
|
|
28790
|
-
*
|
|
28791
|
-
*
|
|
28792
|
-
*
|
|
28793
|
-
*
|
|
28794
|
-
*
|
|
28795
|
-
*
|
|
28796
|
-
*
|
|
28797
|
-
*
|
|
28798
|
-
*
|
|
28799
|
-
*
|
|
28800
|
-
*
|
|
28801
|
-
*
|
|
28802
|
-
*
|
|
28803
|
-
*
|
|
28804
|
-
*
|
|
28805
|
-
*
|
|
28806
|
-
* &Permissions.1.SourceGroupOwnerAccount=test@aliyun.com
|
|
28807
|
-
* &Permissions.1.IpProtocol=TCP
|
|
28808
|
-
* &Permissions.1.PortRange=22/22
|
|
28809
|
-
* &Permissions.1.NicType=intranet
|
|
28810
|
-
* &Permissions.1.Policy=Drop
|
|
28811
|
-
* &<Common request parameters>
|
|
28812
|
-
*
|
|
28813
|
-
* ```
|
|
28814
|
-
* - For information about examples on security group rule settings, see [Security groups for different use cases](~~25475~~) and [Security group quintuple rules](~~97439~~).
|
|
28809
|
+
* * The total number of inbound and outbound security group rules in each security group cannot exceed 200. For more information, see the "Security group limits" section in [Limits](~~25412#SecurityGroupQuota1~~).
|
|
28810
|
+
* * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
|
|
28811
|
+
* * When multiple security group rules have the same priority, drop rules take precedence.
|
|
28812
|
+
* * The source can be a CIDR block specified by SourceCidrIp, Ipv6SourceCidrIp, or SourcePrefixListId or can be Elastic Compute Service (ECS) instances in a security group specified by SourceGroupId.
|
|
28813
|
+
* * For advanced security groups, security groups cannot be used as authorization objects.
|
|
28814
|
+
* * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
|
|
28815
|
+
* * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
|
|
28816
|
+
* * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
|
|
28817
|
+
* * 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.
|
|
28818
|
+
* * Parameters used to specify a security group rule that controls access from a specified CIDR block: IpProtocol, PortRange, SourcePortRange, NicType, Policy, and SourceCidrIp. For a security group of the Virtual Private Cloud (VPC) type, you must set the NicType parameter to intranet. For a security group of the classic network type, you can set the NicType parameter to either internet or intranet. Sample request:
|
|
28819
|
+
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
|
|
28820
|
+
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
28821
|
+
* &Permissions.1.SourceCidrIp=10.0.0.0/8
|
|
28822
|
+
* &Permissions.1.IpProtocol=TCP
|
|
28823
|
+
* &Permissions.1.PortRange=22/22
|
|
28824
|
+
* &Permissions.1.NicType=intranet
|
|
28825
|
+
* &Permissions.1.Policy=Accept
|
|
28826
|
+
* &<Common request parameters>
|
|
28827
|
+
* * Parameters used to specify a security group rule that controls access from a security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceGroupOwnerAccount, and SourceGroupId. In this case, you must set the NicType parameter to intranet. To allow mutual access between security groups in the classic network, you can allow or deny another security group within the same region access to your security group. The security group that is allowed access to your security group can belong to your own Alibaba Cloud account or another Alibaba Cloud account specified by the SourceGroupOwnerAccount parameter. To allow mutual access between security groups in VPCs, you can allow or deny another security group within the same VPC access to your security group. Sample request:
|
|
28828
|
+
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
|
|
28829
|
+
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
28830
|
+
* &Permissions.1.SourceGroupId=sg-1651FBB**
|
|
28831
|
+
* &Permissions.1.SourceGroupOwnerAccount=test@aliyun.com
|
|
28832
|
+
* &Permissions.1.IpProtocol=TCP
|
|
28833
|
+
* &Permissions.1.PortRange=22/22
|
|
28834
|
+
* &Permissions.1.NicType=intranet
|
|
28835
|
+
* &Permissions.1.Policy=Drop
|
|
28836
|
+
* &<Common request parameters>
|
|
28837
|
+
* * Parameters used to specify a security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestPrefixListId. In this case, prefix lists support only security groups in VPCs. NicType must be set to intranet. Sample request:
|
|
28838
|
+
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
|
|
28839
|
+
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
28840
|
+
* &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
28841
|
+
* &Permissions.1.SourceGroupOwnerAccount=test@aliyun.com
|
|
28842
|
+
* &Permissions.1.IpProtocol=TCP
|
|
28843
|
+
* &Permissions.1.PortRange=22/22
|
|
28844
|
+
* &Permissions.1.NicType=intranet
|
|
28845
|
+
* &Permissions.1.Policy=Drop
|
|
28846
|
+
* &<Common request parameters>
|
|
28847
|
+
* * For information about examples on security group rule settings, see [Security groups for different use cases](~~25475~~) and [Security group quintuple rules](~~97439~~).
|
|
28815
28848
|
*
|
|
28816
28849
|
* @param request AuthorizeSecurityGroupRequest
|
|
28817
28850
|
* @return AuthorizeSecurityGroupResponse
|
|
28818
28851
|
*/
|
|
28819
28852
|
authorizeSecurityGroup(request: AuthorizeSecurityGroupRequest): Promise<AuthorizeSecurityGroupResponse>;
|
|
28820
28853
|
/**
|
|
28854
|
+
* ## Description
|
|
28821
28855
|
* When you call this operation, take note of the following items:
|
|
28822
|
-
* * The total number of
|
|
28856
|
+
* * The total number of inbound and outbound security group rules in each security group cannot exceed 200. For more information, see the "Security group limits" section in [](~~25412#SecurityGroupQuota1~~).
|
|
28823
28857
|
* * You can set Policy to accept or drop for each security group rule to allow or deny access.
|
|
28824
|
-
* * The valid
|
|
28858
|
+
* * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
|
|
28825
28859
|
* * When several security group rules have the same priority, drop rules take precedence.
|
|
28826
|
-
* *
|
|
28827
|
-
* *
|
|
28828
|
-
* *
|
|
28829
|
-
* * If the specified security group rule exists in the security group, the call
|
|
28830
|
-
* *
|
|
28860
|
+
* * The destination can be a CIDR block specified by DestCidrIp, Ipv6DestCidrIp, or DestPrefixListId or can be Elastic Compute Service (ECS) instances in a security group specified by DestGroupId.
|
|
28861
|
+
* * For advanced security groups, security groups cannot be used as authorization objects.
|
|
28862
|
+
* * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
|
|
28863
|
+
* * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
|
|
28864
|
+
* * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
|
|
28831
28865
|
* * 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.
|
|
28832
|
-
* * Parameters used to specify
|
|
28866
|
+
* * Parameters used to specify a security group rule that controls access to a specified CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestCidrIp. Sample request:
|
|
28833
28867
|
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
|
|
28834
28868
|
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
28835
28869
|
* &Permissions.1.IpProtocol=ICMP
|
|
@@ -28838,7 +28872,7 @@ export default class Client extends OpenApi {
|
|
|
28838
28872
|
* &Permissions.1.NicType=intranet
|
|
28839
28873
|
* &Permissions.1.Policy=Accept
|
|
28840
28874
|
* &<Common request parameters>
|
|
28841
|
-
* * Parameters used to specify
|
|
28875
|
+
* * Parameters used to specify a security group rule that controls access to a security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, DestGroupOwnerAccount, and DestGroupId. Sample request:
|
|
28842
28876
|
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
|
|
28843
28877
|
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
28844
28878
|
* &Permissions.1.DestGroupId=sg-bp67acfmxazb4pi***
|
|
@@ -28848,7 +28882,7 @@ export default class Client extends OpenApi {
|
|
|
28848
28882
|
* &Permissions.1.NicType=intranet
|
|
28849
28883
|
* &Permissions.1.Policy=Drop
|
|
28850
28884
|
* &<Common request parameters>
|
|
28851
|
-
* * Parameters used to specify
|
|
28885
|
+
* * Parameters used to specify a security group rule that controls access to a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestPrefixListId. In this case, prefix lists support only security groups in virtual private clouds (VPCs). NicType must be set to intranet. Sample request:
|
|
28852
28886
|
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
|
|
28853
28887
|
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
28854
28888
|
* &Permissions.1.DestPrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
@@ -28865,18 +28899,19 @@ export default class Client extends OpenApi {
|
|
|
28865
28899
|
*/
|
|
28866
28900
|
authorizeSecurityGroupEgressWithOptions(request: AuthorizeSecurityGroupEgressRequest, runtime: $Util.RuntimeOptions): Promise<AuthorizeSecurityGroupEgressResponse>;
|
|
28867
28901
|
/**
|
|
28902
|
+
* ## Description
|
|
28868
28903
|
* When you call this operation, take note of the following items:
|
|
28869
|
-
* * The total number of
|
|
28904
|
+
* * The total number of inbound and outbound security group rules in each security group cannot exceed 200. For more information, see the "Security group limits" section in [](~~25412#SecurityGroupQuota1~~).
|
|
28870
28905
|
* * You can set Policy to accept or drop for each security group rule to allow or deny access.
|
|
28871
|
-
* * The valid
|
|
28906
|
+
* * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
|
|
28872
28907
|
* * When several security group rules have the same priority, drop rules take precedence.
|
|
28873
|
-
* *
|
|
28874
|
-
* *
|
|
28875
|
-
* *
|
|
28876
|
-
* * If the specified security group rule exists in the security group, the call
|
|
28877
|
-
* *
|
|
28908
|
+
* * The destination can be a CIDR block specified by DestCidrIp, Ipv6DestCidrIp, or DestPrefixListId or can be Elastic Compute Service (ECS) instances in a security group specified by DestGroupId.
|
|
28909
|
+
* * For advanced security groups, security groups cannot be used as authorization objects.
|
|
28910
|
+
* * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
|
|
28911
|
+
* * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
|
|
28912
|
+
* * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
|
|
28878
28913
|
* * 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.
|
|
28879
|
-
* * Parameters used to specify
|
|
28914
|
+
* * Parameters used to specify a security group rule that controls access to a specified CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestCidrIp. Sample request:
|
|
28880
28915
|
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
|
|
28881
28916
|
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
28882
28917
|
* &Permissions.1.IpProtocol=ICMP
|
|
@@ -28885,7 +28920,7 @@ export default class Client extends OpenApi {
|
|
|
28885
28920
|
* &Permissions.1.NicType=intranet
|
|
28886
28921
|
* &Permissions.1.Policy=Accept
|
|
28887
28922
|
* &<Common request parameters>
|
|
28888
|
-
* * Parameters used to specify
|
|
28923
|
+
* * Parameters used to specify a security group rule that controls access to a security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, DestGroupOwnerAccount, and DestGroupId. Sample request:
|
|
28889
28924
|
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
|
|
28890
28925
|
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
28891
28926
|
* &Permissions.1.DestGroupId=sg-bp67acfmxazb4pi***
|
|
@@ -28895,7 +28930,7 @@ export default class Client extends OpenApi {
|
|
|
28895
28930
|
* &Permissions.1.NicType=intranet
|
|
28896
28931
|
* &Permissions.1.Policy=Drop
|
|
28897
28932
|
* &<Common request parameters>
|
|
28898
|
-
* * Parameters used to specify
|
|
28933
|
+
* * Parameters used to specify a security group rule that controls access to a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestPrefixListId. In this case, prefix lists support only security groups in virtual private clouds (VPCs). NicType must be set to intranet. Sample request:
|
|
28899
28934
|
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
|
|
28900
28935
|
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
28901
28936
|
* &Permissions.1.DestPrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
@@ -28914,7 +28949,7 @@ export default class Client extends OpenApi {
|
|
|
28914
28949
|
cancelAutoSnapshotPolicy(request: CancelAutoSnapshotPolicyRequest): Promise<CancelAutoSnapshotPolicyResponse>;
|
|
28915
28950
|
/**
|
|
28916
28951
|
* When you call this operation, take note of the following items:
|
|
28917
|
-
* * After you cancel
|
|
28952
|
+
* * After you cancel an image copy task, the image copy created in the destination region is deleted, and the copied image remains unchanged.
|
|
28918
28953
|
* * If the image copy task is complete, the CancelCopyImage operation fails and an error is returned.
|
|
28919
28954
|
*
|
|
28920
28955
|
* @param request CancelCopyImageRequest
|
|
@@ -28924,7 +28959,7 @@ export default class Client extends OpenApi {
|
|
|
28924
28959
|
cancelCopyImageWithOptions(request: CancelCopyImageRequest, runtime: $Util.RuntimeOptions): Promise<CancelCopyImageResponse>;
|
|
28925
28960
|
/**
|
|
28926
28961
|
* When you call this operation, take note of the following items:
|
|
28927
|
-
* * After you cancel
|
|
28962
|
+
* * After you cancel an image copy task, the image copy created in the destination region is deleted, and the copied image remains unchanged.
|
|
28928
28963
|
* * If the image copy task is complete, the CancelCopyImage operation fails and an error is returned.
|
|
28929
28964
|
*
|
|
28930
28965
|
* @param request CancelCopyImageRequest
|
|
@@ -28983,7 +29018,7 @@ export default class Client extends OpenApi {
|
|
|
28983
29018
|
/**
|
|
28984
29019
|
* After a public IP address is converted into an EIP, the EIP is billed separately. Make sure that you understand the billing methods of EIPs. For more information, see [Billing overview](~~122035~~).
|
|
28985
29020
|
* Before you call this operation, make sure that the following requirements are met:
|
|
28986
|
-
* * The instance is in the
|
|
29021
|
+
* * The instance is in the `Stopped` or `Running` state.
|
|
28987
29022
|
* * No EIPs are associated with the instance.
|
|
28988
29023
|
* * The instance has no configuration change tasks that have not taken effect.
|
|
28989
29024
|
* * The public bandwidth of the instance is not 0 Mbit/s.
|
|
@@ -28998,7 +29033,7 @@ export default class Client extends OpenApi {
|
|
|
28998
29033
|
/**
|
|
28999
29034
|
* After a public IP address is converted into an EIP, the EIP is billed separately. Make sure that you understand the billing methods of EIPs. For more information, see [Billing overview](~~122035~~).
|
|
29000
29035
|
* Before you call this operation, make sure that the following requirements are met:
|
|
29001
|
-
* * The instance is in the
|
|
29036
|
+
* * The instance is in the `Stopped` or `Running` state.
|
|
29002
29037
|
* * No EIPs are associated with the instance.
|
|
29003
29038
|
* * The instance has no configuration change tasks that have not taken effect.
|
|
29004
29039
|
* * The public bandwidth of the instance is not 0 Mbit/s.
|
|
@@ -29010,13 +29045,13 @@ export default class Client extends OpenApi {
|
|
|
29010
29045
|
*/
|
|
29011
29046
|
convertNatPublicIpToEip(request: ConvertNatPublicIpToEipRequest): Promise<ConvertNatPublicIpToEipResponse>;
|
|
29012
29047
|
/**
|
|
29013
|
-
* After you copy a custom image to the destination region, you can use the image copy to create
|
|
29014
|
-
*
|
|
29015
|
-
* *
|
|
29016
|
-
* *
|
|
29017
|
-
* * When an image is being copied,
|
|
29018
|
-
* * A
|
|
29019
|
-
* * You can
|
|
29048
|
+
* After you copy a custom image (source image) to the destination region, you can use the image copy to create ECS instances by calling the RunInstances operation or replace the system disks of ECS instances by calling the ReplaceSystemDisk operation in the destination region.
|
|
29049
|
+
* Before you call the CopyImage operation, take note of the following items:
|
|
29050
|
+
* * You can copy only custom images that are in the `Available` state.
|
|
29051
|
+
* * Custom images that you want to copy must belong to your Alibaba Cloud account or be shared with you by others, and cannot be copied across accounts.
|
|
29052
|
+
* * When an image is being copied, the copied image cannot be deleted by calling the [DeleteImage](~~25537~~) operation. However, you can cancel the running copying task by calling the [CancelCopyImage](~~25539~~) operation.
|
|
29053
|
+
* * A region can have only one image copying task running at a time. Other image copying tasks queue up for the current task to complete before the tasks run in sequence.
|
|
29054
|
+
* * You can configure the `ResourceGroupId` parameter to specify the resource group to which to assign the image copy. If you do not configure the `ResourceGroupId` parameter, the image copy is assigned to the default resource group.
|
|
29020
29055
|
*
|
|
29021
29056
|
* @param request CopyImageRequest
|
|
29022
29057
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -29024,22 +29059,21 @@ export default class Client extends OpenApi {
|
|
|
29024
29059
|
*/
|
|
29025
29060
|
copyImageWithOptions(request: CopyImageRequest, runtime: $Util.RuntimeOptions): Promise<CopyImageResponse>;
|
|
29026
29061
|
/**
|
|
29027
|
-
* After you copy a custom image to the destination region, you can use the image copy to create
|
|
29028
|
-
*
|
|
29029
|
-
* *
|
|
29030
|
-
* *
|
|
29031
|
-
* * When an image is being copied,
|
|
29032
|
-
* * A
|
|
29033
|
-
* * You can
|
|
29062
|
+
* After you copy a custom image (source image) to the destination region, you can use the image copy to create ECS instances by calling the RunInstances operation or replace the system disks of ECS instances by calling the ReplaceSystemDisk operation in the destination region.
|
|
29063
|
+
* Before you call the CopyImage operation, take note of the following items:
|
|
29064
|
+
* * You can copy only custom images that are in the `Available` state.
|
|
29065
|
+
* * Custom images that you want to copy must belong to your Alibaba Cloud account or be shared with you by others, and cannot be copied across accounts.
|
|
29066
|
+
* * When an image is being copied, the copied image cannot be deleted by calling the [DeleteImage](~~25537~~) operation. However, you can cancel the running copying task by calling the [CancelCopyImage](~~25539~~) operation.
|
|
29067
|
+
* * A region can have only one image copying task running at a time. Other image copying tasks queue up for the current task to complete before the tasks run in sequence.
|
|
29068
|
+
* * You can configure the `ResourceGroupId` parameter to specify the resource group to which to assign the image copy. If you do not configure the `ResourceGroupId` parameter, the image copy is assigned to the default resource group.
|
|
29034
29069
|
*
|
|
29035
29070
|
* @param request CopyImageRequest
|
|
29036
29071
|
* @return CopyImageResponse
|
|
29037
29072
|
*/
|
|
29038
29073
|
copyImage(request: CopyImageRequest): Promise<CopyImageResponse>;
|
|
29039
29074
|
/**
|
|
29040
|
-
* ## Description
|
|
29041
29075
|
* When you call this operation, take note of the following items:
|
|
29042
|
-
* * New snapshots
|
|
29076
|
+
* * New snapshots (copies) cannot be used to roll back disks from which the source snapshots (originals) were created.
|
|
29043
29077
|
* * Encrypted snapshots cannot be copied.
|
|
29044
29078
|
* * Local snapshots cannot be copied.
|
|
29045
29079
|
*
|
|
@@ -29049,9 +29083,8 @@ export default class Client extends OpenApi {
|
|
|
29049
29083
|
*/
|
|
29050
29084
|
copySnapshotWithOptions(request: CopySnapshotRequest, runtime: $Util.RuntimeOptions): Promise<CopySnapshotResponse>;
|
|
29051
29085
|
/**
|
|
29052
|
-
* ## Description
|
|
29053
29086
|
* When you call this operation, take note of the following items:
|
|
29054
|
-
* * New snapshots
|
|
29087
|
+
* * New snapshots (copies) cannot be used to roll back disks from which the source snapshots (originals) were created.
|
|
29055
29088
|
* * Encrypted snapshots cannot be copied.
|
|
29056
29089
|
* * Local snapshots cannot be copied.
|
|
29057
29090
|
*
|
|
@@ -29143,9 +29176,9 @@ export default class Client extends OpenApi {
|
|
|
29143
29176
|
*/
|
|
29144
29177
|
createAutoSnapshotPolicy(request: CreateAutoSnapshotPolicyRequest): Promise<CreateAutoSnapshotPolicyResponse>;
|
|
29145
29178
|
/**
|
|
29146
|
-
* When you create a capacity reservation, you can specify attributes such as a zone and an instance type.
|
|
29179
|
+
* When you create a capacity reservation, you can specify attributes such as a zone and an instance type. Then, the system uses a private pool to reserve resources that match the specified attributes. For more information, see [Overview of Immediate Capacity Reservation](~~193633~~).
|
|
29147
29180
|
* * Currently, only immediate capacity reservations are supported. Immediate capacity reservations take effect as soon as they are purchased. After you purchase an immediate capacity reservation, the specified instance type is billed on a pay-as-you-go basis regardless of whether the capacity reservation is actually used to create pay-as-you-go instances. Billing stops until you manually release the capacity reservation or until the capacity reservation expires and is automatically released.
|
|
29148
|
-
* * You can call the [CreateInstance](~~25499~~) or [RunInstances](~~63440~~) operation to specify private pool attributes when you create instances. You can also call the [ModifyInstanceAttachmentAttributes](~~190006~~) operation to modify the attributes of a private pool. When an instance matches a private pool associated with a capacity reservation, you are charged based on the configurations of the instance such as the instance type, disks, and public bandwidth.
|
|
29181
|
+
* * You can call the [CreateInstance](~~25499~~) or [RunInstances](~~63440~~) operation to specify private pool attributes when you create instances. You can also call the [ModifyInstanceAttachmentAttributes](~~190006~~) operation to modify the attributes of a private pool. When an instance matches a private pool associated with a capacity reservation, you are charged based on the configurations of the instance, such as the instance type, disks, and public bandwidth.
|
|
29149
29182
|
* * Before a capacity reservation is used to create pay-as-you-go instances, you are charged only for the specified instance type.
|
|
29150
29183
|
* * Savings plans or regional reserved instances can be applied to offset the hourly bills of the unused capacity of immediate capacity reservations and the hourly bills of the instances that are matched to immediate capacity reservations. Zonal reserved instances cannot be applied to offset these bills. We recommend that you purchase reserved instances or savings plans before you purchase immediate capacity reservations. This way, you can have guaranteed access to resources for free within the coverage of the reserved instances or savings plans.
|
|
29151
29184
|
* > The CreateCapacityReservation operation can be called to create only immediate capacity reservations. You can use the ECS console to create immediate or scheduled capacity reservations. For more information, see [Overview](~~193626#section-oil-qh5-xvx~~).
|
|
@@ -29156,9 +29189,9 @@ export default class Client extends OpenApi {
|
|
|
29156
29189
|
*/
|
|
29157
29190
|
createCapacityReservationWithOptions(request: CreateCapacityReservationRequest, runtime: $Util.RuntimeOptions): Promise<CreateCapacityReservationResponse>;
|
|
29158
29191
|
/**
|
|
29159
|
-
* When you create a capacity reservation, you can specify attributes such as a zone and an instance type.
|
|
29192
|
+
* When you create a capacity reservation, you can specify attributes such as a zone and an instance type. Then, the system uses a private pool to reserve resources that match the specified attributes. For more information, see [Overview of Immediate Capacity Reservation](~~193633~~).
|
|
29160
29193
|
* * Currently, only immediate capacity reservations are supported. Immediate capacity reservations take effect as soon as they are purchased. After you purchase an immediate capacity reservation, the specified instance type is billed on a pay-as-you-go basis regardless of whether the capacity reservation is actually used to create pay-as-you-go instances. Billing stops until you manually release the capacity reservation or until the capacity reservation expires and is automatically released.
|
|
29161
|
-
* * You can call the [CreateInstance](~~25499~~) or [RunInstances](~~63440~~) operation to specify private pool attributes when you create instances. You can also call the [ModifyInstanceAttachmentAttributes](~~190006~~) operation to modify the attributes of a private pool. When an instance matches a private pool associated with a capacity reservation, you are charged based on the configurations of the instance such as the instance type, disks, and public bandwidth.
|
|
29194
|
+
* * You can call the [CreateInstance](~~25499~~) or [RunInstances](~~63440~~) operation to specify private pool attributes when you create instances. You can also call the [ModifyInstanceAttachmentAttributes](~~190006~~) operation to modify the attributes of a private pool. When an instance matches a private pool associated with a capacity reservation, you are charged based on the configurations of the instance, such as the instance type, disks, and public bandwidth.
|
|
29162
29195
|
* * Before a capacity reservation is used to create pay-as-you-go instances, you are charged only for the specified instance type.
|
|
29163
29196
|
* * Savings plans or regional reserved instances can be applied to offset the hourly bills of the unused capacity of immediate capacity reservations and the hourly bills of the instances that are matched to immediate capacity reservations. Zonal reserved instances cannot be applied to offset these bills. We recommend that you purchase reserved instances or savings plans before you purchase immediate capacity reservations. This way, you can have guaranteed access to resources for free within the coverage of the reserved instances or savings plans.
|
|
29164
29197
|
* > The CreateCapacityReservation operation can be called to create only immediate capacity reservations. You can use the ECS console to create immediate or scheduled capacity reservations. For more information, see [Overview](~~193626#section-oil-qh5-xvx~~).
|
|
@@ -29316,19 +29349,18 @@ export default class Client extends OpenApi {
|
|
|
29316
29349
|
createHpcClusterWithOptions(request: CreateHpcClusterRequest, runtime: $Util.RuntimeOptions): Promise<CreateHpcClusterResponse>;
|
|
29317
29350
|
createHpcCluster(request: CreateHpcClusterRequest): Promise<CreateHpcClusterResponse>;
|
|
29318
29351
|
/**
|
|
29319
|
-
*
|
|
29320
|
-
*
|
|
29321
|
-
* *
|
|
29322
|
-
*
|
|
29323
|
-
*
|
|
29324
|
-
* * **Method
|
|
29325
|
-
* * **Method
|
|
29326
|
-
* * **Method 3**: Create a custom image from multiple disk snapshots. You must specify the data mapping between the disks and the snapshots (`DiskDeviceMapping`).
|
|
29352
|
+
* When you call this operation, take note of the following items:
|
|
29353
|
+
* * You can use the created custom image only if the image is in the Available (Available) state.
|
|
29354
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked to ensure security. No operations are allowed on the instance.
|
|
29355
|
+
* You can call the CreateImage operation to create a custom image by using one of the following methods. The following request parameters are sorted by priority: `InstanceId` > `DiskDeviceMapping` > `SnapshotId`. If your request contains two or more of these parameters, the custom image is created based on the parameter that has a higher priority.
|
|
29356
|
+
* * **Method 1**: Create a custom image from an instance. You need to only specify the ID of the instance by using the `InstanceId` parameter. The instance must be in the Running (`Running`) or Stopped (`Stopped`) state. After you call the CreateImage operation, a snapshot is created for each disk of the instance. When you create a custom image from a running instance, specific cache data may not be written to the disks. In this case, the data of the custom image may be slightly different from the data of the instance. We recommend that you create custom images from instances after you stop the instances by calling the [StopInstances](~~155372~~) operation.
|
|
29357
|
+
* * **Method 2**: Create a custom image from the system disk snapshot of an instance. You need to only specify the ID of the system disk snapshot by using the `SnapshotId` parameter. The specified system disk snapshot must be created after July 15, 2013.
|
|
29358
|
+
* * **Method 3**: Create a custom image from multiple disk snapshots. You must specify the data mapping between the disks and the snapshots by calling the `DiskDeviceMapping` operation.
|
|
29327
29359
|
* When you use Method 3 to create a custom image, take note of the following items:
|
|
29328
29360
|
* * You can specify only one system disk snapshot. The device name of the system disk must be /dev/xvda.
|
|
29329
29361
|
* * You can specify multiple data disk snapshots. The device names of the data disks are unique and in alphabetical order from /dev/xvdb to /dev/xvdz.
|
|
29330
|
-
* * `SnapshotId`
|
|
29331
|
-
* * The specified snapshot
|
|
29362
|
+
* * You can leave the `SnapshotId` parameter empty. In this case, an empty data disk that has a specified size is created.
|
|
29363
|
+
* * The specified disk snapshot must be created after July 15, 2013.
|
|
29332
29364
|
*
|
|
29333
29365
|
* @param request CreateImageRequest
|
|
29334
29366
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -29336,19 +29368,18 @@ export default class Client extends OpenApi {
|
|
|
29336
29368
|
*/
|
|
29337
29369
|
createImageWithOptions(request: CreateImageRequest, runtime: $Util.RuntimeOptions): Promise<CreateImageResponse>;
|
|
29338
29370
|
/**
|
|
29339
|
-
*
|
|
29340
|
-
*
|
|
29341
|
-
* *
|
|
29342
|
-
*
|
|
29343
|
-
*
|
|
29344
|
-
* * **Method
|
|
29345
|
-
* * **Method
|
|
29346
|
-
* * **Method 3**: Create a custom image from multiple disk snapshots. You must specify the data mapping between the disks and the snapshots (`DiskDeviceMapping`).
|
|
29371
|
+
* When you call this operation, take note of the following items:
|
|
29372
|
+
* * You can use the created custom image only if the image is in the Available (Available) state.
|
|
29373
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked to ensure security. No operations are allowed on the instance.
|
|
29374
|
+
* You can call the CreateImage operation to create a custom image by using one of the following methods. The following request parameters are sorted by priority: `InstanceId` > `DiskDeviceMapping` > `SnapshotId`. If your request contains two or more of these parameters, the custom image is created based on the parameter that has a higher priority.
|
|
29375
|
+
* * **Method 1**: Create a custom image from an instance. You need to only specify the ID of the instance by using the `InstanceId` parameter. The instance must be in the Running (`Running`) or Stopped (`Stopped`) state. After you call the CreateImage operation, a snapshot is created for each disk of the instance. When you create a custom image from a running instance, specific cache data may not be written to the disks. In this case, the data of the custom image may be slightly different from the data of the instance. We recommend that you create custom images from instances after you stop the instances by calling the [StopInstances](~~155372~~) operation.
|
|
29376
|
+
* * **Method 2**: Create a custom image from the system disk snapshot of an instance. You need to only specify the ID of the system disk snapshot by using the `SnapshotId` parameter. The specified system disk snapshot must be created after July 15, 2013.
|
|
29377
|
+
* * **Method 3**: Create a custom image from multiple disk snapshots. You must specify the data mapping between the disks and the snapshots by calling the `DiskDeviceMapping` operation.
|
|
29347
29378
|
* When you use Method 3 to create a custom image, take note of the following items:
|
|
29348
29379
|
* * You can specify only one system disk snapshot. The device name of the system disk must be /dev/xvda.
|
|
29349
29380
|
* * You can specify multiple data disk snapshots. The device names of the data disks are unique and in alphabetical order from /dev/xvdb to /dev/xvdz.
|
|
29350
|
-
* * `SnapshotId`
|
|
29351
|
-
* * The specified snapshot
|
|
29381
|
+
* * You can leave the `SnapshotId` parameter empty. In this case, an empty data disk that has a specified size is created.
|
|
29382
|
+
* * The specified disk snapshot must be created after July 15, 2013.
|
|
29352
29383
|
*
|
|
29353
29384
|
* @param request CreateImageRequest
|
|
29354
29385
|
* @return CreateImageResponse
|
|
@@ -29380,16 +29411,15 @@ export default class Client extends OpenApi {
|
|
|
29380
29411
|
*/
|
|
29381
29412
|
createImageComponent(request: CreateImageComponentRequest): Promise<CreateImageComponentResponse>;
|
|
29382
29413
|
/**
|
|
29383
|
-
*
|
|
29384
|
-
* You can use image templates to customize image content and create images across regions and accounts. When you call this operation, take note of the following items:
|
|
29414
|
+
* You can use image templates to specify custom image content and create images across regions and accounts. When you create an image template, take note of the following items:
|
|
29385
29415
|
* * You can create only custom image templates.
|
|
29386
|
-
* * You can
|
|
29387
|
-
* * When you use an image template to create an image, you must create an intermediate
|
|
29416
|
+
* * You can specify only public, custom, or shared Linux images or image families as source images when you create image templates.
|
|
29417
|
+
* * When you use an image template to create an image, you must create an intermediate instance. You are charged for the intermediate instance based on the pay-as-you-go billing method. For more information, see [Pay-as-you-go](~~40653~~).
|
|
29388
29418
|
* For the `BuildContent` parameter that specifies the content of image templates, take note of the following items:
|
|
29389
|
-
* * If the `BuildContent`
|
|
29390
|
-
* * If the `BuildContent`
|
|
29391
|
-
* * You can use Dockerfile to
|
|
29392
|
-
* You can use image components to create image templates in the ECS console
|
|
29419
|
+
* * If the value of the `BuildContent` parameter contains `FROM` commands, the `FROM` commands override the values of the `BaseImageType` parameter that specifies the type of the source image and the `BaseImage` parameter that specifies the source image.
|
|
29420
|
+
* * If the value of the `BuildContent` parameter does not contain `FROM` commands, the system creates a `FROM` command that consists of the values of the `BaseImageType` and `BaseImage` parameters in the `<BaseImageType>:<BaseImage>` format and adds the command to the first line of the image template content.
|
|
29421
|
+
* * You can use Dockerfile to modify the content of image templates and pass the modified content to the `BuildContent` parameter. The content cannot exceed 16 KB in size and can contain up to 127 commands. For information about the commands that are supported by image templates, see [Description of commands supported by Image Builder](~~200206~~).
|
|
29422
|
+
* You can use image components to create image templates in the Elastic Compute Service (ECS) console. You cannot call API operations to use image components to create image templates. For more information, see [Overview of creating an image](~~197410~~).
|
|
29393
29423
|
*
|
|
29394
29424
|
* @param request CreateImagePipelineRequest
|
|
29395
29425
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -29397,16 +29427,15 @@ export default class Client extends OpenApi {
|
|
|
29397
29427
|
*/
|
|
29398
29428
|
createImagePipelineWithOptions(request: CreateImagePipelineRequest, runtime: $Util.RuntimeOptions): Promise<CreateImagePipelineResponse>;
|
|
29399
29429
|
/**
|
|
29400
|
-
*
|
|
29401
|
-
* You can use image templates to customize image content and create images across regions and accounts. When you call this operation, take note of the following items:
|
|
29430
|
+
* You can use image templates to specify custom image content and create images across regions and accounts. When you create an image template, take note of the following items:
|
|
29402
29431
|
* * You can create only custom image templates.
|
|
29403
|
-
* * You can
|
|
29404
|
-
* * When you use an image template to create an image, you must create an intermediate
|
|
29432
|
+
* * You can specify only public, custom, or shared Linux images or image families as source images when you create image templates.
|
|
29433
|
+
* * When you use an image template to create an image, you must create an intermediate instance. You are charged for the intermediate instance based on the pay-as-you-go billing method. For more information, see [Pay-as-you-go](~~40653~~).
|
|
29405
29434
|
* For the `BuildContent` parameter that specifies the content of image templates, take note of the following items:
|
|
29406
|
-
* * If the `BuildContent`
|
|
29407
|
-
* * If the `BuildContent`
|
|
29408
|
-
* * You can use Dockerfile to
|
|
29409
|
-
* You can use image components to create image templates in the ECS console
|
|
29435
|
+
* * If the value of the `BuildContent` parameter contains `FROM` commands, the `FROM` commands override the values of the `BaseImageType` parameter that specifies the type of the source image and the `BaseImage` parameter that specifies the source image.
|
|
29436
|
+
* * If the value of the `BuildContent` parameter does not contain `FROM` commands, the system creates a `FROM` command that consists of the values of the `BaseImageType` and `BaseImage` parameters in the `<BaseImageType>:<BaseImage>` format and adds the command to the first line of the image template content.
|
|
29437
|
+
* * You can use Dockerfile to modify the content of image templates and pass the modified content to the `BuildContent` parameter. The content cannot exceed 16 KB in size and can contain up to 127 commands. For information about the commands that are supported by image templates, see [Description of commands supported by Image Builder](~~200206~~).
|
|
29438
|
+
* You can use image components to create image templates in the Elastic Compute Service (ECS) console. You cannot call API operations to use image components to create image templates. For more information, see [Overview of creating an image](~~197410~~).
|
|
29410
29439
|
*
|
|
29411
29440
|
* @param request CreateImagePipelineRequest
|
|
29412
29441
|
* @return CreateImagePipelineResponse
|
|
@@ -29517,12 +29546,13 @@ export default class Client extends OpenApi {
|
|
|
29517
29546
|
*/
|
|
29518
29547
|
createKeyPair(request: CreateKeyPairRequest): Promise<CreateKeyPairResponse>;
|
|
29519
29548
|
/**
|
|
29549
|
+
* ## Description
|
|
29520
29550
|
* Launch templates contain preset configurations used to create instances, such as the region, image ID, instance type, security group ID, and public bandwidth settings. If a specific parameter is not included in a launch template, you must manually specify the parameter when you use the launch template to create an instance.
|
|
29521
29551
|
* After you create a launch template (`CreateLaunchTemplate`), its version number is set to 1 by default. You can create multiple versions (`CreateLaunchTemplateVersion`) for the launch template. Version numbers start from 1 and increment by one. If you do not specify a template version number when you use a launch template to create instances ([RunInstances](~~63440~~)), the default version is used.
|
|
29522
29552
|
* When you call this operation, take note of the following items:
|
|
29523
|
-
* *
|
|
29524
|
-
* *
|
|
29525
|
-
* *
|
|
29553
|
+
* * You can create up to 30 launch templates in each region. Each launch template can have up to 30 versions.
|
|
29554
|
+
* * Most parameters in launch templates are optional. When you create a launch template, ECS does not verify the existence or validity of specified parameter values. The validity of the parameter values are verified only when you use the launch template to create instances.
|
|
29555
|
+
* * If you set a specific parameter in a launch template, you cannot filter out this parameter when you use the launch template to create instances ([RunInstances](~~63440~~)). For example, if you set the `HostName` parameter to LocalHost in a launch template and do not set the `HostName` parameter when you call the `RunInstances` operation to create instances from the launch template, the created instance still has a hostname of `LocalHost`. If you want to overwrite the `LocalHost` value of HostName provided by the launch template, you can set `HostName` to MyHost or another value when you call the `RunInstances` operation.
|
|
29526
29556
|
*
|
|
29527
29557
|
* @param request CreateLaunchTemplateRequest
|
|
29528
29558
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -29530,18 +29560,20 @@ export default class Client extends OpenApi {
|
|
|
29530
29560
|
*/
|
|
29531
29561
|
createLaunchTemplateWithOptions(request: CreateLaunchTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateLaunchTemplateResponse>;
|
|
29532
29562
|
/**
|
|
29563
|
+
* ## Description
|
|
29533
29564
|
* Launch templates contain preset configurations used to create instances, such as the region, image ID, instance type, security group ID, and public bandwidth settings. If a specific parameter is not included in a launch template, you must manually specify the parameter when you use the launch template to create an instance.
|
|
29534
29565
|
* After you create a launch template (`CreateLaunchTemplate`), its version number is set to 1 by default. You can create multiple versions (`CreateLaunchTemplateVersion`) for the launch template. Version numbers start from 1 and increment by one. If you do not specify a template version number when you use a launch template to create instances ([RunInstances](~~63440~~)), the default version is used.
|
|
29535
29566
|
* When you call this operation, take note of the following items:
|
|
29536
|
-
* *
|
|
29537
|
-
* *
|
|
29538
|
-
* *
|
|
29567
|
+
* * You can create up to 30 launch templates in each region. Each launch template can have up to 30 versions.
|
|
29568
|
+
* * Most parameters in launch templates are optional. When you create a launch template, ECS does not verify the existence or validity of specified parameter values. The validity of the parameter values are verified only when you use the launch template to create instances.
|
|
29569
|
+
* * If you set a specific parameter in a launch template, you cannot filter out this parameter when you use the launch template to create instances ([RunInstances](~~63440~~)). For example, if you set the `HostName` parameter to LocalHost in a launch template and do not set the `HostName` parameter when you call the `RunInstances` operation to create instances from the launch template, the created instance still has a hostname of `LocalHost`. If you want to overwrite the `LocalHost` value of HostName provided by the launch template, you can set `HostName` to MyHost or another value when you call the `RunInstances` operation.
|
|
29539
29570
|
*
|
|
29540
29571
|
* @param request CreateLaunchTemplateRequest
|
|
29541
29572
|
* @return CreateLaunchTemplateResponse
|
|
29542
29573
|
*/
|
|
29543
29574
|
createLaunchTemplate(request: CreateLaunchTemplateRequest): Promise<CreateLaunchTemplateResponse>;
|
|
29544
29575
|
/**
|
|
29576
|
+
* ## Description
|
|
29545
29577
|
* If you want to modify the parameters of a launch template version, you can create another version with different parameter settings for the launch template. A maximum of 30 versions can be created for each launch template.
|
|
29546
29578
|
*
|
|
29547
29579
|
* @param request CreateLaunchTemplateVersionRequest
|
|
@@ -29550,6 +29582,7 @@ export default class Client extends OpenApi {
|
|
|
29550
29582
|
*/
|
|
29551
29583
|
createLaunchTemplateVersionWithOptions(request: CreateLaunchTemplateVersionRequest, runtime: $Util.RuntimeOptions): Promise<CreateLaunchTemplateVersionResponse>;
|
|
29552
29584
|
/**
|
|
29585
|
+
* ## Description
|
|
29553
29586
|
* If you want to modify the parameters of a launch template version, you can create another version with different parameter settings for the launch template. A maximum of 30 versions can be created for each launch template.
|
|
29554
29587
|
*
|
|
29555
29588
|
* @param request CreateLaunchTemplateVersionRequest
|
|
@@ -29679,8 +29712,8 @@ export default class Client extends OpenApi {
|
|
|
29679
29712
|
*/
|
|
29680
29713
|
createRouterInterface(request: CreateRouterInterfaceRequest): Promise<CreateRouterInterfaceResponse>;
|
|
29681
29714
|
/**
|
|
29682
|
-
* When you call this operation, take note of the following
|
|
29683
|
-
* * You can create up to 100 security groups
|
|
29715
|
+
* When you call this operation, take note of the following items:
|
|
29716
|
+
* * You can create up to 100 security groups in each Alibaba Cloud region.
|
|
29684
29717
|
* * To create a security group of the Virtual Private Cloud (VPC) type, you must specify the VpcId parameter.
|
|
29685
29718
|
*
|
|
29686
29719
|
* @param request CreateSecurityGroupRequest
|
|
@@ -29689,8 +29722,8 @@ export default class Client extends OpenApi {
|
|
|
29689
29722
|
*/
|
|
29690
29723
|
createSecurityGroupWithOptions(request: CreateSecurityGroupRequest, runtime: $Util.RuntimeOptions): Promise<CreateSecurityGroupResponse>;
|
|
29691
29724
|
/**
|
|
29692
|
-
* When you call this operation, take note of the following
|
|
29693
|
-
* * You can create up to 100 security groups
|
|
29725
|
+
* When you call this operation, take note of the following items:
|
|
29726
|
+
* * You can create up to 100 security groups in each Alibaba Cloud region.
|
|
29694
29727
|
* * To create a security group of the Virtual Private Cloud (VPC) type, you must specify the VpcId parameter.
|
|
29695
29728
|
*
|
|
29696
29729
|
* @param request CreateSecurityGroupRequest
|
|
@@ -29698,10 +29731,10 @@ export default class Client extends OpenApi {
|
|
|
29698
29731
|
*/
|
|
29699
29732
|
createSecurityGroup(request: CreateSecurityGroupRequest): Promise<CreateSecurityGroupResponse>;
|
|
29700
29733
|
/**
|
|
29701
|
-
* You can use the ECS console, call
|
|
29702
|
-
*
|
|
29734
|
+
* You can use the ECS console, call [ECS API](~~63962~~) operations, or use CloudMonitor to view the scheduled simulated system events.
|
|
29735
|
+
* A simulated system event can transition between the following lifecycle states:
|
|
29703
29736
|
* * Scheduled: The state of the simulated system event is automatically changed to Scheduled after it is scheduled.
|
|
29704
|
-
* * Executed: The state of the simulated system event is automatically changed to Executed at the
|
|
29737
|
+
* * Executed: The state of the simulated system event is automatically changed to Executed at the time specified by the NotBefore parameter if no manual intervention is involved.
|
|
29705
29738
|
* * Canceled: The state of the simulated system event is changed to Canceled if you cancel the event by calling the [CancelSimulatedSystemEvents](~~88808~~) operation.
|
|
29706
29739
|
* * Avoided: The state of the simulated system event generated from maintenance-triggered instance restart can be changed to Avoided if you restart the instance before the scheduled time of the simulated system event. The maintenance-triggered instance restart is indicated by the SystemMaintenance.Reboot value. For more information, see [RebootInstance](~~25502~~).
|
|
29707
29740
|
*
|
|
@@ -29711,10 +29744,10 @@ export default class Client extends OpenApi {
|
|
|
29711
29744
|
*/
|
|
29712
29745
|
createSimulatedSystemEventsWithOptions(request: CreateSimulatedSystemEventsRequest, runtime: $Util.RuntimeOptions): Promise<CreateSimulatedSystemEventsResponse>;
|
|
29713
29746
|
/**
|
|
29714
|
-
* You can use the ECS console, call
|
|
29715
|
-
*
|
|
29747
|
+
* You can use the ECS console, call [ECS API](~~63962~~) operations, or use CloudMonitor to view the scheduled simulated system events.
|
|
29748
|
+
* A simulated system event can transition between the following lifecycle states:
|
|
29716
29749
|
* * Scheduled: The state of the simulated system event is automatically changed to Scheduled after it is scheduled.
|
|
29717
|
-
* * Executed: The state of the simulated system event is automatically changed to Executed at the
|
|
29750
|
+
* * Executed: The state of the simulated system event is automatically changed to Executed at the time specified by the NotBefore parameter if no manual intervention is involved.
|
|
29718
29751
|
* * Canceled: The state of the simulated system event is changed to Canceled if you cancel the event by calling the [CancelSimulatedSystemEvents](~~88808~~) operation.
|
|
29719
29752
|
* * Avoided: The state of the simulated system event generated from maintenance-triggered instance restart can be changed to Avoided if you restart the instance before the scheduled time of the simulated system event. The maintenance-triggered instance restart is indicated by the SystemMaintenance.Reboot value. For more information, see [RebootInstance](~~25502~~).
|
|
29720
29753
|
*
|
|
@@ -29723,23 +29756,21 @@ export default class Client extends OpenApi {
|
|
|
29723
29756
|
*/
|
|
29724
29757
|
createSimulatedSystemEvents(request: CreateSimulatedSystemEventsRequest): Promise<CreateSimulatedSystemEventsResponse>;
|
|
29725
29758
|
/**
|
|
29726
|
-
* ## Description
|
|
29727
29759
|
* The local snapshot feature is replaced by the instant access feature.
|
|
29728
|
-
* * If you
|
|
29760
|
+
* * If you used the local snapshot feature before December 14, 2020, you can use the `Category` or `InstantAccess` parameter as expected and must take note of the following items:
|
|
29729
29761
|
* * The `Category` and `InstantAccess` parameters cannot be specified at the same time.
|
|
29730
|
-
* * If
|
|
29731
|
-
* * If you
|
|
29732
|
-
*
|
|
29733
|
-
* In the following scenarios, you cannot create snapshots for a disk:
|
|
29762
|
+
* * If you do not specify the `Category` or `InstantAccess` parameter, regular snapshots are created.
|
|
29763
|
+
* * If you did not use the local snapshot feature before December 14, 2020, you can use the `InstantAccess` parameter but cannot use the `Category` parameter.
|
|
29764
|
+
* You cannot create snapshots for a disk in the following scenarios:
|
|
29734
29765
|
* * The number of manual snapshots of the disk has reached 256.
|
|
29735
29766
|
* * A snapshot is being created for the disk.
|
|
29736
|
-
* * The
|
|
29767
|
+
* * The instance to which the disk is attached has never been started.
|
|
29737
29768
|
* * The ECS instance to which the disk is attached is not in the **Stopped** (`Stopped`) or **Running** (`Running`) state.
|
|
29738
|
-
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}
|
|
29769
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.
|
|
29739
29770
|
* When you create a snapshot, take note of the following items:
|
|
29740
29771
|
* * If a snapshot is being created, you cannot use this snapshot to create a custom image by calling the [CreateImage](~~25535~~) operation.
|
|
29741
|
-
* * When a snapshot is being created for a disk that is attached to an
|
|
29742
|
-
* * You can create snapshots for a disk that is in the **Expired** (`Expired`) state. If the release time scheduled for a disk arrives when a snapshot is being created for the disk, the snapshot is in the **Creating** (`Creating`) state and is deleted when the disk is released.
|
|
29772
|
+
* * When a snapshot is being created for a disk that is attached to an instance, do not change the instance state.
|
|
29773
|
+
* * You can create snapshots for a disk that is in the **Expired** (`Expired`) state. If the release time that is scheduled for a disk arrives when a snapshot is being created for the disk, the snapshot is in the **Creating** (`Creating`) state and is deleted when the disk is released.
|
|
29743
29774
|
*
|
|
29744
29775
|
* @param request CreateSnapshotRequest
|
|
29745
29776
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -29747,32 +29778,29 @@ export default class Client extends OpenApi {
|
|
|
29747
29778
|
*/
|
|
29748
29779
|
createSnapshotWithOptions(request: CreateSnapshotRequest, runtime: $Util.RuntimeOptions): Promise<CreateSnapshotResponse>;
|
|
29749
29780
|
/**
|
|
29750
|
-
* ## Description
|
|
29751
29781
|
* The local snapshot feature is replaced by the instant access feature.
|
|
29752
|
-
* * If you
|
|
29782
|
+
* * If you used the local snapshot feature before December 14, 2020, you can use the `Category` or `InstantAccess` parameter as expected and must take note of the following items:
|
|
29753
29783
|
* * The `Category` and `InstantAccess` parameters cannot be specified at the same time.
|
|
29754
|
-
* * If
|
|
29755
|
-
* * If you
|
|
29756
|
-
*
|
|
29757
|
-
* In the following scenarios, you cannot create snapshots for a disk:
|
|
29784
|
+
* * If you do not specify the `Category` or `InstantAccess` parameter, regular snapshots are created.
|
|
29785
|
+
* * If you did not use the local snapshot feature before December 14, 2020, you can use the `InstantAccess` parameter but cannot use the `Category` parameter.
|
|
29786
|
+
* You cannot create snapshots for a disk in the following scenarios:
|
|
29758
29787
|
* * The number of manual snapshots of the disk has reached 256.
|
|
29759
29788
|
* * A snapshot is being created for the disk.
|
|
29760
|
-
* * The
|
|
29789
|
+
* * The instance to which the disk is attached has never been started.
|
|
29761
29790
|
* * The ECS instance to which the disk is attached is not in the **Stopped** (`Stopped`) or **Running** (`Running`) state.
|
|
29762
|
-
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}
|
|
29791
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.
|
|
29763
29792
|
* When you create a snapshot, take note of the following items:
|
|
29764
29793
|
* * If a snapshot is being created, you cannot use this snapshot to create a custom image by calling the [CreateImage](~~25535~~) operation.
|
|
29765
|
-
* * When a snapshot is being created for a disk that is attached to an
|
|
29766
|
-
* * You can create snapshots for a disk that is in the **Expired** (`Expired`) state. If the release time scheduled for a disk arrives when a snapshot is being created for the disk, the snapshot is in the **Creating** (`Creating`) state and is deleted when the disk is released.
|
|
29794
|
+
* * When a snapshot is being created for a disk that is attached to an instance, do not change the instance state.
|
|
29795
|
+
* * You can create snapshots for a disk that is in the **Expired** (`Expired`) state. If the release time that is scheduled for a disk arrives when a snapshot is being created for the disk, the snapshot is in the **Creating** (`Creating`) state and is deleted when the disk is released.
|
|
29767
29796
|
*
|
|
29768
29797
|
* @param request CreateSnapshotRequest
|
|
29769
29798
|
* @return CreateSnapshotResponse
|
|
29770
29799
|
*/
|
|
29771
29800
|
createSnapshot(request: CreateSnapshotRequest): Promise<CreateSnapshotResponse>;
|
|
29772
29801
|
/**
|
|
29773
|
-
*
|
|
29774
|
-
* You
|
|
29775
|
-
* > You cannot specify both `DiskId.N` and `ExcludeDiskId.N`. If `InstanceId` is set, you can use `DiskId.N` to specify only disks attached to the instance specified by InstanceId. You cannot use DiskId.N to specify disks attached to multiple instances.
|
|
29802
|
+
* You can specify `InstanceId` to create a snapshot-consistent group for the specified disks of the instance. You can also specify `DiskId.N` to create a snapshot-consistent group for multiple disks that are attached to multiple instances within the same zone.
|
|
29803
|
+
* > You cannot specify both `DiskId.N` and `ExcludeDiskId.N`. If `InstanceId` is specified, `DiskId.N` is only used to specify the disks that are attached to the instance specified by InstanceId.
|
|
29776
29804
|
* When you call this operation, take note of the following items:
|
|
29777
29805
|
* * The disk for which you want to create a snapshot must be in the **In Use** (`In_use`) or **Unattached** (`Available`) state.
|
|
29778
29806
|
* * If the disk is in the **In Use** (`In_use`) state, the instance to which the disk is attached must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
|
|
@@ -29780,7 +29808,7 @@ export default class Client extends OpenApi {
|
|
|
29780
29808
|
* * The snapshot-consistent group feature can be used to create snapshots only for enhanced SSDs (ESSDs).
|
|
29781
29809
|
* * A single snapshot-consistent group can contain snapshots of up to 16 disks including the system disk and data disks and cannot exceed 32 TiB in size.
|
|
29782
29810
|
* * Snapshots that you created by using the snapshot-consistent group feature are retained until they are deleted. We recommend that you delete unnecessary snapshots on a regular basis to prevent them from incurring excessive fees.
|
|
29783
|
-
* * Snapshot-consistent groups cannot be created for disks that have the multi-attach feature enabled. If disks that have the multi-attach feature enabled are attached to
|
|
29811
|
+
* * Snapshot-consistent groups cannot be created for disks that have the multi-attach feature enabled. If disks that have the multi-attach feature enabled are attached to the instance for which you want to create a snapshot-consistent group, you must set the `ExcludeDiskId.N` parameter to exclude these disks.
|
|
29784
29812
|
* For information about the snapshot-consistent group feature and its billing, see [Create a snapshot-consistent group](~~199625~~).
|
|
29785
29813
|
*
|
|
29786
29814
|
* @param request CreateSnapshotGroupRequest
|
|
@@ -29789,9 +29817,8 @@ export default class Client extends OpenApi {
|
|
|
29789
29817
|
*/
|
|
29790
29818
|
createSnapshotGroupWithOptions(request: CreateSnapshotGroupRequest, runtime: $Util.RuntimeOptions): Promise<CreateSnapshotGroupResponse>;
|
|
29791
29819
|
/**
|
|
29792
|
-
*
|
|
29793
|
-
* You
|
|
29794
|
-
* > You cannot specify both `DiskId.N` and `ExcludeDiskId.N`. If `InstanceId` is set, you can use `DiskId.N` to specify only disks attached to the instance specified by InstanceId. You cannot use DiskId.N to specify disks attached to multiple instances.
|
|
29820
|
+
* You can specify `InstanceId` to create a snapshot-consistent group for the specified disks of the instance. You can also specify `DiskId.N` to create a snapshot-consistent group for multiple disks that are attached to multiple instances within the same zone.
|
|
29821
|
+
* > You cannot specify both `DiskId.N` and `ExcludeDiskId.N`. If `InstanceId` is specified, `DiskId.N` is only used to specify the disks that are attached to the instance specified by InstanceId.
|
|
29795
29822
|
* When you call this operation, take note of the following items:
|
|
29796
29823
|
* * The disk for which you want to create a snapshot must be in the **In Use** (`In_use`) or **Unattached** (`Available`) state.
|
|
29797
29824
|
* * If the disk is in the **In Use** (`In_use`) state, the instance to which the disk is attached must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
|
|
@@ -29799,7 +29826,7 @@ export default class Client extends OpenApi {
|
|
|
29799
29826
|
* * The snapshot-consistent group feature can be used to create snapshots only for enhanced SSDs (ESSDs).
|
|
29800
29827
|
* * A single snapshot-consistent group can contain snapshots of up to 16 disks including the system disk and data disks and cannot exceed 32 TiB in size.
|
|
29801
29828
|
* * Snapshots that you created by using the snapshot-consistent group feature are retained until they are deleted. We recommend that you delete unnecessary snapshots on a regular basis to prevent them from incurring excessive fees.
|
|
29802
|
-
* * Snapshot-consistent groups cannot be created for disks that have the multi-attach feature enabled. If disks that have the multi-attach feature enabled are attached to
|
|
29829
|
+
* * Snapshot-consistent groups cannot be created for disks that have the multi-attach feature enabled. If disks that have the multi-attach feature enabled are attached to the instance for which you want to create a snapshot-consistent group, you must set the `ExcludeDiskId.N` parameter to exclude these disks.
|
|
29803
29830
|
* For information about the snapshot-consistent group feature and its billing, see [Create a snapshot-consistent group](~~199625~~).
|
|
29804
29831
|
*
|
|
29805
29832
|
* @param request CreateSnapshotGroupRequest
|
|
@@ -29807,7 +29834,6 @@ export default class Client extends OpenApi {
|
|
|
29807
29834
|
*/
|
|
29808
29835
|
createSnapshotGroup(request: CreateSnapshotGroupRequest): Promise<CreateSnapshotGroupResponse>;
|
|
29809
29836
|
/**
|
|
29810
|
-
* ## Description
|
|
29811
29837
|
* A storage set can distribute disks or Shared Block Storage devices to different locations. You can specify the number of partitions in a storage set. A larger number of partitions indicate more discrete distribution of disks or Shared Block Storage devices.
|
|
29812
29838
|
* When you call this operation, take note of the following items:
|
|
29813
29839
|
* * A limitation exists on the number of storage sets that you can create in a region. You can call the [DescribeAccountAttributes](~~73772~~) operation to query the allowed number of storage sets in a region.
|
|
@@ -29819,7 +29845,6 @@ export default class Client extends OpenApi {
|
|
|
29819
29845
|
*/
|
|
29820
29846
|
createStorageSetWithOptions(request: CreateStorageSetRequest, runtime: $Util.RuntimeOptions): Promise<CreateStorageSetResponse>;
|
|
29821
29847
|
/**
|
|
29822
|
-
* ## Description
|
|
29823
29848
|
* A storage set can distribute disks or Shared Block Storage devices to different locations. You can specify the number of partitions in a storage set. A larger number of partitions indicate more discrete distribution of disks or Shared Block Storage devices.
|
|
29824
29849
|
* When you call this operation, take note of the following items:
|
|
29825
29850
|
* * A limitation exists on the number of storage sets that you can create in a region. You can call the [DescribeAccountAttributes](~~73772~~) operation to query the allowed number of storage sets in a region.
|
|
@@ -30086,14 +30111,14 @@ export default class Client extends OpenApi {
|
|
|
30086
30111
|
*/
|
|
30087
30112
|
deleteInstance(request: DeleteInstanceRequest): Promise<DeleteInstanceResponse>;
|
|
30088
30113
|
/**
|
|
30089
|
-
* * After an instance is released, all the physical resources used by the instance are recycled. Relevant data is erased and cannot be
|
|
30114
|
+
* * After an instance is released, all the physical resources used by the instance are recycled. Relevant data is erased and cannot be recovered.
|
|
30090
30115
|
* * Disks attached to the instance:
|
|
30091
30116
|
* * The disks for which `DeleteWithInstance` is set to false are retained as pay-as-you-go disks.
|
|
30092
30117
|
* * The disks for which `DeleteWithInstance` is set to true are released along with the instance.
|
|
30093
30118
|
* * For disks for which `DeleteAutoSnapshot` is set to false, the automatic snapshots of the disks are retained.
|
|
30094
30119
|
* * For disks for which `DeleteAutoSnapshot` is set to true, the automatic snapshots of the disks are released.
|
|
30095
30120
|
* * Manual snapshots of the disks are retained.
|
|
30096
|
-
* * If `OperationLocks` in the
|
|
30121
|
+
* * If `OperationLocks` in the DescribeInstances response contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons. Even if the `DeleteWithInstance` parameter is set to `false` for the data disks that are attached to the instance, this parameter is ignored and the data disks are released along with the instance. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
|
|
30097
30122
|
*
|
|
30098
30123
|
* @param request DeleteInstancesRequest
|
|
30099
30124
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30101,14 +30126,14 @@ export default class Client extends OpenApi {
|
|
|
30101
30126
|
*/
|
|
30102
30127
|
deleteInstancesWithOptions(request: DeleteInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DeleteInstancesResponse>;
|
|
30103
30128
|
/**
|
|
30104
|
-
* * After an instance is released, all the physical resources used by the instance are recycled. Relevant data is erased and cannot be
|
|
30129
|
+
* * After an instance is released, all the physical resources used by the instance are recycled. Relevant data is erased and cannot be recovered.
|
|
30105
30130
|
* * Disks attached to the instance:
|
|
30106
30131
|
* * The disks for which `DeleteWithInstance` is set to false are retained as pay-as-you-go disks.
|
|
30107
30132
|
* * The disks for which `DeleteWithInstance` is set to true are released along with the instance.
|
|
30108
30133
|
* * For disks for which `DeleteAutoSnapshot` is set to false, the automatic snapshots of the disks are retained.
|
|
30109
30134
|
* * For disks for which `DeleteAutoSnapshot` is set to true, the automatic snapshots of the disks are released.
|
|
30110
30135
|
* * Manual snapshots of the disks are retained.
|
|
30111
|
-
* * If `OperationLocks` in the
|
|
30136
|
+
* * If `OperationLocks` in the DescribeInstances response contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons. Even if the `DeleteWithInstance` parameter is set to `false` for the data disks that are attached to the instance, this parameter is ignored and the data disks are released along with the instance. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
|
|
30112
30137
|
*
|
|
30113
30138
|
* @param request DeleteInstancesRequest
|
|
30114
30139
|
* @return DeleteInstancesResponse
|
|
@@ -30157,8 +30182,15 @@ export default class Client extends OpenApi {
|
|
|
30157
30182
|
* * The ENI must be in the Available state.
|
|
30158
30183
|
* * If the ENI is bound to an ECS instance, you must unbind the ENI from the ECS instance ([DetachNetworkInterface](~~58514~~)) before you can delete the ENI.
|
|
30159
30184
|
* * After an ENI is deleted:
|
|
30160
|
-
* *
|
|
30185
|
+
* * All the private IP addresses (including primary and secondary private IP addresses) of the ENI are automatically released.
|
|
30161
30186
|
* * The ENI is automatically removed from its security groups.
|
|
30187
|
+
* * This operation is an asynchronous operation. After this operation is called to delete an ENI, you can check the state or events of the ENI to determine whether the ENI is deleted. The following figure shows the transitions between the states of the ENI.
|
|
30188
|
+
*
|
|
30189
|
+
* 
|
|
30190
|
+
* * If the ENI is in the Deleting state, the ENI deletion request is sent and the ENI is being deleted.
|
|
30191
|
+
* * If the ENI is not found, the ENI is deleted.
|
|
30192
|
+
* * If the ENI is stuck in the Deleting state, the ENI fails to be deleted and you can re-initiate the request to delete the ENI.
|
|
30193
|
+
* For information about examples on how to call this operation, see [Delete an ENI](~~471553~~).
|
|
30162
30194
|
*
|
|
30163
30195
|
* @param request DeleteNetworkInterfaceRequest
|
|
30164
30196
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30170,8 +30202,15 @@ export default class Client extends OpenApi {
|
|
|
30170
30202
|
* * The ENI must be in the Available state.
|
|
30171
30203
|
* * If the ENI is bound to an ECS instance, you must unbind the ENI from the ECS instance ([DetachNetworkInterface](~~58514~~)) before you can delete the ENI.
|
|
30172
30204
|
* * After an ENI is deleted:
|
|
30173
|
-
* *
|
|
30205
|
+
* * All the private IP addresses (including primary and secondary private IP addresses) of the ENI are automatically released.
|
|
30174
30206
|
* * The ENI is automatically removed from its security groups.
|
|
30207
|
+
* * This operation is an asynchronous operation. After this operation is called to delete an ENI, you can check the state or events of the ENI to determine whether the ENI is deleted. The following figure shows the transitions between the states of the ENI.
|
|
30208
|
+
*
|
|
30209
|
+
* 
|
|
30210
|
+
* * If the ENI is in the Deleting state, the ENI deletion request is sent and the ENI is being deleted.
|
|
30211
|
+
* * If the ENI is not found, the ENI is deleted.
|
|
30212
|
+
* * If the ENI is stuck in the Deleting state, the ENI fails to be deleted and you can re-initiate the request to delete the ENI.
|
|
30213
|
+
* For information about examples on how to call this operation, see [Delete an ENI](~~471553~~).
|
|
30175
30214
|
*
|
|
30176
30215
|
* @param request DeleteNetworkInterfaceRequest
|
|
30177
30216
|
* @return DeleteNetworkInterfaceResponse
|
|
@@ -30270,11 +30309,10 @@ export default class Client extends OpenApi {
|
|
|
30270
30309
|
*/
|
|
30271
30310
|
deleteSecurityGroup(request: DeleteSecurityGroupRequest): Promise<DeleteSecurityGroupResponse>;
|
|
30272
30311
|
/**
|
|
30273
|
-
* ## Description
|
|
30274
30312
|
* When you call this operation, take note of the following items:
|
|
30275
|
-
* * If the specified snapshot
|
|
30276
|
-
* *
|
|
30277
|
-
* *
|
|
30313
|
+
* * If the specified snapshot does not exist, the request is ignored.
|
|
30314
|
+
* * If the specified snapshot has been used to create custom images, the snapshot cannot be deleted. You must call the [DeleteImage](~~25537~~) operation to delete the custom images before you can delete the snapshot.
|
|
30315
|
+
* * If the specified snapshot has been used to create disks and the `Force` parameter is not specified or is set to `false`, the snapshot cannot be deleted directly. If you want to delete the snapshot, set the `Force` parameter to true to forcefully delete the snapshot. The disks created from the snapshot cannot be re-initialized after the snapshot is forcefully deleted.
|
|
30278
30316
|
*
|
|
30279
30317
|
* @param request DeleteSnapshotRequest
|
|
30280
30318
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30282,11 +30320,10 @@ export default class Client extends OpenApi {
|
|
|
30282
30320
|
*/
|
|
30283
30321
|
deleteSnapshotWithOptions(request: DeleteSnapshotRequest, runtime: $Util.RuntimeOptions): Promise<DeleteSnapshotResponse>;
|
|
30284
30322
|
/**
|
|
30285
|
-
* ## Description
|
|
30286
30323
|
* When you call this operation, take note of the following items:
|
|
30287
|
-
* * If the specified snapshot
|
|
30288
|
-
* *
|
|
30289
|
-
* *
|
|
30324
|
+
* * If the specified snapshot does not exist, the request is ignored.
|
|
30325
|
+
* * If the specified snapshot has been used to create custom images, the snapshot cannot be deleted. You must call the [DeleteImage](~~25537~~) operation to delete the custom images before you can delete the snapshot.
|
|
30326
|
+
* * If the specified snapshot has been used to create disks and the `Force` parameter is not specified or is set to `false`, the snapshot cannot be deleted directly. If you want to delete the snapshot, set the `Force` parameter to true to forcefully delete the snapshot. The disks created from the snapshot cannot be re-initialized after the snapshot is forcefully deleted.
|
|
30290
30327
|
*
|
|
30291
30328
|
* @param request DeleteSnapshotRequest
|
|
30292
30329
|
* @return DeleteSnapshotResponse
|
|
@@ -30562,7 +30599,20 @@ export default class Client extends OpenApi {
|
|
|
30562
30599
|
* @return DescribeDemandsResponse
|
|
30563
30600
|
*/
|
|
30564
30601
|
describeDemands(request: DescribeDemandsRequest): Promise<DescribeDemandsResponse>;
|
|
30602
|
+
/**
|
|
30603
|
+
* For more information about instance families, see [Instance families](~~25378~~).
|
|
30604
|
+
*
|
|
30605
|
+
* @param request DescribeDeploymentSetSupportedInstanceTypeFamilyRequest
|
|
30606
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
30607
|
+
* @return DescribeDeploymentSetSupportedInstanceTypeFamilyResponse
|
|
30608
|
+
*/
|
|
30565
30609
|
describeDeploymentSetSupportedInstanceTypeFamilyWithOptions(request: DescribeDeploymentSetSupportedInstanceTypeFamilyRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDeploymentSetSupportedInstanceTypeFamilyResponse>;
|
|
30610
|
+
/**
|
|
30611
|
+
* For more information about instance families, see [Instance families](~~25378~~).
|
|
30612
|
+
*
|
|
30613
|
+
* @param request DescribeDeploymentSetSupportedInstanceTypeFamilyRequest
|
|
30614
|
+
* @return DescribeDeploymentSetSupportedInstanceTypeFamilyResponse
|
|
30615
|
+
*/
|
|
30566
30616
|
describeDeploymentSetSupportedInstanceTypeFamily(request: DescribeDeploymentSetSupportedInstanceTypeFamilyRequest): Promise<DescribeDeploymentSetSupportedInstanceTypeFamilyResponse>;
|
|
30567
30617
|
describeDeploymentSetsWithOptions(request: DescribeDeploymentSetsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDeploymentSetsResponse>;
|
|
30568
30618
|
describeDeploymentSets(request: DescribeDeploymentSetsRequest): Promise<DescribeDeploymentSetsResponse>;
|
|
@@ -30676,7 +30726,7 @@ export default class Client extends OpenApi {
|
|
|
30676
30726
|
*/
|
|
30677
30727
|
describeEipMonitorData(request: DescribeEipMonitorDataRequest): Promise<DescribeEipMonitorDataResponse>;
|
|
30678
30728
|
/**
|
|
30679
|
-
* When an elasticity assurance expires, data about the association between instances and the private pool generated by the elasticity assurance becomes invalid.
|
|
30729
|
+
* When an elasticity assurance expires, data about the association between instances and the private pool generated by the elasticity assurance becomes invalid. When you call this operation to query the expired elasticity assurance, no value is returned.
|
|
30680
30730
|
*
|
|
30681
30731
|
* @param request DescribeElasticityAssuranceInstancesRequest
|
|
30682
30732
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30684,7 +30734,7 @@ export default class Client extends OpenApi {
|
|
|
30684
30734
|
*/
|
|
30685
30735
|
describeElasticityAssuranceInstancesWithOptions(request: DescribeElasticityAssuranceInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeElasticityAssuranceInstancesResponse>;
|
|
30686
30736
|
/**
|
|
30687
|
-
* When an elasticity assurance expires, data about the association between instances and the private pool generated by the elasticity assurance becomes invalid.
|
|
30737
|
+
* When an elasticity assurance expires, data about the association between instances and the private pool generated by the elasticity assurance becomes invalid. When you call this operation to query the expired elasticity assurance, no value is returned.
|
|
30688
30738
|
*
|
|
30689
30739
|
* @param request DescribeElasticityAssuranceInstancesRequest
|
|
30690
30740
|
* @return DescribeElasticityAssuranceInstancesResponse
|
|
@@ -30692,7 +30742,26 @@ export default class Client extends OpenApi {
|
|
|
30692
30742
|
describeElasticityAssuranceInstances(request: DescribeElasticityAssuranceInstancesRequest): Promise<DescribeElasticityAssuranceInstancesResponse>;
|
|
30693
30743
|
describeElasticityAssurancesWithOptions(request: DescribeElasticityAssurancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeElasticityAssurancesResponse>;
|
|
30694
30744
|
describeElasticityAssurances(request: DescribeElasticityAssurancesRequest): Promise<DescribeElasticityAssurancesResponse>;
|
|
30745
|
+
/**
|
|
30746
|
+
* ## Description
|
|
30747
|
+
* The monitored data includes traffic sent and received over the internal network, the number of packets sent and received by the secondary ENI, and the number of dropped packets sent and received by the secondary ENI. Specific information may be missing from the returned monitored data. This is because the system cannot obtain the relevant information. For example, if the instance to which the secondary ENI is bound is in the Stopped state, or if the secondary ENI is not bound to an instance and is in the Available state, the monitored data of the secondary ENI cannot be obtained. When you call this operation, take note of the following items:
|
|
30748
|
+
* * Up to 400 monitored data entries can be returned at a time. If the value calculated by using the (EndTime - StartTime)/Period formula is greater than 400, an error is returned.
|
|
30749
|
+
* * Only the monitored data within the last 30 days can be queried. If the value of the StartTime parameter is earlier than 30 days from the time when you call this operation, an error is returned.
|
|
30750
|
+
*
|
|
30751
|
+
* @param request DescribeEniMonitorDataRequest
|
|
30752
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
30753
|
+
* @return DescribeEniMonitorDataResponse
|
|
30754
|
+
*/
|
|
30695
30755
|
describeEniMonitorDataWithOptions(request: DescribeEniMonitorDataRequest, runtime: $Util.RuntimeOptions): Promise<DescribeEniMonitorDataResponse>;
|
|
30756
|
+
/**
|
|
30757
|
+
* ## Description
|
|
30758
|
+
* The monitored data includes traffic sent and received over the internal network, the number of packets sent and received by the secondary ENI, and the number of dropped packets sent and received by the secondary ENI. Specific information may be missing from the returned monitored data. This is because the system cannot obtain the relevant information. For example, if the instance to which the secondary ENI is bound is in the Stopped state, or if the secondary ENI is not bound to an instance and is in the Available state, the monitored data of the secondary ENI cannot be obtained. When you call this operation, take note of the following items:
|
|
30759
|
+
* * Up to 400 monitored data entries can be returned at a time. If the value calculated by using the (EndTime - StartTime)/Period formula is greater than 400, an error is returned.
|
|
30760
|
+
* * Only the monitored data within the last 30 days can be queried. If the value of the StartTime parameter is earlier than 30 days from the time when you call this operation, an error is returned.
|
|
30761
|
+
*
|
|
30762
|
+
* @param request DescribeEniMonitorDataRequest
|
|
30763
|
+
* @return DescribeEniMonitorDataResponse
|
|
30764
|
+
*/
|
|
30696
30765
|
describeEniMonitorData(request: DescribeEniMonitorDataRequest): Promise<DescribeEniMonitorDataResponse>;
|
|
30697
30766
|
/**
|
|
30698
30767
|
* @deprecated
|
|
@@ -30799,9 +30868,10 @@ export default class Client extends OpenApi {
|
|
|
30799
30868
|
describeImageSupportInstanceTypesWithOptions(request: DescribeImageSupportInstanceTypesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImageSupportInstanceTypesResponse>;
|
|
30800
30869
|
describeImageSupportInstanceTypes(request: DescribeImageSupportInstanceTypesRequest): Promise<DescribeImageSupportInstanceTypesResponse>;
|
|
30801
30870
|
/**
|
|
30802
|
-
*
|
|
30803
|
-
* *
|
|
30804
|
-
* *
|
|
30871
|
+
* ## Description
|
|
30872
|
+
* * You can query public images provided by Alibaba Cloud, Alibaba Cloud Marketplace images, custom images in your repository, and shared images from other Alibaba Cloud accounts.
|
|
30873
|
+
* * This is a paginated query. The response contains the total number of available images and the images on the returned page. By default, 10 entries are displayed on each page.
|
|
30874
|
+
* * When you call an API operation by using Alibaba Cloud CLI, you must specify request parameter values of different data types in required formats. For more information, see [Parameter format overview](~~110340~~).
|
|
30805
30875
|
*
|
|
30806
30876
|
* @param request DescribeImagesRequest
|
|
30807
30877
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30809,9 +30879,10 @@ export default class Client extends OpenApi {
|
|
|
30809
30879
|
*/
|
|
30810
30880
|
describeImagesWithOptions(request: DescribeImagesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImagesResponse>;
|
|
30811
30881
|
/**
|
|
30812
|
-
*
|
|
30813
|
-
* *
|
|
30814
|
-
* *
|
|
30882
|
+
* ## Description
|
|
30883
|
+
* * You can query public images provided by Alibaba Cloud, Alibaba Cloud Marketplace images, custom images in your repository, and shared images from other Alibaba Cloud accounts.
|
|
30884
|
+
* * This is a paginated query. The response contains the total number of available images and the images on the returned page. By default, 10 entries are displayed on each page.
|
|
30885
|
+
* * When you call an API operation by using Alibaba Cloud CLI, you must specify request parameter values of different data types in required formats. For more information, see [Parameter format overview](~~110340~~).
|
|
30815
30886
|
*
|
|
30816
30887
|
* @param request DescribeImagesRequest
|
|
30817
30888
|
* @return DescribeImagesResponse
|
|
@@ -30834,20 +30905,7 @@ export default class Client extends OpenApi {
|
|
|
30834
30905
|
* @return DescribeInstanceAttachmentAttributesResponse
|
|
30835
30906
|
*/
|
|
30836
30907
|
describeInstanceAttachmentAttributes(request: DescribeInstanceAttachmentAttributesRequest): Promise<DescribeInstanceAttachmentAttributesResponse>;
|
|
30837
|
-
/**
|
|
30838
|
-
* @deprecated
|
|
30839
|
-
*
|
|
30840
|
-
* @param request DescribeInstanceAttributeRequest
|
|
30841
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
30842
|
-
* @return DescribeInstanceAttributeResponse
|
|
30843
|
-
*/
|
|
30844
30908
|
describeInstanceAttributeWithOptions(request: DescribeInstanceAttributeRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstanceAttributeResponse>;
|
|
30845
|
-
/**
|
|
30846
|
-
* @deprecated
|
|
30847
|
-
*
|
|
30848
|
-
* @param request DescribeInstanceAttributeRequest
|
|
30849
|
-
* @return DescribeInstanceAttributeResponse
|
|
30850
|
-
*/
|
|
30851
30909
|
describeInstanceAttribute(request: DescribeInstanceAttributeRequest): Promise<DescribeInstanceAttributeResponse>;
|
|
30852
30910
|
/**
|
|
30853
30911
|
* * Before you configure auto-renewal or manual renewal for subscription instances, you can query the auto-renewal status of the instances.
|
|
@@ -30867,6 +30925,7 @@ export default class Client extends OpenApi {
|
|
|
30867
30925
|
*/
|
|
30868
30926
|
describeInstanceAutoRenewAttribute(request: DescribeInstanceAutoRenewAttributeRequest): Promise<DescribeInstanceAutoRenewAttributeResponse>;
|
|
30869
30927
|
/**
|
|
30928
|
+
* ## Description
|
|
30870
30929
|
* * You can query system events that were finished within the last 30 days. The time range for querying unfinished system events is unlimited.
|
|
30871
30930
|
* * You can also specify the InstanceEventCycleStatus.N parameter to query the system events that are in the Scheduled, Executing, or Inquiring state.
|
|
30872
30931
|
*
|
|
@@ -30876,6 +30935,7 @@ export default class Client extends OpenApi {
|
|
|
30876
30935
|
*/
|
|
30877
30936
|
describeInstanceHistoryEventsWithOptions(request: DescribeInstanceHistoryEventsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstanceHistoryEventsResponse>;
|
|
30878
30937
|
/**
|
|
30938
|
+
* ## Description
|
|
30879
30939
|
* * You can query system events that were finished within the last 30 days. The time range for querying unfinished system events is unlimited.
|
|
30880
30940
|
* * You can also specify the InstanceEventCycleStatus.N parameter to query the system events that are in the Scheduled, Executing, or Inquiring state.
|
|
30881
30941
|
*
|
|
@@ -30886,7 +30946,7 @@ export default class Client extends OpenApi {
|
|
|
30886
30946
|
/**
|
|
30887
30947
|
* This operation is used to query the specified maintenance policy of an instance, which contains the following maintenance attributes:
|
|
30888
30948
|
* * Maintenance window: the time period that you specify for maintenance.
|
|
30889
|
-
* * Maintenance action: the
|
|
30949
|
+
* * Maintenance action: the policy that you specify in response to instance shutdown.
|
|
30890
30950
|
*
|
|
30891
30951
|
* @param request DescribeInstanceMaintenanceAttributesRequest
|
|
30892
30952
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30896,7 +30956,7 @@ export default class Client extends OpenApi {
|
|
|
30896
30956
|
/**
|
|
30897
30957
|
* This operation is used to query the specified maintenance policy of an instance, which contains the following maintenance attributes:
|
|
30898
30958
|
* * Maintenance window: the time period that you specify for maintenance.
|
|
30899
|
-
* * Maintenance action: the
|
|
30959
|
+
* * Maintenance action: the policy that you specify in response to instance shutdown.
|
|
30900
30960
|
*
|
|
30901
30961
|
* @param request DescribeInstanceMaintenanceAttributesRequest
|
|
30902
30962
|
* @return DescribeInstanceMaintenanceAttributesResponse
|
|
@@ -31033,7 +31093,50 @@ export default class Client extends OpenApi {
|
|
|
31033
31093
|
* @return DescribeInstanceVncPasswdResponse
|
|
31034
31094
|
*/
|
|
31035
31095
|
describeInstanceVncPasswd(request: DescribeInstanceVncPasswdRequest): Promise<DescribeInstanceVncPasswdResponse>;
|
|
31096
|
+
/**
|
|
31097
|
+
* When you call this operation, take note of the following items:
|
|
31098
|
+
* * The URL returned is valid only for 15 seconds. If a connection is not established within 15 seconds after a successful query, the URL expires and you must query it again.
|
|
31099
|
+
* * The **KeepAlive** time of a connection to a VNC management terminal is 60 seconds. If you do not interact with the VNC management terminal within 60 seconds, the VNC management terminal is automatically disconnected.
|
|
31100
|
+
* * When the VNC management terminal is disconnected, you can only reconnect to the VNC management terminal up to 30 times a minute.
|
|
31101
|
+
* * You need to add `vncUrl`, `instanceId`, `isWindows`, and `password` parameters at the end of the URL `https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?`. Separate each parameter with an ampersand (`&`).`` Where,
|
|
31102
|
+
* * `vncUrl:` the `VncUrl` value returned after a successful query.
|
|
31103
|
+
* * `instanceId:` the ID of your instance.
|
|
31104
|
+
* * `isWindows:` specifies whether the operating system of the instance is Windows. Set the parameter to `true` if the operating system is Windows. Set the parameter to `false` if the operating system is not Windows.
|
|
31105
|
+
* * `password:` Optional. A six-character password used to connect to the VNC management terminal. It can contain digits and letters. You do not need to enter your password again when the connection is being established if you set this parameter.
|
|
31106
|
+
* Example:
|
|
31107
|
+
* ```
|
|
31108
|
+
* ```
|
|
31109
|
+
* <https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%\\\\*\\\\*\\\\*\\\\*&instanceId=i-wz9hhwq5a6tm\\\\*\\\\*\\\\*\\\\*&isWindows=true> \\`\\`\\`
|
|
31110
|
+
* or:
|
|
31111
|
+
* ```
|
|
31112
|
+
* <https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%\\\\*\\\\*\\\\*\\\\*&instanceId=i-wz9hhwq5a6tm\\\\*\\\\*\\\\*\\\\*&isWindows=true&password=\\\\*\\\\*\\\\*\\\\>\\* \\`\\`\\`
|
|
31113
|
+
*
|
|
31114
|
+
* @param request DescribeInstanceVncUrlRequest
|
|
31115
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
31116
|
+
* @return DescribeInstanceVncUrlResponse
|
|
31117
|
+
*/
|
|
31036
31118
|
describeInstanceVncUrlWithOptions(request: DescribeInstanceVncUrlRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstanceVncUrlResponse>;
|
|
31119
|
+
/**
|
|
31120
|
+
* When you call this operation, take note of the following items:
|
|
31121
|
+
* * The URL returned is valid only for 15 seconds. If a connection is not established within 15 seconds after a successful query, the URL expires and you must query it again.
|
|
31122
|
+
* * The **KeepAlive** time of a connection to a VNC management terminal is 60 seconds. If you do not interact with the VNC management terminal within 60 seconds, the VNC management terminal is automatically disconnected.
|
|
31123
|
+
* * When the VNC management terminal is disconnected, you can only reconnect to the VNC management terminal up to 30 times a minute.
|
|
31124
|
+
* * You need to add `vncUrl`, `instanceId`, `isWindows`, and `password` parameters at the end of the URL `https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?`. Separate each parameter with an ampersand (`&`).`` Where,
|
|
31125
|
+
* * `vncUrl:` the `VncUrl` value returned after a successful query.
|
|
31126
|
+
* * `instanceId:` the ID of your instance.
|
|
31127
|
+
* * `isWindows:` specifies whether the operating system of the instance is Windows. Set the parameter to `true` if the operating system is Windows. Set the parameter to `false` if the operating system is not Windows.
|
|
31128
|
+
* * `password:` Optional. A six-character password used to connect to the VNC management terminal. It can contain digits and letters. You do not need to enter your password again when the connection is being established if you set this parameter.
|
|
31129
|
+
* Example:
|
|
31130
|
+
* ```
|
|
31131
|
+
* ```
|
|
31132
|
+
* <https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%\\\\*\\\\*\\\\*\\\\*&instanceId=i-wz9hhwq5a6tm\\\\*\\\\*\\\\*\\\\*&isWindows=true> \\`\\`\\`
|
|
31133
|
+
* or:
|
|
31134
|
+
* ```
|
|
31135
|
+
* <https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%\\\\*\\\\*\\\\*\\\\*&instanceId=i-wz9hhwq5a6tm\\\\*\\\\*\\\\*\\\\*&isWindows=true&password=\\\\*\\\\*\\\\*\\\\>\\* \\`\\`\\`
|
|
31136
|
+
*
|
|
31137
|
+
* @param request DescribeInstanceVncUrlRequest
|
|
31138
|
+
* @return DescribeInstanceVncUrlResponse
|
|
31139
|
+
*/
|
|
31037
31140
|
describeInstanceVncUrl(request: DescribeInstanceVncUrlRequest): Promise<DescribeInstanceVncUrlResponse>;
|
|
31038
31141
|
/**
|
|
31039
31142
|
* * You can specify multiple request parameters to be queried. Specified 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, it is regarded as a valid filter condition and an empty result is returned.
|
|
@@ -31062,12 +31165,26 @@ export default class Client extends OpenApi {
|
|
|
31062
31165
|
* @return DescribeInstancesResponse
|
|
31063
31166
|
*/
|
|
31064
31167
|
describeInstances(request: DescribeInstancesRequest): Promise<DescribeInstancesResponse>;
|
|
31168
|
+
/**
|
|
31169
|
+
* The response includes instance states and instance system events in the Scheduled state.
|
|
31170
|
+
* If a period is specified, events are queried based on the specified period.
|
|
31171
|
+
*
|
|
31172
|
+
* @param request DescribeInstancesFullStatusRequest
|
|
31173
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
31174
|
+
* @return DescribeInstancesFullStatusResponse
|
|
31175
|
+
*/
|
|
31065
31176
|
describeInstancesFullStatusWithOptions(request: DescribeInstancesFullStatusRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstancesFullStatusResponse>;
|
|
31177
|
+
/**
|
|
31178
|
+
* The response includes instance states and instance system events in the Scheduled state.
|
|
31179
|
+
* If a period is specified, events are queried based on the specified period.
|
|
31180
|
+
*
|
|
31181
|
+
* @param request DescribeInstancesFullStatusRequest
|
|
31182
|
+
* @return DescribeInstancesFullStatusResponse
|
|
31183
|
+
*/
|
|
31066
31184
|
describeInstancesFullStatus(request: DescribeInstancesFullStatusRequest): Promise<DescribeInstancesFullStatusResponse>;
|
|
31067
31185
|
/**
|
|
31068
|
-
* ## Description
|
|
31069
31186
|
* * After you run a command, the command may not succeed or return the expected results. You can call this operation to query the actual execution results.
|
|
31070
|
-
* * You can query
|
|
31187
|
+
* * You can query information about command executions within the last four weeks. A maximum of 100,000 pieces of execution information can be retained.
|
|
31071
31188
|
*
|
|
31072
31189
|
* @param request DescribeInvocationResultsRequest
|
|
31073
31190
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -31075,9 +31192,8 @@ export default class Client extends OpenApi {
|
|
|
31075
31192
|
*/
|
|
31076
31193
|
describeInvocationResultsWithOptions(request: DescribeInvocationResultsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInvocationResultsResponse>;
|
|
31077
31194
|
/**
|
|
31078
|
-
* ## Description
|
|
31079
31195
|
* * After you run a command, the command may not succeed or return the expected results. You can call this operation to query the actual execution results.
|
|
31080
|
-
* * You can query
|
|
31196
|
+
* * You can query information about command executions within the last four weeks. A maximum of 100,000 pieces of execution information can be retained.
|
|
31081
31197
|
*
|
|
31082
31198
|
* @param request DescribeInvocationResultsRequest
|
|
31083
31199
|
* @return DescribeInvocationResultsResponse
|
|
@@ -31210,7 +31326,38 @@ export default class Client extends OpenApi {
|
|
|
31210
31326
|
* @return DescribePrefixListsResponse
|
|
31211
31327
|
*/
|
|
31212
31328
|
describePrefixLists(request: DescribePrefixListsRequest): Promise<DescribePrefixListsResponse>;
|
|
31329
|
+
/**
|
|
31330
|
+
* ## Description
|
|
31331
|
+
* * The required parameters vary based on the types of resources whose prices you want to query.
|
|
31332
|
+
* * When the `ResourceType` parameter is set to instance, you must specify the `InstanceType` parameter.
|
|
31333
|
+
* * When the `ResourceType` parameter is set to disk, you must specify both the `DataDisk.1.Category` and `DataDisk.1.Size` parameters. When the `ResourceType` parameter is set to disk, only pay-as-you-go prices of cloud disks are returned. In this scenario, the `PriceUnit` parameter must be set to `Hour`.
|
|
31334
|
+
* * When the `ResourceType` parameter is set to ddh, you must specify the `DedicatedHostType` parameter.
|
|
31335
|
+
* * When the `ResourceType` parameter is set to ElasticityAssurance, you must specify the `InstanceType` parameter.
|
|
31336
|
+
* * When the `ResourceType` parameter is set to CapacityReservation, you must specify the `InstanceType` parameter.
|
|
31337
|
+
* * When the `ResourceType` parameter is set to bandwidth, only the pay-by-traffic (`PayByTraffic`) price for network usage is returned.
|
|
31338
|
+
* * When the `ResourceType` parameter is set to instance, the prices of up to four data disks can be queried.
|
|
31339
|
+
* * By default, the `ChargeType` parameter is set to `PostPaid`. You can specify the `PriceUnit` parameter to query the prices of ECS resources that have different billing cycles.
|
|
31340
|
+
*
|
|
31341
|
+
* @param request DescribePriceRequest
|
|
31342
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
31343
|
+
* @return DescribePriceResponse
|
|
31344
|
+
*/
|
|
31213
31345
|
describePriceWithOptions(request: DescribePriceRequest, runtime: $Util.RuntimeOptions): Promise<DescribePriceResponse>;
|
|
31346
|
+
/**
|
|
31347
|
+
* ## Description
|
|
31348
|
+
* * The required parameters vary based on the types of resources whose prices you want to query.
|
|
31349
|
+
* * When the `ResourceType` parameter is set to instance, you must specify the `InstanceType` parameter.
|
|
31350
|
+
* * When the `ResourceType` parameter is set to disk, you must specify both the `DataDisk.1.Category` and `DataDisk.1.Size` parameters. When the `ResourceType` parameter is set to disk, only pay-as-you-go prices of cloud disks are returned. In this scenario, the `PriceUnit` parameter must be set to `Hour`.
|
|
31351
|
+
* * When the `ResourceType` parameter is set to ddh, you must specify the `DedicatedHostType` parameter.
|
|
31352
|
+
* * When the `ResourceType` parameter is set to ElasticityAssurance, you must specify the `InstanceType` parameter.
|
|
31353
|
+
* * When the `ResourceType` parameter is set to CapacityReservation, you must specify the `InstanceType` parameter.
|
|
31354
|
+
* * When the `ResourceType` parameter is set to bandwidth, only the pay-by-traffic (`PayByTraffic`) price for network usage is returned.
|
|
31355
|
+
* * When the `ResourceType` parameter is set to instance, the prices of up to four data disks can be queried.
|
|
31356
|
+
* * By default, the `ChargeType` parameter is set to `PostPaid`. You can specify the `PriceUnit` parameter to query the prices of ECS resources that have different billing cycles.
|
|
31357
|
+
*
|
|
31358
|
+
* @param request DescribePriceRequest
|
|
31359
|
+
* @return DescribePriceResponse
|
|
31360
|
+
*/
|
|
31214
31361
|
describePrice(request: DescribePriceRequest): Promise<DescribePriceResponse>;
|
|
31215
31362
|
describeRecommendInstanceTypeWithOptions(request: DescribeRecommendInstanceTypeRequest, runtime: $Util.RuntimeOptions): Promise<DescribeRecommendInstanceTypeResponse>;
|
|
31216
31363
|
describeRecommendInstanceType(request: DescribeRecommendInstanceTypeRequest): Promise<DescribeRecommendInstanceTypeResponse>;
|
|
@@ -31315,9 +31462,9 @@ export default class Client extends OpenApi {
|
|
|
31315
31462
|
describeSecurityGroupReferences(request: DescribeSecurityGroupReferencesRequest): Promise<DescribeSecurityGroupReferencesResponse>;
|
|
31316
31463
|
/**
|
|
31317
31464
|
* Before you call this operation, take note of the following items:
|
|
31318
|
-
* * The basic information of security groups includes
|
|
31319
|
-
* * We recommend that you use the NextToken and MaxResults parameters for a paged query.
|
|
31320
|
-
* * When you use Alibaba Cloud CLI to call an API operation, you must specify request parameter values of different data types in required formats. For more information, see [Parameter format overview](~~110340~~).
|
|
31465
|
+
* * The basic information of security groups includes the IDs and descriptions. The response returns security groups in descending order based on their IDs.
|
|
31466
|
+
* * We recommend that you use the NextToken and MaxResults parameters for a paged query. We recommend that you use the MaxResults parameter to specify the maximum number of entries to return in each request. The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you perform the next request, set the NextToken parameter to the NextToken value that is returned in the previous call and use the MaxResults parameter to specify the maximum number of entries to return in this request. If the returned value of the NextToken parameter is empty, the current page of results is the last page and no more results are to be returned.
|
|
31467
|
+
* * When you use Alibaba Cloud CLI to call an API operation, you must specify request parameter values of different data types in the required formats. For more information, see [Parameter format overview](~~110340~~).
|
|
31321
31468
|
*
|
|
31322
31469
|
* @param request DescribeSecurityGroupsRequest
|
|
31323
31470
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -31326,9 +31473,9 @@ export default class Client extends OpenApi {
|
|
|
31326
31473
|
describeSecurityGroupsWithOptions(request: DescribeSecurityGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSecurityGroupsResponse>;
|
|
31327
31474
|
/**
|
|
31328
31475
|
* Before you call this operation, take note of the following items:
|
|
31329
|
-
* * The basic information of security groups includes
|
|
31330
|
-
* * We recommend that you use the NextToken and MaxResults parameters for a paged query.
|
|
31331
|
-
* * When you use Alibaba Cloud CLI to call an API operation, you must specify request parameter values of different data types in required formats. For more information, see [Parameter format overview](~~110340~~).
|
|
31476
|
+
* * The basic information of security groups includes the IDs and descriptions. The response returns security groups in descending order based on their IDs.
|
|
31477
|
+
* * We recommend that you use the NextToken and MaxResults parameters for a paged query. We recommend that you use the MaxResults parameter to specify the maximum number of entries to return in each request. The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you perform the next request, set the NextToken parameter to the NextToken value that is returned in the previous call and use the MaxResults parameter to specify the maximum number of entries to return in this request. If the returned value of the NextToken parameter is empty, the current page of results is the last page and no more results are to be returned.
|
|
31478
|
+
* * When you use Alibaba Cloud CLI to call an API operation, you must specify request parameter values of different data types in the required formats. For more information, see [Parameter format overview](~~110340~~).
|
|
31332
31479
|
*
|
|
31333
31480
|
* @param request DescribeSecurityGroupsRequest
|
|
31334
31481
|
* @return DescribeSecurityGroupsResponse
|
|
@@ -31354,7 +31501,6 @@ export default class Client extends OpenApi {
|
|
|
31354
31501
|
*/
|
|
31355
31502
|
describeSendFileResults(request: DescribeSendFileResultsRequest): Promise<DescribeSendFileResultsResponse>;
|
|
31356
31503
|
/**
|
|
31357
|
-
* ## Description
|
|
31358
31504
|
* You can specify multiple request parameters such as `InstanceId`, `SnapshotGroupId.N`, and `Status.N` to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
|
|
31359
31505
|
*
|
|
31360
31506
|
* @param request DescribeSnapshotGroupsRequest
|
|
@@ -31363,7 +31509,6 @@ export default class Client extends OpenApi {
|
|
|
31363
31509
|
*/
|
|
31364
31510
|
describeSnapshotGroupsWithOptions(request: DescribeSnapshotGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSnapshotGroupsResponse>;
|
|
31365
31511
|
/**
|
|
31366
|
-
* ## Description
|
|
31367
31512
|
* You can specify multiple request parameters such as `InstanceId`, `SnapshotGroupId.N`, and `Status.N` to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
|
|
31368
31513
|
*
|
|
31369
31514
|
* @param request DescribeSnapshotGroupsRequest
|
|
@@ -31411,6 +31556,7 @@ export default class Client extends OpenApi {
|
|
|
31411
31556
|
describeSnapshotPackageWithOptions(request: DescribeSnapshotPackageRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSnapshotPackageResponse>;
|
|
31412
31557
|
describeSnapshotPackage(request: DescribeSnapshotPackageRequest): Promise<DescribeSnapshotPackageResponse>;
|
|
31413
31558
|
/**
|
|
31559
|
+
* ## Description
|
|
31414
31560
|
* You can specify multiple request parameters such as `InstanceId`, `DiskId`, and `SnapshotIds` to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
|
|
31415
31561
|
* When you use Alibaba Cloud CLI to call an API operation, you must specify request parameter values of different data types in required formats. For more information, see [Parameter format overview](~~110340~~).
|
|
31416
31562
|
*
|
|
@@ -31420,6 +31566,7 @@ export default class Client extends OpenApi {
|
|
|
31420
31566
|
*/
|
|
31421
31567
|
describeSnapshotsWithOptions(request: DescribeSnapshotsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSnapshotsResponse>;
|
|
31422
31568
|
/**
|
|
31569
|
+
* ## Description
|
|
31423
31570
|
* You can specify multiple request parameters such as `InstanceId`, `DiskId`, and `SnapshotIds` to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
|
|
31424
31571
|
* When you use Alibaba Cloud CLI to call an API operation, you must specify request parameter values of different data types in required formats. For more information, see [Parameter format overview](~~110340~~).
|
|
31425
31572
|
*
|
|
@@ -31443,15 +31590,15 @@ export default class Client extends OpenApi {
|
|
|
31443
31590
|
*/
|
|
31444
31591
|
describeSnapshotsUsage(request: DescribeSnapshotsUsageRequest): Promise<DescribeSnapshotsUsageResponse>;
|
|
31445
31592
|
/**
|
|
31446
|
-
* *
|
|
31447
|
-
* *
|
|
31448
|
-
* *
|
|
31449
|
-
* *
|
|
31450
|
-
* *
|
|
31451
|
-
* *
|
|
31452
|
-
* *
|
|
31453
|
-
* *
|
|
31454
|
-
* *
|
|
31593
|
+
* * You can call this operation to query information that is generated for preemptible instances in the last 30 days and select suitable instance types based on the returned results. The information that you can query by calling this operation includes:
|
|
31594
|
+
* * Average release rate of preemptible instances.
|
|
31595
|
+
* * The discount rate of the average preemptible instance price relative to the pay-as-you-go instance price.
|
|
31596
|
+
* * Average preemptible instance price that is calculated based on the preceding percentage.
|
|
31597
|
+
* * This operation is applicable only to I/O optimized preemptible instances that are located in virtual private clouds (VPCs).
|
|
31598
|
+
* * You can use one of the following methods to specify instance types:
|
|
31599
|
+
* * Set the `Cores` and `Memory` parameters or the `MinCores` and `MinMemory` parameters to query information of instance types that have the specified number of vCPUs and memory size.
|
|
31600
|
+
* * Set the `InstanceTypes.N parameter` to query information of the specified instance types.
|
|
31601
|
+
* * Set the `Cores` and `Memory` parameters or the `MinCores` and `MinMemory` parameters, and set the `InstanceTypeFamily` or `InstanceFamilyLevel` parameter to query information of the instance types that have the specified number of vCPUs and memory size within the specified instance family or at the specified instance family level.
|
|
31455
31602
|
*
|
|
31456
31603
|
* @param request DescribeSpotAdviceRequest
|
|
31457
31604
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -31459,15 +31606,15 @@ export default class Client extends OpenApi {
|
|
|
31459
31606
|
*/
|
|
31460
31607
|
describeSpotAdviceWithOptions(request: DescribeSpotAdviceRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSpotAdviceResponse>;
|
|
31461
31608
|
/**
|
|
31462
|
-
* *
|
|
31463
|
-
* *
|
|
31464
|
-
* *
|
|
31465
|
-
* *
|
|
31466
|
-
* *
|
|
31467
|
-
* *
|
|
31468
|
-
* *
|
|
31469
|
-
* *
|
|
31470
|
-
* *
|
|
31609
|
+
* * You can call this operation to query information that is generated for preemptible instances in the last 30 days and select suitable instance types based on the returned results. The information that you can query by calling this operation includes:
|
|
31610
|
+
* * Average release rate of preemptible instances.
|
|
31611
|
+
* * The discount rate of the average preemptible instance price relative to the pay-as-you-go instance price.
|
|
31612
|
+
* * Average preemptible instance price that is calculated based on the preceding percentage.
|
|
31613
|
+
* * This operation is applicable only to I/O optimized preemptible instances that are located in virtual private clouds (VPCs).
|
|
31614
|
+
* * You can use one of the following methods to specify instance types:
|
|
31615
|
+
* * Set the `Cores` and `Memory` parameters or the `MinCores` and `MinMemory` parameters to query information of instance types that have the specified number of vCPUs and memory size.
|
|
31616
|
+
* * Set the `InstanceTypes.N parameter` to query information of the specified instance types.
|
|
31617
|
+
* * Set the `Cores` and `Memory` parameters or the `MinCores` and `MinMemory` parameters, and set the `InstanceTypeFamily` or `InstanceFamilyLevel` parameter to query information of the instance types that have the specified number of vCPUs and memory size within the specified instance family or at the specified instance family level.
|
|
31471
31618
|
*
|
|
31472
31619
|
* @param request DescribeSpotAdviceRequest
|
|
31473
31620
|
* @return DescribeSpotAdviceResponse
|
|
@@ -31609,11 +31756,47 @@ export default class Client extends OpenApi {
|
|
|
31609
31756
|
* @return DescribeVpcsResponse
|
|
31610
31757
|
*/
|
|
31611
31758
|
describeVpcs(request: DescribeVpcsRequest): Promise<DescribeVpcsResponse>;
|
|
31759
|
+
/**
|
|
31760
|
+
* When you call this operation, only a list of zones and some resource information of each zone are returned. If you want to query instance types and disk categories that are available for purchase in a specific zone, we recommend that you call the [DescribeAvailableResource](~~66186~~) operation.
|
|
31761
|
+
*
|
|
31762
|
+
* @param request DescribeZonesRequest
|
|
31763
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
31764
|
+
* @return DescribeZonesResponse
|
|
31765
|
+
*/
|
|
31612
31766
|
describeZonesWithOptions(request: DescribeZonesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeZonesResponse>;
|
|
31767
|
+
/**
|
|
31768
|
+
* When you call this operation, only a list of zones and some resource information of each zone are returned. If you want to query instance types and disk categories that are available for purchase in a specific zone, we recommend that you call the [DescribeAvailableResource](~~66186~~) operation.
|
|
31769
|
+
*
|
|
31770
|
+
* @param request DescribeZonesRequest
|
|
31771
|
+
* @return DescribeZonesResponse
|
|
31772
|
+
*/
|
|
31613
31773
|
describeZones(request: DescribeZonesRequest): Promise<DescribeZonesResponse>;
|
|
31614
31774
|
detachClassicLinkVpcWithOptions(request: DetachClassicLinkVpcRequest, runtime: $Util.RuntimeOptions): Promise<DetachClassicLinkVpcResponse>;
|
|
31615
31775
|
detachClassicLinkVpc(request: DetachClassicLinkVpcRequest): Promise<DetachClassicLinkVpcResponse>;
|
|
31776
|
+
/**
|
|
31777
|
+
* When you call this operation, take note of the following items:
|
|
31778
|
+
* * The disk you want to detach must be in the `In_Use` state.
|
|
31779
|
+
* * The instance from which you want to detach a data disk must be in the `Running` or `Stopped`state.********
|
|
31780
|
+
* * The instance from which you want to detach the system disk must be in the `Stopped` state.****
|
|
31781
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.``
|
|
31782
|
+
* * DetachDisk is an asynchronous operation. It takes about one minute for a disk to be detached from an instance after the operation is called.
|
|
31783
|
+
*
|
|
31784
|
+
* @param request DetachDiskRequest
|
|
31785
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
31786
|
+
* @return DetachDiskResponse
|
|
31787
|
+
*/
|
|
31616
31788
|
detachDiskWithOptions(request: DetachDiskRequest, runtime: $Util.RuntimeOptions): Promise<DetachDiskResponse>;
|
|
31789
|
+
/**
|
|
31790
|
+
* When you call this operation, take note of the following items:
|
|
31791
|
+
* * The disk you want to detach must be in the `In_Use` state.
|
|
31792
|
+
* * The instance from which you want to detach a data disk must be in the `Running` or `Stopped`state.********
|
|
31793
|
+
* * The instance from which you want to detach the system disk must be in the `Stopped` state.****
|
|
31794
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.``
|
|
31795
|
+
* * DetachDisk is an asynchronous operation. It takes about one minute for a disk to be detached from an instance after the operation is called.
|
|
31796
|
+
*
|
|
31797
|
+
* @param request DetachDiskRequest
|
|
31798
|
+
* @return DetachDiskResponse
|
|
31799
|
+
*/
|
|
31617
31800
|
detachDisk(request: DetachDiskRequest): Promise<DetachDiskResponse>;
|
|
31618
31801
|
detachInstanceRamRoleWithOptions(request: DetachInstanceRamRoleRequest, runtime: $Util.RuntimeOptions): Promise<DetachInstanceRamRoleResponse>;
|
|
31619
31802
|
detachInstanceRamRole(request: DetachInstanceRamRoleRequest): Promise<DetachInstanceRamRoleResponse>;
|
|
@@ -31637,10 +31820,17 @@ export default class Client extends OpenApi {
|
|
|
31637
31820
|
*/
|
|
31638
31821
|
detachKeyPair(request: DetachKeyPairRequest): Promise<DetachKeyPairResponse>;
|
|
31639
31822
|
/**
|
|
31823
|
+
* ## Description
|
|
31640
31824
|
* When you call this operation, take note of the following items:
|
|
31641
|
-
* *
|
|
31642
|
-
* *
|
|
31643
|
-
* *
|
|
31825
|
+
* * Primary ENIs cannot be detached from ECS instances.
|
|
31826
|
+
* * The ENI must be in the Detaching (Detaching) or InUse (InUse) state.
|
|
31827
|
+
* * The instance must be in the Running (Running) or Stopped (Stopped) state.
|
|
31828
|
+
* * This operation is an asynchronous operation. After this operation is called to detach an ENI, you can check the state or events of the ENI to determine whether the ENI is detached. The following figure shows the transitions between the states of the ENI.
|
|
31829
|
+
* 
|
|
31830
|
+
* * If the ENI is in the Detaching state, the ENI detachment request is sent and the ENI is being detached from its associated instance.
|
|
31831
|
+
* * If the ENI is in the Available state, the ENI is detached from its associated instance.
|
|
31832
|
+
* * If the ENI is stuck in the Detaching state, the ENI may fail to be detached from the associated instance due to specific reasons. For example, the ENI may fail to be detached because the operating system did not respond to the ENI detachment request. If this occurs, you can re-initiate the request to detach the ENI. If the problem persists, restart the instance.
|
|
31833
|
+
* **For information about examples on how to call this operation, see **[Detach an ENI](~~471551~~).
|
|
31644
31834
|
*
|
|
31645
31835
|
* @param request DetachNetworkInterfaceRequest
|
|
31646
31836
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -31648,16 +31838,38 @@ export default class Client extends OpenApi {
|
|
|
31648
31838
|
*/
|
|
31649
31839
|
detachNetworkInterfaceWithOptions(request: DetachNetworkInterfaceRequest, runtime: $Util.RuntimeOptions): Promise<DetachNetworkInterfaceResponse>;
|
|
31650
31840
|
/**
|
|
31841
|
+
* ## Description
|
|
31651
31842
|
* When you call this operation, take note of the following items:
|
|
31652
|
-
* *
|
|
31653
|
-
* *
|
|
31654
|
-
* *
|
|
31843
|
+
* * Primary ENIs cannot be detached from ECS instances.
|
|
31844
|
+
* * The ENI must be in the Detaching (Detaching) or InUse (InUse) state.
|
|
31845
|
+
* * The instance must be in the Running (Running) or Stopped (Stopped) state.
|
|
31846
|
+
* * This operation is an asynchronous operation. After this operation is called to detach an ENI, you can check the state or events of the ENI to determine whether the ENI is detached. The following figure shows the transitions between the states of the ENI.
|
|
31847
|
+
* 
|
|
31848
|
+
* * If the ENI is in the Detaching state, the ENI detachment request is sent and the ENI is being detached from its associated instance.
|
|
31849
|
+
* * If the ENI is in the Available state, the ENI is detached from its associated instance.
|
|
31850
|
+
* * If the ENI is stuck in the Detaching state, the ENI may fail to be detached from the associated instance due to specific reasons. For example, the ENI may fail to be detached because the operating system did not respond to the ENI detachment request. If this occurs, you can re-initiate the request to detach the ENI. If the problem persists, restart the instance.
|
|
31851
|
+
* **For information about examples on how to call this operation, see **[Detach an ENI](~~471551~~).
|
|
31655
31852
|
*
|
|
31656
31853
|
* @param request DetachNetworkInterfaceRequest
|
|
31657
31854
|
* @return DetachNetworkInterfaceResponse
|
|
31658
31855
|
*/
|
|
31659
31856
|
detachNetworkInterface(request: DetachNetworkInterfaceRequest): Promise<DetachNetworkInterfaceResponse>;
|
|
31857
|
+
/**
|
|
31858
|
+
* ## Description
|
|
31859
|
+
* To prevent an activation code from being leaked, you can call the DisableActivation operation to disable the activation code. Disabled activation codes cannot be used to register new managed instances. However, managed instances that are already registered are not affected.
|
|
31860
|
+
*
|
|
31861
|
+
* @param request DisableActivationRequest
|
|
31862
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
31863
|
+
* @return DisableActivationResponse
|
|
31864
|
+
*/
|
|
31660
31865
|
disableActivationWithOptions(request: DisableActivationRequest, runtime: $Util.RuntimeOptions): Promise<DisableActivationResponse>;
|
|
31866
|
+
/**
|
|
31867
|
+
* ## Description
|
|
31868
|
+
* To prevent an activation code from being leaked, you can call the DisableActivation operation to disable the activation code. Disabled activation codes cannot be used to register new managed instances. However, managed instances that are already registered are not affected.
|
|
31869
|
+
*
|
|
31870
|
+
* @param request DisableActivationRequest
|
|
31871
|
+
* @return DisableActivationResponse
|
|
31872
|
+
*/
|
|
31661
31873
|
disableActivation(request: DisableActivationRequest): Promise<DisableActivationResponse>;
|
|
31662
31874
|
/**
|
|
31663
31875
|
* @deprecated
|
|
@@ -31719,7 +31931,98 @@ export default class Client extends OpenApi {
|
|
|
31719
31931
|
* @return EnablePhysicalConnectionResponse
|
|
31720
31932
|
*/
|
|
31721
31933
|
enablePhysicalConnection(request: EnablePhysicalConnectionRequest): Promise<EnablePhysicalConnectionResponse>;
|
|
31934
|
+
/**
|
|
31935
|
+
* Before you export a custom image, complete the following operations:
|
|
31936
|
+
* * Understand the prerequisites and precautions. For more information, see [Export images](~~58181~~).
|
|
31937
|
+
* * Use Resource Access Management (RAM) to create a RAM role for ECS and grant ECS the permissions to write data to OSS. Perform the following steps:
|
|
31938
|
+
* 1. Create a role named `AliyunECSImageExportDefaultRole` and configure the following trust policy for the role:
|
|
31939
|
+
* {
|
|
31940
|
+
* "Statement": [
|
|
31941
|
+
* {
|
|
31942
|
+
* "Action": "sts:AssumeRole",
|
|
31943
|
+
* "Effect": "Allow",
|
|
31944
|
+
* "Principal": {
|
|
31945
|
+
* "Service": [
|
|
31946
|
+
* "ecs.aliyuncs.com"
|
|
31947
|
+
* ]
|
|
31948
|
+
* }
|
|
31949
|
+
* }
|
|
31950
|
+
* ],
|
|
31951
|
+
* "Version": "1"
|
|
31952
|
+
* }
|
|
31953
|
+
* 2. Attach the `AliyunECSImageExportRolePolicy` system policy to the `AliyunECSImageExportDefaultRole` role. This policy is the default policy that grants ECS the permissions to export images. For more information, go to the [Cloud Resource Access Authorization](https://ram.console.aliyun.com/?spm=5176.2020520101.0.0.64c64df5dfpmdY#/role/authorize?request=%7B%22Requests%22:%20%7B%22request1%22:%20%7B%22RoleName%22:%20%22AliyunECSImageImportDefaultRole%22,%20%22TemplateId%22:%20%22ECSImportRole%22%7D,%20%22request2%22:%20%7B%22RoleName%22:%20%22AliyunECSImageExportDefaultRole%22,%20%22TemplateId%22:%20%22ECSExportRole%22%7D%7D,%20%22ReturnUrl%22:%20%22https:%2F%2Fecs.console.aliyun.com%2F%22,%20%22Service%22:%20%22ECS%22%7D) page. You can also create a custom policy that contains the following content and attach the policy to the role:
|
|
31954
|
+
* {
|
|
31955
|
+
* "Version": "1",
|
|
31956
|
+
* "Statement": [
|
|
31957
|
+
* {
|
|
31958
|
+
* "Action": [
|
|
31959
|
+
* "oss:GetObject",
|
|
31960
|
+
* "oss:PutObject",
|
|
31961
|
+
* "oss:DeleteObject",
|
|
31962
|
+
* "oss:GetBucketLocation",
|
|
31963
|
+
* "oss:GetBucketInfo",
|
|
31964
|
+
* "oss:AbortMultipartUpload",
|
|
31965
|
+
* "oss:ListMultipartUploads",
|
|
31966
|
+
* "oss:ListParts"
|
|
31967
|
+
* ],
|
|
31968
|
+
* "Resource": "*",
|
|
31969
|
+
* "Effect": "Allow"
|
|
31970
|
+
* }
|
|
31971
|
+
* ]
|
|
31972
|
+
* }
|
|
31973
|
+
* After you export a custom image, the following situation occurs:
|
|
31974
|
+
* The custom image is stored in the specified OSS bucket. You can download the custom image. For more information, see [Download objects](~~31912~~).
|
|
31975
|
+
*
|
|
31976
|
+
* @param request ExportImageRequest
|
|
31977
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
31978
|
+
* @return ExportImageResponse
|
|
31979
|
+
*/
|
|
31722
31980
|
exportImageWithOptions(request: ExportImageRequest, runtime: $Util.RuntimeOptions): Promise<ExportImageResponse>;
|
|
31981
|
+
/**
|
|
31982
|
+
* Before you export a custom image, complete the following operations:
|
|
31983
|
+
* * Understand the prerequisites and precautions. For more information, see [Export images](~~58181~~).
|
|
31984
|
+
* * Use Resource Access Management (RAM) to create a RAM role for ECS and grant ECS the permissions to write data to OSS. Perform the following steps:
|
|
31985
|
+
* 1. Create a role named `AliyunECSImageExportDefaultRole` and configure the following trust policy for the role:
|
|
31986
|
+
* {
|
|
31987
|
+
* "Statement": [
|
|
31988
|
+
* {
|
|
31989
|
+
* "Action": "sts:AssumeRole",
|
|
31990
|
+
* "Effect": "Allow",
|
|
31991
|
+
* "Principal": {
|
|
31992
|
+
* "Service": [
|
|
31993
|
+
* "ecs.aliyuncs.com"
|
|
31994
|
+
* ]
|
|
31995
|
+
* }
|
|
31996
|
+
* }
|
|
31997
|
+
* ],
|
|
31998
|
+
* "Version": "1"
|
|
31999
|
+
* }
|
|
32000
|
+
* 2. Attach the `AliyunECSImageExportRolePolicy` system policy to the `AliyunECSImageExportDefaultRole` role. This policy is the default policy that grants ECS the permissions to export images. For more information, go to the [Cloud Resource Access Authorization](https://ram.console.aliyun.com/?spm=5176.2020520101.0.0.64c64df5dfpmdY#/role/authorize?request=%7B%22Requests%22:%20%7B%22request1%22:%20%7B%22RoleName%22:%20%22AliyunECSImageImportDefaultRole%22,%20%22TemplateId%22:%20%22ECSImportRole%22%7D,%20%22request2%22:%20%7B%22RoleName%22:%20%22AliyunECSImageExportDefaultRole%22,%20%22TemplateId%22:%20%22ECSExportRole%22%7D%7D,%20%22ReturnUrl%22:%20%22https:%2F%2Fecs.console.aliyun.com%2F%22,%20%22Service%22:%20%22ECS%22%7D) page. You can also create a custom policy that contains the following content and attach the policy to the role:
|
|
32001
|
+
* {
|
|
32002
|
+
* "Version": "1",
|
|
32003
|
+
* "Statement": [
|
|
32004
|
+
* {
|
|
32005
|
+
* "Action": [
|
|
32006
|
+
* "oss:GetObject",
|
|
32007
|
+
* "oss:PutObject",
|
|
32008
|
+
* "oss:DeleteObject",
|
|
32009
|
+
* "oss:GetBucketLocation",
|
|
32010
|
+
* "oss:GetBucketInfo",
|
|
32011
|
+
* "oss:AbortMultipartUpload",
|
|
32012
|
+
* "oss:ListMultipartUploads",
|
|
32013
|
+
* "oss:ListParts"
|
|
32014
|
+
* ],
|
|
32015
|
+
* "Resource": "*",
|
|
32016
|
+
* "Effect": "Allow"
|
|
32017
|
+
* }
|
|
32018
|
+
* ]
|
|
32019
|
+
* }
|
|
32020
|
+
* After you export a custom image, the following situation occurs:
|
|
32021
|
+
* The custom image is stored in the specified OSS bucket. You can download the custom image. For more information, see [Download objects](~~31912~~).
|
|
32022
|
+
*
|
|
32023
|
+
* @param request ExportImageRequest
|
|
32024
|
+
* @return ExportImageResponse
|
|
32025
|
+
*/
|
|
31723
32026
|
exportImage(request: ExportImageRequest): Promise<ExportImageResponse>;
|
|
31724
32027
|
/**
|
|
31725
32028
|
* @deprecated
|
|
@@ -31755,9 +32058,139 @@ export default class Client extends OpenApi {
|
|
|
31755
32058
|
* @return GetInstanceConsoleOutputResponse
|
|
31756
32059
|
*/
|
|
31757
32060
|
getInstanceConsoleOutput(request: GetInstanceConsoleOutputRequest): Promise<GetInstanceConsoleOutputResponse>;
|
|
32061
|
+
/**
|
|
32062
|
+
* ECS returns an instance screenshot that is in the JPG format and encoded in Base64. You must manually decode the screenshot. We recommend that you call this operation for troubleshooting and diagnosis. When you call this operation, take note of the following items:
|
|
32063
|
+
* * The instance must be in the Running state.
|
|
32064
|
+
* * You cannot obtain screenshots of instances whose instance types have been retired. For more information, see [Retired instance types](~~55263~~).
|
|
32065
|
+
* * If you want to call this operation on the same instance multiple times, you must wait at least 10 seconds between each call. Otherwise, the `Throttling` error code is returned.
|
|
32066
|
+
*
|
|
32067
|
+
* @param request GetInstanceScreenshotRequest
|
|
32068
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32069
|
+
* @return GetInstanceScreenshotResponse
|
|
32070
|
+
*/
|
|
31758
32071
|
getInstanceScreenshotWithOptions(request: GetInstanceScreenshotRequest, runtime: $Util.RuntimeOptions): Promise<GetInstanceScreenshotResponse>;
|
|
32072
|
+
/**
|
|
32073
|
+
* ECS returns an instance screenshot that is in the JPG format and encoded in Base64. You must manually decode the screenshot. We recommend that you call this operation for troubleshooting and diagnosis. When you call this operation, take note of the following items:
|
|
32074
|
+
* * The instance must be in the Running state.
|
|
32075
|
+
* * You cannot obtain screenshots of instances whose instance types have been retired. For more information, see [Retired instance types](~~55263~~).
|
|
32076
|
+
* * If you want to call this operation on the same instance multiple times, you must wait at least 10 seconds between each call. Otherwise, the `Throttling` error code is returned.
|
|
32077
|
+
*
|
|
32078
|
+
* @param request GetInstanceScreenshotRequest
|
|
32079
|
+
* @return GetInstanceScreenshotResponse
|
|
32080
|
+
*/
|
|
31759
32081
|
getInstanceScreenshot(request: GetInstanceScreenshotRequest): Promise<GetInstanceScreenshotResponse>;
|
|
32082
|
+
/**
|
|
32083
|
+
* When you call this operation, take note of the following items:
|
|
32084
|
+
* * Before you can import an image, you must upload the image to an Object Storage Service (OSS) bucket. For more information, see [Upload objects](~~31886~~).
|
|
32085
|
+
* * In some scenarios, you may want to create a custom image from an existing server and create an ECS instance from the image. The source server can be a physical server, a virtual machine, or a cloud host. However, you must make sure that the virtio driver is installed on the source server, otherwise the ECS instance created from the resulting image may be unable to start. For more information, see [Install the virtio driver](~~62423~~).
|
|
32086
|
+
* * If this is the first time you import images to ECS, you must use Resource Access Management (RAM) to grant ECS the permissions to access your OSS buckets. Otherwise, the `NoSetRoletoECSServiceAcount` error code is returned when you call the ImportImage operation. 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 provides a convenient push-button authorization function for this operation. You can also perform the authorization by using a RAM role and RAM policies. The following examples show the policies and permissions required for some steps in the authorization procedure. For more information, see [Control access to resources by using RAM users](~~25481~~).
|
|
32087
|
+
* 1. Create a role named `AliyunECSImageImportDefaultRole`. You must use this exact name. Otherwise, the image cannot be imported. Configure the following trust policy for the role:
|
|
32088
|
+
* {
|
|
32089
|
+
* "Statement": [
|
|
32090
|
+
* {
|
|
32091
|
+
* "Action": "sts:AssumeRole",
|
|
32092
|
+
* "Effect": "Allow",
|
|
32093
|
+
* "Principal": {
|
|
32094
|
+
* "Service": [
|
|
32095
|
+
* "ecs.aliyuncs.com"
|
|
32096
|
+
* ]
|
|
32097
|
+
* }
|
|
32098
|
+
* }
|
|
32099
|
+
* ],
|
|
32100
|
+
* "Version": "1"
|
|
32101
|
+
* }
|
|
32102
|
+
* 2. Attach the `AliyunECSImageImportRolePolicy` system policy to the role. You can also create a custom policy that contains the following content and attach the policy to the role:
|
|
32103
|
+
* ```
|
|
32104
|
+
* {
|
|
32105
|
+
* "Version": "1",
|
|
32106
|
+
* "Statement": [
|
|
32107
|
+
* {
|
|
32108
|
+
* "Action": [
|
|
32109
|
+
* "oss:GetObject",
|
|
32110
|
+
* "oss:GetBucketLocation",
|
|
32111
|
+
* "oss:GetBucketInfo"
|
|
32112
|
+
* ],
|
|
32113
|
+
* "Resource": "*",
|
|
32114
|
+
* "Effect": "Allow"
|
|
32115
|
+
* }
|
|
32116
|
+
* ]
|
|
32117
|
+
* }
|
|
32118
|
+
* ```
|
|
32119
|
+
* * You cannot delete an image that is being imported. However, you can call the [CancelTask](~~25624~~) operation to cancel the image import task.
|
|
32120
|
+
* * Make sure that the image is imported to the same region where the OSS bucket resides.
|
|
32121
|
+
* * The valid values of N in the `DiskDeviceMapping.N` parameter 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.
|
|
32122
|
+
* * When you set the `Architecture` parameter to `arm64` or when you set the `Platform` parameter to `CentOS Stream`, `Anolis`, `AlmaLinux`, `UOS`, `Kylin`, or `Rocky Linux`, take note of the following items:
|
|
32123
|
+
* * If you need to set the password or modify the key pair for the imported image, make sure that the image meets the following requirements:
|
|
32124
|
+
* * The kernel of the operating system supports the `CONFIG_FW_CFG_SYSFS` feature. By default, this feature is supported by Linux community kernel 4.6 and later and CentOS kernel 3.10.0-826.el7 and later. You can run the `grep -nr CONFIG_FW_CFG_SYSFS /boot/config-$(uname -r)` command on the source server of the image. If the command output contains `CONFIG_FW_CFG_SYSFS=y`, the operating system kernel in this image supports the `CONFIG_FW_CFG_SYSFS` feature.
|
|
32125
|
+
* * The operating system is installed with the latest version of Alibaba Cloud cloud-init. The version of cloud-init 19.1 must be 19.1.3 or later. The version of cloud-init 0.7.6a in some early versions of operating systems must be 0.7.6a15 or later. For more information, see [Install cloud-init](~~57803~~).
|
|
32126
|
+
* * The operating system supports the SHA-512 encryption algorithm.
|
|
32127
|
+
* * If you want use the imported image to resize disks and file systems, make sure that the image meets the following requirements:
|
|
32128
|
+
* * The kernel version of the operating system is later than 3.6.
|
|
32129
|
+
* * The image supports the growpart command. The `cloud-utils-growpart` package is required to use this command. The methods for installing this package vary based on the operating systems. For more information, see [Resize partitions and file systems of Linux system disks](~~111738~~).
|
|
32130
|
+
* * The image must support the resize2fs command. The`e2fsprogs` package is required to use this command. By default, the package is installed on the operating system. If the package is not installed, install it.
|
|
32131
|
+
* * The operating system is installed with the latest version of Alibaba Cloud cloud-init. The version of cloud-init 19.1 must be 19.1.3 or later. The version of cloud-init 0.7.6a in some early versions of operating systems must be 0.7.6a15 or later. For more information, see [Install cloud-init](~~57803~~).
|
|
32132
|
+
* * If the image that you want to import uses the ARM64 architecture, you must set the real-time clock (RTC) to use the Coordinated Universal Time (UTC) time standard. For more information, see [Linux time and time zones](https://icms.alibaba-inc.com/content/ecs/image?l=1\\&m=4656\\&n=3385033).
|
|
32133
|
+
*
|
|
32134
|
+
* @param request ImportImageRequest
|
|
32135
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32136
|
+
* @return ImportImageResponse
|
|
32137
|
+
*/
|
|
31760
32138
|
importImageWithOptions(request: ImportImageRequest, runtime: $Util.RuntimeOptions): Promise<ImportImageResponse>;
|
|
32139
|
+
/**
|
|
32140
|
+
* When you call this operation, take note of the following items:
|
|
32141
|
+
* * Before you can import an image, you must upload the image to an Object Storage Service (OSS) bucket. For more information, see [Upload objects](~~31886~~).
|
|
32142
|
+
* * In some scenarios, you may want to create a custom image from an existing server and create an ECS instance from the image. The source server can be a physical server, a virtual machine, or a cloud host. However, you must make sure that the virtio driver is installed on the source server, otherwise the ECS instance created from the resulting image may be unable to start. For more information, see [Install the virtio driver](~~62423~~).
|
|
32143
|
+
* * If this is the first time you import images to ECS, you must use Resource Access Management (RAM) to grant ECS the permissions to access your OSS buckets. Otherwise, the `NoSetRoletoECSServiceAcount` error code is returned when you call the ImportImage operation. 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 provides a convenient push-button authorization function for this operation. You can also perform the authorization by using a RAM role and RAM policies. The following examples show the policies and permissions required for some steps in the authorization procedure. For more information, see [Control access to resources by using RAM users](~~25481~~).
|
|
32144
|
+
* 1. Create a role named `AliyunECSImageImportDefaultRole`. You must use this exact name. Otherwise, the image cannot be imported. Configure the following trust policy for the role:
|
|
32145
|
+
* {
|
|
32146
|
+
* "Statement": [
|
|
32147
|
+
* {
|
|
32148
|
+
* "Action": "sts:AssumeRole",
|
|
32149
|
+
* "Effect": "Allow",
|
|
32150
|
+
* "Principal": {
|
|
32151
|
+
* "Service": [
|
|
32152
|
+
* "ecs.aliyuncs.com"
|
|
32153
|
+
* ]
|
|
32154
|
+
* }
|
|
32155
|
+
* }
|
|
32156
|
+
* ],
|
|
32157
|
+
* "Version": "1"
|
|
32158
|
+
* }
|
|
32159
|
+
* 2. Attach the `AliyunECSImageImportRolePolicy` system policy to the role. You can also create a custom policy that contains the following content and attach the policy to the role:
|
|
32160
|
+
* ```
|
|
32161
|
+
* {
|
|
32162
|
+
* "Version": "1",
|
|
32163
|
+
* "Statement": [
|
|
32164
|
+
* {
|
|
32165
|
+
* "Action": [
|
|
32166
|
+
* "oss:GetObject",
|
|
32167
|
+
* "oss:GetBucketLocation",
|
|
32168
|
+
* "oss:GetBucketInfo"
|
|
32169
|
+
* ],
|
|
32170
|
+
* "Resource": "*",
|
|
32171
|
+
* "Effect": "Allow"
|
|
32172
|
+
* }
|
|
32173
|
+
* ]
|
|
32174
|
+
* }
|
|
32175
|
+
* ```
|
|
32176
|
+
* * You cannot delete an image that is being imported. However, you can call the [CancelTask](~~25624~~) operation to cancel the image import task.
|
|
32177
|
+
* * Make sure that the image is imported to the same region where the OSS bucket resides.
|
|
32178
|
+
* * The valid values of N in the `DiskDeviceMapping.N` parameter 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.
|
|
32179
|
+
* * When you set the `Architecture` parameter to `arm64` or when you set the `Platform` parameter to `CentOS Stream`, `Anolis`, `AlmaLinux`, `UOS`, `Kylin`, or `Rocky Linux`, take note of the following items:
|
|
32180
|
+
* * If you need to set the password or modify the key pair for the imported image, make sure that the image meets the following requirements:
|
|
32181
|
+
* * The kernel of the operating system supports the `CONFIG_FW_CFG_SYSFS` feature. By default, this feature is supported by Linux community kernel 4.6 and later and CentOS kernel 3.10.0-826.el7 and later. You can run the `grep -nr CONFIG_FW_CFG_SYSFS /boot/config-$(uname -r)` command on the source server of the image. If the command output contains `CONFIG_FW_CFG_SYSFS=y`, the operating system kernel in this image supports the `CONFIG_FW_CFG_SYSFS` feature.
|
|
32182
|
+
* * The operating system is installed with the latest version of Alibaba Cloud cloud-init. The version of cloud-init 19.1 must be 19.1.3 or later. The version of cloud-init 0.7.6a in some early versions of operating systems must be 0.7.6a15 or later. For more information, see [Install cloud-init](~~57803~~).
|
|
32183
|
+
* * The operating system supports the SHA-512 encryption algorithm.
|
|
32184
|
+
* * If you want use the imported image to resize disks and file systems, make sure that the image meets the following requirements:
|
|
32185
|
+
* * The kernel version of the operating system is later than 3.6.
|
|
32186
|
+
* * The image supports the growpart command. The `cloud-utils-growpart` package is required to use this command. The methods for installing this package vary based on the operating systems. For more information, see [Resize partitions and file systems of Linux system disks](~~111738~~).
|
|
32187
|
+
* * The image must support the resize2fs command. The`e2fsprogs` package is required to use this command. By default, the package is installed on the operating system. If the package is not installed, install it.
|
|
32188
|
+
* * The operating system is installed with the latest version of Alibaba Cloud cloud-init. The version of cloud-init 19.1 must be 19.1.3 or later. The version of cloud-init 0.7.6a in some early versions of operating systems must be 0.7.6a15 or later. For more information, see [Install cloud-init](~~57803~~).
|
|
32189
|
+
* * If the image that you want to import uses the ARM64 architecture, you must set the real-time clock (RTC) to use the Coordinated Universal Time (UTC) time standard. For more information, see [Linux time and time zones](https://icms.alibaba-inc.com/content/ecs/image?l=1\\&m=4656\\&n=3385033).
|
|
32190
|
+
*
|
|
32191
|
+
* @param request ImportImageRequest
|
|
32192
|
+
* @return ImportImageResponse
|
|
32193
|
+
*/
|
|
31761
32194
|
importImage(request: ImportImageRequest): Promise<ImportImageResponse>;
|
|
31762
32195
|
/**
|
|
31763
32196
|
* When you call this operation, take note of the following items:
|
|
@@ -31820,20 +32253,20 @@ export default class Client extends OpenApi {
|
|
|
31820
32253
|
installCloudAssistantWithOptions(request: InstallCloudAssistantRequest, runtime: $Util.RuntimeOptions): Promise<InstallCloudAssistantResponse>;
|
|
31821
32254
|
installCloudAssistant(request: InstallCloudAssistantRequest): Promise<InstallCloudAssistantResponse>;
|
|
31822
32255
|
/**
|
|
31823
|
-
* * The ECS instances on which to run the Cloud Assistant command must meet the following requirements. If you specify multiple ECS instances and one of the instances does not meet the requirements
|
|
31824
|
-
* * The network type is
|
|
32256
|
+
* * The ECS instances on which you want to run the Cloud Assistant command must meet the following requirements. If you specify multiple ECS instances and one of the instances does not meet the requirements to run the command, the call fails. Specify instances that meet the requirements and call the InvokeCommand operation again.
|
|
32257
|
+
* * The network type is virtual private cloud (VPC). For more information, see [What is a VPC?](~~34217~~)
|
|
31825
32258
|
* * The instances are in the Running (`Running`) state.
|
|
31826
32259
|
* * The Cloud Assistant client is installed on the instances. For more information, see [Install the Cloud Assistant client](~~64921~~).
|
|
31827
|
-
* * Before you run PowerShell commands, make sure that the
|
|
31828
|
-
* * If `Timed`
|
|
31829
|
-
* * If `Timed`
|
|
31830
|
-
* * The schedule is specified by the `Frequency` parameter. The results of
|
|
31831
|
-
* * If you want to specify a schedule by using a cron expression, you can
|
|
31832
|
-
* To ensure that scheduled tasks can run as expected, make sure that the version of the Cloud Assistant client is not earlier than the following
|
|
32260
|
+
* * Before you run PowerShell commands, make sure that the PowerShell module is configured for the instances.
|
|
32261
|
+
* * If you set the `Timed` parameter to false, the command is run only once.
|
|
32262
|
+
* * If you set the `Timed` parameter to true, the command is run on a schedule.
|
|
32263
|
+
* * The schedule is specified by the `Frequency` parameter. The execution results of a command do not affect the next command execution.
|
|
32264
|
+
* * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information, see [Configure the NTP service and time zone for Linux instances](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
|
|
32265
|
+
* To ensure that scheduled tasks can run as expected, make sure that the version of the Cloud Assistant client is not earlier than the following versions. A scheduled task can run a command at a specified interval, only once at a specified time, or at specific times based on a cron expression that includes a specific year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update the Cloud Assistant client to the latest version. For more information, see [Upgrade or disable upgrades for the Cloud Assistant client](~~134383~~).
|
|
31833
32266
|
* - Linux: 2.2.3.282
|
|
31834
32267
|
* - Windows: 2.1.3.282
|
|
31835
32268
|
* * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on the Cloud Assistant client. If an execution fails, no execution information is generated.
|
|
31836
|
-
* * If you enable the custom parameter feature by setting EnableParameter to true when you create a command, you must specify custom parameters (`Parameters`) when you run the command.
|
|
32269
|
+
* * If you enable the custom parameter feature by setting the EnableParameter parameter to true when you create a command, you must specify custom parameters (`Parameters`) when you run the command.
|
|
31837
32270
|
*
|
|
31838
32271
|
* @param tmpReq InvokeCommandRequest
|
|
31839
32272
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -31841,27 +32274,26 @@ export default class Client extends OpenApi {
|
|
|
31841
32274
|
*/
|
|
31842
32275
|
invokeCommandWithOptions(tmpReq: InvokeCommandRequest, runtime: $Util.RuntimeOptions): Promise<InvokeCommandResponse>;
|
|
31843
32276
|
/**
|
|
31844
|
-
* * The ECS instances on which to run the Cloud Assistant command must meet the following requirements. If you specify multiple ECS instances and one of the instances does not meet the requirements
|
|
31845
|
-
* * The network type is
|
|
32277
|
+
* * The ECS instances on which you want to run the Cloud Assistant command must meet the following requirements. If you specify multiple ECS instances and one of the instances does not meet the requirements to run the command, the call fails. Specify instances that meet the requirements and call the InvokeCommand operation again.
|
|
32278
|
+
* * The network type is virtual private cloud (VPC). For more information, see [What is a VPC?](~~34217~~)
|
|
31846
32279
|
* * The instances are in the Running (`Running`) state.
|
|
31847
32280
|
* * The Cloud Assistant client is installed on the instances. For more information, see [Install the Cloud Assistant client](~~64921~~).
|
|
31848
|
-
* * Before you run PowerShell commands, make sure that the
|
|
31849
|
-
* * If `Timed`
|
|
31850
|
-
* * If `Timed`
|
|
31851
|
-
* * The schedule is specified by the `Frequency` parameter. The results of
|
|
31852
|
-
* * If you want to specify a schedule by using a cron expression, you can
|
|
31853
|
-
* To ensure that scheduled tasks can run as expected, make sure that the version of the Cloud Assistant client is not earlier than the following
|
|
32281
|
+
* * Before you run PowerShell commands, make sure that the PowerShell module is configured for the instances.
|
|
32282
|
+
* * If you set the `Timed` parameter to false, the command is run only once.
|
|
32283
|
+
* * If you set the `Timed` parameter to true, the command is run on a schedule.
|
|
32284
|
+
* * The schedule is specified by the `Frequency` parameter. The execution results of a command do not affect the next command execution.
|
|
32285
|
+
* * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information, see [Configure the NTP service and time zone for Linux instances](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
|
|
32286
|
+
* To ensure that scheduled tasks can run as expected, make sure that the version of the Cloud Assistant client is not earlier than the following versions. A scheduled task can run a command at a specified interval, only once at a specified time, or at specific times based on a cron expression that includes a specific year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update the Cloud Assistant client to the latest version. For more information, see [Upgrade or disable upgrades for the Cloud Assistant client](~~134383~~).
|
|
31854
32287
|
* - Linux: 2.2.3.282
|
|
31855
32288
|
* - Windows: 2.1.3.282
|
|
31856
32289
|
* * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on the Cloud Assistant client. If an execution fails, no execution information is generated.
|
|
31857
|
-
* * If you enable the custom parameter feature by setting EnableParameter to true when you create a command, you must specify custom parameters (`Parameters`) when you run the command.
|
|
32290
|
+
* * If you enable the custom parameter feature by setting the EnableParameter parameter to true when you create a command, you must specify custom parameters (`Parameters`) when you run the command.
|
|
31858
32291
|
*
|
|
31859
32292
|
* @param request InvokeCommandRequest
|
|
31860
32293
|
* @return InvokeCommandResponse
|
|
31861
32294
|
*/
|
|
31862
32295
|
invokeCommand(request: InvokeCommandRequest): Promise<InvokeCommandResponse>;
|
|
31863
32296
|
/**
|
|
31864
|
-
* ## Description
|
|
31865
32297
|
* A resource is a cloud service entity that you create in Alibaba Cloud, such as an ECS instance, elastic network interface (ENI), or image. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources and monitor and run tasks in a centralized manner without switching between Alibaba Cloud services.
|
|
31866
32298
|
*
|
|
31867
32299
|
* @param request JoinResourceGroupRequest
|
|
@@ -31870,16 +32302,67 @@ export default class Client extends OpenApi {
|
|
|
31870
32302
|
*/
|
|
31871
32303
|
joinResourceGroupWithOptions(request: JoinResourceGroupRequest, runtime: $Util.RuntimeOptions): Promise<JoinResourceGroupResponse>;
|
|
31872
32304
|
/**
|
|
31873
|
-
* ## Description
|
|
31874
32305
|
* A resource is a cloud service entity that you create in Alibaba Cloud, such as an ECS instance, elastic network interface (ENI), or image. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources and monitor and run tasks in a centralized manner without switching between Alibaba Cloud services.
|
|
31875
32306
|
*
|
|
31876
32307
|
* @param request JoinResourceGroupRequest
|
|
31877
32308
|
* @return JoinResourceGroupResponse
|
|
31878
32309
|
*/
|
|
31879
32310
|
joinResourceGroup(request: JoinResourceGroupRequest): Promise<JoinResourceGroupResponse>;
|
|
32311
|
+
/**
|
|
32312
|
+
* > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add instances to or remove instances from a security group, and call the [ModifyNetworkInterfaceAttribute](~~58513~~) operation to add ENIs to or remove ENIs from a security group.
|
|
32313
|
+
* When you call this operation, take note of the following items:
|
|
32314
|
+
* * Before you add an instance to a security group, the instance must be in the **Stopped** (Stopped) or **Running** (Running) state.
|
|
32315
|
+
* * An instance can be added to up to five security groups.
|
|
32316
|
+
* * To add an instance to more security groups, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm). An instance can be added to up to 16 security groups.
|
|
32317
|
+
* *
|
|
32318
|
+
* * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
|
|
32319
|
+
* * The security group and the instance must belong to the same region.
|
|
32320
|
+
* * The security group and the instance must be of the same network type. If the network type is Virtual Private Cloud (VPC), the security group and the instance must be in the same VPC.
|
|
32321
|
+
* * An instance and an ENI cannot be added to a security group at the same time. You cannot specify the `InstanceId` and `NetworkInterfaceId` parameters at the same time.
|
|
32322
|
+
*
|
|
32323
|
+
* @param request JoinSecurityGroupRequest
|
|
32324
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32325
|
+
* @return JoinSecurityGroupResponse
|
|
32326
|
+
*/
|
|
31880
32327
|
joinSecurityGroupWithOptions(request: JoinSecurityGroupRequest, runtime: $Util.RuntimeOptions): Promise<JoinSecurityGroupResponse>;
|
|
32328
|
+
/**
|
|
32329
|
+
* > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add instances to or remove instances from a security group, and call the [ModifyNetworkInterfaceAttribute](~~58513~~) operation to add ENIs to or remove ENIs from a security group.
|
|
32330
|
+
* When you call this operation, take note of the following items:
|
|
32331
|
+
* * Before you add an instance to a security group, the instance must be in the **Stopped** (Stopped) or **Running** (Running) state.
|
|
32332
|
+
* * An instance can be added to up to five security groups.
|
|
32333
|
+
* * To add an instance to more security groups, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm). An instance can be added to up to 16 security groups.
|
|
32334
|
+
* *
|
|
32335
|
+
* * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
|
|
32336
|
+
* * The security group and the instance must belong to the same region.
|
|
32337
|
+
* * The security group and the instance must be of the same network type. If the network type is Virtual Private Cloud (VPC), the security group and the instance must be in the same VPC.
|
|
32338
|
+
* * An instance and an ENI cannot be added to a security group at the same time. You cannot specify the `InstanceId` and `NetworkInterfaceId` parameters at the same time.
|
|
32339
|
+
*
|
|
32340
|
+
* @param request JoinSecurityGroupRequest
|
|
32341
|
+
* @return JoinSecurityGroupResponse
|
|
32342
|
+
*/
|
|
31881
32343
|
joinSecurityGroup(request: JoinSecurityGroupRequest): Promise<JoinSecurityGroupResponse>;
|
|
32344
|
+
/**
|
|
32345
|
+
* > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add instances to or remove instances from a security group, and call the [ModifyNetworkInterfaceAttribute](~~58513~~) operation to add ENIs to or remove ENIs from a security group.
|
|
32346
|
+
* When you call this operation, take note of the following items:
|
|
32347
|
+
* * Before you remove an instance from a security group, the instance must be in the **Stopped** (Stopped) or **Running** (Running) state.
|
|
32348
|
+
* * An instance must belong to at least one security group. Therefore, if the instance to be removed belongs to only a single security group, the LeaveSecurityGroup request fails.
|
|
32349
|
+
* * An instance and an ENI cannot be removed from a security group at the same time. The `InstanceId` and `NetworkInterfaceId` parameters cannot be specified at the same time.
|
|
32350
|
+
*
|
|
32351
|
+
* @param request LeaveSecurityGroupRequest
|
|
32352
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32353
|
+
* @return LeaveSecurityGroupResponse
|
|
32354
|
+
*/
|
|
31882
32355
|
leaveSecurityGroupWithOptions(request: LeaveSecurityGroupRequest, runtime: $Util.RuntimeOptions): Promise<LeaveSecurityGroupResponse>;
|
|
32356
|
+
/**
|
|
32357
|
+
* > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add instances to or remove instances from a security group, and call the [ModifyNetworkInterfaceAttribute](~~58513~~) operation to add ENIs to or remove ENIs from a security group.
|
|
32358
|
+
* When you call this operation, take note of the following items:
|
|
32359
|
+
* * Before you remove an instance from a security group, the instance must be in the **Stopped** (Stopped) or **Running** (Running) state.
|
|
32360
|
+
* * An instance must belong to at least one security group. Therefore, if the instance to be removed belongs to only a single security group, the LeaveSecurityGroup request fails.
|
|
32361
|
+
* * An instance and an ENI cannot be removed from a security group at the same time. The `InstanceId` and `NetworkInterfaceId` parameters cannot be specified at the same time.
|
|
32362
|
+
*
|
|
32363
|
+
* @param request LeaveSecurityGroupRequest
|
|
32364
|
+
* @return LeaveSecurityGroupResponse
|
|
32365
|
+
*/
|
|
31883
32366
|
leaveSecurityGroup(request: LeaveSecurityGroupRequest): Promise<LeaveSecurityGroupResponse>;
|
|
31884
32367
|
/**
|
|
31885
32368
|
* Before you call this operation to query the states of Cloud Assistant plug-ins on ECS instances, make sure that the versions of the Cloud Assistant client installed on the instances are not earlier than the following ones:
|
|
@@ -31900,11 +32383,36 @@ export default class Client extends OpenApi {
|
|
|
31900
32383
|
* @return ListPluginStatusResponse
|
|
31901
32384
|
*/
|
|
31902
32385
|
listPluginStatus(request: ListPluginStatusRequest): Promise<ListPluginStatusResponse>;
|
|
32386
|
+
/**
|
|
32387
|
+
* Specify at least one of the following parameters or parameter pairs in a request to determine a query object:
|
|
32388
|
+
* * `ResourceId.N`
|
|
32389
|
+
* * `Tag.N` parameter pair (`Tag.N.Key` and `Tag.N.Value`)
|
|
32390
|
+
* * `TagFilter.N`
|
|
32391
|
+
* If one of the following sets of request parameters is specified as filter conditions, only ECS resources that meet all of the specified filter conditions are returned:
|
|
32392
|
+
* * Set 1: `Tag.N.Key, Tag.N.Value`, and `ResourceId.N`
|
|
32393
|
+
* * Set 2: `TagFilter.N.TagKey, TagFilter.N.TagValues.N`, and `ResourceId.N`
|
|
32394
|
+
*
|
|
32395
|
+
* @param request ListTagResourcesRequest
|
|
32396
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32397
|
+
* @return ListTagResourcesResponse
|
|
32398
|
+
*/
|
|
31903
32399
|
listTagResourcesWithOptions(request: ListTagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse>;
|
|
32400
|
+
/**
|
|
32401
|
+
* Specify at least one of the following parameters or parameter pairs in a request to determine a query object:
|
|
32402
|
+
* * `ResourceId.N`
|
|
32403
|
+
* * `Tag.N` parameter pair (`Tag.N.Key` and `Tag.N.Value`)
|
|
32404
|
+
* * `TagFilter.N`
|
|
32405
|
+
* If one of the following sets of request parameters is specified as filter conditions, only ECS resources that meet all of the specified filter conditions are returned:
|
|
32406
|
+
* * Set 1: `Tag.N.Key, Tag.N.Value`, and `ResourceId.N`
|
|
32407
|
+
* * Set 2: `TagFilter.N.TagKey, TagFilter.N.TagValues.N`, and `ResourceId.N`
|
|
32408
|
+
*
|
|
32409
|
+
* @param request ListTagResourcesRequest
|
|
32410
|
+
* @return ListTagResourcesResponse
|
|
32411
|
+
*/
|
|
31904
32412
|
listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse>;
|
|
31905
32413
|
/**
|
|
31906
32414
|
* Before you call this operation, take note of the following items:
|
|
31907
|
-
* * If you modify the capacity or capacity-related settings of an auto provisioning group, the group executes
|
|
32415
|
+
* * If you modify the capacity or capacity-related settings of an auto provisioning group, the group executes the scheduling task once after the modification.
|
|
31908
32416
|
* * You cannot modify an auto provisioning group when the group is being deleted.
|
|
31909
32417
|
*
|
|
31910
32418
|
* @param request ModifyAutoProvisioningGroupRequest
|
|
@@ -31914,7 +32422,7 @@ export default class Client extends OpenApi {
|
|
|
31914
32422
|
modifyAutoProvisioningGroupWithOptions(request: ModifyAutoProvisioningGroupRequest, runtime: $Util.RuntimeOptions): Promise<ModifyAutoProvisioningGroupResponse>;
|
|
31915
32423
|
/**
|
|
31916
32424
|
* Before you call this operation, take note of the following items:
|
|
31917
|
-
* * If you modify the capacity or capacity-related settings of an auto provisioning group, the group executes
|
|
32425
|
+
* * If you modify the capacity or capacity-related settings of an auto provisioning group, the group executes the scheduling task once after the modification.
|
|
31918
32426
|
* * You cannot modify an auto provisioning group when the group is being deleted.
|
|
31919
32427
|
*
|
|
31920
32428
|
* @param request ModifyAutoProvisioningGroupRequest
|
|
@@ -31955,7 +32463,22 @@ export default class Client extends OpenApi {
|
|
|
31955
32463
|
modifyBandwidthPackageSpec(request: ModifyBandwidthPackageSpecRequest): Promise<ModifyBandwidthPackageSpecResponse>;
|
|
31956
32464
|
modifyCapacityReservationWithOptions(request: ModifyCapacityReservationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyCapacityReservationResponse>;
|
|
31957
32465
|
modifyCapacityReservation(request: ModifyCapacityReservationRequest): Promise<ModifyCapacityReservationResponse>;
|
|
32466
|
+
/**
|
|
32467
|
+
* You can modify a command when it is being executed. After the command is modified, the new command content applies to subsequent executions.
|
|
32468
|
+
* You cannot modify the command type. For example, you cannot change a shell command (RunShellScript) to a batch command (RunBatScript).
|
|
32469
|
+
*
|
|
32470
|
+
* @param request ModifyCommandRequest
|
|
32471
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32472
|
+
* @return ModifyCommandResponse
|
|
32473
|
+
*/
|
|
31958
32474
|
modifyCommandWithOptions(request: ModifyCommandRequest, runtime: $Util.RuntimeOptions): Promise<ModifyCommandResponse>;
|
|
32475
|
+
/**
|
|
32476
|
+
* You can modify a command when it is being executed. After the command is modified, the new command content applies to subsequent executions.
|
|
32477
|
+
* You cannot modify the command type. For example, you cannot change a shell command (RunShellScript) to a batch command (RunBatScript).
|
|
32478
|
+
*
|
|
32479
|
+
* @param request ModifyCommandRequest
|
|
32480
|
+
* @return ModifyCommandResponse
|
|
32481
|
+
*/
|
|
31959
32482
|
modifyCommand(request: ModifyCommandRequest): Promise<ModifyCommandResponse>;
|
|
31960
32483
|
/**
|
|
31961
32484
|
* ## Description
|
|
@@ -31976,7 +32499,20 @@ export default class Client extends OpenApi {
|
|
|
31976
32499
|
* @return ModifyDedicatedHostAttributeResponse
|
|
31977
32500
|
*/
|
|
31978
32501
|
modifyDedicatedHostAttribute(request: ModifyDedicatedHostAttributeRequest): Promise<ModifyDedicatedHostAttributeResponse>;
|
|
32502
|
+
/**
|
|
32503
|
+
* The pay-as-you-go dedicated host is automatically released at the specified time. Make sure that the dedicated host is no longer needed and that its data is backed up.
|
|
32504
|
+
*
|
|
32505
|
+
* @param request ModifyDedicatedHostAutoReleaseTimeRequest
|
|
32506
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32507
|
+
* @return ModifyDedicatedHostAutoReleaseTimeResponse
|
|
32508
|
+
*/
|
|
31979
32509
|
modifyDedicatedHostAutoReleaseTimeWithOptions(request: ModifyDedicatedHostAutoReleaseTimeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDedicatedHostAutoReleaseTimeResponse>;
|
|
32510
|
+
/**
|
|
32511
|
+
* The pay-as-you-go dedicated host is automatically released at the specified time. Make sure that the dedicated host is no longer needed and that its data is backed up.
|
|
32512
|
+
*
|
|
32513
|
+
* @param request ModifyDedicatedHostAutoReleaseTimeRequest
|
|
32514
|
+
* @return ModifyDedicatedHostAutoReleaseTimeResponse
|
|
32515
|
+
*/
|
|
31980
32516
|
modifyDedicatedHostAutoReleaseTime(request: ModifyDedicatedHostAutoReleaseTimeRequest): Promise<ModifyDedicatedHostAutoReleaseTimeResponse>;
|
|
31981
32517
|
/**
|
|
31982
32518
|
* ## Description
|
|
@@ -32007,18 +32543,33 @@ export default class Client extends OpenApi {
|
|
|
32007
32543
|
modifyDeploymentSetAttribute(request: ModifyDeploymentSetAttributeRequest): Promise<ModifyDeploymentSetAttributeResponse>;
|
|
32008
32544
|
modifyDiagnosticMetricSetWithOptions(request: ModifyDiagnosticMetricSetRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDiagnosticMetricSetResponse>;
|
|
32009
32545
|
modifyDiagnosticMetricSet(request: ModifyDiagnosticMetricSetRequest): Promise<ModifyDiagnosticMetricSetResponse>;
|
|
32546
|
+
/**
|
|
32547
|
+
* * When you call this operation to modify the attributes of a disk, if you set the DeleteWithInstance parameter to false and the instance to which the disk is attached is locked for security reasons, the DeleteWithInstance parameter of the disk is ignored and the disk is released together with the instance. If `"LockReason" : "security"` is included in the response when you query the information about an instance, the instance is locked for security reasons.
|
|
32548
|
+
* * You can use the `DiskIds.N` parameter to specify multiple disks. This way, you can modify the attributes of the disks at the same time, including names, descriptions, and whether to release the disks together with the associated instances.
|
|
32549
|
+
*
|
|
32550
|
+
* @param request ModifyDiskAttributeRequest
|
|
32551
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32552
|
+
* @return ModifyDiskAttributeResponse
|
|
32553
|
+
*/
|
|
32010
32554
|
modifyDiskAttributeWithOptions(request: ModifyDiskAttributeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDiskAttributeResponse>;
|
|
32555
|
+
/**
|
|
32556
|
+
* * When you call this operation to modify the attributes of a disk, if you set the DeleteWithInstance parameter to false and the instance to which the disk is attached is locked for security reasons, the DeleteWithInstance parameter of the disk is ignored and the disk is released together with the instance. If `"LockReason" : "security"` is included in the response when you query the information about an instance, the instance is locked for security reasons.
|
|
32557
|
+
* * You can use the `DiskIds.N` parameter to specify multiple disks. This way, you can modify the attributes of the disks at the same time, including names, descriptions, and whether to release the disks together with the associated instances.
|
|
32558
|
+
*
|
|
32559
|
+
* @param request ModifyDiskAttributeRequest
|
|
32560
|
+
* @return ModifyDiskAttributeResponse
|
|
32561
|
+
*/
|
|
32011
32562
|
modifyDiskAttribute(request: ModifyDiskAttributeRequest): Promise<ModifyDiskAttributeResponse>;
|
|
32012
32563
|
/**
|
|
32013
|
-
*
|
|
32014
|
-
* After you change the billing method, automatic payment is enabled by default. Make sure that you have sufficient balance in your account. Otherwise, your order becomes invalid and must be canceled. If your account balance is insufficient, you can set the AutoPay parameter to false to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
|
|
32564
|
+
* After you change the billing method, the payment (if any) is automatically completed. Maintain a sufficient account balance. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the AutoPay parameter to false to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
|
|
32015
32565
|
* When you call this operation, take note of the following items:
|
|
32016
|
-
* * You can change the billing method from subscription to pay-as-you-go for
|
|
32017
|
-
* * You can change the billing method from pay-as-you-go to subscription for
|
|
32566
|
+
* * You can change the billing method from subscription to pay-as-you-go for disks that are attached to a subscription instance.
|
|
32567
|
+
* * You can change the billing method from pay-as-you-go to subscription for data disks that are attached to a subscription or pay-as-you-go instance.
|
|
32018
32568
|
* * The instance cannot be in the Stopped state due to overdue payments.
|
|
32019
|
-
* * You can change the billing method
|
|
32020
|
-
* * The price difference is refunded to the payment account you used.
|
|
32021
|
-
* * You cannot change the billing method
|
|
32569
|
+
* * You can change the billing method of each disk up to three times. Up to three refunds can be made for the price differences for each disk.
|
|
32570
|
+
* * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
|
|
32571
|
+
* * You cannot change the billing method again within 5 minutes of a successful change.
|
|
32572
|
+
* * The billing method of disks with the multi-attach feature enabled must be pay-as-you-go and cannot be changed to subscription.
|
|
32022
32573
|
*
|
|
32023
32574
|
* @param request ModifyDiskChargeTypeRequest
|
|
32024
32575
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32026,15 +32577,15 @@ export default class Client extends OpenApi {
|
|
|
32026
32577
|
*/
|
|
32027
32578
|
modifyDiskChargeTypeWithOptions(request: ModifyDiskChargeTypeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDiskChargeTypeResponse>;
|
|
32028
32579
|
/**
|
|
32029
|
-
*
|
|
32030
|
-
* After you change the billing method, automatic payment is enabled by default. Make sure that you have sufficient balance in your account. Otherwise, your order becomes invalid and must be canceled. If your account balance is insufficient, you can set the AutoPay parameter to false to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
|
|
32580
|
+
* After you change the billing method, the payment (if any) is automatically completed. Maintain a sufficient account balance. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the AutoPay parameter to false to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
|
|
32031
32581
|
* When you call this operation, take note of the following items:
|
|
32032
|
-
* * You can change the billing method from subscription to pay-as-you-go for
|
|
32033
|
-
* * You can change the billing method from pay-as-you-go to subscription for
|
|
32582
|
+
* * You can change the billing method from subscription to pay-as-you-go for disks that are attached to a subscription instance.
|
|
32583
|
+
* * You can change the billing method from pay-as-you-go to subscription for data disks that are attached to a subscription or pay-as-you-go instance.
|
|
32034
32584
|
* * The instance cannot be in the Stopped state due to overdue payments.
|
|
32035
|
-
* * You can change the billing method
|
|
32036
|
-
* * The price difference is refunded to the payment account you used.
|
|
32037
|
-
* * You cannot change the billing method
|
|
32585
|
+
* * You can change the billing method of each disk up to three times. Up to three refunds can be made for the price differences for each disk.
|
|
32586
|
+
* * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
|
|
32587
|
+
* * You cannot change the billing method again within 5 minutes of a successful change.
|
|
32588
|
+
* * The billing method of disks with the multi-attach feature enabled must be pay-as-you-go and cannot be changed to subscription.
|
|
32038
32589
|
*
|
|
32039
32590
|
* @param request ModifyDiskChargeTypeRequest
|
|
32040
32591
|
* @return ModifyDiskChargeTypeResponse
|
|
@@ -32108,15 +32659,112 @@ export default class Client extends OpenApi {
|
|
|
32108
32659
|
* @return ModifyImageShareGroupPermissionResponse
|
|
32109
32660
|
*/
|
|
32110
32661
|
modifyImageShareGroupPermission(request: ModifyImageShareGroupPermissionRequest): Promise<ModifyImageShareGroupPermissionResponse>;
|
|
32662
|
+
/**
|
|
32663
|
+
* When you call this operation, take note of the following items:
|
|
32664
|
+
* * You can share only your custom images with other Alibaba Cloud accounts.
|
|
32665
|
+
* * You can share a custom image with up to 10 Alibaba Cloud accounts in a request. You can specify up to 10 Alibaba Cloud account IDs by using the AddAccount.N parameter or the RemoveAccount.N parameter. If you specify more than 10 account IDs, the parameter value does not take effect.
|
|
32666
|
+
* * You can share a custom image with up to 50 Alibaba Cloud accounts in total.
|
|
32667
|
+
* * After you create an instance from a shared custom image by calling the [RunInstances](~~63440~~) operation, you cannot call the [ReInitDisk](~~25519~~) operation to reinitialize the system disk of the instance if the image owner unshares the image or calls the [DeleteImage](~~25537~~) operation to delete the image.
|
|
32668
|
+
* To publish or unpublish a community image, take note of the following items:
|
|
32669
|
+
* * Alibaba Cloud provides only the platform where the community images can be published and managed. The owner of a community image is responsible for the quality and updates of the image. Make sure that you read and agree to the Community Image Agreement. Otherwise, you cannot publish community images. For more information, see [Publish a community image](~~208370~~)
|
|
32670
|
+
* * You cannot publish encrypted images as community images.
|
|
32671
|
+
* * All community images are publicly available. All Alibaba Cloud accounts that reside in the same region as a community image can access the image.
|
|
32672
|
+
* * You cannot share, export, or copy community images.
|
|
32673
|
+
* * After a community image is unpublished, the image is no longer available to Alibaba Cloud accounts. If you share a custom image with specific Alibaba cloud accounts and then publish the image as a community image, the image is still shared with the accounts.
|
|
32674
|
+
*
|
|
32675
|
+
* @param request ModifyImageSharePermissionRequest
|
|
32676
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32677
|
+
* @return ModifyImageSharePermissionResponse
|
|
32678
|
+
*/
|
|
32111
32679
|
modifyImageSharePermissionWithOptions(request: ModifyImageSharePermissionRequest, runtime: $Util.RuntimeOptions): Promise<ModifyImageSharePermissionResponse>;
|
|
32680
|
+
/**
|
|
32681
|
+
* When you call this operation, take note of the following items:
|
|
32682
|
+
* * You can share only your custom images with other Alibaba Cloud accounts.
|
|
32683
|
+
* * You can share a custom image with up to 10 Alibaba Cloud accounts in a request. You can specify up to 10 Alibaba Cloud account IDs by using the AddAccount.N parameter or the RemoveAccount.N parameter. If you specify more than 10 account IDs, the parameter value does not take effect.
|
|
32684
|
+
* * You can share a custom image with up to 50 Alibaba Cloud accounts in total.
|
|
32685
|
+
* * After you create an instance from a shared custom image by calling the [RunInstances](~~63440~~) operation, you cannot call the [ReInitDisk](~~25519~~) operation to reinitialize the system disk of the instance if the image owner unshares the image or calls the [DeleteImage](~~25537~~) operation to delete the image.
|
|
32686
|
+
* To publish or unpublish a community image, take note of the following items:
|
|
32687
|
+
* * Alibaba Cloud provides only the platform where the community images can be published and managed. The owner of a community image is responsible for the quality and updates of the image. Make sure that you read and agree to the Community Image Agreement. Otherwise, you cannot publish community images. For more information, see [Publish a community image](~~208370~~)
|
|
32688
|
+
* * You cannot publish encrypted images as community images.
|
|
32689
|
+
* * All community images are publicly available. All Alibaba Cloud accounts that reside in the same region as a community image can access the image.
|
|
32690
|
+
* * You cannot share, export, or copy community images.
|
|
32691
|
+
* * After a community image is unpublished, the image is no longer available to Alibaba Cloud accounts. If you share a custom image with specific Alibaba cloud accounts and then publish the image as a community image, the image is still shared with the accounts.
|
|
32692
|
+
*
|
|
32693
|
+
* @param request ModifyImageSharePermissionRequest
|
|
32694
|
+
* @return ModifyImageSharePermissionResponse
|
|
32695
|
+
*/
|
|
32112
32696
|
modifyImageSharePermission(request: ModifyImageSharePermissionRequest): Promise<ModifyImageSharePermissionResponse>;
|
|
32113
32697
|
modifyInstanceAttachmentAttributesWithOptions(request: ModifyInstanceAttachmentAttributesRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceAttachmentAttributesResponse>;
|
|
32114
32698
|
modifyInstanceAttachmentAttributes(request: ModifyInstanceAttachmentAttributesRequest): Promise<ModifyInstanceAttachmentAttributesResponse>;
|
|
32699
|
+
/**
|
|
32700
|
+
* If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons and all operations are prohibited on it.
|
|
32701
|
+
* When you call this operation, take note of the following items:
|
|
32702
|
+
* * Modify the hostname (`HostName`): After the hostname is modified, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. The new hostname does not take effect if you restart the instance from within the operating system.
|
|
32703
|
+
* * Reset the password (`Password`):
|
|
32704
|
+
* * The instance must not be in the **Starting** (`Starting`) state.
|
|
32705
|
+
* * After the password is reset, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. The new password does not take effect if you restart the instance from within the operating system.
|
|
32706
|
+
* * Modify user data (`UserData`):
|
|
32707
|
+
* * The instance must be in the **Stopped** (`Stopped`) state.
|
|
32708
|
+
* * The instance must meet the conditions on user data. For more information, see [Overview of ECS instance user data](~~49121~~).
|
|
32709
|
+
* * Change the security group (`SecurityGroupIds.N`):
|
|
32710
|
+
* * You can move an instance to a security group of a different type. Before you move an instance to a security group of a different type, we recommend that you evaluate the differences in rule configurations of the two security group types. This helps prevent business continuity issues when you switch security groups.
|
|
32711
|
+
* * Security groups of instances in the classic network cannot be changed. For more information, see the description of the `SecurityGroupIds.N` parameter.
|
|
32712
|
+
* * Modify the number of queues supported by the primary elastic network interface (ENI) (`NetworkInterfaceQueueNumber`):
|
|
32713
|
+
* * The instance must be in the Stopped (`Stopped`) state.
|
|
32714
|
+
* * The value of this parameter cannot exceed the maximum number of queues per ENI allowed for the instance type.
|
|
32715
|
+
* * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. To obtain the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` parameters.
|
|
32716
|
+
* * If you set the NetworkInterfaceQueueNumber parameter to -1, the value is reset to the default value for the instance type. To obtain the default number of queues supported by the primary ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `PrimaryEniQueueNumber` parameter.
|
|
32717
|
+
*
|
|
32718
|
+
* @param request ModifyInstanceAttributeRequest
|
|
32719
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32720
|
+
* @return ModifyInstanceAttributeResponse
|
|
32721
|
+
*/
|
|
32115
32722
|
modifyInstanceAttributeWithOptions(request: ModifyInstanceAttributeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceAttributeResponse>;
|
|
32723
|
+
/**
|
|
32724
|
+
* If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons and all operations are prohibited on it.
|
|
32725
|
+
* When you call this operation, take note of the following items:
|
|
32726
|
+
* * Modify the hostname (`HostName`): After the hostname is modified, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. The new hostname does not take effect if you restart the instance from within the operating system.
|
|
32727
|
+
* * Reset the password (`Password`):
|
|
32728
|
+
* * The instance must not be in the **Starting** (`Starting`) state.
|
|
32729
|
+
* * After the password is reset, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. The new password does not take effect if you restart the instance from within the operating system.
|
|
32730
|
+
* * Modify user data (`UserData`):
|
|
32731
|
+
* * The instance must be in the **Stopped** (`Stopped`) state.
|
|
32732
|
+
* * The instance must meet the conditions on user data. For more information, see [Overview of ECS instance user data](~~49121~~).
|
|
32733
|
+
* * Change the security group (`SecurityGroupIds.N`):
|
|
32734
|
+
* * You can move an instance to a security group of a different type. Before you move an instance to a security group of a different type, we recommend that you evaluate the differences in rule configurations of the two security group types. This helps prevent business continuity issues when you switch security groups.
|
|
32735
|
+
* * Security groups of instances in the classic network cannot be changed. For more information, see the description of the `SecurityGroupIds.N` parameter.
|
|
32736
|
+
* * Modify the number of queues supported by the primary elastic network interface (ENI) (`NetworkInterfaceQueueNumber`):
|
|
32737
|
+
* * The instance must be in the Stopped (`Stopped`) state.
|
|
32738
|
+
* * The value of this parameter cannot exceed the maximum number of queues per ENI allowed for the instance type.
|
|
32739
|
+
* * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. To obtain the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` parameters.
|
|
32740
|
+
* * If you set the NetworkInterfaceQueueNumber parameter to -1, the value is reset to the default value for the instance type. To obtain the default number of queues supported by the primary ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `PrimaryEniQueueNumber` parameter.
|
|
32741
|
+
*
|
|
32742
|
+
* @param request ModifyInstanceAttributeRequest
|
|
32743
|
+
* @return ModifyInstanceAttributeResponse
|
|
32744
|
+
*/
|
|
32116
32745
|
modifyInstanceAttribute(request: ModifyInstanceAttributeRequest): Promise<ModifyInstanceAttributeResponse>;
|
|
32117
32746
|
modifyInstanceAutoReleaseTimeWithOptions(request: ModifyInstanceAutoReleaseTimeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceAutoReleaseTimeResponse>;
|
|
32118
32747
|
modifyInstanceAutoReleaseTime(request: ModifyInstanceAutoReleaseTimeRequest): Promise<ModifyInstanceAutoReleaseTimeResponse>;
|
|
32748
|
+
/**
|
|
32749
|
+
* Before you call this operation, make sure that you understand the billing methods and pricing schedule of Elastic Compute Service (ECS). For more information, see the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
|
|
32750
|
+
* * The payment for auto-renewal is first deducted automatically at 08:00:00 (UTC+8) nine days before the instance expires.
|
|
32751
|
+
* * If the subscription period of a new instance is one week, the renewal payment is automatically deducted on the day the instance is created.
|
|
32752
|
+
* * If the first deduction attempt fails, Alibaba Cloud attempts to deduct the payment each day until the payment is deducted or until the instance is locked after the nine-day period ends. Make sure that your account balance or credit balance is sufficient.
|
|
32753
|
+
*
|
|
32754
|
+
* @param request ModifyInstanceAutoRenewAttributeRequest
|
|
32755
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32756
|
+
* @return ModifyInstanceAutoRenewAttributeResponse
|
|
32757
|
+
*/
|
|
32119
32758
|
modifyInstanceAutoRenewAttributeWithOptions(request: ModifyInstanceAutoRenewAttributeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceAutoRenewAttributeResponse>;
|
|
32759
|
+
/**
|
|
32760
|
+
* Before you call this operation, make sure that you understand the billing methods and pricing schedule of Elastic Compute Service (ECS). For more information, see the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
|
|
32761
|
+
* * The payment for auto-renewal is first deducted automatically at 08:00:00 (UTC+8) nine days before the instance expires.
|
|
32762
|
+
* * If the subscription period of a new instance is one week, the renewal payment is automatically deducted on the day the instance is created.
|
|
32763
|
+
* * If the first deduction attempt fails, Alibaba Cloud attempts to deduct the payment each day until the payment is deducted or until the instance is locked after the nine-day period ends. Make sure that your account balance or credit balance is sufficient.
|
|
32764
|
+
*
|
|
32765
|
+
* @param request ModifyInstanceAutoRenewAttributeRequest
|
|
32766
|
+
* @return ModifyInstanceAutoRenewAttributeResponse
|
|
32767
|
+
*/
|
|
32120
32768
|
modifyInstanceAutoRenewAttribute(request: ModifyInstanceAutoRenewAttributeRequest): Promise<ModifyInstanceAutoRenewAttributeResponse>;
|
|
32121
32769
|
/**
|
|
32122
32770
|
* Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
|
|
@@ -32180,17 +32828,182 @@ export default class Client extends OpenApi {
|
|
|
32180
32828
|
* @return ModifyInstanceDeploymentResponse
|
|
32181
32829
|
*/
|
|
32182
32830
|
modifyInstanceDeployment(request: ModifyInstanceDeploymentRequest): Promise<ModifyInstanceDeploymentResponse>;
|
|
32831
|
+
/**
|
|
32832
|
+
* This operation is used to modify the maintenance policy of an instance. The maintenance policy consists of the following maintenance attributes:
|
|
32833
|
+
* * Maintenance window: the time period that you specify for maintenance.
|
|
32834
|
+
* * Maintenance action: the action that you specify in response to instance shutdown.
|
|
32835
|
+
*
|
|
32836
|
+
* @param request ModifyInstanceMaintenanceAttributesRequest
|
|
32837
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32838
|
+
* @return ModifyInstanceMaintenanceAttributesResponse
|
|
32839
|
+
*/
|
|
32183
32840
|
modifyInstanceMaintenanceAttributesWithOptions(request: ModifyInstanceMaintenanceAttributesRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceMaintenanceAttributesResponse>;
|
|
32841
|
+
/**
|
|
32842
|
+
* This operation is used to modify the maintenance policy of an instance. The maintenance policy consists of the following maintenance attributes:
|
|
32843
|
+
* * Maintenance window: the time period that you specify for maintenance.
|
|
32844
|
+
* * Maintenance action: the action that you specify in response to instance shutdown.
|
|
32845
|
+
*
|
|
32846
|
+
* @param request ModifyInstanceMaintenanceAttributesRequest
|
|
32847
|
+
* @return ModifyInstanceMaintenanceAttributesResponse
|
|
32848
|
+
*/
|
|
32184
32849
|
modifyInstanceMaintenanceAttributes(request: ModifyInstanceMaintenanceAttributesRequest): Promise<ModifyInstanceMaintenanceAttributesResponse>;
|
|
32185
32850
|
modifyInstanceMetadataOptionsWithOptions(request: ModifyInstanceMetadataOptionsRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceMetadataOptionsResponse>;
|
|
32186
32851
|
modifyInstanceMetadataOptions(request: ModifyInstanceMetadataOptionsRequest): Promise<ModifyInstanceMetadataOptionsResponse>;
|
|
32852
|
+
/**
|
|
32853
|
+
* When you call this operation, take note of the following items:
|
|
32854
|
+
* * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to throttling policies for your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
|
|
32855
|
+
* * Within a single region, the sum of actual peak bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
|
|
32856
|
+
* * Within a single region, the sum of actual peak bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
|
|
32857
|
+
* * If you upgrade the outbound public bandwidth (InternetMaxBandwidthOut) of a subscription (PrePaid) instance from 0 Mbit/s when you modify the bandwidth configurations of the instance, a public IP address is automatically assigned to the instance.
|
|
32858
|
+
* * If you upgrade the outbound public bandwidth (InternetMaxBandwidthOut) of a pay-as-you-go (PostPaid) instance from 0 Mbit/s when you modify the bandwidth configurations of the instance, no public IP address is automatically assigned to the instance. You must call the [AllocatePublicIpAddress](~~25544~~) operation to assign a public IP address to the instance.
|
|
32859
|
+
* * An instance in the classic network must be in the Stopped state before you can upgrade the outbound public bandwidth (InternetMaxBandwidthOut) of the instance from 0 Mbit/s.
|
|
32860
|
+
* * After the bandwidth is upgraded, AutoPay is set to true by default and the payment is automatically made. Maintain a sufficient account balance. Otherwise, your order becomes invalid and must be canceled. If your account balance is insufficient, you can set AutoPay to false. When you call the ModifyInstanceNetworkSpec operation, an unpaid order is generated. Then, you can log on to the ECS console to pay for the order.
|
|
32861
|
+
* * The price difference is refunded to the payment account that you used. Vouchers or coupons that have been redeemed cannot be returned.
|
|
32862
|
+
*
|
|
32863
|
+
* @param request ModifyInstanceNetworkSpecRequest
|
|
32864
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32865
|
+
* @return ModifyInstanceNetworkSpecResponse
|
|
32866
|
+
*/
|
|
32187
32867
|
modifyInstanceNetworkSpecWithOptions(request: ModifyInstanceNetworkSpecRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceNetworkSpecResponse>;
|
|
32868
|
+
/**
|
|
32869
|
+
* When you call this operation, take note of the following items:
|
|
32870
|
+
* * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to throttling policies for your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
|
|
32871
|
+
* * Within a single region, the sum of actual peak bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
|
|
32872
|
+
* * Within a single region, the sum of actual peak bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
|
|
32873
|
+
* * If you upgrade the outbound public bandwidth (InternetMaxBandwidthOut) of a subscription (PrePaid) instance from 0 Mbit/s when you modify the bandwidth configurations of the instance, a public IP address is automatically assigned to the instance.
|
|
32874
|
+
* * If you upgrade the outbound public bandwidth (InternetMaxBandwidthOut) of a pay-as-you-go (PostPaid) instance from 0 Mbit/s when you modify the bandwidth configurations of the instance, no public IP address is automatically assigned to the instance. You must call the [AllocatePublicIpAddress](~~25544~~) operation to assign a public IP address to the instance.
|
|
32875
|
+
* * An instance in the classic network must be in the Stopped state before you can upgrade the outbound public bandwidth (InternetMaxBandwidthOut) of the instance from 0 Mbit/s.
|
|
32876
|
+
* * After the bandwidth is upgraded, AutoPay is set to true by default and the payment is automatically made. Maintain a sufficient account balance. Otherwise, your order becomes invalid and must be canceled. If your account balance is insufficient, you can set AutoPay to false. When you call the ModifyInstanceNetworkSpec operation, an unpaid order is generated. Then, you can log on to the ECS console to pay for the order.
|
|
32877
|
+
* * The price difference is refunded to the payment account that you used. Vouchers or coupons that have been redeemed cannot be returned.
|
|
32878
|
+
*
|
|
32879
|
+
* @param request ModifyInstanceNetworkSpecRequest
|
|
32880
|
+
* @return ModifyInstanceNetworkSpecResponse
|
|
32881
|
+
*/
|
|
32188
32882
|
modifyInstanceNetworkSpec(request: ModifyInstanceNetworkSpecRequest): Promise<ModifyInstanceNetworkSpecResponse>;
|
|
32883
|
+
/**
|
|
32884
|
+
* ## Description
|
|
32885
|
+
* Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, visit the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
|
|
32886
|
+
* For information about ECS SDK for Python used to change resource configurations, see [Query available resources for configuration changes](~~109517~~).
|
|
32887
|
+
* When you call this operation, take note of the following items:
|
|
32888
|
+
* * You must have no overdue payments in your account.
|
|
32889
|
+
* * You can adjust the public bandwidth of an instance only when the instance is in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
|
|
32890
|
+
* * Before you change the instance type of a pay-as-you-go instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change.
|
|
32891
|
+
* * You can change the instance type of an instance only when the instance is in the **Stopped** (`Stopped`) state.
|
|
32892
|
+
* * The instance type and the public bandwidth of an instance cannot be changed together.
|
|
32893
|
+
* * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to throttling policies for your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
|
|
32894
|
+
* * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
|
|
32895
|
+
* * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
|
|
32896
|
+
*
|
|
32897
|
+
* @param request ModifyInstanceSpecRequest
|
|
32898
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32899
|
+
* @return ModifyInstanceSpecResponse
|
|
32900
|
+
*/
|
|
32189
32901
|
modifyInstanceSpecWithOptions(request: ModifyInstanceSpecRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceSpecResponse>;
|
|
32902
|
+
/**
|
|
32903
|
+
* ## Description
|
|
32904
|
+
* Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, visit the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
|
|
32905
|
+
* For information about ECS SDK for Python used to change resource configurations, see [Query available resources for configuration changes](~~109517~~).
|
|
32906
|
+
* When you call this operation, take note of the following items:
|
|
32907
|
+
* * You must have no overdue payments in your account.
|
|
32908
|
+
* * You can adjust the public bandwidth of an instance only when the instance is in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
|
|
32909
|
+
* * Before you change the instance type of a pay-as-you-go instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change.
|
|
32910
|
+
* * You can change the instance type of an instance only when the instance is in the **Stopped** (`Stopped`) state.
|
|
32911
|
+
* * The instance type and the public bandwidth of an instance cannot be changed together.
|
|
32912
|
+
* * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to throttling policies for your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
|
|
32913
|
+
* * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
|
|
32914
|
+
* * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
|
|
32915
|
+
*
|
|
32916
|
+
* @param request ModifyInstanceSpecRequest
|
|
32917
|
+
* @return ModifyInstanceSpecResponse
|
|
32918
|
+
*/
|
|
32190
32919
|
modifyInstanceSpec(request: ModifyInstanceSpecRequest): Promise<ModifyInstanceSpecResponse>;
|
|
32920
|
+
/**
|
|
32921
|
+
* * The password must be six characters in length and can contain only uppercase letters, lowercase letters, and digits.
|
|
32922
|
+
* * After you modify the VNC password of an instance, take note of the following items:
|
|
32923
|
+
* * If the instance is I/O optimized, the new password takes effect immediately.
|
|
32924
|
+
* * If the instance is non-I/O optimized, you must [restart the instance](~~25440~~) by using the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect.
|
|
32925
|
+
*
|
|
32926
|
+
* @param request ModifyInstanceVncPasswdRequest
|
|
32927
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32928
|
+
* @return ModifyInstanceVncPasswdResponse
|
|
32929
|
+
*/
|
|
32191
32930
|
modifyInstanceVncPasswdWithOptions(request: ModifyInstanceVncPasswdRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceVncPasswdResponse>;
|
|
32931
|
+
/**
|
|
32932
|
+
* * The password must be six characters in length and can contain only uppercase letters, lowercase letters, and digits.
|
|
32933
|
+
* * After you modify the VNC password of an instance, take note of the following items:
|
|
32934
|
+
* * If the instance is I/O optimized, the new password takes effect immediately.
|
|
32935
|
+
* * If the instance is non-I/O optimized, you must [restart the instance](~~25440~~) by using the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect.
|
|
32936
|
+
*
|
|
32937
|
+
* @param request ModifyInstanceVncPasswdRequest
|
|
32938
|
+
* @return ModifyInstanceVncPasswdResponse
|
|
32939
|
+
*/
|
|
32192
32940
|
modifyInstanceVncPasswd(request: ModifyInstanceVncPasswdRequest): Promise<ModifyInstanceVncPasswdResponse>;
|
|
32941
|
+
/**
|
|
32942
|
+
* The instance must be in the **Stopped** state.``
|
|
32943
|
+
* * When you call this operation to modify the private IP address or vSwitch of an instance, take note of the following items:
|
|
32944
|
+
* * If the instance is newly created, you must restart the instance before you can call this operation.
|
|
32945
|
+
* * After you modify the private IP address or vSwitch of an instance, you must restart the instance before you can call this operation again.
|
|
32946
|
+
* * When you call this operation to modify the VPC of an instance, take note of the following items:
|
|
32947
|
+
* * **Instance:**
|
|
32948
|
+
* * The instance cannot be associated with Server Load Balancer (SLB) instances.
|
|
32949
|
+
* * The instance cannot be in the Locked, To Be Released, Expired, Expired and Being Recycled, or Overdue and Being Recycled state. For more information, see [ECS instance lifecycle](~~25380~~).
|
|
32950
|
+
* * The instance cannot be in-use or used in conjunction with other cloud services. For example, the instance cannot be in the process of being migrated or having its VPC changed, or the databases deployed on the instance cannot be managed by Data Transmission Service (DTS).
|
|
32951
|
+
* * **Network:**
|
|
32952
|
+
* * The cut-through mode or multi-elastic IP address (EIP) to elastic network interface (ENI) mode must be disabled.
|
|
32953
|
+
* * The instance cannot be associated with a high-availability virtual IP address (HAVIP).
|
|
32954
|
+
* * The vSwitch of the instance cannot be associated with a custom route table.
|
|
32955
|
+
* * The instance cannot have Global Accelerator (GA) activated.
|
|
32956
|
+
* * The instance cannot have secondary ENIs bound.
|
|
32957
|
+
* * The instance cannot have IPv6 addresses assigned.
|
|
32958
|
+
* * The primary ENI of the instance cannot be associated with multiple IP addresses.
|
|
32959
|
+
* * The vSwitch specified by the VSwitchId parameter must belong to the new VPC.
|
|
32960
|
+
* * The new and original vSwitches must reside within the same zone.
|
|
32961
|
+
* * If the private IP address of the primary ENI is specified, the private IP address must be available and within the CIDR block of the vSwitch. If the private IP address is not specified, the system randomly assigns one. The available IP addresses in the CIDR block of the new vSwitch must be sufficient.
|
|
32962
|
+
* * If advanced features are enabled in the new VPC, take note of the instance families that do not support advanced VPC features. For more information, see [Instance families that do not support advanced VPC features](~~163466~~).
|
|
32963
|
+
* * The Alibaba Cloud account that owns the new VPC cannot share the VPC with other accounts.
|
|
32964
|
+
* * **Security group (SecurityGroupId.N):**
|
|
32965
|
+
* * All security groups must be of the same type.
|
|
32966
|
+
* * The valid values of N depend on the maximum number of security groups to which an instance can belong. For more information, see [Limits](~~25412~~).
|
|
32967
|
+
* * The specified security groups must belong to the new VPC.
|
|
32968
|
+
* * You can switch the instance to a security group of a different type. If you want to switch an instance to a security group of a different type, you must understand the differences between the rule configurations of the two security group types to avoid impacts on the instance network. For more information, see [Overview](~~25387~~).
|
|
32969
|
+
*
|
|
32970
|
+
* @param request ModifyInstanceVpcAttributeRequest
|
|
32971
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32972
|
+
* @return ModifyInstanceVpcAttributeResponse
|
|
32973
|
+
*/
|
|
32193
32974
|
modifyInstanceVpcAttributeWithOptions(request: ModifyInstanceVpcAttributeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceVpcAttributeResponse>;
|
|
32975
|
+
/**
|
|
32976
|
+
* The instance must be in the **Stopped** state.``
|
|
32977
|
+
* * When you call this operation to modify the private IP address or vSwitch of an instance, take note of the following items:
|
|
32978
|
+
* * If the instance is newly created, you must restart the instance before you can call this operation.
|
|
32979
|
+
* * After you modify the private IP address or vSwitch of an instance, you must restart the instance before you can call this operation again.
|
|
32980
|
+
* * When you call this operation to modify the VPC of an instance, take note of the following items:
|
|
32981
|
+
* * **Instance:**
|
|
32982
|
+
* * The instance cannot be associated with Server Load Balancer (SLB) instances.
|
|
32983
|
+
* * The instance cannot be in the Locked, To Be Released, Expired, Expired and Being Recycled, or Overdue and Being Recycled state. For more information, see [ECS instance lifecycle](~~25380~~).
|
|
32984
|
+
* * The instance cannot be in-use or used in conjunction with other cloud services. For example, the instance cannot be in the process of being migrated or having its VPC changed, or the databases deployed on the instance cannot be managed by Data Transmission Service (DTS).
|
|
32985
|
+
* * **Network:**
|
|
32986
|
+
* * The cut-through mode or multi-elastic IP address (EIP) to elastic network interface (ENI) mode must be disabled.
|
|
32987
|
+
* * The instance cannot be associated with a high-availability virtual IP address (HAVIP).
|
|
32988
|
+
* * The vSwitch of the instance cannot be associated with a custom route table.
|
|
32989
|
+
* * The instance cannot have Global Accelerator (GA) activated.
|
|
32990
|
+
* * The instance cannot have secondary ENIs bound.
|
|
32991
|
+
* * The instance cannot have IPv6 addresses assigned.
|
|
32992
|
+
* * The primary ENI of the instance cannot be associated with multiple IP addresses.
|
|
32993
|
+
* * The vSwitch specified by the VSwitchId parameter must belong to the new VPC.
|
|
32994
|
+
* * The new and original vSwitches must reside within the same zone.
|
|
32995
|
+
* * If the private IP address of the primary ENI is specified, the private IP address must be available and within the CIDR block of the vSwitch. If the private IP address is not specified, the system randomly assigns one. The available IP addresses in the CIDR block of the new vSwitch must be sufficient.
|
|
32996
|
+
* * If advanced features are enabled in the new VPC, take note of the instance families that do not support advanced VPC features. For more information, see [Instance families that do not support advanced VPC features](~~163466~~).
|
|
32997
|
+
* * The Alibaba Cloud account that owns the new VPC cannot share the VPC with other accounts.
|
|
32998
|
+
* * **Security group (SecurityGroupId.N):**
|
|
32999
|
+
* * All security groups must be of the same type.
|
|
33000
|
+
* * The valid values of N depend on the maximum number of security groups to which an instance can belong. For more information, see [Limits](~~25412~~).
|
|
33001
|
+
* * The specified security groups must belong to the new VPC.
|
|
33002
|
+
* * You can switch the instance to a security group of a different type. If you want to switch an instance to a security group of a different type, you must understand the differences between the rule configurations of the two security group types to avoid impacts on the instance network. For more information, see [Overview](~~25387~~).
|
|
33003
|
+
*
|
|
33004
|
+
* @param request ModifyInstanceVpcAttributeRequest
|
|
33005
|
+
* @return ModifyInstanceVpcAttributeResponse
|
|
33006
|
+
*/
|
|
32194
33007
|
modifyInstanceVpcAttribute(request: ModifyInstanceVpcAttributeRequest): Promise<ModifyInstanceVpcAttributeResponse>;
|
|
32195
33008
|
modifyLaunchTemplateDefaultVersionWithOptions(request: ModifyLaunchTemplateDefaultVersionRequest, runtime: $Util.RuntimeOptions): Promise<ModifyLaunchTemplateDefaultVersionResponse>;
|
|
32196
33009
|
modifyLaunchTemplateDefaultVersion(request: ModifyLaunchTemplateDefaultVersionRequest): Promise<ModifyLaunchTemplateDefaultVersionResponse>;
|
|
@@ -32240,36 +33053,48 @@ export default class Client extends OpenApi {
|
|
|
32240
33053
|
* @return ModifyPrefixListResponse
|
|
32241
33054
|
*/
|
|
32242
33055
|
modifyPrefixList(request: ModifyPrefixListRequest): Promise<ModifyPrefixListResponse>;
|
|
33056
|
+
/**
|
|
33057
|
+
* Before you call this operation, make sure that you understand the billing methods, pricing schedule, and refund policies of [ECS](https://www.alibabacloud.com/product/ecs#pricing). For more information, see [Request a refund for the downgrade of resource specifications](~~201955~~).
|
|
33058
|
+
* Before you change the instance type of a subscription instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the supported instance types. You can use ECS SDK for Python to query the instance types to which you can change. For more information, see [Query available resources for configuration changes](~~109517~~).
|
|
33059
|
+
* When you call this operation, take note of the following item:
|
|
33060
|
+
* * You cannot change the instance type of an expired instance. Renew the instance and try again.
|
|
33061
|
+
* * When you downgrade the instance type of an instance, take note of the following items:
|
|
33062
|
+
* * The instance must be in the **Stopped** (`Stopped`) state.
|
|
33063
|
+
* * You must specify the operation type by setting the `OperatorType` parameter to downgrade.
|
|
33064
|
+
* * You can downgrade the configurations of an instance for up to three times. In this case, you can apply for up to three refunds for price differences for an instance. Downgrade operations include instance type downgrades, bandwidth configuration downgrades, and the change of the disk billing method from subscription to pay-as-you-go.
|
|
33065
|
+
* * The price difference is refunded to the payment account that you used to purchase the instance. You cannot apply for a refund for vouchers that you already redeemed.
|
|
33066
|
+
* * This operation is asynchronous. The system requires 5 to 10 seconds to change the instance type of an instance. For the instance type change to take effect, you must restart the instance in the ECS console or by calling the RebootInstance operation. If you restart only the operating system of the instance, the instance type change does not take effect.
|
|
33067
|
+
* * If the instance is in the **Stopped** state, you need to only start the instance. You do not need to restart the instance after it enters the Running state.
|
|
33068
|
+
* * If you set the `RebootWhenFinished` parameter to true for the instance, you do not need to restart the instance.
|
|
33069
|
+
*
|
|
33070
|
+
* @param request ModifyPrepayInstanceSpecRequest
|
|
33071
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
33072
|
+
* @return ModifyPrepayInstanceSpecResponse
|
|
33073
|
+
*/
|
|
32243
33074
|
modifyPrepayInstanceSpecWithOptions(request: ModifyPrepayInstanceSpecRequest, runtime: $Util.RuntimeOptions): Promise<ModifyPrepayInstanceSpecResponse>;
|
|
33075
|
+
/**
|
|
33076
|
+
* Before you call this operation, make sure that you understand the billing methods, pricing schedule, and refund policies of [ECS](https://www.alibabacloud.com/product/ecs#pricing). For more information, see [Request a refund for the downgrade of resource specifications](~~201955~~).
|
|
33077
|
+
* Before you change the instance type of a subscription instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the supported instance types. You can use ECS SDK for Python to query the instance types to which you can change. For more information, see [Query available resources for configuration changes](~~109517~~).
|
|
33078
|
+
* When you call this operation, take note of the following item:
|
|
33079
|
+
* * You cannot change the instance type of an expired instance. Renew the instance and try again.
|
|
33080
|
+
* * When you downgrade the instance type of an instance, take note of the following items:
|
|
33081
|
+
* * The instance must be in the **Stopped** (`Stopped`) state.
|
|
33082
|
+
* * You must specify the operation type by setting the `OperatorType` parameter to downgrade.
|
|
33083
|
+
* * You can downgrade the configurations of an instance for up to three times. In this case, you can apply for up to three refunds for price differences for an instance. Downgrade operations include instance type downgrades, bandwidth configuration downgrades, and the change of the disk billing method from subscription to pay-as-you-go.
|
|
33084
|
+
* * The price difference is refunded to the payment account that you used to purchase the instance. You cannot apply for a refund for vouchers that you already redeemed.
|
|
33085
|
+
* * This operation is asynchronous. The system requires 5 to 10 seconds to change the instance type of an instance. For the instance type change to take effect, you must restart the instance in the ECS console or by calling the RebootInstance operation. If you restart only the operating system of the instance, the instance type change does not take effect.
|
|
33086
|
+
* * If the instance is in the **Stopped** state, you need to only start the instance. You do not need to restart the instance after it enters the Running state.
|
|
33087
|
+
* * If you set the `RebootWhenFinished` parameter to true for the instance, you do not need to restart the instance.
|
|
33088
|
+
*
|
|
33089
|
+
* @param request ModifyPrepayInstanceSpecRequest
|
|
33090
|
+
* @return ModifyPrepayInstanceSpecResponse
|
|
33091
|
+
*/
|
|
32244
33092
|
modifyPrepayInstanceSpec(request: ModifyPrepayInstanceSpecRequest): Promise<ModifyPrepayInstanceSpecResponse>;
|
|
32245
33093
|
modifyReservedInstanceAttributeWithOptions(request: ModifyReservedInstanceAttributeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyReservedInstanceAttributeResponse>;
|
|
32246
33094
|
modifyReservedInstanceAttribute(request: ModifyReservedInstanceAttributeRequest): Promise<ModifyReservedInstanceAttributeResponse>;
|
|
32247
33095
|
modifyReservedInstanceAutoRenewAttributeWithOptions(request: ModifyReservedInstanceAutoRenewAttributeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyReservedInstanceAutoRenewAttributeResponse>;
|
|
32248
33096
|
modifyReservedInstanceAutoRenewAttribute(request: ModifyReservedInstanceAutoRenewAttributeRequest): Promise<ModifyReservedInstanceAutoRenewAttributeResponse>;
|
|
32249
|
-
/**
|
|
32250
|
-
* ## Description
|
|
32251
|
-
* When you call this operation, take note of the following items:
|
|
32252
|
-
* * For information about limits on reserved instances, see the "Limits" section in [Overview](~~100370~~).
|
|
32253
|
-
* * If you call this operation to split a reserved instance, make sure that you fully understand the limits on splitting a reserved instance. For more information, see [Split a reserved instance](~~100375~~).
|
|
32254
|
-
* * If you call this operation to merge reserved instances, make sure that you fully understand the limits on merging reserved instances. For more information, see [Merge reserved instances](~~132229~~).
|
|
32255
|
-
* * If you call this operation to modify a reserved instance, make sure that you fully understand the limits on and methods of modifying a reserved instance. For more information, see [Modify a reserved instance](~~132230~~).
|
|
32256
|
-
*
|
|
32257
|
-
* @param request ModifyReservedInstancesRequest
|
|
32258
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
32259
|
-
* @return ModifyReservedInstancesResponse
|
|
32260
|
-
*/
|
|
32261
33097
|
modifyReservedInstancesWithOptions(request: ModifyReservedInstancesRequest, runtime: $Util.RuntimeOptions): Promise<ModifyReservedInstancesResponse>;
|
|
32262
|
-
/**
|
|
32263
|
-
* ## Description
|
|
32264
|
-
* When you call this operation, take note of the following items:
|
|
32265
|
-
* * For information about limits on reserved instances, see the "Limits" section in [Overview](~~100370~~).
|
|
32266
|
-
* * If you call this operation to split a reserved instance, make sure that you fully understand the limits on splitting a reserved instance. For more information, see [Split a reserved instance](~~100375~~).
|
|
32267
|
-
* * If you call this operation to merge reserved instances, make sure that you fully understand the limits on merging reserved instances. For more information, see [Merge reserved instances](~~132229~~).
|
|
32268
|
-
* * If you call this operation to modify a reserved instance, make sure that you fully understand the limits on and methods of modifying a reserved instance. For more information, see [Modify a reserved instance](~~132230~~).
|
|
32269
|
-
*
|
|
32270
|
-
* @param request ModifyReservedInstancesRequest
|
|
32271
|
-
* @return ModifyReservedInstancesResponse
|
|
32272
|
-
*/
|
|
32273
33098
|
modifyReservedInstances(request: ModifyReservedInstancesRequest): Promise<ModifyReservedInstancesResponse>;
|
|
32274
33099
|
/**
|
|
32275
33100
|
* @deprecated
|
|
@@ -32305,7 +33130,26 @@ export default class Client extends OpenApi {
|
|
|
32305
33130
|
modifySecurityGroupAttribute(request: ModifySecurityGroupAttributeRequest): Promise<ModifySecurityGroupAttributeResponse>;
|
|
32306
33131
|
modifySecurityGroupEgressRuleWithOptions(request: ModifySecurityGroupEgressRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifySecurityGroupEgressRuleResponse>;
|
|
32307
33132
|
modifySecurityGroupEgressRule(request: ModifySecurityGroupEgressRuleRequest): Promise<ModifySecurityGroupEgressRuleResponse>;
|
|
33133
|
+
/**
|
|
33134
|
+
* When you call this operation, take note of the following items:
|
|
33135
|
+
* * 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.
|
|
33136
|
+
* * When InnerAccessPolicy is set to Drop for a security group, the instances in the security group are isolated from each other. In this case, user-created security group rules take precedence over the Drop internal access control policy and can be used to allow access between the instances. For example, you can call the [AuthorizeSecurityGroup](~~25554~~) operation to create an inbound security group rule that allows the instances in the security group to communicate with each other.
|
|
33137
|
+
* * You can call the [DescribeSecurityGroupAttribute](~~25555~~) operation to query the internal access policy of a security group.
|
|
33138
|
+
*
|
|
33139
|
+
* @param request ModifySecurityGroupPolicyRequest
|
|
33140
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
33141
|
+
* @return ModifySecurityGroupPolicyResponse
|
|
33142
|
+
*/
|
|
32308
33143
|
modifySecurityGroupPolicyWithOptions(request: ModifySecurityGroupPolicyRequest, runtime: $Util.RuntimeOptions): Promise<ModifySecurityGroupPolicyResponse>;
|
|
33144
|
+
/**
|
|
33145
|
+
* When you call this operation, take note of the following items:
|
|
33146
|
+
* * 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.
|
|
33147
|
+
* * When InnerAccessPolicy is set to Drop for a security group, the instances in the security group are isolated from each other. In this case, user-created security group rules take precedence over the Drop internal access control policy and can be used to allow access between the instances. For example, you can call the [AuthorizeSecurityGroup](~~25554~~) operation to create an inbound security group rule that allows the instances in the security group to communicate with each other.
|
|
33148
|
+
* * You can call the [DescribeSecurityGroupAttribute](~~25555~~) operation to query the internal access policy of a security group.
|
|
33149
|
+
*
|
|
33150
|
+
* @param request ModifySecurityGroupPolicyRequest
|
|
33151
|
+
* @return ModifySecurityGroupPolicyResponse
|
|
33152
|
+
*/
|
|
32309
33153
|
modifySecurityGroupPolicy(request: ModifySecurityGroupPolicyRequest): Promise<ModifySecurityGroupPolicyResponse>;
|
|
32310
33154
|
modifySecurityGroupRuleWithOptions(request: ModifySecurityGroupRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifySecurityGroupRuleResponse>;
|
|
32311
33155
|
modifySecurityGroupRule(request: ModifySecurityGroupRuleRequest): Promise<ModifySecurityGroupRuleResponse>;
|
|
@@ -32393,7 +33237,7 @@ export default class Client extends OpenApi {
|
|
|
32393
33237
|
*/
|
|
32394
33238
|
modifyVpcAttribute(request: ModifyVpcAttributeRequest): Promise<ModifyVpcAttributeResponse>;
|
|
32395
33239
|
/**
|
|
32396
|
-
* * Before you call this operation, make sure that you
|
|
33240
|
+
* * Before you call this operation, make sure that you are familiar with the billing method of reserved instances. For more information, see [Reserved instances](~~100371~~).
|
|
32397
33241
|
* * Before you purchase a reserved instance, you can call the [DescribeAvailableResource](~~66186~~) operation to query available instance resources.
|
|
32398
33242
|
*
|
|
32399
33243
|
* @param request PurchaseReservedInstancesOfferingRequest
|
|
@@ -32402,7 +33246,7 @@ export default class Client extends OpenApi {
|
|
|
32402
33246
|
*/
|
|
32403
33247
|
purchaseReservedInstancesOfferingWithOptions(request: PurchaseReservedInstancesOfferingRequest, runtime: $Util.RuntimeOptions): Promise<PurchaseReservedInstancesOfferingResponse>;
|
|
32404
33248
|
/**
|
|
32405
|
-
* * Before you call this operation, make sure that you
|
|
33249
|
+
* * Before you call this operation, make sure that you are familiar with the billing method of reserved instances. For more information, see [Reserved instances](~~100371~~).
|
|
32406
33250
|
* * Before you purchase a reserved instance, you can call the [DescribeAvailableResource](~~66186~~) operation to query available instance resources.
|
|
32407
33251
|
*
|
|
32408
33252
|
* @param request PurchaseReservedInstancesOfferingRequest
|
|
@@ -32411,7 +33255,30 @@ export default class Client extends OpenApi {
|
|
|
32411
33255
|
purchaseReservedInstancesOffering(request: PurchaseReservedInstancesOfferingRequest): Promise<PurchaseReservedInstancesOfferingResponse>;
|
|
32412
33256
|
purchaseStorageCapacityUnitWithOptions(request: PurchaseStorageCapacityUnitRequest, runtime: $Util.RuntimeOptions): Promise<PurchaseStorageCapacityUnitResponse>;
|
|
32413
33257
|
purchaseStorageCapacityUnit(request: PurchaseStorageCapacityUnitRequest): Promise<PurchaseStorageCapacityUnitResponse>;
|
|
33258
|
+
/**
|
|
33259
|
+
* When you call this operation, take note of the following points:
|
|
33260
|
+
* * The instance must be in the **Expired** (`Stopped`) or **Overdue and Being Recycled** (`Stopped`) state.
|
|
33261
|
+
* * To continue using instances in these states, you must reactivate the instances within 15 days of settling any overdue payments. If you do not reactivate the instance within the aforementioned time, data on the instance can no longer be recovered. This operation may fail on pay-as-you-go instance of the Virtual Private Cloud (VPC) type. To solve this problem, try again several minutes later or [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm).
|
|
33262
|
+
* * After you settle all overdue payments, make sure that the total of your balance, vouchers, and coupons within your Alibaba Cloud account is 100 RMB or more. Otherwise, you may not be able to reactivate the instance. For more information, see [Reboot an instance](~~34374~~).
|
|
33263
|
+
* * After the operation is called, the instance enters the `Starting` state.
|
|
33264
|
+
* * You cannot call this operation on ECS instances that are locked for security reasons. An instance is locked for security reasons if `OperationLocks` in the response returned when you query information of the instance contains `"LockReason": "security"`. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
|
|
33265
|
+
*
|
|
33266
|
+
* @param request ReActivateInstancesRequest
|
|
33267
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
33268
|
+
* @return ReActivateInstancesResponse
|
|
33269
|
+
*/
|
|
32414
33270
|
reActivateInstancesWithOptions(request: ReActivateInstancesRequest, runtime: $Util.RuntimeOptions): Promise<ReActivateInstancesResponse>;
|
|
33271
|
+
/**
|
|
33272
|
+
* When you call this operation, take note of the following points:
|
|
33273
|
+
* * The instance must be in the **Expired** (`Stopped`) or **Overdue and Being Recycled** (`Stopped`) state.
|
|
33274
|
+
* * To continue using instances in these states, you must reactivate the instances within 15 days of settling any overdue payments. If you do not reactivate the instance within the aforementioned time, data on the instance can no longer be recovered. This operation may fail on pay-as-you-go instance of the Virtual Private Cloud (VPC) type. To solve this problem, try again several minutes later or [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm).
|
|
33275
|
+
* * After you settle all overdue payments, make sure that the total of your balance, vouchers, and coupons within your Alibaba Cloud account is 100 RMB or more. Otherwise, you may not be able to reactivate the instance. For more information, see [Reboot an instance](~~34374~~).
|
|
33276
|
+
* * After the operation is called, the instance enters the `Starting` state.
|
|
33277
|
+
* * You cannot call this operation on ECS instances that are locked for security reasons. An instance is locked for security reasons if `OperationLocks` in the response returned when you query information of the instance contains `"LockReason": "security"`. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
|
|
33278
|
+
*
|
|
33279
|
+
* @param request ReActivateInstancesRequest
|
|
33280
|
+
* @return ReActivateInstancesResponse
|
|
33281
|
+
*/
|
|
32415
33282
|
reActivateInstances(request: ReActivateInstancesRequest): Promise<ReActivateInstancesResponse>;
|
|
32416
33283
|
reInitDiskWithOptions(request: ReInitDiskRequest, runtime: $Util.RuntimeOptions): Promise<ReInitDiskResponse>;
|
|
32417
33284
|
reInitDisk(request: ReInitDiskRequest): Promise<ReInitDiskResponse>;
|
|
@@ -32436,28 +33303,7 @@ export default class Client extends OpenApi {
|
|
|
32436
33303
|
* @return RebootInstanceResponse
|
|
32437
33304
|
*/
|
|
32438
33305
|
rebootInstance(request: RebootInstanceRequest): Promise<RebootInstanceResponse>;
|
|
32439
|
-
/**
|
|
32440
|
-
* ## Description
|
|
32441
|
-
* * The ECS instances to be restarted must be in the **Running** (`Running`) state.
|
|
32442
|
-
* * Batch operations are supported. You can use the `BatchOptimization` parameter to specify the batch operation mode.
|
|
32443
|
-
* * Instances can be forcibly restarted. A forced restart (`ForceStop`) is equivalent to powering off traditional servers to restart them. This operation can cause data loss if data in the instance is not written to Elastic Block Storage devices.
|
|
32444
|
-
* * If the response contains`{"OperationLocks": {"LockReason" : "security"}}` when you query information of an instance, the instance is locked for security reasons and all operations are prohibited on the instance.
|
|
32445
|
-
*
|
|
32446
|
-
* @param request RebootInstancesRequest
|
|
32447
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
32448
|
-
* @return RebootInstancesResponse
|
|
32449
|
-
*/
|
|
32450
33306
|
rebootInstancesWithOptions(request: RebootInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RebootInstancesResponse>;
|
|
32451
|
-
/**
|
|
32452
|
-
* ## Description
|
|
32453
|
-
* * The ECS instances to be restarted must be in the **Running** (`Running`) state.
|
|
32454
|
-
* * Batch operations are supported. You can use the `BatchOptimization` parameter to specify the batch operation mode.
|
|
32455
|
-
* * Instances can be forcibly restarted. A forced restart (`ForceStop`) is equivalent to powering off traditional servers to restart them. This operation can cause data loss if data in the instance is not written to Elastic Block Storage devices.
|
|
32456
|
-
* * If the response contains`{"OperationLocks": {"LockReason" : "security"}}` when you query information of an instance, the instance is locked for security reasons and all operations are prohibited on the instance.
|
|
32457
|
-
*
|
|
32458
|
-
* @param request RebootInstancesRequest
|
|
32459
|
-
* @return RebootInstancesResponse
|
|
32460
|
-
*/
|
|
32461
33307
|
rebootInstances(request: RebootInstancesRequest): Promise<RebootInstancesResponse>;
|
|
32462
33308
|
/**
|
|
32463
33309
|
* @deprecated
|
|
@@ -32476,24 +33322,77 @@ export default class Client extends OpenApi {
|
|
|
32476
33322
|
recoverVirtualBorderRouter(request: RecoverVirtualBorderRouterRequest): Promise<RecoverVirtualBorderRouterResponse>;
|
|
32477
33323
|
redeployDedicatedHostWithOptions(request: RedeployDedicatedHostRequest, runtime: $Util.RuntimeOptions): Promise<RedeployDedicatedHostResponse>;
|
|
32478
33324
|
redeployDedicatedHost(request: RedeployDedicatedHostRequest): Promise<RedeployDedicatedHostResponse>;
|
|
33325
|
+
/**
|
|
33326
|
+
* RedeployInstance is an asynchronous operation. This operation migrates data before it restarts the instance. After the instance is redeployed, the instance enters the Running (`Running`) state. If the instance fails to be redeployed, the instance returns to the original physical server and the state before the redeployment.
|
|
33327
|
+
* When you call this operation, take note of the following items:
|
|
33328
|
+
* * The instance must be in the Running or Stopped state. After the instance is redeployed, the following changes occur to the status of the instance:
|
|
33329
|
+
* * If the instance is in the Running (`Running`) state, the instance enters the Stopping (`Stopping`) state.
|
|
33330
|
+
* * If the instance is in the Stopped (`Stopped`) state, the instance enters the Starting (`Starting`) state.
|
|
33331
|
+
* * If an instance is deployed on a dedicated host, you cannot redeploy the instance.
|
|
33332
|
+
* * If the `OperationLocks` parameter in the DescribeInstances response contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons and cannot be redeployed.
|
|
33333
|
+
* * If you receive notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for an instance, you cannot redeploy the instance.
|
|
33334
|
+
* * When you handle a local disk-related system event for an instance, if the damaged local disk is isolated but the **SystemMaintenance.RebootAndReInitErrorDisk** event is not sent, you can still call the RedeployInstance operation to redeploy the instance. The SystemMaintenance.RebootAndReInitErrorDisk event indicates that the instance is restarted and the damaged disks are reinitialized due to system maintenance. For more information, see [System events for ECS instances equipped with local disks](~~107693~~).
|
|
33335
|
+
* The following table describes the system events that you can handle by calling the RedeployInstance operation. The table also provides the possible event status.
|
|
33336
|
+
* |System event|Event status|
|
|
33337
|
+
* |---|---|
|
|
33338
|
+
* |Instance restart due to system maintenance (SystemMaintenance.Reboot)|Inquiring and Scheduled|
|
|
33339
|
+
* |Instance redeployment due to system maintenance (SystemMaintenance.Redeploy)|Inquiring and Scheduled|
|
|
33340
|
+
* |Instance restart and replacement of damaged disks due to system maintenance (SystemMaintenance.RebootAndIsolateErrorDisk)|Inquiring|
|
|
33341
|
+
* |Instance restart and re-initialization of damaged disks due to system maintenance (SystemMaintenance.RebootAndReInitErrorDisk)|Inquiring|
|
|
33342
|
+
* |Instance redeployment due to system errors (SystemFailure.Redeploy)|Inquiring and Scheduled|
|
|
33343
|
+
* |For ECS instances that use only local disks: instance restart due to a system error (SystemFailure.Reboot)|Executing|
|
|
33344
|
+
* |Isolation of damaged disks due to system maintenance (SystemMaintenance.IsolateErrorDisk)|Inquiring|
|
|
33345
|
+
* |Re-initialization of damaged disks due to system maintenance (SystemMaintenance.ReInitErrorDisk)|Inquiring|
|
|
33346
|
+
* **Note**When instances that use local disks are redeployed, the local disks are re-initialized and data in the local disks is cleared.
|
|
33347
|
+
*
|
|
33348
|
+
* @param request RedeployInstanceRequest
|
|
33349
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
33350
|
+
* @return RedeployInstanceResponse
|
|
33351
|
+
*/
|
|
32479
33352
|
redeployInstanceWithOptions(request: RedeployInstanceRequest, runtime: $Util.RuntimeOptions): Promise<RedeployInstanceResponse>;
|
|
33353
|
+
/**
|
|
33354
|
+
* RedeployInstance is an asynchronous operation. This operation migrates data before it restarts the instance. After the instance is redeployed, the instance enters the Running (`Running`) state. If the instance fails to be redeployed, the instance returns to the original physical server and the state before the redeployment.
|
|
33355
|
+
* When you call this operation, take note of the following items:
|
|
33356
|
+
* * The instance must be in the Running or Stopped state. After the instance is redeployed, the following changes occur to the status of the instance:
|
|
33357
|
+
* * If the instance is in the Running (`Running`) state, the instance enters the Stopping (`Stopping`) state.
|
|
33358
|
+
* * If the instance is in the Stopped (`Stopped`) state, the instance enters the Starting (`Starting`) state.
|
|
33359
|
+
* * If an instance is deployed on a dedicated host, you cannot redeploy the instance.
|
|
33360
|
+
* * If the `OperationLocks` parameter in the DescribeInstances response contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons and cannot be redeployed.
|
|
33361
|
+
* * If you receive notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for an instance, you cannot redeploy the instance.
|
|
33362
|
+
* * When you handle a local disk-related system event for an instance, if the damaged local disk is isolated but the **SystemMaintenance.RebootAndReInitErrorDisk** event is not sent, you can still call the RedeployInstance operation to redeploy the instance. The SystemMaintenance.RebootAndReInitErrorDisk event indicates that the instance is restarted and the damaged disks are reinitialized due to system maintenance. For more information, see [System events for ECS instances equipped with local disks](~~107693~~).
|
|
33363
|
+
* The following table describes the system events that you can handle by calling the RedeployInstance operation. The table also provides the possible event status.
|
|
33364
|
+
* |System event|Event status|
|
|
33365
|
+
* |---|---|
|
|
33366
|
+
* |Instance restart due to system maintenance (SystemMaintenance.Reboot)|Inquiring and Scheduled|
|
|
33367
|
+
* |Instance redeployment due to system maintenance (SystemMaintenance.Redeploy)|Inquiring and Scheduled|
|
|
33368
|
+
* |Instance restart and replacement of damaged disks due to system maintenance (SystemMaintenance.RebootAndIsolateErrorDisk)|Inquiring|
|
|
33369
|
+
* |Instance restart and re-initialization of damaged disks due to system maintenance (SystemMaintenance.RebootAndReInitErrorDisk)|Inquiring|
|
|
33370
|
+
* |Instance redeployment due to system errors (SystemFailure.Redeploy)|Inquiring and Scheduled|
|
|
33371
|
+
* |For ECS instances that use only local disks: instance restart due to a system error (SystemFailure.Reboot)|Executing|
|
|
33372
|
+
* |Isolation of damaged disks due to system maintenance (SystemMaintenance.IsolateErrorDisk)|Inquiring|
|
|
33373
|
+
* |Re-initialization of damaged disks due to system maintenance (SystemMaintenance.ReInitErrorDisk)|Inquiring|
|
|
33374
|
+
* **Note**When instances that use local disks are redeployed, the local disks are re-initialized and data in the local disks is cleared.
|
|
33375
|
+
*
|
|
33376
|
+
* @param request RedeployInstanceRequest
|
|
33377
|
+
* @return RedeployInstanceResponse
|
|
33378
|
+
*/
|
|
32480
33379
|
redeployInstance(request: RedeployInstanceRequest): Promise<RedeployInstanceResponse>;
|
|
32481
|
-
releaseCapacityReservationWithOptions(request: ReleaseCapacityReservationRequest, runtime: $Util.RuntimeOptions): Promise<ReleaseCapacityReservationResponse>;
|
|
32482
|
-
releaseCapacityReservation(request: ReleaseCapacityReservationRequest): Promise<ReleaseCapacityReservationResponse>;
|
|
32483
33380
|
/**
|
|
32484
|
-
*
|
|
33381
|
+
* When the release mode of an immediate capacity reservation is set to manual release, you can call this operation to release the capacity reservation.
|
|
32485
33382
|
*
|
|
32486
|
-
* @param request
|
|
33383
|
+
* @param request ReleaseCapacityReservationRequest
|
|
32487
33384
|
* @param runtime runtime options for this request RuntimeOptions
|
|
32488
|
-
* @return
|
|
33385
|
+
* @return ReleaseCapacityReservationResponse
|
|
32489
33386
|
*/
|
|
32490
|
-
|
|
33387
|
+
releaseCapacityReservationWithOptions(request: ReleaseCapacityReservationRequest, runtime: $Util.RuntimeOptions): Promise<ReleaseCapacityReservationResponse>;
|
|
32491
33388
|
/**
|
|
32492
|
-
*
|
|
33389
|
+
* When the release mode of an immediate capacity reservation is set to manual release, you can call this operation to release the capacity reservation.
|
|
32493
33390
|
*
|
|
32494
|
-
* @param request
|
|
32495
|
-
* @return
|
|
33391
|
+
* @param request ReleaseCapacityReservationRequest
|
|
33392
|
+
* @return ReleaseCapacityReservationResponse
|
|
32496
33393
|
*/
|
|
33394
|
+
releaseCapacityReservation(request: ReleaseCapacityReservationRequest): Promise<ReleaseCapacityReservationResponse>;
|
|
33395
|
+
releaseDedicatedHostWithOptions(request: ReleaseDedicatedHostRequest, runtime: $Util.RuntimeOptions): Promise<ReleaseDedicatedHostResponse>;
|
|
32497
33396
|
releaseDedicatedHost(request: ReleaseDedicatedHostRequest): Promise<ReleaseDedicatedHostResponse>;
|
|
32498
33397
|
/**
|
|
32499
33398
|
* @deprecated
|
|
@@ -32535,185 +33434,133 @@ export default class Client extends OpenApi {
|
|
|
32535
33434
|
renewInstance(request: RenewInstanceRequest): Promise<RenewInstanceResponse>;
|
|
32536
33435
|
renewReservedInstancesWithOptions(request: RenewReservedInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RenewReservedInstancesResponse>;
|
|
32537
33436
|
renewReservedInstances(request: RenewReservedInstancesRequest): Promise<RenewReservedInstancesResponse>;
|
|
32538
|
-
/**
|
|
32539
|
-
* When you call this operation, take note of the following items:
|
|
32540
|
-
* * You must specify `ImageId` or `DiskId`. If both `ImageId` and `DiskId` are specified, only `DiskId` takes effect.
|
|
32541
|
-
* > You can configure the `DiskId` parameter to replace the operating system of an instance. This feature is in invitational preview. To use this feature, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex).
|
|
32542
|
-
* * The category of the system disk cannot be changed.
|
|
32543
|
-
* * The billing method of the system disk cannot be changed.
|
|
32544
|
-
* * The instance must be in the Stopped (`Stopped`) state.
|
|
32545
|
-
* **
|
|
32546
|
-
* **Note**This item is applicable only to instances that reside in virtual private clouds (VPCs). If the instance is a pay-as-you-go instance and economical mode is enabled for the instance, you must set the stop mode to standard mode when you stop the instance. This ensures that the required resources are available for the instance to start after the system disk is replaced. For more information, see [StopInstance](~~25501~~).
|
|
32547
|
-
* * The instance must not 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](~~25695~~).
|
|
32548
|
-
* * You cannot have unpaid orders for the instance.
|
|
32549
|
-
* * You can configure the `SystemDisk.Size` parameter to specify the capacity of the new system disk.
|
|
32550
|
-
* After you call this operation, you can use one of the following methods to check whether the system disk is replaced:
|
|
32551
|
-
* * Call the [DescribeDisks](~~25514~~) operation to query the state of the new system disk. If the new system disk is in the In_use state, the system disk is replaced.
|
|
32552
|
-
* * Call the [DescribeInstances](~~25506~~) operation to query the state of the instance whose system disk is replaced. If the `OperationLocks` response parameter is empty, the system disk is replaced.
|
|
32553
|
-
*
|
|
32554
|
-
* @param request ReplaceSystemDiskRequest
|
|
32555
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
32556
|
-
* @return ReplaceSystemDiskResponse
|
|
32557
|
-
*/
|
|
32558
33437
|
replaceSystemDiskWithOptions(request: ReplaceSystemDiskRequest, runtime: $Util.RuntimeOptions): Promise<ReplaceSystemDiskResponse>;
|
|
32559
|
-
/**
|
|
32560
|
-
* When you call this operation, take note of the following items:
|
|
32561
|
-
* * You must specify `ImageId` or `DiskId`. If both `ImageId` and `DiskId` are specified, only `DiskId` takes effect.
|
|
32562
|
-
* > You can configure the `DiskId` parameter to replace the operating system of an instance. This feature is in invitational preview. To use this feature, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex).
|
|
32563
|
-
* * The category of the system disk cannot be changed.
|
|
32564
|
-
* * The billing method of the system disk cannot be changed.
|
|
32565
|
-
* * The instance must be in the Stopped (`Stopped`) state.
|
|
32566
|
-
* **
|
|
32567
|
-
* **Note**This item is applicable only to instances that reside in virtual private clouds (VPCs). If the instance is a pay-as-you-go instance and economical mode is enabled for the instance, you must set the stop mode to standard mode when you stop the instance. This ensures that the required resources are available for the instance to start after the system disk is replaced. For more information, see [StopInstance](~~25501~~).
|
|
32568
|
-
* * The instance must not 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](~~25695~~).
|
|
32569
|
-
* * You cannot have unpaid orders for the instance.
|
|
32570
|
-
* * You can configure the `SystemDisk.Size` parameter to specify the capacity of the new system disk.
|
|
32571
|
-
* After you call this operation, you can use one of the following methods to check whether the system disk is replaced:
|
|
32572
|
-
* * Call the [DescribeDisks](~~25514~~) operation to query the state of the new system disk. If the new system disk is in the In_use state, the system disk is replaced.
|
|
32573
|
-
* * Call the [DescribeInstances](~~25506~~) operation to query the state of the instance whose system disk is replaced. If the `OperationLocks` response parameter is empty, the system disk is replaced.
|
|
32574
|
-
*
|
|
32575
|
-
* @param request ReplaceSystemDiskRequest
|
|
32576
|
-
* @return ReplaceSystemDiskResponse
|
|
32577
|
-
*/
|
|
32578
33438
|
replaceSystemDisk(request: ReplaceSystemDiskRequest): Promise<ReplaceSystemDiskResponse>;
|
|
32579
33439
|
reportInstancesStatusWithOptions(request: ReportInstancesStatusRequest, runtime: $Util.RuntimeOptions): Promise<ReportInstancesStatusResponse>;
|
|
32580
33440
|
reportInstancesStatus(request: ReportInstancesStatusRequest): Promise<ReportInstancesStatusResponse>;
|
|
32581
33441
|
resetDiskWithOptions(request: ResetDiskRequest, runtime: $Util.RuntimeOptions): Promise<ResetDiskResponse>;
|
|
32582
33442
|
resetDisk(request: ResetDiskRequest): Promise<ResetDiskResponse>;
|
|
33443
|
+
/**
|
|
33444
|
+
* This operation will be removed in the future. We recommend that you call the [ResetDisk](~~25520~~) operation to roll back a disk.
|
|
33445
|
+
*
|
|
33446
|
+
* @param request ResetDisksRequest
|
|
33447
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
33448
|
+
* @return ResetDisksResponse
|
|
33449
|
+
*/
|
|
32583
33450
|
resetDisksWithOptions(request: ResetDisksRequest, runtime: $Util.RuntimeOptions): Promise<ResetDisksResponse>;
|
|
33451
|
+
/**
|
|
33452
|
+
* This operation will be removed in the future. We recommend that you call the [ResetDisk](~~25520~~) operation to roll back a disk.
|
|
33453
|
+
*
|
|
33454
|
+
* @param request ResetDisksRequest
|
|
33455
|
+
* @return ResetDisksResponse
|
|
33456
|
+
*/
|
|
32584
33457
|
resetDisks(request: ResetDisksRequest): Promise<ResetDisksResponse>;
|
|
32585
33458
|
resizeDiskWithOptions(request: ResizeDiskRequest, runtime: $Util.RuntimeOptions): Promise<ResizeDiskResponse>;
|
|
32586
33459
|
resizeDisk(request: ResizeDiskRequest): Promise<ResizeDiskResponse>;
|
|
32587
33460
|
revokeSecurityGroupWithOptions(request: RevokeSecurityGroupRequest, runtime: $Util.RuntimeOptions): Promise<RevokeSecurityGroupResponse>;
|
|
32588
33461
|
revokeSecurityGroup(request: RevokeSecurityGroupRequest): Promise<RevokeSecurityGroupResponse>;
|
|
32589
|
-
revokeSecurityGroupEgressWithOptions(request: RevokeSecurityGroupEgressRequest, runtime: $Util.RuntimeOptions): Promise<RevokeSecurityGroupEgressResponse>;
|
|
32590
|
-
revokeSecurityGroupEgress(request: RevokeSecurityGroupEgressRequest): Promise<RevokeSecurityGroupEgressResponse>;
|
|
32591
33462
|
/**
|
|
32592
|
-
*
|
|
32593
|
-
*
|
|
32594
|
-
*
|
|
32595
|
-
* * The
|
|
32596
|
-
* *
|
|
32597
|
-
* *
|
|
32598
|
-
*
|
|
32599
|
-
*
|
|
32600
|
-
*
|
|
32601
|
-
*
|
|
32602
|
-
*
|
|
32603
|
-
*
|
|
32604
|
-
*
|
|
32605
|
-
*
|
|
32606
|
-
*
|
|
32607
|
-
*
|
|
33463
|
+
* ## Description
|
|
33464
|
+
* In the security group-related API documents, outbound traffic refers to the traffic sent by the source and received by the destination.
|
|
33465
|
+
* When you call this operation, take note of the following items:
|
|
33466
|
+
* * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
|
|
33467
|
+
* * If the specified outbound security group rule does not exist, the call to RevokeSecurityGroupEgress is successful but no security group rule is deleted.
|
|
33468
|
+
* * 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.
|
|
33469
|
+
* * Parameters used to delete an outbound security group rule that controls access to a specified CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, DestCidrIp, and SourceCidrIp (optional).
|
|
33470
|
+
* ```
|
|
33471
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
33472
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
33473
|
+
* &Permissions.1.IpProtocol=TCP
|
|
33474
|
+
* &Permissions.1.DestCidrIp=10.0.0.0/8
|
|
33475
|
+
* &Permissions.1.PortRange=-22/22
|
|
33476
|
+
* &Permissions.1.NicType=intranet
|
|
33477
|
+
* &Permissions.1.Policy=accept
|
|
33478
|
+
* &<Common request parameters>
|
|
32608
33479
|
*
|
|
32609
|
-
*
|
|
33480
|
+
* ```
|
|
33481
|
+
* * Parameters used to delete an outbound security group rule that controls access to another security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestGroupId.
|
|
33482
|
+
* ```
|
|
33483
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
33484
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
33485
|
+
* &Permissions.1.DestGroupId=sg-bp67acfmxa123b****
|
|
33486
|
+
* &Permissions.1.IpProtocol=TCP
|
|
33487
|
+
* &Permissions.1.PortRange=22/22
|
|
33488
|
+
* &Permissions.1.NicType=intranet
|
|
33489
|
+
* &Permissions.1.Policy=accept
|
|
33490
|
+
* &<Common request parameters>
|
|
33491
|
+
*
|
|
33492
|
+
* ```
|
|
33493
|
+
* * Parameters used to delete an outbound security group rule that controls access to a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestPrefixListId.
|
|
33494
|
+
* ```
|
|
33495
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
33496
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
33497
|
+
* &Permissions.1.IpProtocol=TCP
|
|
33498
|
+
* &Permissions.1.DestPrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
33499
|
+
* &Permissions.1.PortRange=-22/22
|
|
33500
|
+
* &Permissions.1.NicType=intranet
|
|
33501
|
+
* &Permissions.1.Policy=accept
|
|
33502
|
+
* &<Common request parameters>
|
|
33503
|
+
*
|
|
33504
|
+
* ```
|
|
33505
|
+
*
|
|
33506
|
+
* @param request RevokeSecurityGroupEgressRequest
|
|
32610
33507
|
* @param runtime runtime options for this request RuntimeOptions
|
|
32611
|
-
* @return
|
|
33508
|
+
* @return RevokeSecurityGroupEgressResponse
|
|
32612
33509
|
*/
|
|
32613
|
-
|
|
33510
|
+
revokeSecurityGroupEgressWithOptions(request: RevokeSecurityGroupEgressRequest, runtime: $Util.RuntimeOptions): Promise<RevokeSecurityGroupEgressResponse>;
|
|
32614
33511
|
/**
|
|
32615
|
-
*
|
|
32616
|
-
*
|
|
32617
|
-
*
|
|
32618
|
-
* * The
|
|
32619
|
-
* *
|
|
32620
|
-
* *
|
|
32621
|
-
*
|
|
32622
|
-
*
|
|
32623
|
-
*
|
|
32624
|
-
*
|
|
32625
|
-
*
|
|
32626
|
-
*
|
|
32627
|
-
*
|
|
32628
|
-
*
|
|
32629
|
-
*
|
|
32630
|
-
*
|
|
33512
|
+
* ## Description
|
|
33513
|
+
* In the security group-related API documents, outbound traffic refers to the traffic sent by the source and received by the destination.
|
|
33514
|
+
* When you call this operation, take note of the following items:
|
|
33515
|
+
* * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
|
|
33516
|
+
* * If the specified outbound security group rule does not exist, the call to RevokeSecurityGroupEgress is successful but no security group rule is deleted.
|
|
33517
|
+
* * 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.
|
|
33518
|
+
* * Parameters used to delete an outbound security group rule that controls access to a specified CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, DestCidrIp, and SourceCidrIp (optional).
|
|
33519
|
+
* ```
|
|
33520
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
33521
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
33522
|
+
* &Permissions.1.IpProtocol=TCP
|
|
33523
|
+
* &Permissions.1.DestCidrIp=10.0.0.0/8
|
|
33524
|
+
* &Permissions.1.PortRange=-22/22
|
|
33525
|
+
* &Permissions.1.NicType=intranet
|
|
33526
|
+
* &Permissions.1.Policy=accept
|
|
33527
|
+
* &<Common request parameters>
|
|
33528
|
+
*
|
|
33529
|
+
* ```
|
|
33530
|
+
* * Parameters used to delete an outbound security group rule that controls access to another security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestGroupId.
|
|
33531
|
+
* ```
|
|
33532
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
33533
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
33534
|
+
* &Permissions.1.DestGroupId=sg-bp67acfmxa123b****
|
|
33535
|
+
* &Permissions.1.IpProtocol=TCP
|
|
33536
|
+
* &Permissions.1.PortRange=22/22
|
|
33537
|
+
* &Permissions.1.NicType=intranet
|
|
33538
|
+
* &Permissions.1.Policy=accept
|
|
33539
|
+
* &<Common request parameters>
|
|
32631
33540
|
*
|
|
32632
|
-
*
|
|
32633
|
-
*
|
|
33541
|
+
* ```
|
|
33542
|
+
* * Parameters used to delete an outbound security group rule that controls access to a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestPrefixListId.
|
|
33543
|
+
* ```
|
|
33544
|
+
* http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
|
|
33545
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
33546
|
+
* &Permissions.1.IpProtocol=TCP
|
|
33547
|
+
* &Permissions.1.DestPrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
33548
|
+
* &Permissions.1.PortRange=-22/22
|
|
33549
|
+
* &Permissions.1.NicType=intranet
|
|
33550
|
+
* &Permissions.1.Policy=accept
|
|
33551
|
+
* &<Common request parameters>
|
|
33552
|
+
*
|
|
33553
|
+
* ```
|
|
33554
|
+
*
|
|
33555
|
+
* @param request RevokeSecurityGroupEgressRequest
|
|
33556
|
+
* @return RevokeSecurityGroupEgressResponse
|
|
32634
33557
|
*/
|
|
33558
|
+
revokeSecurityGroupEgress(request: RevokeSecurityGroupEgressRequest): Promise<RevokeSecurityGroupEgressResponse>;
|
|
33559
|
+
runCommandWithOptions(tmpReq: RunCommandRequest, runtime: $Util.RuntimeOptions): Promise<RunCommandResponse>;
|
|
32635
33560
|
runCommand(request: RunCommandRequest): Promise<RunCommandResponse>;
|
|
32636
|
-
/**
|
|
32637
|
-
* * **Preparations**:
|
|
32638
|
-
* * The real-name verification is complete. For more information, see [Real-name verification](~~48263~~).
|
|
32639
|
-
* * Cost estimation: Learn about the billing methods of ECS resources. For more information, see [Billing overview](~~25398~~).
|
|
32640
|
-
* * Instance type selection: Call the [DescribeInstanceTypes](~~25620~~) operation to query the performance data of instance types, or see [Best practices for instance type selection](~~58291~~) to learn about how to select instance types.
|
|
32641
|
-
* * Query for available resources: Call the [DescribeAvailableResource](~~66186~~) operation to query available resources in a specific region or zone.
|
|
32642
|
-
* * Network planning: Make sure that you have security groups available for use. For more information, see [CreateSecurityGroup](~~25553~~). Before you create an instance of the Virtual Private Cloud (VPC) type, create a VPC in the region where you want to create the instance. For more information, see [Create a VPC](~~65430~~).
|
|
32643
|
-
* * **Precautions**:
|
|
32644
|
-
* * You can create a maximum of 100 instances at a time.
|
|
32645
|
-
* * You can use the `AutoReleaseTime` parameter to set the time when you want the instances to be automatically released.
|
|
32646
|
-
* * After instances are created, you can call the [DescribeInstances](~~25506~~) operation to check their states.
|
|
32647
|
-
* * By default, instances automatically start after they are created. Instances are ready for use when they are in the Running (`Running`) state.
|
|
32648
|
-
* * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to the throttling policy for your account. To increase the maximum bandwidth value, submit a ticket. The throttling policy imposes the following constraints: Within a single region, the total maximum bandwidth value of all instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s and that of all instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
|
|
32649
|
-
* * Different from the [CreateInstance](~~25499~~) operation, the `RunInstances` operation allows the system to assign public IP addresses to the new instances if you set the `InternetMaxBandwidthOut` parameter to a value greater than 0.
|
|
32650
|
-
* * When you call the RunInstances operation to create an instance, you can use one of the following methods to bind a primary elastic network interface (ENI) to the instance. Note that you can use only one of the methods to configure the primary ENI in each call. Otherwise, the call fails and an error message is returned. Specify parameters such as `SecurityGroupId`, `VSwitchId`, `PrivateIpAddress`, `NetworkInterfaceQueueNumber`, and `Ipv6AddressCount` to configure the primary ENI. Specify parameters that start with `NetworkInterface.N.` to configure the primary and secondary ENIs. If `NetworkInterface.N.InstanceType` is set to `Primary`, the primary ENI is bound to the instance. If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, a secondary ENI is bound to the instance.
|
|
32651
|
-
* * After you call this operation, an error is returned if a parameter is invalid or if available resources are insufficient. For more information, see the "Error codes" section of this topic.
|
|
32652
|
-
* > If the `QuotaExceed.ElasticQuota` error is returned when you call this operation, you have reached the maximum number of instances of the specified instance type that can be created within the specified region or the maximum number of vCPUs for all instance types in a zone. You can go to the [ECS console](https://ecs.console.aliyun.com/?spm=a2c8b.12215451.favorites.decs.5e3a336aMGTtzy#/privileges/quota) or [Quota Center](https://quotas.console.aliyun.com/products/ecs/quotas) to request a quota increase.
|
|
32653
|
-
* * **Best practices**:
|
|
32654
|
-
* * We recommend that you use auto provisioning groups in the following scenarios: Resources are insufficient to create more than 100 instances at a time, you want to quickly create instances regardless of resource configurations such as instance types or zones, or you want to create instances to consume a specific total number of vCPUs regardless of the number of the instances. You can call the [CreateAutoProvisioningGroup](~~122738~~) operation to create an auto provisioning group to deploy an instance cluster across different billing methods, instance families, and zones. For more information, see [Use auto provisioning group-related API operations to create multiple ECS instances at the same time](~~200772~~).
|
|
32655
|
-
* * You can call the `RunInstances` operation to batch create instances. To better manage and search for these instances, we recommend that you specify tags for the instances by using the `Tag.N.Key` and `Tag.N.Value` parameters. You can also append incremental suffixes (`UniqueSuffix`) to the hostname (`HostName`) and to the instance name (`InstanceName`).
|
|
32656
|
-
* * A launch template contains parameters required to create an instance so that you do not have to specify these parameters every time you create instances. You can call the [CreateLaunchTemplate](~~74686~~) operation to create a launch template. Then, in your request to call the `RunInstances` operation, you can specify the `LaunchTemplateId` and `LaunchTemplateVersion` parameters to use the launch template.
|
|
32657
|
-
* * When you create an instance in the [ECS console](https://ecs.console.aliyun.com/), you can view the best practices for calling the `RunInstances` operation. In the Preview step, click View Open API in the Configurations Selected section. In the dialog box that appears, the left-side **API Workflow** section shows the operations and request parameters that are related to the `RunInstances` operation. The right-side section shows SDK examples for the **Java** and **Python** programming languages.
|
|
32658
|
-
*
|
|
32659
|
-
* @param request RunInstancesRequest
|
|
32660
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
32661
|
-
* @return RunInstancesResponse
|
|
32662
|
-
*/
|
|
32663
33561
|
runInstancesWithOptions(request: RunInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RunInstancesResponse>;
|
|
32664
|
-
/**
|
|
32665
|
-
* * **Preparations**:
|
|
32666
|
-
* * The real-name verification is complete. For more information, see [Real-name verification](~~48263~~).
|
|
32667
|
-
* * Cost estimation: Learn about the billing methods of ECS resources. For more information, see [Billing overview](~~25398~~).
|
|
32668
|
-
* * Instance type selection: Call the [DescribeInstanceTypes](~~25620~~) operation to query the performance data of instance types, or see [Best practices for instance type selection](~~58291~~) to learn about how to select instance types.
|
|
32669
|
-
* * Query for available resources: Call the [DescribeAvailableResource](~~66186~~) operation to query available resources in a specific region or zone.
|
|
32670
|
-
* * Network planning: Make sure that you have security groups available for use. For more information, see [CreateSecurityGroup](~~25553~~). Before you create an instance of the Virtual Private Cloud (VPC) type, create a VPC in the region where you want to create the instance. For more information, see [Create a VPC](~~65430~~).
|
|
32671
|
-
* * **Precautions**:
|
|
32672
|
-
* * You can create a maximum of 100 instances at a time.
|
|
32673
|
-
* * You can use the `AutoReleaseTime` parameter to set the time when you want the instances to be automatically released.
|
|
32674
|
-
* * After instances are created, you can call the [DescribeInstances](~~25506~~) operation to check their states.
|
|
32675
|
-
* * By default, instances automatically start after they are created. Instances are ready for use when they are in the Running (`Running`) state.
|
|
32676
|
-
* * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to the throttling policy for your account. To increase the maximum bandwidth value, submit a ticket. The throttling policy imposes the following constraints: Within a single region, the total maximum bandwidth value of all instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s and that of all instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
|
|
32677
|
-
* * Different from the [CreateInstance](~~25499~~) operation, the `RunInstances` operation allows the system to assign public IP addresses to the new instances if you set the `InternetMaxBandwidthOut` parameter to a value greater than 0.
|
|
32678
|
-
* * When you call the RunInstances operation to create an instance, you can use one of the following methods to bind a primary elastic network interface (ENI) to the instance. Note that you can use only one of the methods to configure the primary ENI in each call. Otherwise, the call fails and an error message is returned. Specify parameters such as `SecurityGroupId`, `VSwitchId`, `PrivateIpAddress`, `NetworkInterfaceQueueNumber`, and `Ipv6AddressCount` to configure the primary ENI. Specify parameters that start with `NetworkInterface.N.` to configure the primary and secondary ENIs. If `NetworkInterface.N.InstanceType` is set to `Primary`, the primary ENI is bound to the instance. If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, a secondary ENI is bound to the instance.
|
|
32679
|
-
* * After you call this operation, an error is returned if a parameter is invalid or if available resources are insufficient. For more information, see the "Error codes" section of this topic.
|
|
32680
|
-
* > If the `QuotaExceed.ElasticQuota` error is returned when you call this operation, you have reached the maximum number of instances of the specified instance type that can be created within the specified region or the maximum number of vCPUs for all instance types in a zone. You can go to the [ECS console](https://ecs.console.aliyun.com/?spm=a2c8b.12215451.favorites.decs.5e3a336aMGTtzy#/privileges/quota) or [Quota Center](https://quotas.console.aliyun.com/products/ecs/quotas) to request a quota increase.
|
|
32681
|
-
* * **Best practices**:
|
|
32682
|
-
* * We recommend that you use auto provisioning groups in the following scenarios: Resources are insufficient to create more than 100 instances at a time, you want to quickly create instances regardless of resource configurations such as instance types or zones, or you want to create instances to consume a specific total number of vCPUs regardless of the number of the instances. You can call the [CreateAutoProvisioningGroup](~~122738~~) operation to create an auto provisioning group to deploy an instance cluster across different billing methods, instance families, and zones. For more information, see [Use auto provisioning group-related API operations to create multiple ECS instances at the same time](~~200772~~).
|
|
32683
|
-
* * You can call the `RunInstances` operation to batch create instances. To better manage and search for these instances, we recommend that you specify tags for the instances by using the `Tag.N.Key` and `Tag.N.Value` parameters. You can also append incremental suffixes (`UniqueSuffix`) to the hostname (`HostName`) and to the instance name (`InstanceName`).
|
|
32684
|
-
* * A launch template contains parameters required to create an instance so that you do not have to specify these parameters every time you create instances. You can call the [CreateLaunchTemplate](~~74686~~) operation to create a launch template. Then, in your request to call the `RunInstances` operation, you can specify the `LaunchTemplateId` and `LaunchTemplateVersion` parameters to use the launch template.
|
|
32685
|
-
* * When you create an instance in the [ECS console](https://ecs.console.aliyun.com/), you can view the best practices for calling the `RunInstances` operation. In the Preview step, click View Open API in the Configurations Selected section. In the dialog box that appears, the left-side **API Workflow** section shows the operations and request parameters that are related to the `RunInstances` operation. The right-side section shows SDK examples for the **Java** and **Python** programming languages.
|
|
32686
|
-
*
|
|
32687
|
-
* @param request RunInstancesRequest
|
|
32688
|
-
* @return RunInstancesResponse
|
|
32689
|
-
*/
|
|
32690
33562
|
runInstances(request: RunInstancesRequest): Promise<RunInstancesResponse>;
|
|
32691
|
-
/**
|
|
32692
|
-
* * The instances to which to send a file must be in the Running (`Running`) state.
|
|
32693
|
-
* * The Cloud Assistant client must be installed on the instances. For information about how to install the Cloud Assistant client, see [InstallCloudAssistant](~~85916~~).
|
|
32694
|
-
* * Only the Cloud Assistant client versions that are later than the following ones support file sending. If the `ClientNeedUpgrade` error code is returned, you must upgrade the Cloud Assistant client to the latest version. For more information, see [Update or disable updates for the Cloud Assistant client](~~134383~~).
|
|
32695
|
-
* * For Linux instances, the version of the Cloud Assistant client must be later than 1.0.2.569.
|
|
32696
|
-
* * For Windows instances, the version of the Cloud Assistant client must be later than 1.0.0.149.
|
|
32697
|
-
* * The file to be sent must not exceed 32 KB in size after it is encoded in Base64.
|
|
32698
|
-
* * The file may fail to be sent due to exceptions on the instances, network, or the Cloud Assistance client. Call the [DescribeSendFileResults](~~~~) operation to troubleshoot the issues.
|
|
32699
|
-
*
|
|
32700
|
-
* @param request SendFileRequest
|
|
32701
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
32702
|
-
* @return SendFileResponse
|
|
32703
|
-
*/
|
|
32704
33563
|
sendFileWithOptions(request: SendFileRequest, runtime: $Util.RuntimeOptions): Promise<SendFileResponse>;
|
|
32705
|
-
/**
|
|
32706
|
-
* * The instances to which to send a file must be in the Running (`Running`) state.
|
|
32707
|
-
* * The Cloud Assistant client must be installed on the instances. For information about how to install the Cloud Assistant client, see [InstallCloudAssistant](~~85916~~).
|
|
32708
|
-
* * Only the Cloud Assistant client versions that are later than the following ones support file sending. If the `ClientNeedUpgrade` error code is returned, you must upgrade the Cloud Assistant client to the latest version. For more information, see [Update or disable updates for the Cloud Assistant client](~~134383~~).
|
|
32709
|
-
* * For Linux instances, the version of the Cloud Assistant client must be later than 1.0.2.569.
|
|
32710
|
-
* * For Windows instances, the version of the Cloud Assistant client must be later than 1.0.0.149.
|
|
32711
|
-
* * The file to be sent must not exceed 32 KB in size after it is encoded in Base64.
|
|
32712
|
-
* * The file may fail to be sent due to exceptions on the instances, network, or the Cloud Assistance client. Call the [DescribeSendFileResults](~~~~) operation to troubleshoot the issues.
|
|
32713
|
-
*
|
|
32714
|
-
* @param request SendFileRequest
|
|
32715
|
-
* @return SendFileResponse
|
|
32716
|
-
*/
|
|
32717
33564
|
sendFile(request: SendFileRequest): Promise<SendFileResponse>;
|
|
32718
33565
|
/**
|
|
32719
33566
|
* @deprecated
|
|
@@ -32740,24 +33587,28 @@ export default class Client extends OpenApi {
|
|
|
32740
33587
|
startTerminalSession(request: StartTerminalSessionRequest): Promise<StartTerminalSessionResponse>;
|
|
32741
33588
|
stopInstanceWithOptions(request: StopInstanceRequest, runtime: $Util.RuntimeOptions): Promise<StopInstanceResponse>;
|
|
32742
33589
|
stopInstance(request: StopInstanceRequest): Promise<StopInstanceResponse>;
|
|
32743
|
-
stopInstancesWithOptions(request: StopInstancesRequest, runtime: $Util.RuntimeOptions): Promise<StopInstancesResponse>;
|
|
32744
|
-
stopInstances(request: StopInstancesRequest): Promise<StopInstancesResponse>;
|
|
32745
|
-
stopInvocationWithOptions(request: StopInvocationRequest, runtime: $Util.RuntimeOptions): Promise<StopInvocationResponse>;
|
|
32746
|
-
stopInvocation(request: StopInvocationRequest): Promise<StopInvocationResponse>;
|
|
32747
33590
|
/**
|
|
32748
|
-
*
|
|
33591
|
+
* * If you call the DescribeInstances operation and the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instances are locked for security reasons and cannot be stopped.
|
|
33592
|
+
* * If the economical mode is enabled for pay-as-you-go instances, you can set `StoppedMode` to KeepCharging to enable the standard mode for the instances. Then, after the instances are stopped in standard mode, you continue to be charged for them, and their instance type resources and public IP addresses are retained.
|
|
33593
|
+
* * Batch operations are supported. You can use the `BatchOptimization` parameter to specify the batch operation mode.
|
|
32749
33594
|
*
|
|
32750
|
-
* @param request
|
|
33595
|
+
* @param request StopInstancesRequest
|
|
32751
33596
|
* @param runtime runtime options for this request RuntimeOptions
|
|
32752
|
-
* @return
|
|
33597
|
+
* @return StopInstancesResponse
|
|
32753
33598
|
*/
|
|
32754
|
-
|
|
33599
|
+
stopInstancesWithOptions(request: StopInstancesRequest, runtime: $Util.RuntimeOptions): Promise<StopInstancesResponse>;
|
|
32755
33600
|
/**
|
|
32756
|
-
*
|
|
33601
|
+
* * If you call the DescribeInstances operation and the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instances are locked for security reasons and cannot be stopped.
|
|
33602
|
+
* * If the economical mode is enabled for pay-as-you-go instances, you can set `StoppedMode` to KeepCharging to enable the standard mode for the instances. Then, after the instances are stopped in standard mode, you continue to be charged for them, and their instance type resources and public IP addresses are retained.
|
|
33603
|
+
* * Batch operations are supported. You can use the `BatchOptimization` parameter to specify the batch operation mode.
|
|
32757
33604
|
*
|
|
32758
|
-
* @param request
|
|
32759
|
-
* @return
|
|
33605
|
+
* @param request StopInstancesRequest
|
|
33606
|
+
* @return StopInstancesResponse
|
|
32760
33607
|
*/
|
|
33608
|
+
stopInstances(request: StopInstancesRequest): Promise<StopInstancesResponse>;
|
|
33609
|
+
stopInvocationWithOptions(request: StopInvocationRequest, runtime: $Util.RuntimeOptions): Promise<StopInvocationResponse>;
|
|
33610
|
+
stopInvocation(request: StopInvocationRequest): Promise<StopInvocationResponse>;
|
|
33611
|
+
tagResourcesWithOptions(request: TagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<TagResourcesResponse>;
|
|
32761
33612
|
tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse>;
|
|
32762
33613
|
/**
|
|
32763
33614
|
* @deprecated
|