@alicloud/ecs20140526 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +703 -497
- package/dist/client.js +722 -497
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +735 -499
package/dist/client.js
CHANGED
|
@@ -1983,6 +1983,7 @@ class CopySnapshotRequest extends $tea.Model {
|
|
|
1983
1983
|
destinationRegionId: 'DestinationRegionId',
|
|
1984
1984
|
destinationSnapshotDescription: 'DestinationSnapshotDescription',
|
|
1985
1985
|
destinationSnapshotName: 'DestinationSnapshotName',
|
|
1986
|
+
destinationStorageLocationArn: 'DestinationStorageLocationArn',
|
|
1986
1987
|
encrypted: 'Encrypted',
|
|
1987
1988
|
KMSKeyId: 'KMSKeyId',
|
|
1988
1989
|
ownerId: 'OwnerId',
|
|
@@ -2001,6 +2002,7 @@ class CopySnapshotRequest extends $tea.Model {
|
|
|
2001
2002
|
destinationRegionId: 'string',
|
|
2002
2003
|
destinationSnapshotDescription: 'string',
|
|
2003
2004
|
destinationSnapshotName: 'string',
|
|
2005
|
+
destinationStorageLocationArn: 'string',
|
|
2004
2006
|
encrypted: 'boolean',
|
|
2005
2007
|
KMSKeyId: 'string',
|
|
2006
2008
|
ownerId: 'number',
|
|
@@ -3784,6 +3786,7 @@ class CreateLaunchTemplateRequest extends $tea.Model {
|
|
|
3784
3786
|
systemDisk: 'SystemDisk',
|
|
3785
3787
|
autoReleaseTime: 'AutoReleaseTime',
|
|
3786
3788
|
dataDisk: 'DataDisk',
|
|
3789
|
+
deletionProtection: 'DeletionProtection',
|
|
3787
3790
|
deploymentSetId: 'DeploymentSetId',
|
|
3788
3791
|
description: 'Description',
|
|
3789
3792
|
enableVmOsConfig: 'EnableVmOsConfig',
|
|
@@ -3833,6 +3836,7 @@ class CreateLaunchTemplateRequest extends $tea.Model {
|
|
|
3833
3836
|
systemDisk: CreateLaunchTemplateRequestSystemDisk,
|
|
3834
3837
|
autoReleaseTime: 'string',
|
|
3835
3838
|
dataDisk: { 'type': 'array', 'itemType': CreateLaunchTemplateRequestDataDisk },
|
|
3839
|
+
deletionProtection: 'boolean',
|
|
3836
3840
|
deploymentSetId: 'string',
|
|
3837
3841
|
description: 'string',
|
|
3838
3842
|
enableVmOsConfig: 'boolean',
|
|
@@ -3926,6 +3930,7 @@ class CreateLaunchTemplateVersionRequest extends $tea.Model {
|
|
|
3926
3930
|
systemDisk: 'SystemDisk',
|
|
3927
3931
|
autoReleaseTime: 'AutoReleaseTime',
|
|
3928
3932
|
dataDisk: 'DataDisk',
|
|
3933
|
+
deletionProtection: 'DeletionProtection',
|
|
3929
3934
|
deploymentSetId: 'DeploymentSetId',
|
|
3930
3935
|
description: 'Description',
|
|
3931
3936
|
enableVmOsConfig: 'EnableVmOsConfig',
|
|
@@ -3974,6 +3979,7 @@ class CreateLaunchTemplateVersionRequest extends $tea.Model {
|
|
|
3974
3979
|
systemDisk: CreateLaunchTemplateVersionRequestSystemDisk,
|
|
3975
3980
|
autoReleaseTime: 'string',
|
|
3976
3981
|
dataDisk: { 'type': 'array', 'itemType': CreateLaunchTemplateVersionRequestDataDisk },
|
|
3982
|
+
deletionProtection: 'boolean',
|
|
3977
3983
|
deploymentSetId: 'string',
|
|
3978
3984
|
description: 'string',
|
|
3979
3985
|
enableVmOsConfig: 'boolean',
|
|
@@ -24912,6 +24918,7 @@ class RunInstancesRequest extends $tea.Model {
|
|
|
24912
24918
|
affinity: 'Affinity',
|
|
24913
24919
|
amount: 'Amount',
|
|
24914
24920
|
arn: 'Arn',
|
|
24921
|
+
autoPay: 'AutoPay',
|
|
24915
24922
|
autoReleaseTime: 'AutoReleaseTime',
|
|
24916
24923
|
autoRenew: 'AutoRenew',
|
|
24917
24924
|
autoRenewPeriod: 'AutoRenewPeriod',
|
|
@@ -24991,6 +24998,7 @@ class RunInstancesRequest extends $tea.Model {
|
|
|
24991
24998
|
affinity: 'string',
|
|
24992
24999
|
amount: 'number',
|
|
24993
25000
|
arn: { 'type': 'array', 'itemType': RunInstancesRequestArn },
|
|
25001
|
+
autoPay: 'boolean',
|
|
24994
25002
|
autoReleaseTime: 'string',
|
|
24995
25003
|
autoRenew: 'boolean',
|
|
24996
25004
|
autoRenewPeriod: 'number',
|
|
@@ -26927,6 +26935,7 @@ class CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult extends $
|
|
|
26927
26935
|
}
|
|
26928
26936
|
static names() {
|
|
26929
26937
|
return {
|
|
26938
|
+
amount: 'Amount',
|
|
26930
26939
|
errorCode: 'ErrorCode',
|
|
26931
26940
|
errorMsg: 'ErrorMsg',
|
|
26932
26941
|
instanceIds: 'InstanceIds',
|
|
@@ -26937,6 +26946,7 @@ class CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult extends $
|
|
|
26937
26946
|
}
|
|
26938
26947
|
static types() {
|
|
26939
26948
|
return {
|
|
26949
|
+
amount: 'number',
|
|
26940
26950
|
errorCode: 'string',
|
|
26941
26951
|
errorMsg: 'string',
|
|
26942
26952
|
instanceIds: CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds,
|
|
@@ -33182,6 +33192,7 @@ class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSys
|
|
|
33182
33192
|
punishType: 'PunishType',
|
|
33183
33193
|
punishUrl: 'PunishUrl',
|
|
33184
33194
|
rack: 'Rack',
|
|
33195
|
+
responseResult: 'ResponseResult',
|
|
33185
33196
|
};
|
|
33186
33197
|
}
|
|
33187
33198
|
static types() {
|
|
@@ -33199,6 +33210,7 @@ class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSys
|
|
|
33199
33210
|
punishType: 'string',
|
|
33200
33211
|
punishUrl: 'string',
|
|
33201
33212
|
rack: 'string',
|
|
33213
|
+
responseResult: 'string',
|
|
33202
33214
|
};
|
|
33203
33215
|
}
|
|
33204
33216
|
}
|
|
@@ -35378,6 +35390,7 @@ class DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchT
|
|
|
35378
35390
|
systemDisk: 'SystemDisk',
|
|
35379
35391
|
autoReleaseTime: 'AutoReleaseTime',
|
|
35380
35392
|
dataDisks: 'DataDisks',
|
|
35393
|
+
deletionProtection: 'DeletionProtection',
|
|
35381
35394
|
deploymentSetId: 'DeploymentSetId',
|
|
35382
35395
|
description: 'Description',
|
|
35383
35396
|
enableVmOsConfig: 'EnableVmOsConfig',
|
|
@@ -35418,6 +35431,7 @@ class DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchT
|
|
|
35418
35431
|
systemDisk: DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk,
|
|
35419
35432
|
autoReleaseTime: 'string',
|
|
35420
35433
|
dataDisks: DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisks,
|
|
35434
|
+
deletionProtection: 'boolean',
|
|
35421
35435
|
deploymentSetId: 'string',
|
|
35422
35436
|
description: 'string',
|
|
35423
35437
|
enableVmOsConfig: 'boolean',
|
|
@@ -42292,9 +42306,10 @@ class Client extends openapi_client_1.default {
|
|
|
42292
42306
|
return await this.assignIpv6AddressesWithOptions(request, runtime);
|
|
42293
42307
|
}
|
|
42294
42308
|
/**
|
|
42309
|
+
* ## Usage notes
|
|
42295
42310
|
* * The ENI to which you want to assign secondary private IP addresses must be in the Available (Available) or InUse (InUse) state.
|
|
42296
42311
|
* * When you assign secondary private IP addresses to a primary ENI, the instance to which the ENI is attached must be in the Running (Running) or Stopped (Stopped) state.
|
|
42297
|
-
* * When an ENI is in the Available
|
|
42312
|
+
* * 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 [Overview of instance families](~~25378~~).
|
|
42298
42313
|
* * 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.
|
|
42299
42314
|
*
|
|
42300
42315
|
* @param request AssignPrivateIpAddressesRequest
|
|
@@ -42357,9 +42372,10 @@ class Client extends openapi_client_1.default {
|
|
|
42357
42372
|
return $tea.cast(await this.callApi(params, req, runtime), new AssignPrivateIpAddressesResponse({}));
|
|
42358
42373
|
}
|
|
42359
42374
|
/**
|
|
42375
|
+
* ## Usage notes
|
|
42360
42376
|
* * The ENI to which you want to assign secondary private IP addresses must be in the Available (Available) or InUse (InUse) state.
|
|
42361
42377
|
* * When you assign secondary private IP addresses to a primary ENI, the instance to which the ENI is attached must be in the Running (Running) or Stopped (Stopped) state.
|
|
42362
|
-
* * When an ENI is in the Available
|
|
42378
|
+
* * 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 [Overview of instance families](~~25378~~).
|
|
42363
42379
|
* * 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.
|
|
42364
42380
|
*
|
|
42365
42381
|
* @param request AssignPrivateIpAddressesRequest
|
|
@@ -42555,16 +42571,16 @@ class Client extends openapi_client_1.default {
|
|
|
42555
42571
|
}
|
|
42556
42572
|
/**
|
|
42557
42573
|
* When you call this operation, take note of the following items:
|
|
42558
|
-
* * The disk to
|
|
42574
|
+
* * The disk that you want to attach must be in the **Available** state.``
|
|
42559
42575
|
* * When the disk is attached as a data disk, take note of the following items:
|
|
42560
|
-
* * The instance must be in the **Running**
|
|
42576
|
+
* * The instance must be in the **Running** or **Stopped** state.````
|
|
42561
42577
|
* * If the disk was separately purchased, the billing method of the disk must be pay-as-you-go.
|
|
42562
42578
|
* * If the disk is a system disk detached from an instance, no limits apply to the billing method of the disk.
|
|
42563
42579
|
* * When the disk is attached as a system disk, take note of the following items:
|
|
42564
42580
|
* * The instance must be the original instance from which the system disk was detached.
|
|
42565
42581
|
* * The instance must be in the **Stopped** state.``
|
|
42566
42582
|
* * The logon credentials must be configured.
|
|
42567
|
-
* * If
|
|
42583
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of the instance, the instance is locked for security reasons and all operations are prohibited on the instance.
|
|
42568
42584
|
*
|
|
42569
42585
|
* @param request AttachDiskRequest
|
|
42570
42586
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -42624,16 +42640,16 @@ class Client extends openapi_client_1.default {
|
|
|
42624
42640
|
}
|
|
42625
42641
|
/**
|
|
42626
42642
|
* When you call this operation, take note of the following items:
|
|
42627
|
-
* * The disk to
|
|
42643
|
+
* * The disk that you want to attach must be in the **Available** state.``
|
|
42628
42644
|
* * When the disk is attached as a data disk, take note of the following items:
|
|
42629
|
-
* * The instance must be in the **Running**
|
|
42645
|
+
* * The instance must be in the **Running** or **Stopped** state.````
|
|
42630
42646
|
* * If the disk was separately purchased, the billing method of the disk must be pay-as-you-go.
|
|
42631
42647
|
* * If the disk is a system disk detached from an instance, no limits apply to the billing method of the disk.
|
|
42632
42648
|
* * When the disk is attached as a system disk, take note of the following items:
|
|
42633
42649
|
* * The instance must be the original instance from which the system disk was detached.
|
|
42634
42650
|
* * The instance must be in the **Stopped** state.``
|
|
42635
42651
|
* * The logon credentials must be configured.
|
|
42636
|
-
* * If
|
|
42652
|
+
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of the instance, the instance is locked for security reasons and all operations are prohibited on the instance.
|
|
42637
42653
|
*
|
|
42638
42654
|
* @param request AttachDiskRequest
|
|
42639
42655
|
* @return AttachDiskResponse
|
|
@@ -42687,11 +42703,11 @@ class Client extends openapi_client_1.default {
|
|
|
42687
42703
|
return await this.attachInstanceRamRoleWithOptions(request, runtime);
|
|
42688
42704
|
}
|
|
42689
42705
|
/**
|
|
42690
|
-
*
|
|
42706
|
+
* Take note of the following items:
|
|
42691
42707
|
* * SSH key pairs are not supported on Windows instances.
|
|
42692
42708
|
* * If an SSH key pair is bound to an instance, authentication by using the username and password is disabled for the instance.
|
|
42693
|
-
* * If you bind an SSH key pair to an instance in the **
|
|
42694
|
-
* * If you bind an SSH key pair to an instance in the **
|
|
42709
|
+
* * If you bind an SSH key pair to an instance in the **running** state, you must call the [RebootInstance](~~25502~~) operation to restart the instance for the key pair to take effect.
|
|
42710
|
+
* * If you bind an SSH key pair to an instance in the **stopped** state, you must call the [StartInstance](~~25500~~) operation to start the instance for the key pair to take effect.
|
|
42695
42711
|
* * If an instance is already bound to an SSH key pair, the new SSH key pair will replace the original one.
|
|
42696
42712
|
*
|
|
42697
42713
|
* @param request AttachKeyPairRequest
|
|
@@ -42736,11 +42752,11 @@ class Client extends openapi_client_1.default {
|
|
|
42736
42752
|
return $tea.cast(await this.callApi(params, req, runtime), new AttachKeyPairResponse({}));
|
|
42737
42753
|
}
|
|
42738
42754
|
/**
|
|
42739
|
-
*
|
|
42755
|
+
* Take note of the following items:
|
|
42740
42756
|
* * SSH key pairs are not supported on Windows instances.
|
|
42741
42757
|
* * If an SSH key pair is bound to an instance, authentication by using the username and password is disabled for the instance.
|
|
42742
|
-
* * If you bind an SSH key pair to an instance in the **
|
|
42743
|
-
* * If you bind an SSH key pair to an instance in the **
|
|
42758
|
+
* * If you bind an SSH key pair to an instance in the **running** state, you must call the [RebootInstance](~~25502~~) operation to restart the instance for the key pair to take effect.
|
|
42759
|
+
* * If you bind an SSH key pair to an instance in the **stopped** state, you must call the [StartInstance](~~25500~~) operation to start the instance for the key pair to take effect.
|
|
42744
42760
|
* * If an instance is already bound to an SSH key pair, the new SSH key pair will replace the original one.
|
|
42745
42761
|
*
|
|
42746
42762
|
* @param request AttachKeyPairRequest
|
|
@@ -42838,18 +42854,18 @@ class Client extends openapi_client_1.default {
|
|
|
42838
42854
|
return await this.attachNetworkInterfaceWithOptions(request, runtime);
|
|
42839
42855
|
}
|
|
42840
42856
|
/**
|
|
42841
|
-
* In security group-related API documents, traffic is sent
|
|
42857
|
+
* In security group-related API documents, outbound traffic refers to the traffic that is sent by the source device and received at the destination device.
|
|
42842
42858
|
* When you call this operation, take note of the following items:
|
|
42843
|
-
* * The total number of
|
|
42844
|
-
* * The valid
|
|
42859
|
+
* * 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 of the [Limits](~~25412#SecurityGroupQuota1~~) topic.
|
|
42860
|
+
* * The valid value of Priority ranges from 1 to 100. A smaller value specifies a higher priority.
|
|
42845
42861
|
* * If several security group rules have the same priority, drop rules take precedence.
|
|
42846
42862
|
* * The source can be a CIDR block that is specified by SourceCidrIp, Ipv6SourceCidrIp, or SourcePrefixListId. The source can also be Elastic Compute Service (ECS) instances in a security group that is specified by SourceGroupId.
|
|
42847
42863
|
* * You cannot reference security groups as sources or destinations in the rules of advanced security groups.
|
|
42848
42864
|
* * You can reference up to 20 security groups as sources or destinations in the rules of each basic security group.
|
|
42849
|
-
* * If the specified security group rule exists in the security group, the
|
|
42850
|
-
* * The `Permissions.N` prefix is added to specific parameters to generate new parameters.
|
|
42865
|
+
* * If the specified security group rule already exists in the security group, the call is successful but no security group rule is created.
|
|
42866
|
+
* * The `Permissions.N` prefix is added to specific 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`.
|
|
42851
42867
|
* * 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.
|
|
42852
|
-
* * Parameters
|
|
42868
|
+
* * Parameters used to determine an inbound security group rule that controls access from a specific CIDR block: IpProtocol, PortRange, SourcePortRange (optional), 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:
|
|
42853
42869
|
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
|
|
42854
42870
|
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
42855
42871
|
* &Permissions.1.SourceCidrIp=10.0.0.0/8
|
|
@@ -42858,7 +42874,7 @@ class Client extends openapi_client_1.default {
|
|
|
42858
42874
|
* &Permissions.1.NicType=intranet
|
|
42859
42875
|
* &Permissions.1.Policy=Accept
|
|
42860
42876
|
* &<Common request parameters>
|
|
42861
|
-
* * Parameters
|
|
42877
|
+
* * Parameters used to determine an inbound 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 manage access between security groups in the classic network, you can allow or deny access from another security group within the same region to your security group. The security group that is allowed to access your security group can belong to your Alibaba Cloud account or another Alibaba Cloud account that is specified by SourceGroupOwnerAccount. To manage access between security groups in VPCs, you can allow or deny access from another security group within the same VPC to your security group. Sample request:
|
|
42862
42878
|
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
|
|
42863
42879
|
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
42864
42880
|
* &Permissions.1.SourceGroupId=sg-1651FBB**
|
|
@@ -42868,7 +42884,7 @@ class Client extends openapi_client_1.default {
|
|
|
42868
42884
|
* &Permissions.1.NicType=intranet
|
|
42869
42885
|
* &Permissions.1.Policy=Drop
|
|
42870
42886
|
* &<Common request parameters>
|
|
42871
|
-
* * Parameters
|
|
42887
|
+
* * Parameters used to determine an inbound security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and SourcePrefixListId. If you specify this group of parameters, prefix lists support only security groups in VPCs. You must set NicType to intranet. Sample request:
|
|
42872
42888
|
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
|
|
42873
42889
|
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
42874
42890
|
* &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
@@ -42985,18 +43001,18 @@ class Client extends openapi_client_1.default {
|
|
|
42985
43001
|
return $tea.cast(await this.callApi(params, req, runtime), new AuthorizeSecurityGroupResponse({}));
|
|
42986
43002
|
}
|
|
42987
43003
|
/**
|
|
42988
|
-
* In security group-related API documents, traffic is sent
|
|
43004
|
+
* In security group-related API documents, outbound traffic refers to the traffic that is sent by the source device and received at the destination device.
|
|
42989
43005
|
* When you call this operation, take note of the following items:
|
|
42990
|
-
* * The total number of
|
|
42991
|
-
* * The valid
|
|
43006
|
+
* * 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 of the [Limits](~~25412#SecurityGroupQuota1~~) topic.
|
|
43007
|
+
* * The valid value of Priority ranges from 1 to 100. A smaller value specifies a higher priority.
|
|
42992
43008
|
* * If several security group rules have the same priority, drop rules take precedence.
|
|
42993
43009
|
* * The source can be a CIDR block that is specified by SourceCidrIp, Ipv6SourceCidrIp, or SourcePrefixListId. The source can also be Elastic Compute Service (ECS) instances in a security group that is specified by SourceGroupId.
|
|
42994
43010
|
* * You cannot reference security groups as sources or destinations in the rules of advanced security groups.
|
|
42995
43011
|
* * You can reference up to 20 security groups as sources or destinations in the rules of each basic security group.
|
|
42996
|
-
* * If the specified security group rule exists in the security group, the
|
|
42997
|
-
* * The `Permissions.N` prefix is added to specific parameters to generate new parameters.
|
|
43012
|
+
* * If the specified security group rule already exists in the security group, the call is successful but no security group rule is created.
|
|
43013
|
+
* * The `Permissions.N` prefix is added to specific 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`.
|
|
42998
43014
|
* * 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.
|
|
42999
|
-
* * Parameters
|
|
43015
|
+
* * Parameters used to determine an inbound security group rule that controls access from a specific CIDR block: IpProtocol, PortRange, SourcePortRange (optional), 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:
|
|
43000
43016
|
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
|
|
43001
43017
|
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
43002
43018
|
* &Permissions.1.SourceCidrIp=10.0.0.0/8
|
|
@@ -43005,7 +43021,7 @@ class Client extends openapi_client_1.default {
|
|
|
43005
43021
|
* &Permissions.1.NicType=intranet
|
|
43006
43022
|
* &Permissions.1.Policy=Accept
|
|
43007
43023
|
* &<Common request parameters>
|
|
43008
|
-
* * Parameters
|
|
43024
|
+
* * Parameters used to determine an inbound 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 manage access between security groups in the classic network, you can allow or deny access from another security group within the same region to your security group. The security group that is allowed to access your security group can belong to your Alibaba Cloud account or another Alibaba Cloud account that is specified by SourceGroupOwnerAccount. To manage access between security groups in VPCs, you can allow or deny access from another security group within the same VPC to your security group. Sample request:
|
|
43009
43025
|
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
|
|
43010
43026
|
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
43011
43027
|
* &Permissions.1.SourceGroupId=sg-1651FBB**
|
|
@@ -43015,7 +43031,7 @@ class Client extends openapi_client_1.default {
|
|
|
43015
43031
|
* &Permissions.1.NicType=intranet
|
|
43016
43032
|
* &Permissions.1.Policy=Drop
|
|
43017
43033
|
* &<Common request parameters>
|
|
43018
|
-
* * Parameters
|
|
43034
|
+
* * Parameters used to determine an inbound security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and SourcePrefixListId. If you specify this group of parameters, prefix lists support only security groups in VPCs. You must set NicType to intranet. Sample request:
|
|
43019
43035
|
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
|
|
43020
43036
|
* &SecurityGroupId=sg-bp67acfmxazb4p****
|
|
43021
43037
|
* &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
@@ -43035,7 +43051,47 @@ class Client extends openapi_client_1.default {
|
|
|
43035
43051
|
return await this.authorizeSecurityGroupWithOptions(request, runtime);
|
|
43036
43052
|
}
|
|
43037
43053
|
/**
|
|
43038
|
-
*
|
|
43054
|
+
* In the security group-related API documents, outbound traffic refers to the traffic that is sent by the source device and received at the destination device.
|
|
43055
|
+
* When you call this operation, take note of the following items:
|
|
43056
|
+
* * 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~~).
|
|
43057
|
+
* * You can set Policy to accept or drop for each security group rule to allow or deny access.
|
|
43058
|
+
* * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
|
|
43059
|
+
* * When several security group rules have the same priority, drop rules take precedence.
|
|
43060
|
+
* * 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.
|
|
43061
|
+
* * For advanced security groups, security groups cannot be used as authorization objects.
|
|
43062
|
+
* * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
|
|
43063
|
+
* * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
|
|
43064
|
+
* * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be configured together. We recommend that you use parameters prefixed with `Permissions.N`.
|
|
43065
|
+
* * You can determine a security group rule by configuring one of the following groups of parameters. You cannot determine a security group rule by configuring only one parameter.
|
|
43066
|
+
* * 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:
|
|
43067
|
+
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
|
|
43068
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
43069
|
+
* &Permissions.1.IpProtocol=ICMP
|
|
43070
|
+
* &Permissions.1.DestCidrIp=10.0.0.0/8
|
|
43071
|
+
* &Permissions.1.PortRange=-1/-1
|
|
43072
|
+
* &Permissions.1.NicType=intranet
|
|
43073
|
+
* &Permissions.1.Policy=Accept
|
|
43074
|
+
* &<Common request parameters>
|
|
43075
|
+
* * 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:
|
|
43076
|
+
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
|
|
43077
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
43078
|
+
* &Permissions.1.DestGroupId=sg-bp67acfmxazb4pi***
|
|
43079
|
+
* &Permissions.1.DestGroupOwnerAccount=Test@aliyun.com
|
|
43080
|
+
* &Permissions.1.IpProtocol=TCP
|
|
43081
|
+
* &Permissions.1.PortRange=22/22
|
|
43082
|
+
* &Permissions.1.NicType=intranet
|
|
43083
|
+
* &Permissions.1.Policy=Drop
|
|
43084
|
+
* &<Common request parameters>
|
|
43085
|
+
* * 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:
|
|
43086
|
+
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
|
|
43087
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
43088
|
+
* &Permissions.1.DestPrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
43089
|
+
* &Permissions.1.DestGroupOwnerAccount=Test@aliyun.com
|
|
43090
|
+
* &Permissions.1.IpProtocol=TCP
|
|
43091
|
+
* &Permissions.1.PortRange=22/22
|
|
43092
|
+
* &Permissions.1.NicType=intranet
|
|
43093
|
+
* &Permissions.1.Policy=Drop
|
|
43094
|
+
* &<Common request parameters>
|
|
43039
43095
|
*
|
|
43040
43096
|
* @param request AuthorizeSecurityGroupEgressRequest
|
|
43041
43097
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -43142,7 +43198,47 @@ class Client extends openapi_client_1.default {
|
|
|
43142
43198
|
return $tea.cast(await this.callApi(params, req, runtime), new AuthorizeSecurityGroupEgressResponse({}));
|
|
43143
43199
|
}
|
|
43144
43200
|
/**
|
|
43145
|
-
*
|
|
43201
|
+
* In the security group-related API documents, outbound traffic refers to the traffic that is sent by the source device and received at the destination device.
|
|
43202
|
+
* When you call this operation, take note of the following items:
|
|
43203
|
+
* * 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~~).
|
|
43204
|
+
* * You can set Policy to accept or drop for each security group rule to allow or deny access.
|
|
43205
|
+
* * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
|
|
43206
|
+
* * When several security group rules have the same priority, drop rules take precedence.
|
|
43207
|
+
* * 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.
|
|
43208
|
+
* * For advanced security groups, security groups cannot be used as authorization objects.
|
|
43209
|
+
* * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
|
|
43210
|
+
* * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
|
|
43211
|
+
* * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be configured together. We recommend that you use parameters prefixed with `Permissions.N`.
|
|
43212
|
+
* * You can determine a security group rule by configuring one of the following groups of parameters. You cannot determine a security group rule by configuring only one parameter.
|
|
43213
|
+
* * 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:
|
|
43214
|
+
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
|
|
43215
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
43216
|
+
* &Permissions.1.IpProtocol=ICMP
|
|
43217
|
+
* &Permissions.1.DestCidrIp=10.0.0.0/8
|
|
43218
|
+
* &Permissions.1.PortRange=-1/-1
|
|
43219
|
+
* &Permissions.1.NicType=intranet
|
|
43220
|
+
* &Permissions.1.Policy=Accept
|
|
43221
|
+
* &<Common request parameters>
|
|
43222
|
+
* * 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:
|
|
43223
|
+
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
|
|
43224
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
43225
|
+
* &Permissions.1.DestGroupId=sg-bp67acfmxazb4pi***
|
|
43226
|
+
* &Permissions.1.DestGroupOwnerAccount=Test@aliyun.com
|
|
43227
|
+
* &Permissions.1.IpProtocol=TCP
|
|
43228
|
+
* &Permissions.1.PortRange=22/22
|
|
43229
|
+
* &Permissions.1.NicType=intranet
|
|
43230
|
+
* &Permissions.1.Policy=Drop
|
|
43231
|
+
* &<Common request parameters>
|
|
43232
|
+
* * 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:
|
|
43233
|
+
* http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
|
|
43234
|
+
* &SecurityGroupId=sg-bp67acfmxazb4ph***
|
|
43235
|
+
* &Permissions.1.DestPrefixListId=pl-x1j1k5ykzqlixdcy****
|
|
43236
|
+
* &Permissions.1.DestGroupOwnerAccount=Test@aliyun.com
|
|
43237
|
+
* &Permissions.1.IpProtocol=TCP
|
|
43238
|
+
* &Permissions.1.PortRange=22/22
|
|
43239
|
+
* &Permissions.1.NicType=intranet
|
|
43240
|
+
* &Permissions.1.Policy=Drop
|
|
43241
|
+
* &<Common request parameters>
|
|
43146
43242
|
*
|
|
43147
43243
|
* @param request AuthorizeSecurityGroupEgressRequest
|
|
43148
43244
|
* @return AuthorizeSecurityGroupEgressResponse
|
|
@@ -43684,6 +43780,9 @@ class Client extends openapi_client_1.default {
|
|
|
43684
43780
|
if (!tea_util_1.default.isUnset(request.destinationSnapshotName)) {
|
|
43685
43781
|
query["DestinationSnapshotName"] = request.destinationSnapshotName;
|
|
43686
43782
|
}
|
|
43783
|
+
if (!tea_util_1.default.isUnset(request.destinationStorageLocationArn)) {
|
|
43784
|
+
query["DestinationStorageLocationArn"] = request.destinationStorageLocationArn;
|
|
43785
|
+
}
|
|
43687
43786
|
if (!tea_util_1.default.isUnset(request.encrypted)) {
|
|
43688
43787
|
query["Encrypted"] = request.encrypted;
|
|
43689
43788
|
}
|
|
@@ -43744,8 +43843,19 @@ class Client extends openapi_client_1.default {
|
|
|
43744
43843
|
return await this.copySnapshotWithOptions(request, runtime);
|
|
43745
43844
|
}
|
|
43746
43845
|
/**
|
|
43747
|
-
*
|
|
43748
|
-
*
|
|
43846
|
+
* After you use an activation code to register a server that is not provided by Alibaba Cloud as an Alibaba Cloud managed instance, you can use a variety of online services provided by Alibaba Cloud in the managed instance, such as Cloud Assistant, Operation Orchestration Service (OOS), and Apsara Devops.
|
|
43847
|
+
* A server that is not provided by Alibaba Cloud can be registered as an Alibaba Cloud managed instance only when the server can access the Internet and runs an operating system of one of the following versions:
|
|
43848
|
+
* * Alibaba Cloud Linux 2, Alibaba Cloud Linux 3, and later
|
|
43849
|
+
* * CentOS 6, CentOS 7, CentOS 8, and later
|
|
43850
|
+
* * Debian 8, Debian 9, Debian 10, and later
|
|
43851
|
+
* * Ubuntu 12, Ubuntu 14, Ubuntu 16, Ubuntu 18, and later
|
|
43852
|
+
* * CoreOS
|
|
43853
|
+
* * OpenSUSE
|
|
43854
|
+
* * Red Hat 5, Red Hat 6, Red Hat 7, and later
|
|
43855
|
+
* * SUSE Linux Enterprise Server (SLES) 11, SLES 12, SLES 15, and later
|
|
43856
|
+
* * Windows Server 2012, Windows Server 2016, Windows Server 2019, and later
|
|
43857
|
+
* You can have up to 5,000 activation codes per Alibaba Cloud region. When the number of activation codes exceeds 1,000, the usage of the activation codes must be greater than 50% before you can proceed to create more activation codes.
|
|
43858
|
+
* > To view the usage of activation codes, click **Activation Code** on the **Manage Instances** tab of the **Cloud Assistant** page in the Elastic Compute Service (ECS) console.
|
|
43749
43859
|
*
|
|
43750
43860
|
* @param request CreateActivationRequest
|
|
43751
43861
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -43807,8 +43917,19 @@ class Client extends openapi_client_1.default {
|
|
|
43807
43917
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateActivationResponse({}));
|
|
43808
43918
|
}
|
|
43809
43919
|
/**
|
|
43810
|
-
*
|
|
43811
|
-
*
|
|
43920
|
+
* After you use an activation code to register a server that is not provided by Alibaba Cloud as an Alibaba Cloud managed instance, you can use a variety of online services provided by Alibaba Cloud in the managed instance, such as Cloud Assistant, Operation Orchestration Service (OOS), and Apsara Devops.
|
|
43921
|
+
* A server that is not provided by Alibaba Cloud can be registered as an Alibaba Cloud managed instance only when the server can access the Internet and runs an operating system of one of the following versions:
|
|
43922
|
+
* * Alibaba Cloud Linux 2, Alibaba Cloud Linux 3, and later
|
|
43923
|
+
* * CentOS 6, CentOS 7, CentOS 8, and later
|
|
43924
|
+
* * Debian 8, Debian 9, Debian 10, and later
|
|
43925
|
+
* * Ubuntu 12, Ubuntu 14, Ubuntu 16, Ubuntu 18, and later
|
|
43926
|
+
* * CoreOS
|
|
43927
|
+
* * OpenSUSE
|
|
43928
|
+
* * Red Hat 5, Red Hat 6, Red Hat 7, and later
|
|
43929
|
+
* * SUSE Linux Enterprise Server (SLES) 11, SLES 12, SLES 15, and later
|
|
43930
|
+
* * Windows Server 2012, Windows Server 2016, Windows Server 2019, and later
|
|
43931
|
+
* You can have up to 5,000 activation codes per Alibaba Cloud region. When the number of activation codes exceeds 1,000, the usage of the activation codes must be greater than 50% before you can proceed to create more activation codes.
|
|
43932
|
+
* > To view the usage of activation codes, click **Activation Code** on the **Manage Instances** tab of the **Cloud Assistant** page in the Elastic Compute Service (ECS) console.
|
|
43812
43933
|
*
|
|
43813
43934
|
* @param request CreateActivationRequest
|
|
43814
43935
|
* @return CreateActivationResponse
|
|
@@ -43956,10 +44077,10 @@ class Client extends openapi_client_1.default {
|
|
|
43956
44077
|
return await this.createAutoProvisioningGroupWithOptions(request, runtime);
|
|
43957
44078
|
}
|
|
43958
44079
|
/**
|
|
43959
|
-
* When you call this operation to create an automatic snapshot policy, you can specify the days of the week on which to create automatic snapshots, the retention period of the automatic snapshots, and cross-region replication for snapshots in the policy to meet your diverse data backup requirements. After you create an automatic snapshot policy, you must call the [ApplyAutoSnapshotPolicy](~~25531~~) operation to apply it to disks. If you want to modify the automatic snapshot policy, you must call the [ModifyAutoSnapshotPolicyEx](~~25529~~) operation.
|
|
43960
|
-
*
|
|
43961
|
-
* * You can create a maximum of 100 automatic snapshot policies
|
|
43962
|
-
* * If an automatic snapshot is being created when the time scheduled for creating another automatic snapshot is due, the new snapshot task is skipped. This may occur when a disk contains a large volume of data. For example, you have scheduled snapshots to be created at 09:00:00, 10:00:00, 11:00:00, and 12:00:00 for a disk. The system starts to create a snapshot for the disk at 09:00:00. The process takes 80 minutes because the disk contains a large volume of data and ends at 10:20:00. The system skips the automatic snapshot task scheduled for 10:00:00 and creates the next automatic snapshot for the disk at 11:00:00.
|
|
44080
|
+
* When you call this operation to create an automatic snapshot policy, you can specify the days of the week on which to create automatic snapshots, the retention period of the automatic snapshots, and whether to enable cross-region replication for the snapshots in the policy to meet your diverse data backup requirements. After you create an automatic snapshot policy, you must call the [ApplyAutoSnapshotPolicy](~~25531~~) operation to apply it to disks. If you want to modify the automatic snapshot policy, you must call the [ModifyAutoSnapshotPolicyEx](~~25529~~) operation.
|
|
44081
|
+
* Take note of the following items:
|
|
44082
|
+
* * You can create a maximum of 100 automatic snapshot policies per region for a single Alibaba Cloud account.
|
|
44083
|
+
* * If an automatic snapshot is being created when the time scheduled for creating another automatic snapshot is due, the new snapshot task is skipped. This may occur when a disk contains a large volume of data. For example, you have scheduled snapshots to be created at 09:00:00, 10:00:00, 11:00:00, and 12:00:00 for a disk. The system starts to create a snapshot for the disk at 09:00:00. The process takes 80 minutes to complete because the disk contains a large volume of data and ends at 10:20:00. The system skips the automatic snapshot task scheduled for 10:00:00 and creates the next automatic snapshot for the disk at 11:00:00.
|
|
43963
44084
|
* * For information about how to copy a snapshot from one region to another, see the "Background information" section in [Copy a snapshot](~~159441~~).
|
|
43964
44085
|
*
|
|
43965
44086
|
* @param request CreateAutoSnapshotPolicyRequest
|
|
@@ -44028,10 +44149,10 @@ class Client extends openapi_client_1.default {
|
|
|
44028
44149
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateAutoSnapshotPolicyResponse({}));
|
|
44029
44150
|
}
|
|
44030
44151
|
/**
|
|
44031
|
-
* When you call this operation to create an automatic snapshot policy, you can specify the days of the week on which to create automatic snapshots, the retention period of the automatic snapshots, and cross-region replication for snapshots in the policy to meet your diverse data backup requirements. After you create an automatic snapshot policy, you must call the [ApplyAutoSnapshotPolicy](~~25531~~) operation to apply it to disks. If you want to modify the automatic snapshot policy, you must call the [ModifyAutoSnapshotPolicyEx](~~25529~~) operation.
|
|
44032
|
-
*
|
|
44033
|
-
* * You can create a maximum of 100 automatic snapshot policies
|
|
44034
|
-
* * If an automatic snapshot is being created when the time scheduled for creating another automatic snapshot is due, the new snapshot task is skipped. This may occur when a disk contains a large volume of data. For example, you have scheduled snapshots to be created at 09:00:00, 10:00:00, 11:00:00, and 12:00:00 for a disk. The system starts to create a snapshot for the disk at 09:00:00. The process takes 80 minutes because the disk contains a large volume of data and ends at 10:20:00. The system skips the automatic snapshot task scheduled for 10:00:00 and creates the next automatic snapshot for the disk at 11:00:00.
|
|
44152
|
+
* When you call this operation to create an automatic snapshot policy, you can specify the days of the week on which to create automatic snapshots, the retention period of the automatic snapshots, and whether to enable cross-region replication for the snapshots in the policy to meet your diverse data backup requirements. After you create an automatic snapshot policy, you must call the [ApplyAutoSnapshotPolicy](~~25531~~) operation to apply it to disks. If you want to modify the automatic snapshot policy, you must call the [ModifyAutoSnapshotPolicyEx](~~25529~~) operation.
|
|
44153
|
+
* Take note of the following items:
|
|
44154
|
+
* * You can create a maximum of 100 automatic snapshot policies per region for a single Alibaba Cloud account.
|
|
44155
|
+
* * If an automatic snapshot is being created when the time scheduled for creating another automatic snapshot is due, the new snapshot task is skipped. This may occur when a disk contains a large volume of data. For example, you have scheduled snapshots to be created at 09:00:00, 10:00:00, 11:00:00, and 12:00:00 for a disk. The system starts to create a snapshot for the disk at 09:00:00. The process takes 80 minutes to complete because the disk contains a large volume of data and ends at 10:20:00. The system skips the automatic snapshot task scheduled for 10:00:00 and creates the next automatic snapshot for the disk at 11:00:00.
|
|
44035
44156
|
* * For information about how to copy a snapshot from one region to another, see the "Background information" section in [Copy a snapshot](~~159441~~).
|
|
44036
44157
|
*
|
|
44037
44158
|
* @param request CreateAutoSnapshotPolicyRequest
|
|
@@ -44139,19 +44260,7 @@ class Client extends openapi_client_1.default {
|
|
|
44139
44260
|
return await this.createCapacityReservationWithOptions(request, runtime);
|
|
44140
44261
|
}
|
|
44141
44262
|
/**
|
|
44142
|
-
*
|
|
44143
|
-
* * RunBatScript: batch commands. These commands are applicable to Windows instances.
|
|
44144
|
-
* * RunPowerShellScript: PowerShell commands. These commands are applicable to Windows instances.
|
|
44145
|
-
* * RunShellScript: shell commands. These commands are applicable to Linux instances.
|
|
44146
|
-
* * You can specify the TimeOut parameter to set the maximum timeout period for executions of a command on Elastic Compute Service (ECS) instances. If an execution times out, the Cloud Assistant client forcefully terminates the command process by canceling the process ID (PID) of the command. For more information, see [Install the Cloud Assistant client](~~64921~~).
|
|
44147
|
-
* * When the one-time execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
|
|
44148
|
-
* * For a scheduled task, take note of the following items:
|
|
44149
|
-
* * The timeout period takes effect on each execution of the command.
|
|
44150
|
-
* * When a scheduled execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
|
|
44151
|
-
* * The timeout of one execution does not affect the subsequent executions of the command.
|
|
44152
|
-
* * You can retain up to 500 to 10,000 Cloud Assistant commands in each region.
|
|
44153
|
-
* * You can use the WorkingDir parameter to specify the working directory of a Cloud Assistant command. For Linux instances, the default working directory of a command is the home directory of the root user, which is `/root`. For Windows instances, the default working directory of a command is the directory where the Cloud Assistant client process resides, such as `C:\\Windows\\System32`.
|
|
44154
|
-
* * You can enable the custom parameter feature for a Cloud Assistant command by setting EnableParameter to true when you create the command. When you configure the CommandContent parameter, you can define custom parameters in the {{parameter}} format. Then, when the [InvokeCommand](~~64841~~) operation is called, the key-value pairs of custom parameters are passed in. For example, assume that the command content is `echo {{name}}`. You can use the Parameters parameter to pass in the `<name, Jack>` key-value pair when the InvokeCommand operation is called. The name key of the custom parameter is automatically replaced by the paired Jack value to generate a new command. Therefore, the `echo Jack` command is actually run.
|
|
44263
|
+
* The ID of the region in which to create the command. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
|
|
44155
44264
|
*
|
|
44156
44265
|
* @param request CreateCommandRequest
|
|
44157
44266
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -44222,19 +44331,7 @@ class Client extends openapi_client_1.default {
|
|
|
44222
44331
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateCommandResponse({}));
|
|
44223
44332
|
}
|
|
44224
44333
|
/**
|
|
44225
|
-
*
|
|
44226
|
-
* * RunBatScript: batch commands. These commands are applicable to Windows instances.
|
|
44227
|
-
* * RunPowerShellScript: PowerShell commands. These commands are applicable to Windows instances.
|
|
44228
|
-
* * RunShellScript: shell commands. These commands are applicable to Linux instances.
|
|
44229
|
-
* * You can specify the TimeOut parameter to set the maximum timeout period for executions of a command on Elastic Compute Service (ECS) instances. If an execution times out, the Cloud Assistant client forcefully terminates the command process by canceling the process ID (PID) of the command. For more information, see [Install the Cloud Assistant client](~~64921~~).
|
|
44230
|
-
* * When the one-time execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
|
|
44231
|
-
* * For a scheduled task, take note of the following items:
|
|
44232
|
-
* * The timeout period takes effect on each execution of the command.
|
|
44233
|
-
* * When a scheduled execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
|
|
44234
|
-
* * The timeout of one execution does not affect the subsequent executions of the command.
|
|
44235
|
-
* * You can retain up to 500 to 10,000 Cloud Assistant commands in each region.
|
|
44236
|
-
* * You can use the WorkingDir parameter to specify the working directory of a Cloud Assistant command. For Linux instances, the default working directory of a command is the home directory of the root user, which is `/root`. For Windows instances, the default working directory of a command is the directory where the Cloud Assistant client process resides, such as `C:\\Windows\\System32`.
|
|
44237
|
-
* * You can enable the custom parameter feature for a Cloud Assistant command by setting EnableParameter to true when you create the command. When you configure the CommandContent parameter, you can define custom parameters in the {{parameter}} format. Then, when the [InvokeCommand](~~64841~~) operation is called, the key-value pairs of custom parameters are passed in. For example, assume that the command content is `echo {{name}}`. You can use the Parameters parameter to pass in the `<name, Jack>` key-value pair when the InvokeCommand operation is called. The name key of the custom parameter is automatically replaced by the paired Jack value to generate a new command. Therefore, the `echo Jack` command is actually run.
|
|
44334
|
+
* The ID of the region in which to create the command. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
|
|
44238
44335
|
*
|
|
44239
44336
|
* @param request CreateCommandRequest
|
|
44240
44337
|
* @return CreateCommandResponse
|
|
@@ -44526,12 +44623,12 @@ class Client extends openapi_client_1.default {
|
|
|
44526
44623
|
return await this.createDiagnosticReportWithOptions(request, runtime);
|
|
44527
44624
|
}
|
|
44528
44625
|
/**
|
|
44529
|
-
* * When you create a disk, the multi-attach (`MultiAttach`) feature
|
|
44626
|
+
* * When you create a disk, you can enable the multi-attach (`MultiAttach`) feature for the disk. We recommend that you familiarize yourself with the multi-attach feature and its limits before you enable it. For more information, see [NVMe protocol](~~256487~~) and [Use the multi-attach feature](~~262105~~).
|
|
44530
44627
|
* * The disk can be a basic disk, an ultra disk, a standard SSD, or an enhanced SSD (ESSD).
|
|
44531
44628
|
* * When you create disks, you may be charged for the resources used. We recommend that you get familiar with the Elastic Compute Service (ECS) billing methods before you create a disk. For more information, see [Billing overview](~~25398~~).
|
|
44532
|
-
* * By default,
|
|
44533
|
-
* * If you do not
|
|
44534
|
-
* *
|
|
44629
|
+
* * By default, `DeleteAutoSnapshot` is set to `true` when a disk is created. This indicates that when the disk is released, the automatic snapshots of the disk are also deleted. You can call the [ModifyDiskAttribute](~~25517~~) operation to modify the parameter.
|
|
44630
|
+
* * If you do not configure the performance level when you create an ESSD, the performance level for the ESSD is PL1 by default. You can call the [ModifyDiskSpec](~~123780~~) operation to modify the performance level of the ESSD.
|
|
44631
|
+
* * By default, for a disk that is created by calling this operation, the `Portable` attribute is set to `true` and the billing method is pay-as-you-go.
|
|
44535
44632
|
*
|
|
44536
44633
|
* @param request CreateDiskRequest
|
|
44537
44634
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -44638,12 +44735,12 @@ class Client extends openapi_client_1.default {
|
|
|
44638
44735
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateDiskResponse({}));
|
|
44639
44736
|
}
|
|
44640
44737
|
/**
|
|
44641
|
-
* * When you create a disk, the multi-attach (`MultiAttach`) feature
|
|
44738
|
+
* * When you create a disk, you can enable the multi-attach (`MultiAttach`) feature for the disk. We recommend that you familiarize yourself with the multi-attach feature and its limits before you enable it. For more information, see [NVMe protocol](~~256487~~) and [Use the multi-attach feature](~~262105~~).
|
|
44642
44739
|
* * The disk can be a basic disk, an ultra disk, a standard SSD, or an enhanced SSD (ESSD).
|
|
44643
44740
|
* * When you create disks, you may be charged for the resources used. We recommend that you get familiar with the Elastic Compute Service (ECS) billing methods before you create a disk. For more information, see [Billing overview](~~25398~~).
|
|
44644
|
-
* * By default,
|
|
44645
|
-
* * If you do not
|
|
44646
|
-
* *
|
|
44741
|
+
* * By default, `DeleteAutoSnapshot` is set to `true` when a disk is created. This indicates that when the disk is released, the automatic snapshots of the disk are also deleted. You can call the [ModifyDiskAttribute](~~25517~~) operation to modify the parameter.
|
|
44742
|
+
* * If you do not configure the performance level when you create an ESSD, the performance level for the ESSD is PL1 by default. You can call the [ModifyDiskSpec](~~123780~~) operation to modify the performance level of the ESSD.
|
|
44743
|
+
* * By default, for a disk that is created by calling this operation, the `Portable` attribute is set to `true` and the billing method is pay-as-you-go.
|
|
44647
44744
|
*
|
|
44648
44745
|
* @param request CreateDiskRequest
|
|
44649
44746
|
* @return CreateDiskResponse
|
|
@@ -44653,7 +44750,7 @@ class Client extends openapi_client_1.default {
|
|
|
44653
44750
|
return await this.createDiskWithOptions(request, runtime);
|
|
44654
44751
|
}
|
|
44655
44752
|
/**
|
|
44656
|
-
* Elasticity Assurance provides a new
|
|
44753
|
+
* Elasticity Assurance provides a new way to purchase and use resources with flexibility and assurance. It offers assured resource reservations for pay-as-you-go Elastic Compute Service (ECS) instances. For more information, see [Overview of Elasticity Assurance](~~193630~~).
|
|
44657
44754
|
* * Elasticity assurances are not refundable after purchase.
|
|
44658
44755
|
* * Elasticity assurances are applicable to only pay-as-you-go ECS instances.
|
|
44659
44756
|
* * Elasticity assurances only support unlimited mode. Therefore, you must set `AssuranceTimes` to `Unlimited`. Elasticity assurances in unlimited mode can be applied an unlimited number of times within their effective period and take effect immediately after they are purchased.
|
|
@@ -44736,7 +44833,7 @@ class Client extends openapi_client_1.default {
|
|
|
44736
44833
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateElasticityAssuranceResponse({}));
|
|
44737
44834
|
}
|
|
44738
44835
|
/**
|
|
44739
|
-
* Elasticity Assurance provides a new
|
|
44836
|
+
* Elasticity Assurance provides a new way to purchase and use resources with flexibility and assurance. It offers assured resource reservations for pay-as-you-go Elastic Compute Service (ECS) instances. For more information, see [Overview of Elasticity Assurance](~~193630~~).
|
|
44740
44837
|
* * Elasticity assurances are not refundable after purchase.
|
|
44741
44838
|
* * Elasticity assurances are applicable to only pay-as-you-go ECS instances.
|
|
44742
44839
|
* * Elasticity assurances only support unlimited mode. Therefore, you must set `AssuranceTimes` to `Unlimited`. Elasticity assurances in unlimited mode can be applied an unlimited number of times within their effective period and take effect immediately after they are purchased.
|
|
@@ -45049,6 +45146,18 @@ class Client extends openapi_client_1.default {
|
|
|
45049
45146
|
let runtime = new $Util.RuntimeOptions({});
|
|
45050
45147
|
return await this.createImageWithOptions(request, runtime);
|
|
45051
45148
|
}
|
|
45149
|
+
/**
|
|
45150
|
+
* Take note of the following items:
|
|
45151
|
+
* * Only custom image components can be created.
|
|
45152
|
+
* * The images must run Linux operating systems. This indicates that you must set `SystemType` to Linux.
|
|
45153
|
+
* * You must set the image component type to image build component by setting the `ComponentType` parameter to Build.
|
|
45154
|
+
* * You can use Dockerfile to edit the content of image components, and then pass the edited content into the `Content` parameter. The content size must not be greater than 16 KB. `FROM` commands cannot be used in image components. An image component supports up to 127 commands. For information about supported commands, see [Description of commands supported by Image Builder](~~200206~~).
|
|
45155
|
+
* You can use image components to create image templates in the Elastic Compute Service (ECS) console, but cannot call API operations to use image components to create image templates. For more information, see [Overview of Image Builder](~~197410~~).
|
|
45156
|
+
*
|
|
45157
|
+
* @param request CreateImageComponentRequest
|
|
45158
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
45159
|
+
* @return CreateImageComponentResponse
|
|
45160
|
+
*/
|
|
45052
45161
|
async createImageComponentWithOptions(request, runtime) {
|
|
45053
45162
|
tea_util_1.default.validateModel(request);
|
|
45054
45163
|
let query = {};
|
|
@@ -45113,6 +45222,17 @@ class Client extends openapi_client_1.default {
|
|
|
45113
45222
|
});
|
|
45114
45223
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateImageComponentResponse({}));
|
|
45115
45224
|
}
|
|
45225
|
+
/**
|
|
45226
|
+
* Take note of the following items:
|
|
45227
|
+
* * Only custom image components can be created.
|
|
45228
|
+
* * The images must run Linux operating systems. This indicates that you must set `SystemType` to Linux.
|
|
45229
|
+
* * You must set the image component type to image build component by setting the `ComponentType` parameter to Build.
|
|
45230
|
+
* * You can use Dockerfile to edit the content of image components, and then pass the edited content into the `Content` parameter. The content size must not be greater than 16 KB. `FROM` commands cannot be used in image components. An image component supports up to 127 commands. For information about supported commands, see [Description of commands supported by Image Builder](~~200206~~).
|
|
45231
|
+
* You can use image components to create image templates in the Elastic Compute Service (ECS) console, but cannot call API operations to use image components to create image templates. For more information, see [Overview of Image Builder](~~197410~~).
|
|
45232
|
+
*
|
|
45233
|
+
* @param request CreateImageComponentRequest
|
|
45234
|
+
* @return CreateImageComponentResponse
|
|
45235
|
+
*/
|
|
45116
45236
|
async createImageComponent(request) {
|
|
45117
45237
|
let runtime = new $Util.RuntimeOptions({});
|
|
45118
45238
|
return await this.createImageComponentWithOptions(request, runtime);
|
|
@@ -45610,6 +45730,9 @@ class Client extends openapi_client_1.default {
|
|
|
45610
45730
|
if (!tea_util_1.default.isUnset(request.dataDisk)) {
|
|
45611
45731
|
query["DataDisk"] = request.dataDisk;
|
|
45612
45732
|
}
|
|
45733
|
+
if (!tea_util_1.default.isUnset(request.deletionProtection)) {
|
|
45734
|
+
query["DeletionProtection"] = request.deletionProtection;
|
|
45735
|
+
}
|
|
45613
45736
|
if (!tea_util_1.default.isUnset(request.deploymentSetId)) {
|
|
45614
45737
|
query["DeploymentSetId"] = request.deploymentSetId;
|
|
45615
45738
|
}
|
|
@@ -45790,6 +45913,9 @@ class Client extends openapi_client_1.default {
|
|
|
45790
45913
|
if (!tea_util_1.default.isUnset(request.dataDisk)) {
|
|
45791
45914
|
query["DataDisk"] = request.dataDisk;
|
|
45792
45915
|
}
|
|
45916
|
+
if (!tea_util_1.default.isUnset(request.deletionProtection)) {
|
|
45917
|
+
query["DeletionProtection"] = request.deletionProtection;
|
|
45918
|
+
}
|
|
45793
45919
|
if (!tea_util_1.default.isUnset(request.deploymentSetId)) {
|
|
45794
45920
|
query["DeploymentSetId"] = request.deploymentSetId;
|
|
45795
45921
|
}
|
|
@@ -46014,11 +46140,12 @@ class Client extends openapi_client_1.default {
|
|
|
46014
46140
|
return await this.createNatGatewayWithOptions(request, runtime);
|
|
46015
46141
|
}
|
|
46016
46142
|
/**
|
|
46017
|
-
*
|
|
46018
|
-
*
|
|
46019
|
-
* *
|
|
46143
|
+
* ## Usage notes
|
|
46144
|
+
* Take note of the following items:
|
|
46145
|
+
* * CreateNetworkInterface is a synchronous operation. After an ENI is created, the ENI immediately enters the Available state and can be attached to an Elastic Compute Service (ECS) instance.
|
|
46146
|
+
* * If NetworkInterfaceId is empty in the response, no ENI is created. Call the operation again to create an ENI.
|
|
46020
46147
|
* * An ENI can be attached only to a single instance that resides in a virtual private cloud (VPC).
|
|
46021
|
-
* * When an ENI is detached from an instance and
|
|
46148
|
+
* * When an ENI is detached from an instance and attached to another instance, the attributes of the ENI remain unchanged and network traffic is redirected to the new instance.
|
|
46022
46149
|
* * If you want to assign IPv6 addresses when you create an ENI, make sure that IPv6 has been enabled for the vSwitch with which to associate the ENI. For more information, see [What is an IPv6 gateway?](~~98896~~)
|
|
46023
46150
|
* * A quota is imposed on the number of ENIs that can be created per Alibaba Cloud region per account. You can view the quota in the ECS console. For more information, see [View and increase resource quotas](~~184115~~).
|
|
46024
46151
|
* **For information about examples on how to call this operation, see **[Create an ENI](~~471552~~).
|
|
@@ -46134,11 +46261,12 @@ class Client extends openapi_client_1.default {
|
|
|
46134
46261
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateNetworkInterfaceResponse({}));
|
|
46135
46262
|
}
|
|
46136
46263
|
/**
|
|
46137
|
-
*
|
|
46138
|
-
*
|
|
46139
|
-
* *
|
|
46264
|
+
* ## Usage notes
|
|
46265
|
+
* Take note of the following items:
|
|
46266
|
+
* * CreateNetworkInterface is a synchronous operation. After an ENI is created, the ENI immediately enters the Available state and can be attached to an Elastic Compute Service (ECS) instance.
|
|
46267
|
+
* * If NetworkInterfaceId is empty in the response, no ENI is created. Call the operation again to create an ENI.
|
|
46140
46268
|
* * An ENI can be attached only to a single instance that resides in a virtual private cloud (VPC).
|
|
46141
|
-
* * When an ENI is detached from an instance and
|
|
46269
|
+
* * When an ENI is detached from an instance and attached to another instance, the attributes of the ENI remain unchanged and network traffic is redirected to the new instance.
|
|
46142
46270
|
* * If you want to assign IPv6 addresses when you create an ENI, make sure that IPv6 has been enabled for the vSwitch with which to associate the ENI. For more information, see [What is an IPv6 gateway?](~~98896~~)
|
|
46143
46271
|
* * A quota is imposed on the number of ENIs that can be created per Alibaba Cloud region per account. You can view the quota in the ECS console. For more information, see [View and increase resource quotas](~~184115~~).
|
|
46144
46272
|
* **For information about examples on how to call this operation, see **[Create an ENI](~~471552~~).
|
|
@@ -46556,7 +46684,7 @@ class Client extends openapi_client_1.default {
|
|
|
46556
46684
|
}
|
|
46557
46685
|
/**
|
|
46558
46686
|
* When you call this operation, take note of the following items:
|
|
46559
|
-
* * You can create up to 100 security groups
|
|
46687
|
+
* * You can create up to 100 security groups in a single Alibaba Cloud region.
|
|
46560
46688
|
* * To create a security group of the Virtual Private Cloud (VPC) type, you must specify the VpcId parameter.
|
|
46561
46689
|
*
|
|
46562
46690
|
* @param request CreateSecurityGroupRequest
|
|
@@ -46623,7 +46751,7 @@ class Client extends openapi_client_1.default {
|
|
|
46623
46751
|
}
|
|
46624
46752
|
/**
|
|
46625
46753
|
* When you call this operation, take note of the following items:
|
|
46626
|
-
* * You can create up to 100 security groups
|
|
46754
|
+
* * You can create up to 100 security groups in a single Alibaba Cloud region.
|
|
46627
46755
|
* * To create a security group of the Virtual Private Cloud (VPC) type, you must specify the VpcId parameter.
|
|
46628
46756
|
*
|
|
46629
46757
|
* @param request CreateSecurityGroupRequest
|
|
@@ -46635,7 +46763,7 @@ class Client extends openapi_client_1.default {
|
|
|
46635
46763
|
}
|
|
46636
46764
|
/**
|
|
46637
46765
|
* You can use the ECS console, call [ECS API](~~63962~~) operations, or use CloudMonitor to view the scheduled simulated system events.
|
|
46638
|
-
*
|
|
46766
|
+
* The following descriptions provide the lifecycle of a simulated system event:
|
|
46639
46767
|
* * Scheduled: The state of the simulated system event is automatically changed to Scheduled after it is scheduled.
|
|
46640
46768
|
* * 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.
|
|
46641
46769
|
* * Canceled: The state of the simulated system event is changed to Canceled if you cancel the event by calling the [CancelSimulatedSystemEvents](~~88808~~) operation.
|
|
@@ -46693,7 +46821,7 @@ class Client extends openapi_client_1.default {
|
|
|
46693
46821
|
}
|
|
46694
46822
|
/**
|
|
46695
46823
|
* You can use the ECS console, call [ECS API](~~63962~~) operations, or use CloudMonitor to view the scheduled simulated system events.
|
|
46696
|
-
*
|
|
46824
|
+
* The following descriptions provide the lifecycle of a simulated system event:
|
|
46697
46825
|
* * Scheduled: The state of the simulated system event is automatically changed to Scheduled after it is scheduled.
|
|
46698
46826
|
* * 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.
|
|
46699
46827
|
* * Canceled: The state of the simulated system event is changed to Canceled if you cancel the event by calling the [CancelSimulatedSystemEvents](~~88808~~) operation.
|
|
@@ -46707,21 +46835,7 @@ class Client extends openapi_client_1.default {
|
|
|
46707
46835
|
return await this.createSimulatedSystemEventsWithOptions(request, runtime);
|
|
46708
46836
|
}
|
|
46709
46837
|
/**
|
|
46710
|
-
* The
|
|
46711
|
-
* * 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:
|
|
46712
|
-
* * The `Category` and `InstantAccess` parameters cannot be specified at the same time.
|
|
46713
|
-
* * If neither the `Category` nor `InstantAccess` parameters is specified, normal snapshots are created.
|
|
46714
|
-
* * 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.
|
|
46715
|
-
* You cannot create snapshots for a disk in the following scenarios:
|
|
46716
|
-
* * The number of manual snapshots of the disk has reached 256.
|
|
46717
|
-
* * A snapshot is being created for the disk.
|
|
46718
|
-
* * The instance to which the disk is attached has never been started.
|
|
46719
|
-
* * The ECS instance to which the disk is attached is not in the **Stopped** or **Running** state.````
|
|
46720
|
-
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.
|
|
46721
|
-
* When you create a snapshot, take note of the following items:
|
|
46722
|
-
* * If a snapshot is being created, you cannot use this snapshot to create a custom image by calling the [CreateImage](~~25535~~) operation.
|
|
46723
|
-
* * When a snapshot is being created for a disk that is attached to an instance, do not change the instance state.
|
|
46724
|
-
* * You can create snapshots for a disk that is in the **Expired** state.`` If the release time scheduled for a disk arrives while a snapshot is being created for the disk, the snapshot is in the **Creating** state and is deleted when the disk is released.``
|
|
46838
|
+
* The request ID.
|
|
46725
46839
|
*
|
|
46726
46840
|
* @param request CreateSnapshotRequest
|
|
46727
46841
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -46792,21 +46906,7 @@ class Client extends openapi_client_1.default {
|
|
|
46792
46906
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateSnapshotResponse({}));
|
|
46793
46907
|
}
|
|
46794
46908
|
/**
|
|
46795
|
-
* The
|
|
46796
|
-
* * 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:
|
|
46797
|
-
* * The `Category` and `InstantAccess` parameters cannot be specified at the same time.
|
|
46798
|
-
* * If neither the `Category` nor `InstantAccess` parameters is specified, normal snapshots are created.
|
|
46799
|
-
* * 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.
|
|
46800
|
-
* You cannot create snapshots for a disk in the following scenarios:
|
|
46801
|
-
* * The number of manual snapshots of the disk has reached 256.
|
|
46802
|
-
* * A snapshot is being created for the disk.
|
|
46803
|
-
* * The instance to which the disk is attached has never been started.
|
|
46804
|
-
* * The ECS instance to which the disk is attached is not in the **Stopped** or **Running** state.````
|
|
46805
|
-
* * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.
|
|
46806
|
-
* When you create a snapshot, take note of the following items:
|
|
46807
|
-
* * If a snapshot is being created, you cannot use this snapshot to create a custom image by calling the [CreateImage](~~25535~~) operation.
|
|
46808
|
-
* * When a snapshot is being created for a disk that is attached to an instance, do not change the instance state.
|
|
46809
|
-
* * You can create snapshots for a disk that is in the **Expired** state.`` If the release time scheduled for a disk arrives while a snapshot is being created for the disk, the snapshot is in the **Creating** state and is deleted when the disk is released.``
|
|
46909
|
+
* The request ID.
|
|
46810
46910
|
*
|
|
46811
46911
|
* @param request CreateSnapshotRequest
|
|
46812
46912
|
* @return CreateSnapshotResponse
|
|
@@ -47270,8 +47370,7 @@ class Client extends openapi_client_1.default {
|
|
|
47270
47370
|
return await this.deactivateRouterInterfaceWithOptions(request, runtime);
|
|
47271
47371
|
}
|
|
47272
47372
|
/**
|
|
47273
|
-
*
|
|
47274
|
-
* Before you call this operation to delete an activation code, make sure that the activation code has never been used to register managed instances.
|
|
47373
|
+
* $.parameters[4].schema.description
|
|
47275
47374
|
*
|
|
47276
47375
|
* @param request DeleteActivationRequest
|
|
47277
47376
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -47318,8 +47417,7 @@ class Client extends openapi_client_1.default {
|
|
|
47318
47417
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteActivationResponse({}));
|
|
47319
47418
|
}
|
|
47320
47419
|
/**
|
|
47321
|
-
*
|
|
47322
|
-
* Before you call this operation to delete an activation code, make sure that the activation code has never been used to register managed instances.
|
|
47420
|
+
* $.parameters[4].schema.description
|
|
47323
47421
|
*
|
|
47324
47422
|
* @param request DeleteActivationRequest
|
|
47325
47423
|
* @return DeleteActivationResponse
|
|
@@ -48179,14 +48277,14 @@ class Client extends openapi_client_1.default {
|
|
|
48179
48277
|
return await this.deleteInstanceWithOptions(request, runtime);
|
|
48180
48278
|
}
|
|
48181
48279
|
/**
|
|
48182
|
-
* * After an instance is released, all physical resources used by the instance are recycled. Relevant data is erased and cannot be restored.
|
|
48280
|
+
* * After an Elastic Compute Service (ECS) instance is released, all the physical resources used by the instance are recycled. Relevant data is erased and cannot be restored.
|
|
48183
48281
|
* * Disks attached to the instance:
|
|
48184
|
-
* *
|
|
48185
|
-
* *
|
|
48186
|
-
* *
|
|
48187
|
-
* *
|
|
48282
|
+
* * The disks for which `DeleteWithInstance` is set to false are retained as pay-as-you-go disks.
|
|
48283
|
+
* * The disks for which `DeleteWithInstance` is set to true are released together with the instance.
|
|
48284
|
+
* * For disks for which `DeleteAutoSnapshot` is set to false, the automatic snapshots of the disks are retained.
|
|
48285
|
+
* * For disks for which `DeleteAutoSnapshot` is set to true, the automatic snapshots of the disks are released.
|
|
48188
48286
|
* * Manual snapshots of the disks are retained.
|
|
48189
|
-
* * If `OperationLocks` in the
|
|
48287
|
+
* * If `OperationLocks` in the 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~~). Even if `DeleteWithInstance` 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.
|
|
48190
48288
|
*
|
|
48191
48289
|
* @param request DeleteInstancesRequest
|
|
48192
48290
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -48242,14 +48340,14 @@ class Client extends openapi_client_1.default {
|
|
|
48242
48340
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteInstancesResponse({}));
|
|
48243
48341
|
}
|
|
48244
48342
|
/**
|
|
48245
|
-
* * After an instance is released, all physical resources used by the instance are recycled. Relevant data is erased and cannot be restored.
|
|
48343
|
+
* * After an Elastic Compute Service (ECS) instance is released, all the physical resources used by the instance are recycled. Relevant data is erased and cannot be restored.
|
|
48246
48344
|
* * Disks attached to the instance:
|
|
48247
|
-
* *
|
|
48248
|
-
* *
|
|
48249
|
-
* *
|
|
48250
|
-
* *
|
|
48345
|
+
* * The disks for which `DeleteWithInstance` is set to false are retained as pay-as-you-go disks.
|
|
48346
|
+
* * The disks for which `DeleteWithInstance` is set to true are released together with the instance.
|
|
48347
|
+
* * For disks for which `DeleteAutoSnapshot` is set to false, the automatic snapshots of the disks are retained.
|
|
48348
|
+
* * For disks for which `DeleteAutoSnapshot` is set to true, the automatic snapshots of the disks are released.
|
|
48251
48349
|
* * Manual snapshots of the disks are retained.
|
|
48252
|
-
* * If `OperationLocks` in the
|
|
48350
|
+
* * If `OperationLocks` in the 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~~). Even if `DeleteWithInstance` 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.
|
|
48253
48351
|
*
|
|
48254
48352
|
* @param request DeleteInstancesRequest
|
|
48255
48353
|
* @return DeleteInstancesResponse
|
|
@@ -48461,19 +48559,15 @@ class Client extends openapi_client_1.default {
|
|
|
48461
48559
|
return await this.deleteNatGatewayWithOptions(request, runtime);
|
|
48462
48560
|
}
|
|
48463
48561
|
/**
|
|
48464
|
-
* ##
|
|
48562
|
+
* ##
|
|
48465
48563
|
* * The ENI must be in the Available state.
|
|
48466
|
-
* * If the ENI is
|
|
48467
|
-
* * After an ENI is deleted:
|
|
48564
|
+
* * If the ENI is attached to an Elastic Compute Service (ECS) instance, you must call [DetachNetworkInterface](~~58514~~) to detach the ENI from the instance before you can delete the ENI.
|
|
48565
|
+
* * After an ENI is deleted, the following situations occur:
|
|
48468
48566
|
* * All the private IP addresses (including primary and secondary private IP addresses) of the ENI are automatically released.
|
|
48469
48567
|
* * The ENI is automatically removed from its security groups.
|
|
48470
48568
|
* * 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.
|
|
48471
|
-
*
|
|
48472
|
-
*
|
|
48473
|
-
* * If the ENI is in the Deleting state, the ENI deletion request is sent and the ENI is being deleted.
|
|
48474
|
-
* * If the ENI is not found, the ENI is deleted.
|
|
48475
|
-
* * 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.
|
|
48476
|
-
* For information about examples on how to call this operation, see [Delete an ENI](~~471553~~).
|
|
48569
|
+
*  - If the ENI is in the Deleting state, the ENI deletion request is sent, and the ENI is being deleted. - If the ENI is not found, the ENI is deleted. - 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.
|
|
48570
|
+
* **For information about examples on how to call this operation, see **[Delete an ENI](~~471553~~).
|
|
48477
48571
|
*
|
|
48478
48572
|
* @param request DeleteNetworkInterfaceRequest
|
|
48479
48573
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -48520,19 +48614,15 @@ class Client extends openapi_client_1.default {
|
|
|
48520
48614
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteNetworkInterfaceResponse({}));
|
|
48521
48615
|
}
|
|
48522
48616
|
/**
|
|
48523
|
-
* ##
|
|
48617
|
+
* ##
|
|
48524
48618
|
* * The ENI must be in the Available state.
|
|
48525
|
-
* * If the ENI is
|
|
48526
|
-
* * After an ENI is deleted:
|
|
48619
|
+
* * If the ENI is attached to an Elastic Compute Service (ECS) instance, you must call [DetachNetworkInterface](~~58514~~) to detach the ENI from the instance before you can delete the ENI.
|
|
48620
|
+
* * After an ENI is deleted, the following situations occur:
|
|
48527
48621
|
* * All the private IP addresses (including primary and secondary private IP addresses) of the ENI are automatically released.
|
|
48528
48622
|
* * The ENI is automatically removed from its security groups.
|
|
48529
48623
|
* * 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.
|
|
48530
|
-
*
|
|
48531
|
-
*
|
|
48532
|
-
* * If the ENI is in the Deleting state, the ENI deletion request is sent and the ENI is being deleted.
|
|
48533
|
-
* * If the ENI is not found, the ENI is deleted.
|
|
48534
|
-
* * 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.
|
|
48535
|
-
* For information about examples on how to call this operation, see [Delete an ENI](~~471553~~).
|
|
48624
|
+
*  - If the ENI is in the Deleting state, the ENI deletion request is sent, and the ENI is being deleted. - If the ENI is not found, the ENI is deleted. - 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.
|
|
48625
|
+
* **For information about examples on how to call this operation, see **[Delete an ENI](~~471553~~).
|
|
48536
48626
|
*
|
|
48537
48627
|
* @param request DeleteNetworkInterfaceRequest
|
|
48538
48628
|
* @return DeleteNetworkInterfaceResponse
|
|
@@ -48846,6 +48936,13 @@ class Client extends openapi_client_1.default {
|
|
|
48846
48936
|
let runtime = new $Util.RuntimeOptions({});
|
|
48847
48937
|
return await this.deleteRouterInterfaceWithOptions(request, runtime);
|
|
48848
48938
|
}
|
|
48939
|
+
/**
|
|
48940
|
+
* Before you delete a security group, make sure that the security group does not contain instances and is not referenced by other security groups. Otherwise, the DeleteSecurityGroup request fails. You can call the [DescribeSecurityGroupReferences](~~57320~~) operation to query the reference details of the security group.
|
|
48941
|
+
*
|
|
48942
|
+
* @param request DeleteSecurityGroupRequest
|
|
48943
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
48944
|
+
* @return DeleteSecurityGroupResponse
|
|
48945
|
+
*/
|
|
48849
48946
|
async deleteSecurityGroupWithOptions(request, runtime) {
|
|
48850
48947
|
tea_util_1.default.validateModel(request);
|
|
48851
48948
|
let query = {};
|
|
@@ -48883,6 +48980,12 @@ class Client extends openapi_client_1.default {
|
|
|
48883
48980
|
});
|
|
48884
48981
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteSecurityGroupResponse({}));
|
|
48885
48982
|
}
|
|
48983
|
+
/**
|
|
48984
|
+
* Before you delete a security group, make sure that the security group does not contain instances and is not referenced by other security groups. Otherwise, the DeleteSecurityGroup request fails. You can call the [DescribeSecurityGroupReferences](~~57320~~) operation to query the reference details of the security group.
|
|
48985
|
+
*
|
|
48986
|
+
* @param request DeleteSecurityGroupRequest
|
|
48987
|
+
* @return DeleteSecurityGroupResponse
|
|
48988
|
+
*/
|
|
48886
48989
|
async deleteSecurityGroup(request) {
|
|
48887
48990
|
let runtime = new $Util.RuntimeOptions({});
|
|
48888
48991
|
return await this.deleteSecurityGroupWithOptions(request, runtime);
|
|
@@ -49990,10 +50093,10 @@ class Client extends openapi_client_1.default {
|
|
|
49990
50093
|
return await this.describeCapacityReservationsWithOptions(request, runtime);
|
|
49991
50094
|
}
|
|
49992
50095
|
/**
|
|
49993
|
-
*
|
|
50096
|
+
* Take note of the following items:
|
|
49994
50097
|
* * This operation applies only to instances that reside in the classic network.
|
|
49995
|
-
* * You can query
|
|
49996
|
-
* * At least the `VpcId`
|
|
50098
|
+
* * You can query a maximum of 100 instances that reside in the classic network at a time.
|
|
50099
|
+
* * At least one of the `VpcId` and `InstanceId` parameters must be configured.
|
|
49997
50100
|
*
|
|
49998
50101
|
* @param request DescribeClassicLinkInstancesRequest
|
|
49999
50102
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -50043,10 +50146,10 @@ class Client extends openapi_client_1.default {
|
|
|
50043
50146
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClassicLinkInstancesResponse({}));
|
|
50044
50147
|
}
|
|
50045
50148
|
/**
|
|
50046
|
-
*
|
|
50149
|
+
* Take note of the following items:
|
|
50047
50150
|
* * This operation applies only to instances that reside in the classic network.
|
|
50048
|
-
* * You can query
|
|
50049
|
-
* * At least the `VpcId`
|
|
50151
|
+
* * You can query a maximum of 100 instances that reside in the classic network at a time.
|
|
50152
|
+
* * At least one of the `VpcId` and `InstanceId` parameters must be configured.
|
|
50050
50153
|
*
|
|
50051
50154
|
* @param request DescribeClassicLinkInstancesRequest
|
|
50052
50155
|
* @return DescribeClassicLinkInstancesResponse
|
|
@@ -50162,7 +50265,7 @@ class Client extends openapi_client_1.default {
|
|
|
50162
50265
|
return await this.describeClustersWithOptions(request, runtime);
|
|
50163
50266
|
}
|
|
50164
50267
|
/**
|
|
50165
|
-
*
|
|
50268
|
+
* If you specify only `Action` and `RegionId` to call this operation, all the available commands (`CommandId`) that you created in the specified region are queried by default.
|
|
50166
50269
|
*
|
|
50167
50270
|
* @param request DescribeCommandsRequest
|
|
50168
50271
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -50236,7 +50339,7 @@ class Client extends openapi_client_1.default {
|
|
|
50236
50339
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeCommandsResponse({}));
|
|
50237
50340
|
}
|
|
50238
50341
|
/**
|
|
50239
|
-
*
|
|
50342
|
+
* If you specify only `Action` and `RegionId` to call this operation, all the available commands (`CommandId`) that you created in the specified region are queried by default.
|
|
50240
50343
|
*
|
|
50241
50344
|
* @param request DescribeCommandsRequest
|
|
50242
50345
|
* @return DescribeCommandsResponse
|
|
@@ -50409,9 +50512,10 @@ class Client extends openapi_client_1.default {
|
|
|
50409
50512
|
return await this.describeDedicatedHostTypesWithOptions(request, runtime);
|
|
50410
50513
|
}
|
|
50411
50514
|
/**
|
|
50412
|
-
*
|
|
50413
|
-
*
|
|
50414
|
-
* * Specify
|
|
50515
|
+
* ## Usage notes
|
|
50516
|
+
* You can use one of the following methods to query the details of dedicated hosts:
|
|
50517
|
+
* * Specify `DedicatedHostIds` to query the details of dedicated hosts.
|
|
50518
|
+
* * Specify `DedicatedHostClusterId` to query the details of the dedicated hosts in a dedicated host cluster.
|
|
50415
50519
|
*
|
|
50416
50520
|
* @param request DescribeDedicatedHostsRequest
|
|
50417
50521
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -50488,9 +50592,10 @@ class Client extends openapi_client_1.default {
|
|
|
50488
50592
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDedicatedHostsResponse({}));
|
|
50489
50593
|
}
|
|
50490
50594
|
/**
|
|
50491
|
-
*
|
|
50492
|
-
*
|
|
50493
|
-
* * Specify
|
|
50595
|
+
* ## Usage notes
|
|
50596
|
+
* You can use one of the following methods to query the details of dedicated hosts:
|
|
50597
|
+
* * Specify `DedicatedHostIds` to query the details of dedicated hosts.
|
|
50598
|
+
* * Specify `DedicatedHostClusterId` to query the details of the dedicated hosts in a dedicated host cluster.
|
|
50494
50599
|
*
|
|
50495
50600
|
* @param request DescribeDedicatedHostsRequest
|
|
50496
50601
|
* @return DescribeDedicatedHostsResponse
|
|
@@ -50500,7 +50605,9 @@ class Client extends openapi_client_1.default {
|
|
|
50500
50605
|
return await this.describeDedicatedHostsWithOptions(request, runtime);
|
|
50501
50606
|
}
|
|
50502
50607
|
/**
|
|
50503
|
-
*
|
|
50608
|
+
* You can call this operation to query the details of resources you filed with Alibaba Cloud, including the types, delivery status, and consumption details of the resources.
|
|
50609
|
+
* By default, the filing tickets of I/O optimized VPC-type instances are queried.
|
|
50610
|
+
* For information about how to create (CreateDemand), modify (ModifyDemand), and delete (DeleteDemand) filing tickets on ECS resources, contact your account manager.
|
|
50504
50611
|
*
|
|
50505
50612
|
* @param request DescribeDemandsRequest
|
|
50506
50613
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -50577,7 +50684,9 @@ class Client extends openapi_client_1.default {
|
|
|
50577
50684
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDemandsResponse({}));
|
|
50578
50685
|
}
|
|
50579
50686
|
/**
|
|
50580
|
-
*
|
|
50687
|
+
* You can call this operation to query the details of resources you filed with Alibaba Cloud, including the types, delivery status, and consumption details of the resources.
|
|
50688
|
+
* By default, the filing tickets of I/O optimized VPC-type instances are queried.
|
|
50689
|
+
* For information about how to create (CreateDemand), modify (ModifyDemand), and delete (DeleteDemand) filing tickets on ECS resources, contact your account manager.
|
|
50581
50690
|
*
|
|
50582
50691
|
* @param request DescribeDemandsRequest
|
|
50583
50692
|
* @return DescribeDemandsResponse
|
|
@@ -50587,7 +50696,8 @@ class Client extends openapi_client_1.default {
|
|
|
50587
50696
|
return await this.describeDemandsWithOptions(request, runtime);
|
|
50588
50697
|
}
|
|
50589
50698
|
/**
|
|
50590
|
-
*
|
|
50699
|
+
* ## Usage notes
|
|
50700
|
+
* For more information about instance families, see [Overview of instance families](~~25378~~).
|
|
50591
50701
|
*
|
|
50592
50702
|
* @param request DescribeDeploymentSetSupportedInstanceTypeFamilyRequest
|
|
50593
50703
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -50631,7 +50741,8 @@ class Client extends openapi_client_1.default {
|
|
|
50631
50741
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDeploymentSetSupportedInstanceTypeFamilyResponse({}));
|
|
50632
50742
|
}
|
|
50633
50743
|
/**
|
|
50634
|
-
*
|
|
50744
|
+
* ## Usage notes
|
|
50745
|
+
* For more information about instance families, see [Overview of instance families](~~25378~~).
|
|
50635
50746
|
*
|
|
50636
50747
|
* @param request DescribeDeploymentSetSupportedInstanceTypeFamilyRequest
|
|
50637
50748
|
* @return DescribeDeploymentSetSupportedInstanceTypeFamilyResponse
|
|
@@ -51079,7 +51190,7 @@ class Client extends openapi_client_1.default {
|
|
|
51079
51190
|
return await this.describeDisksWithOptions(request, runtime);
|
|
51080
51191
|
}
|
|
51081
51192
|
/**
|
|
51082
|
-
* * The full status information
|
|
51193
|
+
* * The full status information about an EBS device includes the lifecycle status specified by the `Status` parameter, health status specified by the `HealthStatus` parameter, and event type specified by the `EventType` parameter of the EBS device. You can filter the results based on these parameters.
|
|
51083
51194
|
* * The release time, scheduled execution time, and actual execution time of each EBS device event are identical. If you specify a period of time by using the `EventTime.Start` and `EventTime.End` parameters, all events that occurred within this period are queried. You can query events that occurred within the last seven days.
|
|
51084
51195
|
*
|
|
51085
51196
|
* @param request DescribeDisksFullStatusRequest
|
|
@@ -51154,7 +51265,7 @@ class Client extends openapi_client_1.default {
|
|
|
51154
51265
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDisksFullStatusResponse({}));
|
|
51155
51266
|
}
|
|
51156
51267
|
/**
|
|
51157
|
-
* * The full status information
|
|
51268
|
+
* * The full status information about an EBS device includes the lifecycle status specified by the `Status` parameter, health status specified by the `HealthStatus` parameter, and event type specified by the `EventType` parameter of the EBS device. You can filter the results based on these parameters.
|
|
51158
51269
|
* * The release time, scheduled execution time, and actual execution time of each EBS device event are identical. If you specify a period of time by using the `EventTime.Start` and `EventTime.End` parameters, all events that occurred within this period are queried. You can query events that occurred within the last seven days.
|
|
51159
51270
|
*
|
|
51160
51271
|
* @param request DescribeDisksFullStatusRequest
|
|
@@ -51444,10 +51555,9 @@ class Client extends openapi_client_1.default {
|
|
|
51444
51555
|
return await this.describeElasticityAssurancesWithOptions(request, runtime);
|
|
51445
51556
|
}
|
|
51446
51557
|
/**
|
|
51447
|
-
*
|
|
51448
|
-
*
|
|
51449
|
-
* *
|
|
51450
|
-
* * 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.
|
|
51558
|
+
* The monitoring 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 monitoring 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 monitoring data of the secondary ENI cannot be obtained. When you call this operation, take note of the following items:
|
|
51559
|
+
* * Up to 400 monitoring data entries can be returned at a time. If the value that is calculated by using the following formula is greater than 400: (EndTime − StartTime)/Period, an error is returned.
|
|
51560
|
+
* * Only the monitoring data within the last 30 days can be queried. If the value of StartTime is more than 30 days earlier than the time when you call this operation, an error is returned.
|
|
51451
51561
|
*
|
|
51452
51562
|
* @param request DescribeEniMonitorDataRequest
|
|
51453
51563
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -51503,10 +51613,9 @@ class Client extends openapi_client_1.default {
|
|
|
51503
51613
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEniMonitorDataResponse({}));
|
|
51504
51614
|
}
|
|
51505
51615
|
/**
|
|
51506
|
-
*
|
|
51507
|
-
*
|
|
51508
|
-
* *
|
|
51509
|
-
* * 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.
|
|
51616
|
+
* The monitoring 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 monitoring 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 monitoring data of the secondary ENI cannot be obtained. When you call this operation, take note of the following items:
|
|
51617
|
+
* * Up to 400 monitoring data entries can be returned at a time. If the value that is calculated by using the following formula is greater than 400: (EndTime − StartTime)/Period, an error is returned.
|
|
51618
|
+
* * Only the monitoring data within the last 30 days can be queried. If the value of StartTime is more than 30 days earlier than the time when you call this operation, an error is returned.
|
|
51510
51619
|
*
|
|
51511
51620
|
* @param request DescribeEniMonitorDataRequest
|
|
51512
51621
|
* @return DescribeEniMonitorDataResponse
|
|
@@ -51834,7 +51943,7 @@ class Client extends openapi_client_1.default {
|
|
|
51834
51943
|
/**
|
|
51835
51944
|
* * The image template that is specified by the `ImagePipelineId` parameter cannot be a deleted image template. When an image template is deleted, the corresponding image creation task is deleted.
|
|
51836
51945
|
* * You must specify `ImagePipelineId` or `ExecutionId`.
|
|
51837
|
-
* * You can configure the query token by using the `NextToken` parameter. Set the value of
|
|
51946
|
+
* * You can configure the query token by using the `NextToken` parameter. Set the value of NextToken to the value of `NextToken` that was returned the last time you called the `DescribeImagePipelineExecutions` operation. Then, use the `MaxResults` parameter to specify the maximum number of entries to return on each page to query the details of the image creation task.
|
|
51838
51947
|
*
|
|
51839
51948
|
* @param request DescribeImagePipelineExecutionsRequest
|
|
51840
51949
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -51898,7 +52007,7 @@ class Client extends openapi_client_1.default {
|
|
|
51898
52007
|
/**
|
|
51899
52008
|
* * The image template that is specified by the `ImagePipelineId` parameter cannot be a deleted image template. When an image template is deleted, the corresponding image creation task is deleted.
|
|
51900
52009
|
* * You must specify `ImagePipelineId` or `ExecutionId`.
|
|
51901
|
-
* * You can configure the query token by using the `NextToken` parameter. Set the value of
|
|
52010
|
+
* * You can configure the query token by using the `NextToken` parameter. Set the value of NextToken to the value of `NextToken` that was returned the last time you called the `DescribeImagePipelineExecutions` operation. Then, use the `MaxResults` parameter to specify the maximum number of entries to return on each page to query the details of the image creation task.
|
|
51902
52011
|
*
|
|
51903
52012
|
* @param request DescribeImagePipelineExecutionsRequest
|
|
51904
52013
|
* @return DescribeImagePipelineExecutionsResponse
|
|
@@ -51908,6 +52017,7 @@ class Client extends openapi_client_1.default {
|
|
|
51908
52017
|
return await this.describeImagePipelineExecutionsWithOptions(request, runtime);
|
|
51909
52018
|
}
|
|
51910
52019
|
/**
|
|
52020
|
+
* ## Description
|
|
51911
52021
|
* You can use `NextToken` to configure the query token. Set the value to the `NextToken` value that is returned in the last call to the `DescribeImagePipelines` operation. Then, use `MaxResults` to specify the maximum number of entries to return on each page.
|
|
51912
52022
|
*
|
|
51913
52023
|
* @param request DescribeImagePipelinesRequest
|
|
@@ -51973,6 +52083,7 @@ class Client extends openapi_client_1.default {
|
|
|
51973
52083
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeImagePipelinesResponse({}));
|
|
51974
52084
|
}
|
|
51975
52085
|
/**
|
|
52086
|
+
* ## Description
|
|
51976
52087
|
* You can use `NextToken` to configure the query token. Set the value to the `NextToken` value that is returned in the last call to the `DescribeImagePipelines` operation. Then, use `MaxResults` to specify the maximum number of entries to return on each page.
|
|
51977
52088
|
*
|
|
51978
52089
|
* @param request DescribeImagePipelinesRequest
|
|
@@ -52360,8 +52471,8 @@ class Client extends openapi_client_1.default {
|
|
|
52360
52471
|
return await this.describeInstanceAutoRenewAttributeWithOptions(request, runtime);
|
|
52361
52472
|
}
|
|
52362
52473
|
/**
|
|
52363
|
-
* * You can query system events that were
|
|
52364
|
-
* * You can also specify
|
|
52474
|
+
* * You can query system events that were completed within the last 30 days. No limits apply to the time range for querying uncompleted system events.
|
|
52475
|
+
* * You can also specify InstanceEventCycleStatus to query the system events that are in the Scheduled, Executing, or Inquiring state.
|
|
52365
52476
|
*
|
|
52366
52477
|
* @param request DescribeInstanceHistoryEventsRequest
|
|
52367
52478
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -52450,8 +52561,8 @@ class Client extends openapi_client_1.default {
|
|
|
52450
52561
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceHistoryEventsResponse({}));
|
|
52451
52562
|
}
|
|
52452
52563
|
/**
|
|
52453
|
-
* * You can query system events that were
|
|
52454
|
-
* * You can also specify
|
|
52564
|
+
* * You can query system events that were completed within the last 30 days. No limits apply to the time range for querying uncompleted system events.
|
|
52565
|
+
* * You can also specify InstanceEventCycleStatus to query the system events that are in the Scheduled, Executing, or Inquiring state.
|
|
52455
52566
|
*
|
|
52456
52567
|
* @param request DescribeInstanceHistoryEventsRequest
|
|
52457
52568
|
* @return DescribeInstanceHistoryEventsResponse
|
|
@@ -52463,7 +52574,7 @@ class Client extends openapi_client_1.default {
|
|
|
52463
52574
|
/**
|
|
52464
52575
|
* This operation is used to query the specified maintenance policy of an instance, which contains the following maintenance attributes:
|
|
52465
52576
|
* * Maintenance window: the time period that you specify for maintenance.
|
|
52466
|
-
* * Maintenance action: the
|
|
52577
|
+
* * Maintenance action: the action that you specify in response to instance shutdown.
|
|
52467
52578
|
*
|
|
52468
52579
|
* @param request DescribeInstanceMaintenanceAttributesRequest
|
|
52469
52580
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -52515,7 +52626,7 @@ class Client extends openapi_client_1.default {
|
|
|
52515
52626
|
/**
|
|
52516
52627
|
* This operation is used to query the specified maintenance policy of an instance, which contains the following maintenance attributes:
|
|
52517
52628
|
* * Maintenance window: the time period that you specify for maintenance.
|
|
52518
|
-
* * Maintenance action: the
|
|
52629
|
+
* * Maintenance action: the action that you specify in response to instance shutdown.
|
|
52519
52630
|
*
|
|
52520
52631
|
* @param request DescribeInstanceMaintenanceAttributesRequest
|
|
52521
52632
|
* @return DescribeInstanceMaintenanceAttributesResponse
|
|
@@ -52525,7 +52636,9 @@ class Client extends openapi_client_1.default {
|
|
|
52525
52636
|
return await this.describeInstanceMaintenanceAttributesWithOptions(request, runtime);
|
|
52526
52637
|
}
|
|
52527
52638
|
/**
|
|
52528
|
-
* The
|
|
52639
|
+
* * Pricing information can be queried for unexpired subscription ECS instances only when you upgrade their configurations. The pricing information cannot be queried when the instance configurations are downgraded.
|
|
52640
|
+
* * Pricing information cannot be queried for pay-as-you-go ECS instances when you change their configurations. Prices of existing pay-as-you-go ECS instances whose configurations are changed are the same as those of new pay-as-you-go instances. You can call the [DescribePrice](~~107829~~) operation to query the latest prices of ECS instances.
|
|
52641
|
+
* * Before you upgrade the configurations of an instance, we recommend that you call the [DescribeResourcesModification](~~66187~~) operation to query the instance types available for configuration upgrades in a specified zone.
|
|
52529
52642
|
*
|
|
52530
52643
|
* @param request DescribeInstanceModificationPriceRequest
|
|
52531
52644
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -52578,7 +52691,9 @@ class Client extends openapi_client_1.default {
|
|
|
52578
52691
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceModificationPriceResponse({}));
|
|
52579
52692
|
}
|
|
52580
52693
|
/**
|
|
52581
|
-
* The
|
|
52694
|
+
* * Pricing information can be queried for unexpired subscription ECS instances only when you upgrade their configurations. The pricing information cannot be queried when the instance configurations are downgraded.
|
|
52695
|
+
* * Pricing information cannot be queried for pay-as-you-go ECS instances when you change their configurations. Prices of existing pay-as-you-go ECS instances whose configurations are changed are the same as those of new pay-as-you-go instances. You can call the [DescribePrice](~~107829~~) operation to query the latest prices of ECS instances.
|
|
52696
|
+
* * Before you upgrade the configurations of an instance, we recommend that you call the [DescribeResourcesModification](~~66187~~) operation to query the instance types available for configuration upgrades in a specified zone.
|
|
52582
52697
|
*
|
|
52583
52698
|
* @param request DescribeInstanceModificationPriceRequest
|
|
52584
52699
|
* @return DescribeInstanceModificationPriceResponse
|
|
@@ -52588,7 +52703,7 @@ class Client extends openapi_client_1.default {
|
|
|
52588
52703
|
return await this.describeInstanceModificationPriceWithOptions(request, runtime);
|
|
52589
52704
|
}
|
|
52590
52705
|
/**
|
|
52591
|
-
*
|
|
52706
|
+
* Take note of the following items:
|
|
52592
52707
|
* * Up to 400 monitoring data entries can be returned at a time. An error is returned if the value that is calculated by using the following formula is greater than 400: `(EndTime − StartTime)/Period`.
|
|
52593
52708
|
* * You can query the monitoring data of the last 30 days. If the value of the `StartTime` parameter is more than 30 days earlier than the current time, an error is returned.
|
|
52594
52709
|
* * In some scenarios, such as when the instance is in the Stopped state, the system cannot obtain the relevant information and a portion may be missing from the returned monitoring data.
|
|
@@ -52641,7 +52756,7 @@ class Client extends openapi_client_1.default {
|
|
|
52641
52756
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceMonitorDataResponse({}));
|
|
52642
52757
|
}
|
|
52643
52758
|
/**
|
|
52644
|
-
*
|
|
52759
|
+
* Take note of the following items:
|
|
52645
52760
|
* * Up to 400 monitoring data entries can be returned at a time. An error is returned if the value that is calculated by using the following formula is greater than 400: `(EndTime − StartTime)/Period`.
|
|
52646
52761
|
* * You can query the monitoring data of the last 30 days. If the value of the `StartTime` parameter is more than 30 days earlier than the current time, an error is returned.
|
|
52647
52762
|
* * In some scenarios, such as when the instance is in the Stopped state, the system cannot obtain the relevant information and a portion may be missing from the returned monitoring data.
|
|
@@ -52653,6 +52768,14 @@ class Client extends openapi_client_1.default {
|
|
|
52653
52768
|
let runtime = new $Util.RuntimeOptions({});
|
|
52654
52769
|
return await this.describeInstanceMonitorDataWithOptions(request, runtime);
|
|
52655
52770
|
}
|
|
52771
|
+
/**
|
|
52772
|
+
* ## Description
|
|
52773
|
+
* 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~~).
|
|
52774
|
+
*
|
|
52775
|
+
* @param request DescribeInstanceRamRoleRequest
|
|
52776
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
52777
|
+
* @return DescribeInstanceRamRoleResponse
|
|
52778
|
+
*/
|
|
52656
52779
|
async describeInstanceRamRoleWithOptions(request, runtime) {
|
|
52657
52780
|
tea_util_1.default.validateModel(request);
|
|
52658
52781
|
let query = {};
|
|
@@ -52696,6 +52819,13 @@ class Client extends openapi_client_1.default {
|
|
|
52696
52819
|
});
|
|
52697
52820
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceRamRoleResponse({}));
|
|
52698
52821
|
}
|
|
52822
|
+
/**
|
|
52823
|
+
* ## Description
|
|
52824
|
+
* 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~~).
|
|
52825
|
+
*
|
|
52826
|
+
* @param request DescribeInstanceRamRoleRequest
|
|
52827
|
+
* @return DescribeInstanceRamRoleResponse
|
|
52828
|
+
*/
|
|
52699
52829
|
async describeInstanceRamRole(request) {
|
|
52700
52830
|
let runtime = new $Util.RuntimeOptions({});
|
|
52701
52831
|
return await this.describeInstanceRamRoleWithOptions(request, runtime);
|
|
@@ -53085,6 +53215,32 @@ class Client extends openapi_client_1.default {
|
|
|
53085
53215
|
let runtime = new $Util.RuntimeOptions({});
|
|
53086
53216
|
return await this.describeInstanceVncPasswdWithOptions(request, runtime);
|
|
53087
53217
|
}
|
|
53218
|
+
/**
|
|
53219
|
+
* ## Description
|
|
53220
|
+
* When you call this operation, take note of the following items:
|
|
53221
|
+
* * 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.
|
|
53222
|
+
* * The **KeepAlive** time of a connection to a VNC management terminal is 60 seconds. If you do not interact with the VNC management terminal for 60 seconds, the VNC management terminal is automatically disconnected.
|
|
53223
|
+
* * When you disconnect from the VNC management terminal, you can reconnect to the VNC management terminal up to 30 times a minute.
|
|
53224
|
+
* * You must append the following parameters to the end of the `https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?` URL: `vncUrl`, `instanceId`, `isWindows` (True or False), and `password`. Connect these parameters with ampersands (`&`).
|
|
53225
|
+
* * `vncUrl:` the `VncUrl` value returned after a successful query.
|
|
53226
|
+
* * `instanceId:` the ID of your instance.
|
|
53227
|
+
* * `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.
|
|
53228
|
+
* * `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.
|
|
53229
|
+
* Example:
|
|
53230
|
+
* ```
|
|
53231
|
+
* https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%****&instanceId=i-wz9hhwq5a6tm****&isWindows=true
|
|
53232
|
+
*
|
|
53233
|
+
* ```
|
|
53234
|
+
* Or:
|
|
53235
|
+
* ```
|
|
53236
|
+
* https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%****&instanceId=i-wz9hhwq5a6tm****&isWindows=true&password=****
|
|
53237
|
+
*
|
|
53238
|
+
* ```
|
|
53239
|
+
*
|
|
53240
|
+
* @param request DescribeInstanceVncUrlRequest
|
|
53241
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
53242
|
+
* @return DescribeInstanceVncUrlResponse
|
|
53243
|
+
*/
|
|
53088
53244
|
async describeInstanceVncUrlWithOptions(request, runtime) {
|
|
53089
53245
|
tea_util_1.default.validateModel(request);
|
|
53090
53246
|
let query = {};
|
|
@@ -53122,6 +53278,31 @@ class Client extends openapi_client_1.default {
|
|
|
53122
53278
|
});
|
|
53123
53279
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceVncUrlResponse({}));
|
|
53124
53280
|
}
|
|
53281
|
+
/**
|
|
53282
|
+
* ## Description
|
|
53283
|
+
* When you call this operation, take note of the following items:
|
|
53284
|
+
* * 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.
|
|
53285
|
+
* * The **KeepAlive** time of a connection to a VNC management terminal is 60 seconds. If you do not interact with the VNC management terminal for 60 seconds, the VNC management terminal is automatically disconnected.
|
|
53286
|
+
* * When you disconnect from the VNC management terminal, you can reconnect to the VNC management terminal up to 30 times a minute.
|
|
53287
|
+
* * You must append the following parameters to the end of the `https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?` URL: `vncUrl`, `instanceId`, `isWindows` (True or False), and `password`. Connect these parameters with ampersands (`&`).
|
|
53288
|
+
* * `vncUrl:` the `VncUrl` value returned after a successful query.
|
|
53289
|
+
* * `instanceId:` the ID of your instance.
|
|
53290
|
+
* * `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.
|
|
53291
|
+
* * `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.
|
|
53292
|
+
* Example:
|
|
53293
|
+
* ```
|
|
53294
|
+
* https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%****&instanceId=i-wz9hhwq5a6tm****&isWindows=true
|
|
53295
|
+
*
|
|
53296
|
+
* ```
|
|
53297
|
+
* Or:
|
|
53298
|
+
* ```
|
|
53299
|
+
* https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%****&instanceId=i-wz9hhwq5a6tm****&isWindows=true&password=****
|
|
53300
|
+
*
|
|
53301
|
+
* ```
|
|
53302
|
+
*
|
|
53303
|
+
* @param request DescribeInstanceVncUrlRequest
|
|
53304
|
+
* @return DescribeInstanceVncUrlResponse
|
|
53305
|
+
*/
|
|
53125
53306
|
async describeInstanceVncUrl(request) {
|
|
53126
53307
|
let runtime = new $Util.RuntimeOptions({});
|
|
53127
53308
|
return await this.describeInstanceVncUrlWithOptions(request, runtime);
|
|
@@ -53387,7 +53568,9 @@ class Client extends openapi_client_1.default {
|
|
|
53387
53568
|
return await this.describeInstancesFullStatusWithOptions(request, runtime);
|
|
53388
53569
|
}
|
|
53389
53570
|
/**
|
|
53390
|
-
* The
|
|
53571
|
+
* The number of times that the command is run on the instance.
|
|
53572
|
+
* * If the command is set to run only once on the instance, the value is 0 or 1.
|
|
53573
|
+
* * If the command is set to run on a schedule on the instance, the value is the number of times that the command is run.
|
|
53391
53574
|
*
|
|
53392
53575
|
* @param request DescribeInvocationResultsRequest
|
|
53393
53576
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -53461,7 +53644,9 @@ class Client extends openapi_client_1.default {
|
|
|
53461
53644
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeInvocationResultsResponse({}));
|
|
53462
53645
|
}
|
|
53463
53646
|
/**
|
|
53464
|
-
* The
|
|
53647
|
+
* The number of times that the command is run on the instance.
|
|
53648
|
+
* * If the command is set to run only once on the instance, the value is 0 or 1.
|
|
53649
|
+
* * If the command is set to run on a schedule on the instance, the value is the number of times that the command is run.
|
|
53465
53650
|
*
|
|
53466
53651
|
* @param request DescribeInvocationResultsRequest
|
|
53467
53652
|
* @return DescribeInvocationResultsResponse
|
|
@@ -53621,6 +53806,14 @@ class Client extends openapi_client_1.default {
|
|
|
53621
53806
|
let runtime = new $Util.RuntimeOptions({});
|
|
53622
53807
|
return await this.describeKeyPairsWithOptions(request, runtime);
|
|
53623
53808
|
}
|
|
53809
|
+
/**
|
|
53810
|
+
* ## Debugging
|
|
53811
|
+
* [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=DescribeLaunchTemplateVersions\\&type=RPC\\&version=2014-05-26)
|
|
53812
|
+
*
|
|
53813
|
+
* @param request DescribeLaunchTemplateVersionsRequest
|
|
53814
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
53815
|
+
* @return DescribeLaunchTemplateVersionsResponse
|
|
53816
|
+
*/
|
|
53624
53817
|
async describeLaunchTemplateVersionsWithOptions(request, runtime) {
|
|
53625
53818
|
tea_util_1.default.validateModel(request);
|
|
53626
53819
|
let query = {};
|
|
@@ -53682,6 +53875,13 @@ class Client extends openapi_client_1.default {
|
|
|
53682
53875
|
});
|
|
53683
53876
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeLaunchTemplateVersionsResponse({}));
|
|
53684
53877
|
}
|
|
53878
|
+
/**
|
|
53879
|
+
* ## Debugging
|
|
53880
|
+
* [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=DescribeLaunchTemplateVersions\\&type=RPC\\&version=2014-05-26)
|
|
53881
|
+
*
|
|
53882
|
+
* @param request DescribeLaunchTemplateVersionsRequest
|
|
53883
|
+
* @return DescribeLaunchTemplateVersionsResponse
|
|
53884
|
+
*/
|
|
53685
53885
|
async describeLaunchTemplateVersions(request) {
|
|
53686
53886
|
let runtime = new $Util.RuntimeOptions({});
|
|
53687
53887
|
return await this.describeLaunchTemplateVersionsWithOptions(request, runtime);
|
|
@@ -54964,6 +55164,14 @@ class Client extends openapi_client_1.default {
|
|
|
54964
55164
|
let runtime = new $Util.RuntimeOptions({});
|
|
54965
55165
|
return await this.describeResourceByTagsWithOptions(request, runtime);
|
|
54966
55166
|
}
|
|
55167
|
+
/**
|
|
55168
|
+
* ## Debugging
|
|
55169
|
+
* [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=DescribeResourcesModification\\&type=RPC\\&version=2014-05-26)
|
|
55170
|
+
*
|
|
55171
|
+
* @param request DescribeResourcesModificationRequest
|
|
55172
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
55173
|
+
* @return DescribeResourcesModificationResponse
|
|
55174
|
+
*/
|
|
54967
55175
|
async describeResourcesModificationWithOptions(request, runtime) {
|
|
54968
55176
|
tea_util_1.default.validateModel(request);
|
|
54969
55177
|
let query = {};
|
|
@@ -55025,6 +55233,13 @@ class Client extends openapi_client_1.default {
|
|
|
55025
55233
|
});
|
|
55026
55234
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourcesModificationResponse({}));
|
|
55027
55235
|
}
|
|
55236
|
+
/**
|
|
55237
|
+
* ## Debugging
|
|
55238
|
+
* [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=DescribeResourcesModification\\&type=RPC\\&version=2014-05-26)
|
|
55239
|
+
*
|
|
55240
|
+
* @param request DescribeResourcesModificationRequest
|
|
55241
|
+
* @return DescribeResourcesModificationResponse
|
|
55242
|
+
*/
|
|
55028
55243
|
async describeResourcesModification(request) {
|
|
55029
55244
|
let runtime = new $Util.RuntimeOptions({});
|
|
55030
55245
|
return await this.describeResourcesModificationWithOptions(request, runtime);
|
|
@@ -55270,7 +55485,10 @@ class Client extends openapi_client_1.default {
|
|
|
55270
55485
|
return await this.describeSecurityGroupReferencesWithOptions(request, runtime);
|
|
55271
55486
|
}
|
|
55272
55487
|
/**
|
|
55273
|
-
*
|
|
55488
|
+
* Take note of the following items:
|
|
55489
|
+
* * The basic information about security groups includes their IDs and descriptions. The response returns security groups ordered in descending order based on their IDs.
|
|
55490
|
+
* * We recommend that you use NextToken and MaxResults for a paged query. We recommend that you use MaxResults to specify the maximum number of entries to return in each request. The return value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you perform the next request, set NextToken to the value that is returned for NextToken in the previous call and use MaxResults to specify the maximum number of entries to return in this call. If the return value of NextToken is empty, the current page of results is the last page and no more results are to be returned.
|
|
55491
|
+
* * When you use Alibaba Cloud CLI to call an API operation, you must specify values for request parameters of different data types in the required formats. For more information, see [Parameter format overview](~~110340~~).
|
|
55274
55492
|
*
|
|
55275
55493
|
* @param request DescribeSecurityGroupsRequest
|
|
55276
55494
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -55356,7 +55574,10 @@ class Client extends openapi_client_1.default {
|
|
|
55356
55574
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSecurityGroupsResponse({}));
|
|
55357
55575
|
}
|
|
55358
55576
|
/**
|
|
55359
|
-
*
|
|
55577
|
+
* Take note of the following items:
|
|
55578
|
+
* * The basic information about security groups includes their IDs and descriptions. The response returns security groups ordered in descending order based on their IDs.
|
|
55579
|
+
* * We recommend that you use NextToken and MaxResults for a paged query. We recommend that you use MaxResults to specify the maximum number of entries to return in each request. The return value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you perform the next request, set NextToken to the value that is returned for NextToken in the previous call and use MaxResults to specify the maximum number of entries to return in this call. If the return value of NextToken is empty, the current page of results is the last page and no more results are to be returned.
|
|
55580
|
+
* * When you use Alibaba Cloud CLI to call an API operation, you must specify values for request parameters of different data types in the required formats. For more information, see [Parameter format overview](~~110340~~).
|
|
55360
55581
|
*
|
|
55361
55582
|
* @param request DescribeSecurityGroupsRequest
|
|
55362
55583
|
* @return DescribeSecurityGroupsResponse
|
|
@@ -55367,8 +55588,8 @@ class Client extends openapi_client_1.default {
|
|
|
55367
55588
|
}
|
|
55368
55589
|
/**
|
|
55369
55590
|
* ## Usage notes
|
|
55370
|
-
* * When you send a file, the file may fail to be sent to specified Elastic Compute Service (ECS) instances. You can call this operation to check
|
|
55371
|
-
* * You can call this operation to query the
|
|
55591
|
+
* * When you send a file, the file may fail to be sent to specified Elastic Compute Service (ECS) instances. You can call this operation to check the file sending results.
|
|
55592
|
+
* * You can call this operation to query the file sending records within the last six weeks.
|
|
55372
55593
|
*
|
|
55373
55594
|
* @param request DescribeSendFileResultsRequest
|
|
55374
55595
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -55434,8 +55655,8 @@ class Client extends openapi_client_1.default {
|
|
|
55434
55655
|
}
|
|
55435
55656
|
/**
|
|
55436
55657
|
* ## Usage notes
|
|
55437
|
-
* * When you send a file, the file may fail to be sent to specified Elastic Compute Service (ECS) instances. You can call this operation to check
|
|
55438
|
-
* * You can call this operation to query the
|
|
55658
|
+
* * When you send a file, the file may fail to be sent to specified Elastic Compute Service (ECS) instances. You can call this operation to check the file sending results.
|
|
55659
|
+
* * You can call this operation to query the file sending records within the last six weeks.
|
|
55439
55660
|
*
|
|
55440
55661
|
* @param request DescribeSendFileResultsRequest
|
|
55441
55662
|
* @return DescribeSendFileResultsResponse
|
|
@@ -55595,7 +55816,7 @@ class Client extends openapi_client_1.default {
|
|
|
55595
55816
|
/**
|
|
55596
55817
|
* Take note of the following items:
|
|
55597
55818
|
* * Up to 400 entries of monitoring data can be returned at a time. If the result of the `(EndTime - StartTime)/Period` formula is greater than 400, an error is returned.
|
|
55598
|
-
* * Only the
|
|
55819
|
+
* * Only the monitored data within the last 30 days can be queried. If the value of `StartTime` is more than 30 days earlier than the time when you call this operation, an error is returned.
|
|
55599
55820
|
*
|
|
55600
55821
|
* @param request DescribeSnapshotMonitorDataRequest
|
|
55601
55822
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -55650,7 +55871,7 @@ class Client extends openapi_client_1.default {
|
|
|
55650
55871
|
/**
|
|
55651
55872
|
* Take note of the following items:
|
|
55652
55873
|
* * Up to 400 entries of monitoring data can be returned at a time. If the result of the `(EndTime - StartTime)/Period` formula is greater than 400, an error is returned.
|
|
55653
|
-
* * Only the
|
|
55874
|
+
* * Only the monitored data within the last 30 days can be queried. If the value of `StartTime` is more than 30 days earlier than the time when you call this operation, an error is returned.
|
|
55654
55875
|
*
|
|
55655
55876
|
* @param request DescribeSnapshotMonitorDataRequest
|
|
55656
55877
|
* @return DescribeSnapshotMonitorDataResponse
|
|
@@ -55704,8 +55925,7 @@ class Client extends openapi_client_1.default {
|
|
|
55704
55925
|
return await this.describeSnapshotPackageWithOptions(request, runtime);
|
|
55705
55926
|
}
|
|
55706
55927
|
/**
|
|
55707
|
-
*
|
|
55708
|
-
* You can specify multiple request parameters such as `InstanceId`, `DiskId`, and `SnapshotIds` to query snapshots. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
|
|
55928
|
+
* You can configure multiple request parameters such as `InstanceId`, `DiskId`, and `SnapshotIds` to query snapshots. Configured parameters have logical AND relations. Only the configured parameters are included in the filter conditions.
|
|
55709
55929
|
* 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~~).
|
|
55710
55930
|
*
|
|
55711
55931
|
* @param request DescribeSnapshotsRequest
|
|
@@ -55807,8 +56027,7 @@ class Client extends openapi_client_1.default {
|
|
|
55807
56027
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSnapshotsResponse({}));
|
|
55808
56028
|
}
|
|
55809
56029
|
/**
|
|
55810
|
-
*
|
|
55811
|
-
* You can specify multiple request parameters such as `InstanceId`, `DiskId`, and `SnapshotIds` to query snapshots. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
|
|
56030
|
+
* You can configure multiple request parameters such as `InstanceId`, `DiskId`, and `SnapshotIds` to query snapshots. Configured parameters have logical AND relations. Only the configured parameters are included in the filter conditions.
|
|
55812
56031
|
* 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~~).
|
|
55813
56032
|
*
|
|
55814
56033
|
* @param request DescribeSnapshotsRequest
|
|
@@ -55873,15 +56092,15 @@ class Client extends openapi_client_1.default {
|
|
|
55873
56092
|
return await this.describeSnapshotsUsageWithOptions(request, runtime);
|
|
55874
56093
|
}
|
|
55875
56094
|
/**
|
|
55876
|
-
* * 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
|
|
55877
|
-
* * Average release rate of preemptible instances
|
|
55878
|
-
* *
|
|
55879
|
-
* * Average preemptible instance price that is calculated based on the preceding percentage
|
|
55880
|
-
* * This operation is applicable only to I/O optimized preemptible instances that
|
|
55881
|
-
* * You can use one of the following methods to
|
|
55882
|
-
* *
|
|
55883
|
-
* *
|
|
55884
|
-
* *
|
|
56095
|
+
* * 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 query results. The information that you can query includes:
|
|
56096
|
+
* * Average release rate of preemptible instances
|
|
56097
|
+
* * Percentage of the average preemptible instance price relative to the pay-as-you-go instance price
|
|
56098
|
+
* * Average preemptible instance price that is calculated based on the preceding percentage
|
|
56099
|
+
* * This operation is applicable only to I/O optimized preemptible instances that reside in virtual private clouds (VPCs).
|
|
56100
|
+
* * You can use one of the following methods to query information that is generated for preemptible instances in the last 30 days:
|
|
56101
|
+
* * Configure `Cores` and `Memory` or `MinCores` and `MinMemory` to query information about an instance type that meets the specified vCPU and memory requirements.
|
|
56102
|
+
* * Configure the `InstanceTypes.N` parameter to query information about a specified instance type.
|
|
56103
|
+
* * Configure `Cores` and `Memory` or `MinCores` and `MinMemory`, and then configure `InstanceTypeFamily` or `InstanceFamilyLevel` to query information about an instance type that meets the specified vCPU and memory requirements within the specified instance family or at a specified instance family level.
|
|
55885
56104
|
*
|
|
55886
56105
|
* @param request DescribeSpotAdviceRequest
|
|
55887
56106
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -55952,15 +56171,15 @@ class Client extends openapi_client_1.default {
|
|
|
55952
56171
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSpotAdviceResponse({}));
|
|
55953
56172
|
}
|
|
55954
56173
|
/**
|
|
55955
|
-
* * 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
|
|
55956
|
-
* * Average release rate of preemptible instances
|
|
55957
|
-
* *
|
|
55958
|
-
* * Average preemptible instance price that is calculated based on the preceding percentage
|
|
55959
|
-
* * This operation is applicable only to I/O optimized preemptible instances that
|
|
55960
|
-
* * You can use one of the following methods to
|
|
55961
|
-
* *
|
|
55962
|
-
* *
|
|
55963
|
-
* *
|
|
56174
|
+
* * 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 query results. The information that you can query includes:
|
|
56175
|
+
* * Average release rate of preemptible instances
|
|
56176
|
+
* * Percentage of the average preemptible instance price relative to the pay-as-you-go instance price
|
|
56177
|
+
* * Average preemptible instance price that is calculated based on the preceding percentage
|
|
56178
|
+
* * This operation is applicable only to I/O optimized preemptible instances that reside in virtual private clouds (VPCs).
|
|
56179
|
+
* * You can use one of the following methods to query information that is generated for preemptible instances in the last 30 days:
|
|
56180
|
+
* * Configure `Cores` and `Memory` or `MinCores` and `MinMemory` to query information about an instance type that meets the specified vCPU and memory requirements.
|
|
56181
|
+
* * Configure the `InstanceTypes.N` parameter to query information about a specified instance type.
|
|
56182
|
+
* * Configure `Cores` and `Memory` or `MinCores` and `MinMemory`, and then configure `InstanceTypeFamily` or `InstanceFamilyLevel` to query information about an instance type that meets the specified vCPU and memory requirements within the specified instance family or at a specified instance family level.
|
|
55964
56183
|
*
|
|
55965
56184
|
* @param request DescribeSpotAdviceRequest
|
|
55966
56185
|
* @return DescribeSpotAdviceResponse
|
|
@@ -56315,6 +56534,14 @@ class Client extends openapi_client_1.default {
|
|
|
56315
56534
|
let runtime = new $Util.RuntimeOptions({});
|
|
56316
56535
|
return await this.describeTaskAttributeWithOptions(request, runtime);
|
|
56317
56536
|
}
|
|
56537
|
+
/**
|
|
56538
|
+
* ## Debugging
|
|
56539
|
+
* [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=DescribeTasks\\&type=RPC\\&version=2014-05-26)
|
|
56540
|
+
*
|
|
56541
|
+
* @param request DescribeTasksRequest
|
|
56542
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
56543
|
+
* @return DescribeTasksResponse
|
|
56544
|
+
*/
|
|
56318
56545
|
async describeTasksWithOptions(request, runtime) {
|
|
56319
56546
|
tea_util_1.default.validateModel(request);
|
|
56320
56547
|
let query = {};
|
|
@@ -56373,6 +56600,13 @@ class Client extends openapi_client_1.default {
|
|
|
56373
56600
|
});
|
|
56374
56601
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTasksResponse({}));
|
|
56375
56602
|
}
|
|
56603
|
+
/**
|
|
56604
|
+
* ## Debugging
|
|
56605
|
+
* [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=DescribeTasks\\&type=RPC\\&version=2014-05-26)
|
|
56606
|
+
*
|
|
56607
|
+
* @param request DescribeTasksRequest
|
|
56608
|
+
* @return DescribeTasksResponse
|
|
56609
|
+
*/
|
|
56376
56610
|
async describeTasks(request) {
|
|
56377
56611
|
let runtime = new $Util.RuntimeOptions({});
|
|
56378
56612
|
return await this.describeTasksWithOptions(request, runtime);
|
|
@@ -57078,17 +57312,7 @@ class Client extends openapi_client_1.default {
|
|
|
57078
57312
|
return await this.detachKeyPairWithOptions(request, runtime);
|
|
57079
57313
|
}
|
|
57080
57314
|
/**
|
|
57081
|
-
*
|
|
57082
|
-
* When you call this operation, take note of the following items:
|
|
57083
|
-
* * Primary ENIs cannot be detached from ECS instances.
|
|
57084
|
-
* * The ENI must be in the Detaching (Detaching) or InUse (InUse) state.
|
|
57085
|
-
* * The instance must be in the Running (Running) or Stopped (Stopped) state.
|
|
57086
|
-
* * 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.
|
|
57087
|
-
* 
|
|
57088
|
-
* * If the ENI is in the Detaching state, the ENI detachment request is sent and the ENI is being detached from its associated instance.
|
|
57089
|
-
* * If the ENI is in the Available state, the ENI is detached from its associated instance.
|
|
57090
|
-
* * 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.
|
|
57091
|
-
* **For information about examples on how to call this operation, see **[Detach an ENI](~~471551~~).
|
|
57315
|
+
* The operation that you want to perform. Set the value to **DetachNetworkInterface**.
|
|
57092
57316
|
*
|
|
57093
57317
|
* @param request DetachNetworkInterfaceRequest
|
|
57094
57318
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -57141,17 +57365,7 @@ class Client extends openapi_client_1.default {
|
|
|
57141
57365
|
return $tea.cast(await this.callApi(params, req, runtime), new DetachNetworkInterfaceResponse({}));
|
|
57142
57366
|
}
|
|
57143
57367
|
/**
|
|
57144
|
-
*
|
|
57145
|
-
* When you call this operation, take note of the following items:
|
|
57146
|
-
* * Primary ENIs cannot be detached from ECS instances.
|
|
57147
|
-
* * The ENI must be in the Detaching (Detaching) or InUse (InUse) state.
|
|
57148
|
-
* * The instance must be in the Running (Running) or Stopped (Stopped) state.
|
|
57149
|
-
* * 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.
|
|
57150
|
-
* 
|
|
57151
|
-
* * If the ENI is in the Detaching state, the ENI detachment request is sent and the ENI is being detached from its associated instance.
|
|
57152
|
-
* * If the ENI is in the Available state, the ENI is detached from its associated instance.
|
|
57153
|
-
* * 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.
|
|
57154
|
-
* **For information about examples on how to call this operation, see **[Detach an ENI](~~471551~~).
|
|
57368
|
+
* The operation that you want to perform. Set the value to **DetachNetworkInterface**.
|
|
57155
57369
|
*
|
|
57156
57370
|
* @param request DetachNetworkInterfaceRequest
|
|
57157
57371
|
* @return DetachNetworkInterfaceResponse
|
|
@@ -57161,7 +57375,8 @@ class Client extends openapi_client_1.default {
|
|
|
57161
57375
|
return await this.detachNetworkInterfaceWithOptions(request, runtime);
|
|
57162
57376
|
}
|
|
57163
57377
|
/**
|
|
57164
|
-
*
|
|
57378
|
+
* The region ID. The following regions are supported: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), and China (Hong Kong).
|
|
57379
|
+
* You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
|
|
57165
57380
|
*
|
|
57166
57381
|
* @param request DisableActivationRequest
|
|
57167
57382
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -57208,7 +57423,8 @@ class Client extends openapi_client_1.default {
|
|
|
57208
57423
|
return $tea.cast(await this.callApi(params, req, runtime), new DisableActivationResponse({}));
|
|
57209
57424
|
}
|
|
57210
57425
|
/**
|
|
57211
|
-
*
|
|
57426
|
+
* The region ID. The following regions are supported: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), and China (Hong Kong).
|
|
57427
|
+
* You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
|
|
57212
57428
|
*
|
|
57213
57429
|
* @param request DisableActivationRequest
|
|
57214
57430
|
* @return DisableActivationResponse
|
|
@@ -57460,7 +57676,7 @@ class Client extends openapi_client_1.default {
|
|
|
57460
57676
|
* Before you export a custom image, complete the following operations:
|
|
57461
57677
|
* * Understand the prerequisites and precautions. For more information, see [Export images](~~58181~~).
|
|
57462
57678
|
* * Use Resource Access Management (RAM) to grant Elastic Compute Service (ECS) the permissions to write data to OSS. To complete the authorization, perform the following operations:
|
|
57463
|
-
* 1. Create a role named `AliyunECSImageExportDefaultRole
|
|
57679
|
+
* 1. Create a role named `AliyunECSImageExportDefaultRole`, and attach the following policy to the role:
|
|
57464
57680
|
* ```json
|
|
57465
57681
|
* {
|
|
57466
57682
|
* "Statement": [
|
|
@@ -57477,7 +57693,7 @@ class Client extends openapi_client_1.default {
|
|
|
57477
57693
|
* "Version": "1"
|
|
57478
57694
|
* }
|
|
57479
57695
|
* ```
|
|
57480
|
-
* 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
|
|
57696
|
+
* 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:
|
|
57481
57697
|
* ```json
|
|
57482
57698
|
* {
|
|
57483
57699
|
* "Version": "1",
|
|
@@ -57556,7 +57772,7 @@ class Client extends openapi_client_1.default {
|
|
|
57556
57772
|
* Before you export a custom image, complete the following operations:
|
|
57557
57773
|
* * Understand the prerequisites and precautions. For more information, see [Export images](~~58181~~).
|
|
57558
57774
|
* * Use Resource Access Management (RAM) to grant Elastic Compute Service (ECS) the permissions to write data to OSS. To complete the authorization, perform the following operations:
|
|
57559
|
-
* 1. Create a role named `AliyunECSImageExportDefaultRole
|
|
57775
|
+
* 1. Create a role named `AliyunECSImageExportDefaultRole`, and attach the following policy to the role:
|
|
57560
57776
|
* ```json
|
|
57561
57777
|
* {
|
|
57562
57778
|
* "Statement": [
|
|
@@ -57573,7 +57789,7 @@ class Client extends openapi_client_1.default {
|
|
|
57573
57789
|
* "Version": "1"
|
|
57574
57790
|
* }
|
|
57575
57791
|
* ```
|
|
57576
|
-
* 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
|
|
57792
|
+
* 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:
|
|
57577
57793
|
* ```json
|
|
57578
57794
|
* {
|
|
57579
57795
|
* "Version": "1",
|
|
@@ -57664,15 +57880,6 @@ class Client extends openapi_client_1.default {
|
|
|
57664
57880
|
let runtime = new $Util.RuntimeOptions({});
|
|
57665
57881
|
return await this.exportSnapshotWithOptions(request, runtime);
|
|
57666
57882
|
}
|
|
57667
|
-
/**
|
|
57668
|
-
* * ECS is a virtualized cloud-based service and cannot be connected to display devices. Alibaba Cloud caches system command outputs for the last start, restart, or shutdown of ECS instances. You can call the GetInstanceConsoleOutput operation to query the command outputs.
|
|
57669
|
-
* * For instances of the retired instance types, you cannot obtain command outputs. For more information, see [Retired instance types](~~55263~~).
|
|
57670
|
-
* * You cannot obtain the command outputs of Windows instances.
|
|
57671
|
-
*
|
|
57672
|
-
* @param request GetInstanceConsoleOutputRequest
|
|
57673
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
57674
|
-
* @return GetInstanceConsoleOutputResponse
|
|
57675
|
-
*/
|
|
57676
57883
|
async getInstanceConsoleOutputWithOptions(request, runtime) {
|
|
57677
57884
|
tea_util_1.default.validateModel(request);
|
|
57678
57885
|
let query = {};
|
|
@@ -57716,14 +57923,6 @@ class Client extends openapi_client_1.default {
|
|
|
57716
57923
|
});
|
|
57717
57924
|
return $tea.cast(await this.callApi(params, req, runtime), new GetInstanceConsoleOutputResponse({}));
|
|
57718
57925
|
}
|
|
57719
|
-
/**
|
|
57720
|
-
* * ECS is a virtualized cloud-based service and cannot be connected to display devices. Alibaba Cloud caches system command outputs for the last start, restart, or shutdown of ECS instances. You can call the GetInstanceConsoleOutput operation to query the command outputs.
|
|
57721
|
-
* * For instances of the retired instance types, you cannot obtain command outputs. For more information, see [Retired instance types](~~55263~~).
|
|
57722
|
-
* * You cannot obtain the command outputs of Windows instances.
|
|
57723
|
-
*
|
|
57724
|
-
* @param request GetInstanceConsoleOutputRequest
|
|
57725
|
-
* @return GetInstanceConsoleOutputResponse
|
|
57726
|
-
*/
|
|
57727
57926
|
async getInstanceConsoleOutput(request) {
|
|
57728
57927
|
let runtime = new $Util.RuntimeOptions({});
|
|
57729
57928
|
return await this.getInstanceConsoleOutputWithOptions(request, runtime);
|
|
@@ -57977,9 +58176,9 @@ class Client extends openapi_client_1.default {
|
|
|
57977
58176
|
return await this.importImageWithOptions(request, runtime);
|
|
57978
58177
|
}
|
|
57979
58178
|
/**
|
|
57980
|
-
*
|
|
58179
|
+
* Take note of the following items:
|
|
57981
58180
|
* * A maximum of 500 key pairs can be created in each region.
|
|
57982
|
-
* * The key pair
|
|
58181
|
+
* * The key pair to be imported must support one of the following encryption methods:
|
|
57983
58182
|
* * rsa
|
|
57984
58183
|
* * dsa
|
|
57985
58184
|
* * ssh-rsa
|
|
@@ -58041,9 +58240,9 @@ class Client extends openapi_client_1.default {
|
|
|
58041
58240
|
return $tea.cast(await this.callApi(params, req, runtime), new ImportKeyPairResponse({}));
|
|
58042
58241
|
}
|
|
58043
58242
|
/**
|
|
58044
|
-
*
|
|
58243
|
+
* Take note of the following items:
|
|
58045
58244
|
* * A maximum of 500 key pairs can be created in each region.
|
|
58046
|
-
* * The key pair
|
|
58245
|
+
* * The key pair to be imported must support one of the following encryption methods:
|
|
58047
58246
|
* * rsa
|
|
58048
58247
|
* * dsa
|
|
58049
58248
|
* * ssh-rsa
|
|
@@ -58127,7 +58326,7 @@ class Client extends openapi_client_1.default {
|
|
|
58127
58326
|
return await this.importSnapshotWithOptions(request, runtime);
|
|
58128
58327
|
}
|
|
58129
58328
|
/**
|
|
58130
|
-
*
|
|
58329
|
+
* The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
|
|
58131
58330
|
*
|
|
58132
58331
|
* @param request InstallCloudAssistantRequest
|
|
58133
58332
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -58174,7 +58373,7 @@ class Client extends openapi_client_1.default {
|
|
|
58174
58373
|
return $tea.cast(await this.callApi(params, req, runtime), new InstallCloudAssistantResponse({}));
|
|
58175
58374
|
}
|
|
58176
58375
|
/**
|
|
58177
|
-
*
|
|
58376
|
+
* The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
|
|
58178
58377
|
*
|
|
58179
58378
|
* @param request InstallCloudAssistantRequest
|
|
58180
58379
|
* @return InstallCloudAssistantResponse
|
|
@@ -58372,16 +58571,16 @@ class Client extends openapi_client_1.default {
|
|
|
58372
58571
|
}
|
|
58373
58572
|
/**
|
|
58374
58573
|
* ## Usage notes
|
|
58375
|
-
* > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add
|
|
58376
|
-
*
|
|
58574
|
+
* > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add an instance to or remove an instance from a security group, and call the [ModifyNetworkInterfaceAttribute](~~58513~~) operation to add an ENI to or remove an ENI from a security group.
|
|
58575
|
+
* Take note of the following items:
|
|
58377
58576
|
* * Before you add an instance to a security group, the instance must be in the **Stopped** or **Running** state.
|
|
58378
|
-
* *
|
|
58577
|
+
* * An instance can be added to up to five security groups.
|
|
58379
58578
|
* *
|
|
58380
58579
|
* You can increase this number to 16 by [submitting a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex).
|
|
58381
58580
|
* * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
|
|
58382
58581
|
* * The security group and the instance must reside in the same region.
|
|
58383
|
-
* * The security group and the instance must be of the same network type. If the network type is
|
|
58384
|
-
* * An instance and an ENI cannot be added to a security group at the same time. You cannot
|
|
58582
|
+
* * 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.
|
|
58583
|
+
* * An instance and an ENI cannot be added to a security group at the same time. You cannot configure the `InstanceId` and `NetworkInterfaceId` parameters at the same time.
|
|
58385
58584
|
*
|
|
58386
58585
|
* @param request JoinSecurityGroupRequest
|
|
58387
58586
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -58432,16 +58631,16 @@ class Client extends openapi_client_1.default {
|
|
|
58432
58631
|
}
|
|
58433
58632
|
/**
|
|
58434
58633
|
* ## Usage notes
|
|
58435
|
-
* > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add
|
|
58436
|
-
*
|
|
58634
|
+
* > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add an instance to or remove an instance from a security group, and call the [ModifyNetworkInterfaceAttribute](~~58513~~) operation to add an ENI to or remove an ENI from a security group.
|
|
58635
|
+
* Take note of the following items:
|
|
58437
58636
|
* * Before you add an instance to a security group, the instance must be in the **Stopped** or **Running** state.
|
|
58438
|
-
* *
|
|
58637
|
+
* * An instance can be added to up to five security groups.
|
|
58439
58638
|
* *
|
|
58440
58639
|
* You can increase this number to 16 by [submitting a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex).
|
|
58441
58640
|
* * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
|
|
58442
58641
|
* * The security group and the instance must reside in the same region.
|
|
58443
|
-
* * The security group and the instance must be of the same network type. If the network type is
|
|
58444
|
-
* * An instance and an ENI cannot be added to a security group at the same time. You cannot
|
|
58642
|
+
* * 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.
|
|
58643
|
+
* * An instance and an ENI cannot be added to a security group at the same time. You cannot configure the `InstanceId` and `NetworkInterfaceId` parameters at the same time.
|
|
58445
58644
|
*
|
|
58446
58645
|
* @param request JoinSecurityGroupRequest
|
|
58447
58646
|
* @return JoinSecurityGroupResponse
|
|
@@ -58589,7 +58788,7 @@ class Client extends openapi_client_1.default {
|
|
|
58589
58788
|
return await this.listPluginStatusWithOptions(request, runtime);
|
|
58590
58789
|
}
|
|
58591
58790
|
/**
|
|
58592
|
-
*
|
|
58791
|
+
* You must specify at least one of the following parameters or parameter pairs in a request to determine a query object:
|
|
58593
58792
|
* * `ResourceId.N`
|
|
58594
58793
|
* * `Tag.N` parameter pair (`Tag.N.Key` and `Tag.N.Value`)
|
|
58595
58794
|
* * `TagFilter.N`
|
|
@@ -58654,7 +58853,7 @@ class Client extends openapi_client_1.default {
|
|
|
58654
58853
|
return $tea.cast(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
58655
58854
|
}
|
|
58656
58855
|
/**
|
|
58657
|
-
*
|
|
58856
|
+
* You must specify at least one of the following parameters or parameter pairs in a request to determine a query object:
|
|
58658
58857
|
* * `ResourceId.N`
|
|
58659
58858
|
* * `Tag.N` parameter pair (`Tag.N.Key` and `Tag.N.Value`)
|
|
58660
58859
|
* * `TagFilter.N`
|
|
@@ -59006,7 +59205,8 @@ class Client extends openapi_client_1.default {
|
|
|
59006
59205
|
return await this.modifyCapacityReservationWithOptions(request, runtime);
|
|
59007
59206
|
}
|
|
59008
59207
|
/**
|
|
59009
|
-
*
|
|
59208
|
+
* You can modify a command when it is run. After the command is modified, the new command content applies to subsequent executions.
|
|
59209
|
+
* You cannot modify the command type. For example, you cannot change a shell command (RunShellScript) to a batch command (RunBatScript).
|
|
59010
59210
|
*
|
|
59011
59211
|
* @param request ModifyCommandRequest
|
|
59012
59212
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -59068,7 +59268,8 @@ class Client extends openapi_client_1.default {
|
|
|
59068
59268
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyCommandResponse({}));
|
|
59069
59269
|
}
|
|
59070
59270
|
/**
|
|
59071
|
-
*
|
|
59271
|
+
* You can modify a command when it is run. After the command is modified, the new command content applies to subsequent executions.
|
|
59272
|
+
* You cannot modify the command type. For example, you cannot change a shell command (RunShellScript) to a batch command (RunBatScript).
|
|
59072
59273
|
*
|
|
59073
59274
|
* @param request ModifyCommandRequest
|
|
59074
59275
|
* @return ModifyCommandResponse
|
|
@@ -59157,7 +59358,8 @@ class Client extends openapi_client_1.default {
|
|
|
59157
59358
|
return await this.modifyDedicatedHostAttributeWithOptions(request, runtime);
|
|
59158
59359
|
}
|
|
59159
59360
|
/**
|
|
59160
|
-
*
|
|
59361
|
+
* ## Usage notes
|
|
59362
|
+
* A pay-as-you-go dedicated host can be automatically released at the specified time. Before you release a pay-as-you-go dedicated host, make sure that the host is no longer required and all necessary application data is backed up.
|
|
59161
59363
|
*
|
|
59162
59364
|
* @param request ModifyDedicatedHostAutoReleaseTimeRequest
|
|
59163
59365
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -59204,7 +59406,8 @@ class Client extends openapi_client_1.default {
|
|
|
59204
59406
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDedicatedHostAutoReleaseTimeResponse({}));
|
|
59205
59407
|
}
|
|
59206
59408
|
/**
|
|
59207
|
-
*
|
|
59409
|
+
* ## Usage notes
|
|
59410
|
+
* A pay-as-you-go dedicated host can be automatically released at the specified time. Before you release a pay-as-you-go dedicated host, make sure that the host is no longer required and all necessary application data is backed up.
|
|
59208
59411
|
*
|
|
59209
59412
|
* @param request ModifyDedicatedHostAutoReleaseTimeRequest
|
|
59210
59413
|
* @return ModifyDedicatedHostAutoReleaseTimeResponse
|
|
@@ -59394,8 +59597,8 @@ class Client extends openapi_client_1.default {
|
|
|
59394
59597
|
return await this.modifyDedicatedHostsChargeTypeWithOptions(request, runtime);
|
|
59395
59598
|
}
|
|
59396
59599
|
/**
|
|
59397
|
-
* You can call this operation to modify the demand information
|
|
59398
|
-
* > This operation is in
|
|
59600
|
+
* You can call this operation to modify the demand information of instance types. Alibaba Cloud provides the requested resources based on your demand. You can file demands only for I/O optimized instance types and instances of the virtual private cloud (VPC) type. Parameters except `DemandName` and `DemandDescription` can be modified only for demands that are in the Rejected state.
|
|
59601
|
+
* > This operation is in invitational preview and is not publicly available.
|
|
59399
59602
|
*
|
|
59400
59603
|
* @param request ModifyDemandRequest
|
|
59401
59604
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -59472,8 +59675,8 @@ class Client extends openapi_client_1.default {
|
|
|
59472
59675
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDemandResponse({}));
|
|
59473
59676
|
}
|
|
59474
59677
|
/**
|
|
59475
|
-
* You can call this operation to modify the demand information
|
|
59476
|
-
* > This operation is in
|
|
59678
|
+
* You can call this operation to modify the demand information of instance types. Alibaba Cloud provides the requested resources based on your demand. You can file demands only for I/O optimized instance types and instances of the virtual private cloud (VPC) type. Parameters except `DemandName` and `DemandDescription` can be modified only for demands that are in the Rejected state.
|
|
59679
|
+
* > This operation is in invitational preview and is not publicly available.
|
|
59477
59680
|
*
|
|
59478
59681
|
* @param request ModifyDemandRequest
|
|
59479
59682
|
* @return ModifyDemandResponse
|
|
@@ -59654,7 +59857,7 @@ class Client extends openapi_client_1.default {
|
|
|
59654
59857
|
* * 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.
|
|
59655
59858
|
* * The instance cannot be in the Stopped state due to overdue payments.
|
|
59656
59859
|
* * 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.
|
|
59657
|
-
* * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are
|
|
59860
|
+
* * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
|
|
59658
59861
|
* * You cannot change the billing method again within 5 minutes of a successful change.
|
|
59659
59862
|
*
|
|
59660
59863
|
* @param request ModifyDiskChargeTypeRequest
|
|
@@ -59717,7 +59920,7 @@ class Client extends openapi_client_1.default {
|
|
|
59717
59920
|
* * 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.
|
|
59718
59921
|
* * The instance cannot be in the Stopped state due to overdue payments.
|
|
59719
59922
|
* * 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.
|
|
59720
|
-
* * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are
|
|
59923
|
+
* * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
|
|
59721
59924
|
* * You cannot change the billing method again within 5 minutes of a successful change.
|
|
59722
59925
|
*
|
|
59723
59926
|
* @param request ModifyDiskChargeTypeRequest
|
|
@@ -59778,15 +59981,16 @@ class Client extends openapi_client_1.default {
|
|
|
59778
59981
|
return await this.modifyDiskDeploymentWithOptions(request, runtime);
|
|
59779
59982
|
}
|
|
59780
59983
|
/**
|
|
59781
|
-
*
|
|
59984
|
+
* ## Usage notes
|
|
59985
|
+
* Take note of the following items:
|
|
59782
59986
|
* * To modify the performance level of an ESSD, take note of the following items:
|
|
59783
59987
|
* * For a subscription ESSD, you can only upgrade its performance level.
|
|
59784
|
-
* * For a pay-as-you-go ESSD,
|
|
59785
|
-
* * The ESSD must be in the **In Use** or **Unattached** (Available) state.
|
|
59786
|
-
* * If the ESSD is attached to an Elastic Compute Service (ECS) instance, the instance must be in the **Running** or **Stopped** state. The instance cannot be in the Expired state or stopped due to an overdue payment.
|
|
59988
|
+
* * For a pay-as-you-go ESSD, you can upgrade or downgrade its performance level. However, you cannot downgrade the performance level to PL0.
|
|
59989
|
+
* * The ESSD must be in the **In Use** (In_Use) or **Unattached** (Available) state.
|
|
59990
|
+
* * If the ESSD is attached to an Elastic Compute Service (ECS) instance, the instance must be in the **Running** (Running) or **Stopped** (Stopped) state. The instance cannot be in the Expired state or stopped due to an overdue payment.
|
|
59787
59991
|
* * If you cannot upgrade the performance level of the ESSD due to the capacity limit, resize the ESSD by calling the [ResizeDisk](~~25522~~) operation and then try again. For more information, see [ESSDs](~~122389~~).
|
|
59788
|
-
* * For information about the limits on changing the category of a
|
|
59789
|
-
* The new
|
|
59992
|
+
* * For information about the limits on changing the category of a disk, see the "Limits" section of the [Change the category of a disk](~~161980~~) topic.
|
|
59993
|
+
* The new disk category or performance level takes effect immediately after this operation is performed. Alibaba Cloud calculates the bill based on the new disk category and performance level.
|
|
59790
59994
|
*
|
|
59791
59995
|
* @param request ModifyDiskSpecRequest
|
|
59792
59996
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -59842,15 +60046,16 @@ class Client extends openapi_client_1.default {
|
|
|
59842
60046
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDiskSpecResponse({}));
|
|
59843
60047
|
}
|
|
59844
60048
|
/**
|
|
59845
|
-
*
|
|
60049
|
+
* ## Usage notes
|
|
60050
|
+
* Take note of the following items:
|
|
59846
60051
|
* * To modify the performance level of an ESSD, take note of the following items:
|
|
59847
60052
|
* * For a subscription ESSD, you can only upgrade its performance level.
|
|
59848
|
-
* * For a pay-as-you-go ESSD,
|
|
59849
|
-
* * The ESSD must be in the **In Use** or **Unattached** (Available) state.
|
|
59850
|
-
* * If the ESSD is attached to an Elastic Compute Service (ECS) instance, the instance must be in the **Running** or **Stopped** state. The instance cannot be in the Expired state or stopped due to an overdue payment.
|
|
60053
|
+
* * For a pay-as-you-go ESSD, you can upgrade or downgrade its performance level. However, you cannot downgrade the performance level to PL0.
|
|
60054
|
+
* * The ESSD must be in the **In Use** (In_Use) or **Unattached** (Available) state.
|
|
60055
|
+
* * If the ESSD is attached to an Elastic Compute Service (ECS) instance, the instance must be in the **Running** (Running) or **Stopped** (Stopped) state. The instance cannot be in the Expired state or stopped due to an overdue payment.
|
|
59851
60056
|
* * If you cannot upgrade the performance level of the ESSD due to the capacity limit, resize the ESSD by calling the [ResizeDisk](~~25522~~) operation and then try again. For more information, see [ESSDs](~~122389~~).
|
|
59852
|
-
* * For information about the limits on changing the category of a
|
|
59853
|
-
* The new
|
|
60057
|
+
* * For information about the limits on changing the category of a disk, see the "Limits" section of the [Change the category of a disk](~~161980~~) topic.
|
|
60058
|
+
* The new disk category or performance level takes effect immediately after this operation is performed. Alibaba Cloud calculates the bill based on the new disk category and performance level.
|
|
59854
60059
|
*
|
|
59855
60060
|
* @param request ModifyDiskSpecRequest
|
|
59856
60061
|
* @return ModifyDiskSpecResponse
|
|
@@ -60276,7 +60481,7 @@ class Client extends openapi_client_1.default {
|
|
|
60276
60481
|
return await this.modifyImageShareGroupPermissionWithOptions(request, runtime);
|
|
60277
60482
|
}
|
|
60278
60483
|
/**
|
|
60279
|
-
*
|
|
60484
|
+
* When you call this operation, take note of the following items:
|
|
60280
60485
|
* * You can share only your own custom images with other Alibaba Cloud accounts.
|
|
60281
60486
|
* * You can share a custom image with up to 10 Alibaba Cloud accounts at a time. You can specify up to 10 Alibaba Cloud account IDs by using the AddAccount.N or RemoveAccount.N parameter. If you specify more than 10 account IDs, the parameter will be ignored.
|
|
60282
60487
|
* * You can share a custom image with up to 50 Alibaba Cloud accounts.
|
|
@@ -60342,7 +60547,7 @@ class Client extends openapi_client_1.default {
|
|
|
60342
60547
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyImageSharePermissionResponse({}));
|
|
60343
60548
|
}
|
|
60344
60549
|
/**
|
|
60345
|
-
*
|
|
60550
|
+
* When you call this operation, take note of the following items:
|
|
60346
60551
|
* * You can share only your own custom images with other Alibaba Cloud accounts.
|
|
60347
60552
|
* * You can share a custom image with up to 10 Alibaba Cloud accounts at a time. You can specify up to 10 Alibaba Cloud account IDs by using the AddAccount.N or RemoveAccount.N parameter. If you specify more than 10 account IDs, the parameter will be ignored.
|
|
60348
60553
|
* * You can share a custom image with up to 50 Alibaba Cloud accounts.
|
|
@@ -60433,23 +60638,23 @@ class Client extends openapi_client_1.default {
|
|
|
60433
60638
|
return await this.modifyInstanceAttachmentAttributesWithOptions(request, runtime);
|
|
60434
60639
|
}
|
|
60435
60640
|
/**
|
|
60436
|
-
* If the response contains `{"OperationLocks": {"LockReason" : "security"}}
|
|
60437
|
-
*
|
|
60438
|
-
* * Modify the hostname (`HostName`): After you modify the hostname, you need to restart the instance for the
|
|
60641
|
+
* If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.
|
|
60642
|
+
* Take note of the following items:
|
|
60643
|
+
* * Modify the hostname (`HostName`): After you modify the hostname, you need to restart the instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. For information about how to restart an instance in the ECS console, see [Restart instances](~~25440~~). The new hostname does not take effect if you restart the instance from within the operating system.
|
|
60439
60644
|
* * Reset the password (`Password`):
|
|
60440
|
-
* * The instance
|
|
60441
|
-
* * After you reset the password, you need to restart the instance for the
|
|
60645
|
+
* * The instance must not be in the **Starting** state.``
|
|
60646
|
+
* * After you reset the password, you need to restart the instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. For information about how to restart an instance in the ECS console, see [Restart instances](~~25440~~). The new password does not take effect if you restart the instance from within the operating system.
|
|
60442
60647
|
* * Modify user data (`UserData`):
|
|
60443
60648
|
* * The instance must be in the **Stopped** state.``
|
|
60444
|
-
* * The instance must
|
|
60649
|
+
* * The instance must support user data. For more information, see [Prepare user data](~~49121~~).
|
|
60445
60650
|
* * Change the security group (`SecurityGroupIds.N`):
|
|
60446
|
-
* * You can move an instance to a security group of a different type. If you want to
|
|
60447
|
-
* * Security groups of instances in the classic network cannot be changed. For more information, see the description of
|
|
60651
|
+
* * You can move an instance to a security group of a different type. If you want to move an instance to a security group of a different type, you must be familiar with the differences between the rule configurations of the two security group types to prevent impacts on the instance network.
|
|
60652
|
+
* * Security groups of instances that reside in the classic network cannot be changed. For more information, see the description of `SecurityGroupIds.N`.
|
|
60448
60653
|
* * Modify the number of queues supported by the primary elastic network interface (ENI) (`NetworkInterfaceQueueNumber`):
|
|
60449
60654
|
* * The instance must be in the `Stopped` state.
|
|
60450
|
-
* * The value of this parameter cannot exceed the maximum number of queues allowed per ENI. The number
|
|
60655
|
+
* * The value of this parameter cannot exceed the maximum number of queues allowed per ENI. The maximum number of queues vary with the instance type.
|
|
60451
60656
|
* * 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. The results are returned in the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` parameters.
|
|
60452
|
-
* * If you set this 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
|
|
60657
|
+
* * If you set this 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.
|
|
60453
60658
|
*
|
|
60454
60659
|
* @param request ModifyInstanceAttributeRequest
|
|
60455
60660
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -60526,23 +60731,23 @@ class Client extends openapi_client_1.default {
|
|
|
60526
60731
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceAttributeResponse({}));
|
|
60527
60732
|
}
|
|
60528
60733
|
/**
|
|
60529
|
-
* If the response contains `{"OperationLocks": {"LockReason" : "security"}}
|
|
60530
|
-
*
|
|
60531
|
-
* * Modify the hostname (`HostName`): After you modify the hostname, you need to restart the instance for the
|
|
60734
|
+
* If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.
|
|
60735
|
+
* Take note of the following items:
|
|
60736
|
+
* * Modify the hostname (`HostName`): After you modify the hostname, you need to restart the instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. For information about how to restart an instance in the ECS console, see [Restart instances](~~25440~~). The new hostname does not take effect if you restart the instance from within the operating system.
|
|
60532
60737
|
* * Reset the password (`Password`):
|
|
60533
|
-
* * The instance
|
|
60534
|
-
* * After you reset the password, you need to restart the instance for the
|
|
60738
|
+
* * The instance must not be in the **Starting** state.``
|
|
60739
|
+
* * After you reset the password, you need to restart the instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. For information about how to restart an instance in the ECS console, see [Restart instances](~~25440~~). The new password does not take effect if you restart the instance from within the operating system.
|
|
60535
60740
|
* * Modify user data (`UserData`):
|
|
60536
60741
|
* * The instance must be in the **Stopped** state.``
|
|
60537
|
-
* * The instance must
|
|
60742
|
+
* * The instance must support user data. For more information, see [Prepare user data](~~49121~~).
|
|
60538
60743
|
* * Change the security group (`SecurityGroupIds.N`):
|
|
60539
|
-
* * You can move an instance to a security group of a different type. If you want to
|
|
60540
|
-
* * Security groups of instances in the classic network cannot be changed. For more information, see the description of
|
|
60744
|
+
* * You can move an instance to a security group of a different type. If you want to move an instance to a security group of a different type, you must be familiar with the differences between the rule configurations of the two security group types to prevent impacts on the instance network.
|
|
60745
|
+
* * Security groups of instances that reside in the classic network cannot be changed. For more information, see the description of `SecurityGroupIds.N`.
|
|
60541
60746
|
* * Modify the number of queues supported by the primary elastic network interface (ENI) (`NetworkInterfaceQueueNumber`):
|
|
60542
60747
|
* * The instance must be in the `Stopped` state.
|
|
60543
|
-
* * The value of this parameter cannot exceed the maximum number of queues allowed per ENI. The number
|
|
60748
|
+
* * The value of this parameter cannot exceed the maximum number of queues allowed per ENI. The maximum number of queues vary with the instance type.
|
|
60544
60749
|
* * 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. The results are returned in the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` parameters.
|
|
60545
|
-
* * If you set this 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
|
|
60750
|
+
* * If you set this 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.
|
|
60546
60751
|
*
|
|
60547
60752
|
* @param request ModifyInstanceAttributeRequest
|
|
60548
60753
|
* @return ModifyInstanceAttributeResponse
|
|
@@ -60977,7 +61182,15 @@ class Client extends openapi_client_1.default {
|
|
|
60977
61182
|
return await this.modifyInstanceMetadataOptionsWithOptions(request, runtime);
|
|
60978
61183
|
}
|
|
60979
61184
|
/**
|
|
60980
|
-
*
|
|
61185
|
+
* Take note of the following items:
|
|
61186
|
+
* * From 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 following throttling policies apply:
|
|
61187
|
+
* * 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.
|
|
61188
|
+
* * 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.
|
|
61189
|
+
* * 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.
|
|
61190
|
+
* * 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 assigned to the instance. You must call the [AllocatePublicIpAddress](~~25544~~) operation to assign a public IP address to the instance.
|
|
61191
|
+
* * An instance in the classic network must be in the Stopped state before you can upgrade its outbound public bandwidth (InternetMaxBandwidthOut) from 0 Mbit/s.
|
|
61192
|
+
* * After the bandwidth is upgraded, AutoPay is set to true by default and the payment is automatically made. Make sure that your account balance is sufficient. Otherwise, your order becomes invalid and must be canceled. If your account balance is insufficient, you can set AutoPay to false. In this case, 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.
|
|
61193
|
+
* * The price difference is refunded to the payment account that you used. Vouchers or coupons that have been redeemed cannot be returned.
|
|
60981
61194
|
*
|
|
60982
61195
|
* @param request ModifyInstanceNetworkSpecRequest
|
|
60983
61196
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -61045,7 +61258,15 @@ class Client extends openapi_client_1.default {
|
|
|
61045
61258
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceNetworkSpecResponse({}));
|
|
61046
61259
|
}
|
|
61047
61260
|
/**
|
|
61048
|
-
*
|
|
61261
|
+
* Take note of the following items:
|
|
61262
|
+
* * From 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 following throttling policies apply:
|
|
61263
|
+
* * 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.
|
|
61264
|
+
* * 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.
|
|
61265
|
+
* * 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.
|
|
61266
|
+
* * 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 assigned to the instance. You must call the [AllocatePublicIpAddress](~~25544~~) operation to assign a public IP address to the instance.
|
|
61267
|
+
* * An instance in the classic network must be in the Stopped state before you can upgrade its outbound public bandwidth (InternetMaxBandwidthOut) from 0 Mbit/s.
|
|
61268
|
+
* * After the bandwidth is upgraded, AutoPay is set to true by default and the payment is automatically made. Make sure that your account balance is sufficient. Otherwise, your order becomes invalid and must be canceled. If your account balance is insufficient, you can set AutoPay to false. In this case, 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.
|
|
61269
|
+
* * The price difference is refunded to the payment account that you used. Vouchers or coupons that have been redeemed cannot be returned.
|
|
61049
61270
|
*
|
|
61050
61271
|
* @param request ModifyInstanceNetworkSpecRequest
|
|
61051
61272
|
* @return ModifyInstanceNetworkSpecResponse
|
|
@@ -61218,30 +61439,30 @@ class Client extends openapi_client_1.default {
|
|
|
61218
61439
|
}
|
|
61219
61440
|
/**
|
|
61220
61441
|
* The instance must be in the **Stopped** state.``
|
|
61221
|
-
* * When you call this operation to
|
|
61222
|
-
* * If the instance is
|
|
61223
|
-
* * After
|
|
61224
|
-
* * When you call this operation to
|
|
61442
|
+
* * When you call this operation to change the private IP address or vSwitch of an instance, take note of the following items:
|
|
61443
|
+
* * If the instance is a new instance, you must restart the instance before you call this operation.
|
|
61444
|
+
* * After the private IP address or vSwitch of the instance is changed, you must restart the instance before you call this operation again.
|
|
61445
|
+
* * When you call this operation to change the VPC of an instance, take note of the following items:
|
|
61225
61446
|
* * **Instance:**
|
|
61226
61447
|
* * The instance cannot be associated with Server Load Balancer (SLB) instances.
|
|
61227
61448
|
* * 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~~).
|
|
61228
|
-
* * The instance cannot be
|
|
61449
|
+
* * The instance cannot be used in other Alibaba 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).
|
|
61229
61450
|
* * **Network:**
|
|
61230
|
-
* * The cut-through mode or multi-
|
|
61451
|
+
* * The cut-through mode or the multi-EIP-to-ENI mode cannot be enabled for the instance.
|
|
61231
61452
|
* * The instance cannot be associated with a high-availability virtual IP address (HAVIP).
|
|
61232
61453
|
* * The vSwitch of the instance cannot be associated with a custom route table.
|
|
61233
|
-
* *
|
|
61234
|
-
* * The instance cannot have secondary ENIs
|
|
61235
|
-
* * The instance cannot
|
|
61454
|
+
* * Global Accelerator (GA) cannot be activated for the instance.
|
|
61455
|
+
* * The instance cannot have secondary ENIs.
|
|
61456
|
+
* * The instance cannot be assigned an IPv6 address.
|
|
61236
61457
|
* * The primary ENI of the instance cannot be associated with multiple IP addresses.
|
|
61237
|
-
* * The vSwitch
|
|
61238
|
-
* * The
|
|
61239
|
-
* * If
|
|
61240
|
-
* * If advanced features are enabled
|
|
61458
|
+
* * The new vSwitch that you specify must belong to the new VPC.
|
|
61459
|
+
* * The original and new vSwitches must reside in the same zone.
|
|
61460
|
+
* * If you assign a private IP address to the primary ENI of the instance, the private IP address must an idle IP address within the CIDR block of the new vSwitch. If you do not assign a private IP address to the primary ENI of the instance, a private IP address is randomly assigned to the ENI. Sufficient IP addresses must be available in the CIDR block of the new vSwitch.
|
|
61461
|
+
* * If advanced features are enabled for 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~~).
|
|
61241
61462
|
* * The Alibaba Cloud account that owns the new VPC cannot share the VPC with other accounts.
|
|
61242
61463
|
* * **Security group (SecurityGroupId.N):**
|
|
61243
61464
|
* * All security groups must be of the same type.
|
|
61244
|
-
* * The valid values of N depend on the maximum number of security groups to which an instance can belong. For more information, see
|
|
61465
|
+
* * 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~~).
|
|
61245
61466
|
* * The security groups that you specify must belong to the new VPC.
|
|
61246
61467
|
* * 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, we recommend that you familiarize yourself with 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~~).
|
|
61247
61468
|
*
|
|
@@ -61297,30 +61518,30 @@ class Client extends openapi_client_1.default {
|
|
|
61297
61518
|
}
|
|
61298
61519
|
/**
|
|
61299
61520
|
* The instance must be in the **Stopped** state.``
|
|
61300
|
-
* * When you call this operation to
|
|
61301
|
-
* * If the instance is
|
|
61302
|
-
* * After
|
|
61303
|
-
* * When you call this operation to
|
|
61521
|
+
* * When you call this operation to change the private IP address or vSwitch of an instance, take note of the following items:
|
|
61522
|
+
* * If the instance is a new instance, you must restart the instance before you call this operation.
|
|
61523
|
+
* * After the private IP address or vSwitch of the instance is changed, you must restart the instance before you call this operation again.
|
|
61524
|
+
* * When you call this operation to change the VPC of an instance, take note of the following items:
|
|
61304
61525
|
* * **Instance:**
|
|
61305
61526
|
* * The instance cannot be associated with Server Load Balancer (SLB) instances.
|
|
61306
61527
|
* * 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~~).
|
|
61307
|
-
* * The instance cannot be
|
|
61528
|
+
* * The instance cannot be used in other Alibaba 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).
|
|
61308
61529
|
* * **Network:**
|
|
61309
|
-
* * The cut-through mode or multi-
|
|
61530
|
+
* * The cut-through mode or the multi-EIP-to-ENI mode cannot be enabled for the instance.
|
|
61310
61531
|
* * The instance cannot be associated with a high-availability virtual IP address (HAVIP).
|
|
61311
61532
|
* * The vSwitch of the instance cannot be associated with a custom route table.
|
|
61312
|
-
* *
|
|
61313
|
-
* * The instance cannot have secondary ENIs
|
|
61314
|
-
* * The instance cannot
|
|
61533
|
+
* * Global Accelerator (GA) cannot be activated for the instance.
|
|
61534
|
+
* * The instance cannot have secondary ENIs.
|
|
61535
|
+
* * The instance cannot be assigned an IPv6 address.
|
|
61315
61536
|
* * The primary ENI of the instance cannot be associated with multiple IP addresses.
|
|
61316
|
-
* * The vSwitch
|
|
61317
|
-
* * The
|
|
61318
|
-
* * If
|
|
61319
|
-
* * If advanced features are enabled
|
|
61537
|
+
* * The new vSwitch that you specify must belong to the new VPC.
|
|
61538
|
+
* * The original and new vSwitches must reside in the same zone.
|
|
61539
|
+
* * If you assign a private IP address to the primary ENI of the instance, the private IP address must an idle IP address within the CIDR block of the new vSwitch. If you do not assign a private IP address to the primary ENI of the instance, a private IP address is randomly assigned to the ENI. Sufficient IP addresses must be available in the CIDR block of the new vSwitch.
|
|
61540
|
+
* * If advanced features are enabled for 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~~).
|
|
61320
61541
|
* * The Alibaba Cloud account that owns the new VPC cannot share the VPC with other accounts.
|
|
61321
61542
|
* * **Security group (SecurityGroupId.N):**
|
|
61322
61543
|
* * All security groups must be of the same type.
|
|
61323
|
-
* * The valid values of N depend on the maximum number of security groups to which an instance can belong. For more information, see
|
|
61544
|
+
* * 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~~).
|
|
61324
61545
|
* * The security groups that you specify must belong to the new VPC.
|
|
61325
61546
|
* * 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, we recommend that you familiarize yourself with 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~~).
|
|
61326
61547
|
*
|
|
@@ -61331,6 +61552,14 @@ class Client extends openapi_client_1.default {
|
|
|
61331
61552
|
let runtime = new $Util.RuntimeOptions({});
|
|
61332
61553
|
return await this.modifyInstanceVpcAttributeWithOptions(request, runtime);
|
|
61333
61554
|
}
|
|
61555
|
+
/**
|
|
61556
|
+
* ## Debugging
|
|
61557
|
+
* [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=ModifyLaunchTemplateDefaultVersion\\&type=RPC\\&version=2014-05-26)
|
|
61558
|
+
*
|
|
61559
|
+
* @param request ModifyLaunchTemplateDefaultVersionRequest
|
|
61560
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
61561
|
+
* @return ModifyLaunchTemplateDefaultVersionResponse
|
|
61562
|
+
*/
|
|
61334
61563
|
async modifyLaunchTemplateDefaultVersionWithOptions(request, runtime) {
|
|
61335
61564
|
tea_util_1.default.validateModel(request);
|
|
61336
61565
|
let query = {};
|
|
@@ -61374,12 +61603,20 @@ class Client extends openapi_client_1.default {
|
|
|
61374
61603
|
});
|
|
61375
61604
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyLaunchTemplateDefaultVersionResponse({}));
|
|
61376
61605
|
}
|
|
61606
|
+
/**
|
|
61607
|
+
* ## Debugging
|
|
61608
|
+
* [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=ModifyLaunchTemplateDefaultVersion\\&type=RPC\\&version=2014-05-26)
|
|
61609
|
+
*
|
|
61610
|
+
* @param request ModifyLaunchTemplateDefaultVersionRequest
|
|
61611
|
+
* @return ModifyLaunchTemplateDefaultVersionResponse
|
|
61612
|
+
*/
|
|
61377
61613
|
async modifyLaunchTemplateDefaultVersion(request) {
|
|
61378
61614
|
let runtime = new $Util.RuntimeOptions({});
|
|
61379
61615
|
return await this.modifyLaunchTemplateDefaultVersionWithOptions(request, runtime);
|
|
61380
61616
|
}
|
|
61381
61617
|
/**
|
|
61382
|
-
*
|
|
61618
|
+
* The region ID. The following regions are supported: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), and China (Hong Kong).
|
|
61619
|
+
* You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
|
|
61383
61620
|
*
|
|
61384
61621
|
* @param request ModifyManagedInstanceRequest
|
|
61385
61622
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -61429,7 +61666,8 @@ class Client extends openapi_client_1.default {
|
|
|
61429
61666
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyManagedInstanceResponse({}));
|
|
61430
61667
|
}
|
|
61431
61668
|
/**
|
|
61432
|
-
*
|
|
61669
|
+
* The region ID. The following regions are supported: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), and China (Hong Kong).
|
|
61670
|
+
* You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
|
|
61433
61671
|
*
|
|
61434
61672
|
* @param request ModifyManagedInstanceRequest
|
|
61435
61673
|
* @return ModifyManagedInstanceResponse
|
|
@@ -61871,12 +62109,8 @@ class Client extends openapi_client_1.default {
|
|
|
61871
62109
|
return await this.modifyReservedInstanceAutoRenewAttributeWithOptions(request, runtime);
|
|
61872
62110
|
}
|
|
61873
62111
|
/**
|
|
61874
|
-
*
|
|
61875
|
-
*
|
|
61876
|
-
* * For information about limits on reserved instances, see the "Limits" section in [Overview](~~100370~~).
|
|
61877
|
-
* * Before you call this operation to split a reserved instance, make sure that you are familiar with the limits on splitting a reserved instance. For more information, see [Split a reserved instance](~~100375~~).
|
|
61878
|
-
* * Before you call this operation to merge reserved instances, make sure that you are familiar with the limits on merging reserved instances. For more information, see [Merge reserved instances](~~132229~~).
|
|
61879
|
-
* * Before you call this operation to modify a reserved instance, make sure that you are familiar with the limits and methods of modifying a reserved instance. For more information, see [Modify a reserved instance](~~132230~~).
|
|
62112
|
+
* The region ID of the reserved instance.
|
|
62113
|
+
* You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions.
|
|
61880
62114
|
*
|
|
61881
62115
|
* @param request ModifyReservedInstancesRequest
|
|
61882
62116
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -61923,12 +62157,8 @@ class Client extends openapi_client_1.default {
|
|
|
61923
62157
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyReservedInstancesResponse({}));
|
|
61924
62158
|
}
|
|
61925
62159
|
/**
|
|
61926
|
-
*
|
|
61927
|
-
*
|
|
61928
|
-
* * For information about limits on reserved instances, see the "Limits" section in [Overview](~~100370~~).
|
|
61929
|
-
* * Before you call this operation to split a reserved instance, make sure that you are familiar with the limits on splitting a reserved instance. For more information, see [Split a reserved instance](~~100375~~).
|
|
61930
|
-
* * Before you call this operation to merge reserved instances, make sure that you are familiar with the limits on merging reserved instances. For more information, see [Merge reserved instances](~~132229~~).
|
|
61931
|
-
* * Before you call this operation to modify a reserved instance, make sure that you are familiar with the limits and methods of modifying a reserved instance. For more information, see [Modify a reserved instance](~~132230~~).
|
|
62160
|
+
* The region ID of the reserved instance.
|
|
62161
|
+
* You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions.
|
|
61932
62162
|
*
|
|
61933
62163
|
* @param request ModifyReservedInstancesRequest
|
|
61934
62164
|
* @return ModifyReservedInstancesResponse
|
|
@@ -62127,12 +62357,12 @@ class Client extends openapi_client_1.default {
|
|
|
62127
62357
|
return await this.modifySecurityGroupAttributeWithOptions(request, runtime);
|
|
62128
62358
|
}
|
|
62129
62359
|
/**
|
|
62130
|
-
* In
|
|
62131
|
-
*
|
|
62132
|
-
* *
|
|
62133
|
-
* * The IP address family of the authorization object cannot be changed. For example, if the original authorization object is an IPv4 CIDR block, you cannot change
|
|
62134
|
-
* * The
|
|
62135
|
-
* * You cannot delete the value of a non-empty parameter
|
|
62360
|
+
* In security group-related API documents, inbound traffic refers to the traffic that is sent by the source device and received at the destination device.
|
|
62361
|
+
* When you modify the rules of a security group by specifying the rule IDs, take note of the following limits:
|
|
62362
|
+
* * A security group authorization object can be one of the following types: IP address or CIDR block, security group, and prefix list. The type of an existing security group authorization object cannot be modified. If the original authorization object is an IP address, you can change the authorization object to a different IP address or CIDR block, but you cannot change the authorization object to a security group or a prefix list.
|
|
62363
|
+
* * The IP address family of the authorization object cannot be changed. For example, if the original authorization object is an IPv4 CIDR block, you cannot change the authorization object to an IPv6 CIDR block. If the original authorization object is a prefix list of an IPv4 address family, you cannot change the authorization object to a prefix list of an IPv6 address family.
|
|
62364
|
+
* * The modified security group rule cannot be the same as other existing rules.
|
|
62365
|
+
* * You cannot delete the value of a non-empty parameter. We recommend that you create a new rule and delete the original rule.
|
|
62136
62366
|
*
|
|
62137
62367
|
* @param request ModifySecurityGroupEgressRuleRequest
|
|
62138
62368
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -62230,12 +62460,12 @@ class Client extends openapi_client_1.default {
|
|
|
62230
62460
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifySecurityGroupEgressRuleResponse({}));
|
|
62231
62461
|
}
|
|
62232
62462
|
/**
|
|
62233
|
-
* In
|
|
62234
|
-
*
|
|
62235
|
-
* *
|
|
62236
|
-
* * The IP address family of the authorization object cannot be changed. For example, if the original authorization object is an IPv4 CIDR block, you cannot change
|
|
62237
|
-
* * The
|
|
62238
|
-
* * You cannot delete the value of a non-empty parameter
|
|
62463
|
+
* In security group-related API documents, inbound traffic refers to the traffic that is sent by the source device and received at the destination device.
|
|
62464
|
+
* When you modify the rules of a security group by specifying the rule IDs, take note of the following limits:
|
|
62465
|
+
* * A security group authorization object can be one of the following types: IP address or CIDR block, security group, and prefix list. The type of an existing security group authorization object cannot be modified. If the original authorization object is an IP address, you can change the authorization object to a different IP address or CIDR block, but you cannot change the authorization object to a security group or a prefix list.
|
|
62466
|
+
* * The IP address family of the authorization object cannot be changed. For example, if the original authorization object is an IPv4 CIDR block, you cannot change the authorization object to an IPv6 CIDR block. If the original authorization object is a prefix list of an IPv4 address family, you cannot change the authorization object to a prefix list of an IPv6 address family.
|
|
62467
|
+
* * The modified security group rule cannot be the same as other existing rules.
|
|
62468
|
+
* * You cannot delete the value of a non-empty parameter. We recommend that you create a new rule and delete the original rule.
|
|
62239
62469
|
*
|
|
62240
62470
|
* @param request ModifySecurityGroupEgressRuleRequest
|
|
62241
62471
|
* @return ModifySecurityGroupEgressRuleResponse
|
|
@@ -63052,7 +63282,7 @@ class Client extends openapi_client_1.default {
|
|
|
63052
63282
|
return await this.purchaseReservedInstancesOfferingWithOptions(request, runtime);
|
|
63053
63283
|
}
|
|
63054
63284
|
/**
|
|
63055
|
-
* Before you call this operation, make sure that you are familiar with the billing and pricing
|
|
63285
|
+
* Before you call this operation, make sure that you are familiar with the billing and pricing of SCUs. For more information, see [Storage capacity units](~~137897~~).
|
|
63056
63286
|
*
|
|
63057
63287
|
* @param request PurchaseStorageCapacityUnitRequest
|
|
63058
63288
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -63123,7 +63353,7 @@ class Client extends openapi_client_1.default {
|
|
|
63123
63353
|
return $tea.cast(await this.callApi(params, req, runtime), new PurchaseStorageCapacityUnitResponse({}));
|
|
63124
63354
|
}
|
|
63125
63355
|
/**
|
|
63126
|
-
* Before you call this operation, make sure that you are familiar with the billing and pricing
|
|
63356
|
+
* Before you call this operation, make sure that you are familiar with the billing and pricing of SCUs. For more information, see [Storage capacity units](~~137897~~).
|
|
63127
63357
|
*
|
|
63128
63358
|
* @param request PurchaseStorageCapacityUnitRequest
|
|
63129
63359
|
* @return PurchaseStorageCapacityUnitResponse
|
|
@@ -63335,10 +63565,10 @@ class Client extends openapi_client_1.default {
|
|
|
63335
63565
|
return await this.rebootInstanceWithOptions(request, runtime);
|
|
63336
63566
|
}
|
|
63337
63567
|
/**
|
|
63338
|
-
* * The ECS instances
|
|
63339
|
-
* * You can use the `BatchOptimization` parameter to
|
|
63340
|
-
* * Instances can be
|
|
63341
|
-
* * If
|
|
63568
|
+
* * The ECS instances must be in the `Running` state.****
|
|
63569
|
+
* * You can use the `BatchOptimization` parameter to specify the batch operation mode and restart multiple instances at a time.
|
|
63570
|
+
* * Instances can be forcefully restarted. A forced restart (`ForceReboot`) is equivalent to powering off a traditional server and then restarting the server. If data in the instance operating system is not written to block storage devices when the operation is called, the data may be lost.
|
|
63571
|
+
* * If OperationLocks in the response of the DescribeInstances operation contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons and all operations are prohibited on it.
|
|
63342
63572
|
*
|
|
63343
63573
|
* @param request RebootInstancesRequest
|
|
63344
63574
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -63391,10 +63621,10 @@ class Client extends openapi_client_1.default {
|
|
|
63391
63621
|
return $tea.cast(await this.callApi(params, req, runtime), new RebootInstancesResponse({}));
|
|
63392
63622
|
}
|
|
63393
63623
|
/**
|
|
63394
|
-
* * The ECS instances
|
|
63395
|
-
* * You can use the `BatchOptimization` parameter to
|
|
63396
|
-
* * Instances can be
|
|
63397
|
-
* * If
|
|
63624
|
+
* * The ECS instances must be in the `Running` state.****
|
|
63625
|
+
* * You can use the `BatchOptimization` parameter to specify the batch operation mode and restart multiple instances at a time.
|
|
63626
|
+
* * Instances can be forcefully restarted. A forced restart (`ForceReboot`) is equivalent to powering off a traditional server and then restarting the server. If data in the instance operating system is not written to block storage devices when the operation is called, the data may be lost.
|
|
63627
|
+
* * If OperationLocks in the response of the DescribeInstances operation contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons and all operations are prohibited on it.
|
|
63398
63628
|
*
|
|
63399
63629
|
* @param request RebootInstancesRequest
|
|
63400
63630
|
* @return RebootInstancesResponse
|
|
@@ -63520,13 +63750,13 @@ class Client extends openapi_client_1.default {
|
|
|
63520
63750
|
return await this.redeployDedicatedHostWithOptions(request, runtime);
|
|
63521
63751
|
}
|
|
63522
63752
|
/**
|
|
63523
|
-
* RedeployInstance is an asynchronous operation. This operation migrates data before it restarts the instance. After the instance is redeployed, the instance enters the
|
|
63524
|
-
*
|
|
63525
|
-
* * The instance must be in the Running
|
|
63526
|
-
* * If the instance is in the
|
|
63527
|
-
* * If the instance is in the
|
|
63753
|
+
* RedeployInstance is an asynchronous operation. This operation migrates data before it restarts the instance. After the instance is redeployed, the instance enters the `Running` state. If the instance fails to be redeployed, the instance returns to the original physical server and the state before redeployment.
|
|
63754
|
+
* Take note of the following items:
|
|
63755
|
+
* * 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:
|
|
63756
|
+
* * If the instance is in the `Running` state before redeployment, the instance enters the `Stopping` state.
|
|
63757
|
+
* * If the instance is in the `Stopped` state before redeployment, the instance enters the `Starting` state.
|
|
63528
63758
|
* * If an instance is deployed on a dedicated host, you cannot redeploy the instance.
|
|
63529
|
-
* * If the `OperationLocks` parameter in the DescribeInstances
|
|
63759
|
+
* * If the `OperationLocks` parameter in the response of the DescribeInstances operation contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons and cannot be redeployed.
|
|
63530
63760
|
* * If you receive notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for an instance, you cannot redeploy the instance.
|
|
63531
63761
|
* * If the damaged local disk is isolated but the **SystemMaintenance.RebootAndReInitErrorDisk** event is not sent when you handle a local disk-related system event for an instance, 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~~).
|
|
63532
63762
|
* The following table describes the system events that you can handle by calling the RedeployInstance operation. The table also provides possible event status.
|
|
@@ -63584,13 +63814,13 @@ class Client extends openapi_client_1.default {
|
|
|
63584
63814
|
return $tea.cast(await this.callApi(params, req, runtime), new RedeployInstanceResponse({}));
|
|
63585
63815
|
}
|
|
63586
63816
|
/**
|
|
63587
|
-
* RedeployInstance is an asynchronous operation. This operation migrates data before it restarts the instance. After the instance is redeployed, the instance enters the
|
|
63588
|
-
*
|
|
63589
|
-
* * The instance must be in the Running
|
|
63590
|
-
* * If the instance is in the
|
|
63591
|
-
* * If the instance is in the
|
|
63817
|
+
* RedeployInstance is an asynchronous operation. This operation migrates data before it restarts the instance. After the instance is redeployed, the instance enters the `Running` state. If the instance fails to be redeployed, the instance returns to the original physical server and the state before redeployment.
|
|
63818
|
+
* Take note of the following items:
|
|
63819
|
+
* * 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:
|
|
63820
|
+
* * If the instance is in the `Running` state before redeployment, the instance enters the `Stopping` state.
|
|
63821
|
+
* * If the instance is in the `Stopped` state before redeployment, the instance enters the `Starting` state.
|
|
63592
63822
|
* * If an instance is deployed on a dedicated host, you cannot redeploy the instance.
|
|
63593
|
-
* * If the `OperationLocks` parameter in the DescribeInstances
|
|
63823
|
+
* * If the `OperationLocks` parameter in the response of the DescribeInstances operation contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons and cannot be redeployed.
|
|
63594
63824
|
* * If you receive notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for an instance, you cannot redeploy the instance.
|
|
63595
63825
|
* * If the damaged local disk is isolated but the **SystemMaintenance.RebootAndReInitErrorDisk** event is not sent when you handle a local disk-related system event for an instance, 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~~).
|
|
63596
63826
|
* The following table describes the system events that you can handle by calling the RedeployInstance operation. The table also provides possible event status.
|
|
@@ -63671,7 +63901,8 @@ class Client extends openapi_client_1.default {
|
|
|
63671
63901
|
return await this.releaseCapacityReservationWithOptions(request, runtime);
|
|
63672
63902
|
}
|
|
63673
63903
|
/**
|
|
63674
|
-
*
|
|
63904
|
+
* ## Usage notes
|
|
63905
|
+
* Before you release a pay-as-you-go dedicated host, make sure that no ECS instances are deployed on the dedicated host.
|
|
63675
63906
|
*
|
|
63676
63907
|
* @param request ReleaseDedicatedHostRequest
|
|
63677
63908
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -63715,7 +63946,8 @@ class Client extends openapi_client_1.default {
|
|
|
63715
63946
|
return $tea.cast(await this.callApi(params, req, runtime), new ReleaseDedicatedHostResponse({}));
|
|
63716
63947
|
}
|
|
63717
63948
|
/**
|
|
63718
|
-
*
|
|
63949
|
+
* ## Usage notes
|
|
63950
|
+
* Before you release a pay-as-you-go dedicated host, make sure that no ECS instances are deployed on the dedicated host.
|
|
63719
63951
|
*
|
|
63720
63952
|
* @param request ReleaseDedicatedHostRequest
|
|
63721
63953
|
* @return ReleaseDedicatedHostResponse
|
|
@@ -63922,7 +64154,7 @@ class Client extends openapi_client_1.default {
|
|
|
63922
64154
|
return await this.removeTagsWithOptions(request, runtime);
|
|
63923
64155
|
}
|
|
63924
64156
|
/**
|
|
63925
|
-
*
|
|
64157
|
+
* The IDs of dedicated hosts. You can specify the IDs of up to 100 subscription dedicated hosts. Specify the dedicated host IDs in a JSON array. Example: `["dh-xxxxxxxxx", "dh-yyyyyyyyy", … "dh-zzzzzzzzz"]`. Separate the IDs with commas (,).
|
|
63926
64158
|
*
|
|
63927
64159
|
* @param request RenewDedicatedHostsRequest
|
|
63928
64160
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -63975,7 +64207,7 @@ class Client extends openapi_client_1.default {
|
|
|
63975
64207
|
return $tea.cast(await this.callApi(params, req, runtime), new RenewDedicatedHostsResponse({}));
|
|
63976
64208
|
}
|
|
63977
64209
|
/**
|
|
63978
|
-
*
|
|
64210
|
+
* The IDs of dedicated hosts. You can specify the IDs of up to 100 subscription dedicated hosts. Specify the dedicated host IDs in a JSON array. Example: `["dh-xxxxxxxxx", "dh-yyyyyyyyy", … "dh-zzzzzzzzz"]`. Separate the IDs with commas (,).
|
|
63979
64211
|
*
|
|
63980
64212
|
* @param request RenewDedicatedHostsRequest
|
|
63981
64213
|
* @return RenewDedicatedHostsResponse
|
|
@@ -64054,8 +64286,7 @@ class Client extends openapi_client_1.default {
|
|
|
64054
64286
|
return await this.renewInstanceWithOptions(request, runtime);
|
|
64055
64287
|
}
|
|
64056
64288
|
/**
|
|
64057
|
-
*
|
|
64058
|
-
* * You can call the [DescribeReservedInstances](~~100065~~) operation to query the reserved instances that you purchased.
|
|
64289
|
+
* The IDs of the reserved instances.
|
|
64059
64290
|
*
|
|
64060
64291
|
* @param request RenewReservedInstancesRequest
|
|
64061
64292
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -64114,8 +64345,7 @@ class Client extends openapi_client_1.default {
|
|
|
64114
64345
|
return $tea.cast(await this.callApi(params, req, runtime), new RenewReservedInstancesResponse({}));
|
|
64115
64346
|
}
|
|
64116
64347
|
/**
|
|
64117
|
-
*
|
|
64118
|
-
* * You can call the [DescribeReservedInstances](~~100065~~) operation to query the reserved instances that you purchased.
|
|
64348
|
+
* The IDs of the reserved instances.
|
|
64119
64349
|
*
|
|
64120
64350
|
* @param request RenewReservedInstancesRequest
|
|
64121
64351
|
* @return RenewReservedInstancesResponse
|
|
@@ -64436,12 +64666,7 @@ class Client extends openapi_client_1.default {
|
|
|
64436
64666
|
return await this.resetDisksWithOptions(request, runtime);
|
|
64437
64667
|
}
|
|
64438
64668
|
/**
|
|
64439
|
-
*
|
|
64440
|
-
* * You can resize the following categories of disks: basic disks (`cloud`), ultra disks (`cloud_efficiency`), standard SSDs (`cloud_ssd`), and enhanced SSDs (ESSDs) (`cloud_essd`).
|
|
64441
|
-
* * A disk cannot be resized when a snapshot is being created for the disk.
|
|
64442
|
-
* * The instance to which the disk is attached must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
|
|
64443
|
-
* * After you resize a disk, the partitions and file systems are not changed. You must allocate the storage space on the disk after the disk is resized.
|
|
64444
|
-
* * Disks for which the multi-attach feature is enabled can only be resized offline. Before you resize the disks, make sure that instances to which the disks are attached are in the **Stopped** (`Stopped`) state.
|
|
64669
|
+
* The ID of the disk. You can call the [DescribeDisks](~~25514~~) operation to query the ID of a disk.
|
|
64445
64670
|
*
|
|
64446
64671
|
* @param request ResizeDiskRequest
|
|
64447
64672
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -64491,12 +64716,7 @@ class Client extends openapi_client_1.default {
|
|
|
64491
64716
|
return $tea.cast(await this.callApi(params, req, runtime), new ResizeDiskResponse({}));
|
|
64492
64717
|
}
|
|
64493
64718
|
/**
|
|
64494
|
-
*
|
|
64495
|
-
* * You can resize the following categories of disks: basic disks (`cloud`), ultra disks (`cloud_efficiency`), standard SSDs (`cloud_ssd`), and enhanced SSDs (ESSDs) (`cloud_essd`).
|
|
64496
|
-
* * A disk cannot be resized when a snapshot is being created for the disk.
|
|
64497
|
-
* * The instance to which the disk is attached must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
|
|
64498
|
-
* * After you resize a disk, the partitions and file systems are not changed. You must allocate the storage space on the disk after the disk is resized.
|
|
64499
|
-
* * Disks for which the multi-attach feature is enabled can only be resized offline. Before you resize the disks, make sure that instances to which the disks are attached are in the **Stopped** (`Stopped`) state.
|
|
64719
|
+
* The ID of the disk. You can call the [DescribeDisks](~~25514~~) operation to query the ID of a disk.
|
|
64500
64720
|
*
|
|
64501
64721
|
* @param request ResizeDiskRequest
|
|
64502
64722
|
* @return ResizeDiskResponse
|
|
@@ -64995,6 +65215,9 @@ class Client extends openapi_client_1.default {
|
|
|
64995
65215
|
if (!tea_util_1.default.isUnset(request.arn)) {
|
|
64996
65216
|
query["Arn"] = request.arn;
|
|
64997
65217
|
}
|
|
65218
|
+
if (!tea_util_1.default.isUnset(request.autoPay)) {
|
|
65219
|
+
query["AutoPay"] = request.autoPay;
|
|
65220
|
+
}
|
|
64998
65221
|
if (!tea_util_1.default.isUnset(request.autoReleaseTime)) {
|
|
64999
65222
|
query["AutoReleaseTime"] = request.autoReleaseTime;
|
|
65000
65223
|
}
|
|
@@ -65261,13 +65484,14 @@ class Client extends openapi_client_1.default {
|
|
|
65261
65484
|
return await this.runInstancesWithOptions(request, runtime);
|
|
65262
65485
|
}
|
|
65263
65486
|
/**
|
|
65264
|
-
*
|
|
65265
|
-
* *
|
|
65266
|
-
* *
|
|
65267
|
-
*
|
|
65268
|
-
* *
|
|
65269
|
-
*
|
|
65270
|
-
* *
|
|
65487
|
+
* ## Usage notes
|
|
65488
|
+
* * The instances to which to send a file must be in the Running (`Running`) state.
|
|
65489
|
+
* * [Cloud Assistant Agent must be installed on the instances.](~~64921~~)
|
|
65490
|
+
* * Only Cloud Assistant Agent versions that are later than the following ones support file sending. If the `ClientNeedUpgrade` error code is returned, update Cloud Assistant Agent to the latest version.
|
|
65491
|
+
* * For Linux instances, the version of Cloud Assistant Agent must be later than 1.0.2.569.
|
|
65492
|
+
* * For Windows instances, the version of Cloud Assistant Agent must be later than 1.0.0.149.
|
|
65493
|
+
* * The file that you want to send must not exceed 32 KB in size after it is encoded in Base64.
|
|
65494
|
+
* * The file may fail to be sent due to instance exceptions, network exceptions, or exceptions on Cloud Assistant Agent. Call the [DescribeSendFileResults](~~184117~~) operation or see [Check execution results and troubleshoot common issues](~~87029~~) for troubleshooting.
|
|
65271
65495
|
*
|
|
65272
65496
|
* @param request SendFileRequest
|
|
65273
65497
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -65350,13 +65574,14 @@ class Client extends openapi_client_1.default {
|
|
|
65350
65574
|
return $tea.cast(await this.callApi(params, req, runtime), new SendFileResponse({}));
|
|
65351
65575
|
}
|
|
65352
65576
|
/**
|
|
65353
|
-
*
|
|
65354
|
-
* *
|
|
65355
|
-
* *
|
|
65356
|
-
*
|
|
65357
|
-
* *
|
|
65358
|
-
*
|
|
65359
|
-
* *
|
|
65577
|
+
* ## Usage notes
|
|
65578
|
+
* * The instances to which to send a file must be in the Running (`Running`) state.
|
|
65579
|
+
* * [Cloud Assistant Agent must be installed on the instances.](~~64921~~)
|
|
65580
|
+
* * Only Cloud Assistant Agent versions that are later than the following ones support file sending. If the `ClientNeedUpgrade` error code is returned, update Cloud Assistant Agent to the latest version.
|
|
65581
|
+
* * For Linux instances, the version of Cloud Assistant Agent must be later than 1.0.2.569.
|
|
65582
|
+
* * For Windows instances, the version of Cloud Assistant Agent must be later than 1.0.0.149.
|
|
65583
|
+
* * The file that you want to send must not exceed 32 KB in size after it is encoded in Base64.
|
|
65584
|
+
* * The file may fail to be sent due to instance exceptions, network exceptions, or exceptions on Cloud Assistant Agent. Call the [DescribeSendFileResults](~~184117~~) operation or see [Check execution results and troubleshoot common issues](~~87029~~) for troubleshooting.
|
|
65360
65585
|
*
|
|
65361
65586
|
* @param request SendFileRequest
|
|
65362
65587
|
* @return SendFileResponse
|
|
@@ -65487,9 +65712,7 @@ class Client extends openapi_client_1.default {
|
|
|
65487
65712
|
return await this.startImagePipelineExecutionWithOptions(request, runtime);
|
|
65488
65713
|
}
|
|
65489
65714
|
/**
|
|
65490
|
-
*
|
|
65491
|
-
* * Before the instances are started, they must first be in the `Stopped` state.****
|
|
65492
|
-
* * If `OperationLocks` in the response to the query for the instance information contains `"LockReason" : "security"`, the instance is [locked for security reasons](~~25695~~) and cannot be started.
|
|
65715
|
+
* $.parameters[2].schema.example
|
|
65493
65716
|
*
|
|
65494
65717
|
* @param request StartInstanceRequest
|
|
65495
65718
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -65536,9 +65759,7 @@ class Client extends openapi_client_1.default {
|
|
|
65536
65759
|
return $tea.cast(await this.callApi(params, req, runtime), new StartInstanceResponse({}));
|
|
65537
65760
|
}
|
|
65538
65761
|
/**
|
|
65539
|
-
*
|
|
65540
|
-
* * Before the instances are started, they must first be in the `Stopped` state.****
|
|
65541
|
-
* * If `OperationLocks` in the response to the query for the instance information contains `"LockReason" : "security"`, the instance is [locked for security reasons](~~25695~~) and cannot be started.
|
|
65762
|
+
* $.parameters[2].schema.example
|
|
65542
65763
|
*
|
|
65543
65764
|
* @param request StartInstanceRequest
|
|
65544
65765
|
* @return StartInstanceResponse
|
|
@@ -65548,10 +65769,11 @@ class Client extends openapi_client_1.default {
|
|
|
65548
65769
|
return await this.startInstanceWithOptions(request, runtime);
|
|
65549
65770
|
}
|
|
65550
65771
|
/**
|
|
65551
|
-
*
|
|
65552
|
-
* * The
|
|
65553
|
-
*
|
|
65554
|
-
* *
|
|
65772
|
+
* Specifies whether to perform a dry run. Valid values:
|
|
65773
|
+
* * true: performs only a dry run. The system checks the request for potential issues, including required parameters, request syntax, and instance status. If the request fails the dry run, an error message is returned. If the request passes the dry run, `DRYRUN.SUCCESS` is returned.
|
|
65774
|
+
* > If you set `BatchOptimization` to `SuccessFirst` and `DryRun` to true, only `DRYRUN.SUCCESS` is returned regardless of whether the request passes the dry run.
|
|
65775
|
+
* * false: performs a dry run and performs the actual request. If the request passes the dry run, the operation is performed.
|
|
65776
|
+
* Default value: false.
|
|
65555
65777
|
*
|
|
65556
65778
|
* @param request StartInstancesRequest
|
|
65557
65779
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -65601,10 +65823,11 @@ class Client extends openapi_client_1.default {
|
|
|
65601
65823
|
return $tea.cast(await this.callApi(params, req, runtime), new StartInstancesResponse({}));
|
|
65602
65824
|
}
|
|
65603
65825
|
/**
|
|
65604
|
-
*
|
|
65605
|
-
* * The
|
|
65606
|
-
*
|
|
65607
|
-
* *
|
|
65826
|
+
* Specifies whether to perform a dry run. Valid values:
|
|
65827
|
+
* * true: performs only a dry run. The system checks the request for potential issues, including required parameters, request syntax, and instance status. If the request fails the dry run, an error message is returned. If the request passes the dry run, `DRYRUN.SUCCESS` is returned.
|
|
65828
|
+
* > If you set `BatchOptimization` to `SuccessFirst` and `DryRun` to true, only `DRYRUN.SUCCESS` is returned regardless of whether the request passes the dry run.
|
|
65829
|
+
* * false: performs a dry run and performs the actual request. If the request passes the dry run, the operation is performed.
|
|
65830
|
+
* Default value: false.
|
|
65608
65831
|
*
|
|
65609
65832
|
* @param request StartInstancesRequest
|
|
65610
65833
|
* @return StartInstancesResponse
|
|
@@ -65614,15 +65837,16 @@ class Client extends openapi_client_1.default {
|
|
|
65614
65837
|
return await this.startInstancesWithOptions(request, runtime);
|
|
65615
65838
|
}
|
|
65616
65839
|
/**
|
|
65617
|
-
*
|
|
65618
|
-
*
|
|
65619
|
-
*
|
|
65620
|
-
*
|
|
65621
|
-
*
|
|
65622
|
-
*
|
|
65623
|
-
*
|
|
65624
|
-
*
|
|
65625
|
-
*
|
|
65840
|
+
* The session management feature is in public preview. To use this feature, log on to the ECS console with your Alibaba Cloud account and enable this feature.
|
|
65841
|
+
* When you use custom code to connect to an ECS instance that serves as a client, you can call this operation to obtain the WebSocket URL that is used to connect to the instance. Take note of the following items:
|
|
65842
|
+
* * The ECS instance must be in the Running (Running) state.
|
|
65843
|
+
* * Cloud Assistant Agent must be installed on the ECS instance. You can call the [DescribeCloudAssistantStatus](~~87346~~) operation to check whether Cloud Assistant Agent is installed on the ECS instance and query the version number of the installed Cloud Assistant Agent.
|
|
65844
|
+
* * If Cloud Assistant Agent is not installed on the ECS instance, call the [InstallCloudAssistant](~~85916~~) operation to install Cloud Assistant Agent.
|
|
65845
|
+
* * Only the Cloud Assistant Agent versions that are later than the following ones support the session management feature. You can upgrade Cloud Assistant Agent. For information about how to upgrade Cloud Assistant Agent, see [Update or disable updates for Cloud Assistant Agent](~~134383~~).
|
|
65846
|
+
* * For Linux operating systems: 2.2.3.256
|
|
65847
|
+
* * For Windows operating systems: 2.1.3.256
|
|
65848
|
+
* * Each WebSocket URL returned by the StartTerminalSession operation remains valid for 10 minutes.
|
|
65849
|
+
* * Up to 1,000 sessions can be created and available per region. Each ECS instance can have up to 10 sessions in the connected state.
|
|
65626
65850
|
*
|
|
65627
65851
|
* @param request StartTerminalSessionRequest
|
|
65628
65852
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -65672,15 +65896,16 @@ class Client extends openapi_client_1.default {
|
|
|
65672
65896
|
return $tea.cast(await this.callApi(params, req, runtime), new StartTerminalSessionResponse({}));
|
|
65673
65897
|
}
|
|
65674
65898
|
/**
|
|
65675
|
-
*
|
|
65676
|
-
*
|
|
65677
|
-
*
|
|
65678
|
-
*
|
|
65679
|
-
*
|
|
65680
|
-
*
|
|
65681
|
-
*
|
|
65682
|
-
*
|
|
65683
|
-
*
|
|
65899
|
+
* The session management feature is in public preview. To use this feature, log on to the ECS console with your Alibaba Cloud account and enable this feature.
|
|
65900
|
+
* When you use custom code to connect to an ECS instance that serves as a client, you can call this operation to obtain the WebSocket URL that is used to connect to the instance. Take note of the following items:
|
|
65901
|
+
* * The ECS instance must be in the Running (Running) state.
|
|
65902
|
+
* * Cloud Assistant Agent must be installed on the ECS instance. You can call the [DescribeCloudAssistantStatus](~~87346~~) operation to check whether Cloud Assistant Agent is installed on the ECS instance and query the version number of the installed Cloud Assistant Agent.
|
|
65903
|
+
* * If Cloud Assistant Agent is not installed on the ECS instance, call the [InstallCloudAssistant](~~85916~~) operation to install Cloud Assistant Agent.
|
|
65904
|
+
* * Only the Cloud Assistant Agent versions that are later than the following ones support the session management feature. You can upgrade Cloud Assistant Agent. For information about how to upgrade Cloud Assistant Agent, see [Update or disable updates for Cloud Assistant Agent](~~134383~~).
|
|
65905
|
+
* * For Linux operating systems: 2.2.3.256
|
|
65906
|
+
* * For Windows operating systems: 2.1.3.256
|
|
65907
|
+
* * Each WebSocket URL returned by the StartTerminalSession operation remains valid for 10 minutes.
|
|
65908
|
+
* * Up to 1,000 sessions can be created and available per region. Each ECS instance can have up to 10 sessions in the connected state.
|
|
65684
65909
|
*
|
|
65685
65910
|
* @param request StartTerminalSessionRequest
|
|
65686
65911
|
* @return StartTerminalSessionResponse
|
|
@@ -65690,8 +65915,8 @@ class Client extends openapi_client_1.default {
|
|
|
65690
65915
|
return await this.startTerminalSessionWithOptions(request, runtime);
|
|
65691
65916
|
}
|
|
65692
65917
|
/**
|
|
65693
|
-
* * If the response contains `
|
|
65694
|
-
* * If economical mode is enabled, you can set `StoppedMode` to KeepCharging to switch to standard mode. This allows an instance that is stopped in standard mode to retain its instance type resources and public IP address. However, you continue to be charged for the instance.
|
|
65918
|
+
* * If you call the DescribeInstances operation to query the details of an instance and `OperationLocks` in the response contains `"LockReason": "security"`, the instance is locked for security reasons and cannot be stopped. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
|
|
65919
|
+
* * If the economical mode is enabled, you can set `StoppedMode` to KeepCharging to switch to the standard mode. This allows an instance that is stopped in standard mode to retain its instance type resources and public IP address. However, you continue to be charged for the instance.
|
|
65695
65920
|
*
|
|
65696
65921
|
* @param request StopInstanceRequest
|
|
65697
65922
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -65747,8 +65972,8 @@ class Client extends openapi_client_1.default {
|
|
|
65747
65972
|
return $tea.cast(await this.callApi(params, req, runtime), new StopInstanceResponse({}));
|
|
65748
65973
|
}
|
|
65749
65974
|
/**
|
|
65750
|
-
* * If the response contains `
|
|
65751
|
-
* * If economical mode is enabled, you can set `StoppedMode` to KeepCharging to switch to standard mode. This allows an instance that is stopped in standard mode to retain its instance type resources and public IP address. However, you continue to be charged for the instance.
|
|
65975
|
+
* * If you call the DescribeInstances operation to query the details of an instance and `OperationLocks` in the response contains `"LockReason": "security"`, the instance is locked for security reasons and cannot be stopped. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
|
|
65976
|
+
* * If the economical mode is enabled, you can set `StoppedMode` to KeepCharging to switch to the standard mode. This allows an instance that is stopped in standard mode to retain its instance type resources and public IP address. However, you continue to be charged for the instance.
|
|
65752
65977
|
*
|
|
65753
65978
|
* @param request StopInstanceRequest
|
|
65754
65979
|
* @return StopInstanceResponse
|
|
@@ -65758,9 +65983,11 @@ class Client extends openapi_client_1.default {
|
|
|
65758
65983
|
return await this.stopInstanceWithOptions(request, runtime);
|
|
65759
65984
|
}
|
|
65760
65985
|
/**
|
|
65761
|
-
*
|
|
65762
|
-
* *
|
|
65763
|
-
*
|
|
65986
|
+
* Specifies whether to perform only a dry run, without performing the actual request. Valid Values:
|
|
65987
|
+
* * true: performs a dry run, but the request is not made. The system checks the request for potential issues, including required parameters, request syntax, and instance status. If the request passes the dry run, `DRYRUN.SUCCESS` is returned. Otherwise, an error message is returned.
|
|
65988
|
+
* > If you set `BatchOptimization` to `SuccessFirst` and `DryRun` to true, only `DRYRUN.SUCCESS` is returned regardless of whether the request passes the dry run.
|
|
65989
|
+
* * false: performs a dry run and sends the request. If the request passes the dry run, the operation is performed.
|
|
65990
|
+
* Default value: false.
|
|
65764
65991
|
*
|
|
65765
65992
|
* @param request StopInstancesRequest
|
|
65766
65993
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -65816,9 +66043,11 @@ class Client extends openapi_client_1.default {
|
|
|
65816
66043
|
return $tea.cast(await this.callApi(params, req, runtime), new StopInstancesResponse({}));
|
|
65817
66044
|
}
|
|
65818
66045
|
/**
|
|
65819
|
-
*
|
|
65820
|
-
* *
|
|
65821
|
-
*
|
|
66046
|
+
* Specifies whether to perform only a dry run, without performing the actual request. Valid Values:
|
|
66047
|
+
* * true: performs a dry run, but the request is not made. The system checks the request for potential issues, including required parameters, request syntax, and instance status. If the request passes the dry run, `DRYRUN.SUCCESS` is returned. Otherwise, an error message is returned.
|
|
66048
|
+
* > If you set `BatchOptimization` to `SuccessFirst` and `DryRun` to true, only `DRYRUN.SUCCESS` is returned regardless of whether the request passes the dry run.
|
|
66049
|
+
* * false: performs a dry run and sends the request. If the request passes the dry run, the operation is performed.
|
|
66050
|
+
* Default value: false.
|
|
65822
66051
|
*
|
|
65823
66052
|
* @param request StopInstancesRequest
|
|
65824
66053
|
* @return StopInstancesResponse
|
|
@@ -65828,8 +66057,7 @@ class Client extends openapi_client_1.default {
|
|
|
65828
66057
|
return await this.stopInstancesWithOptions(request, runtime);
|
|
65829
66058
|
}
|
|
65830
66059
|
/**
|
|
65831
|
-
*
|
|
65832
|
-
* * If you stop the process of a scheduled invocation command, the executions that have started are not interrupted. However, the execution does not start in the next period.
|
|
66060
|
+
* The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
|
|
65833
66061
|
*
|
|
65834
66062
|
* @param request StopInvocationRequest
|
|
65835
66063
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -65879,8 +66107,7 @@ class Client extends openapi_client_1.default {
|
|
|
65879
66107
|
return $tea.cast(await this.callApi(params, req, runtime), new StopInvocationResponse({}));
|
|
65880
66108
|
}
|
|
65881
66109
|
/**
|
|
65882
|
-
*
|
|
65883
|
-
* * If you stop the process of a scheduled invocation command, the executions that have started are not interrupted. However, the execution does not start in the next period.
|
|
66110
|
+
* The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
|
|
65884
66111
|
*
|
|
65885
66112
|
* @param request StopInvocationRequest
|
|
65886
66113
|
* @return StopInvocationResponse
|
|
@@ -66141,8 +66368,7 @@ class Client extends openapi_client_1.default {
|
|
|
66141
66368
|
return await this.unassignIpv6AddressesWithOptions(request, runtime);
|
|
66142
66369
|
}
|
|
66143
66370
|
/**
|
|
66144
|
-
*
|
|
66145
|
-
* * If the ENI is a primary ENI, the Elastic Compute Service (ECS) instance to which the ENI is attached must be in the **Running** (Running) or **Stopped** (Stopped) state.
|
|
66371
|
+
* The region ID of the ENI. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
|
|
66146
66372
|
*
|
|
66147
66373
|
* @param request UnassignPrivateIpAddressesRequest
|
|
66148
66374
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -66195,8 +66421,7 @@ class Client extends openapi_client_1.default {
|
|
|
66195
66421
|
return $tea.cast(await this.callApi(params, req, runtime), new UnassignPrivateIpAddressesResponse({}));
|
|
66196
66422
|
}
|
|
66197
66423
|
/**
|
|
66198
|
-
*
|
|
66199
|
-
* * If the ENI is a primary ENI, the Elastic Compute Service (ECS) instance to which the ENI is attached must be in the **Running** (Running) or **Stopped** (Stopped) state.
|
|
66424
|
+
* The region ID of the ENI. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
|
|
66200
66425
|
*
|
|
66201
66426
|
* @param request UnassignPrivateIpAddressesRequest
|
|
66202
66427
|
* @return UnassignPrivateIpAddressesResponse
|