@alicloud/ecs20140526 3.0.4 → 3.0.5

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/src/client.ts CHANGED
@@ -18876,6 +18876,7 @@ export class DescribeResourceByTagsResponse extends $tea.Model {
18876
18876
  }
18877
18877
 
18878
18878
  export class DescribeResourcesModificationRequest extends $tea.Model {
18879
+ conditions?: string[];
18879
18880
  cores?: number;
18880
18881
  destinationResource?: string;
18881
18882
  instanceType?: string;
@@ -18891,6 +18892,7 @@ export class DescribeResourcesModificationRequest extends $tea.Model {
18891
18892
  zoneId?: string;
18892
18893
  static names(): { [key: string]: string } {
18893
18894
  return {
18895
+ conditions: 'Conditions',
18894
18896
  cores: 'Cores',
18895
18897
  destinationResource: 'DestinationResource',
18896
18898
  instanceType: 'InstanceType',
@@ -18909,6 +18911,7 @@ export class DescribeResourcesModificationRequest extends $tea.Model {
18909
18911
 
18910
18912
  static types(): { [key: string]: any } {
18911
18913
  return {
18914
+ conditions: { 'type': 'array', 'itemType': 'string' },
18912
18915
  cores: 'number',
18913
18916
  destinationResource: 'string',
18914
18917
  instanceType: 'string',
@@ -25572,12 +25575,103 @@ export class ModifyDiskChargeTypeResponse extends $tea.Model {
25572
25575
  }
25573
25576
  }
25574
25577
 
25578
+ export class ModifyDiskDeploymentRequest extends $tea.Model {
25579
+ diskCategory?: string;
25580
+ diskId?: string;
25581
+ dryRun?: boolean;
25582
+ ownerAccount?: string;
25583
+ ownerId?: number;
25584
+ performanceLevel?: string;
25585
+ resourceOwnerAccount?: string;
25586
+ resourceOwnerId?: number;
25587
+ storageClusterId?: string;
25588
+ static names(): { [key: string]: string } {
25589
+ return {
25590
+ diskCategory: 'DiskCategory',
25591
+ diskId: 'DiskId',
25592
+ dryRun: 'DryRun',
25593
+ ownerAccount: 'OwnerAccount',
25594
+ ownerId: 'OwnerId',
25595
+ performanceLevel: 'PerformanceLevel',
25596
+ resourceOwnerAccount: 'ResourceOwnerAccount',
25597
+ resourceOwnerId: 'ResourceOwnerId',
25598
+ storageClusterId: 'StorageClusterId',
25599
+ };
25600
+ }
25601
+
25602
+ static types(): { [key: string]: any } {
25603
+ return {
25604
+ diskCategory: 'string',
25605
+ diskId: 'string',
25606
+ dryRun: 'boolean',
25607
+ ownerAccount: 'string',
25608
+ ownerId: 'number',
25609
+ performanceLevel: 'string',
25610
+ resourceOwnerAccount: 'string',
25611
+ resourceOwnerId: 'number',
25612
+ storageClusterId: 'string',
25613
+ };
25614
+ }
25615
+
25616
+ constructor(map?: { [key: string]: any }) {
25617
+ super(map);
25618
+ }
25619
+ }
25620
+
25621
+ export class ModifyDiskDeploymentResponseBody extends $tea.Model {
25622
+ requestId?: string;
25623
+ taskId?: string;
25624
+ static names(): { [key: string]: string } {
25625
+ return {
25626
+ requestId: 'RequestId',
25627
+ taskId: 'TaskId',
25628
+ };
25629
+ }
25630
+
25631
+ static types(): { [key: string]: any } {
25632
+ return {
25633
+ requestId: 'string',
25634
+ taskId: 'string',
25635
+ };
25636
+ }
25637
+
25638
+ constructor(map?: { [key: string]: any }) {
25639
+ super(map);
25640
+ }
25641
+ }
25642
+
25643
+ export class ModifyDiskDeploymentResponse extends $tea.Model {
25644
+ headers: { [key: string]: string };
25645
+ statusCode: number;
25646
+ body: ModifyDiskDeploymentResponseBody;
25647
+ static names(): { [key: string]: string } {
25648
+ return {
25649
+ headers: 'headers',
25650
+ statusCode: 'statusCode',
25651
+ body: 'body',
25652
+ };
25653
+ }
25654
+
25655
+ static types(): { [key: string]: any } {
25656
+ return {
25657
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
25658
+ statusCode: 'number',
25659
+ body: ModifyDiskDeploymentResponseBody,
25660
+ };
25661
+ }
25662
+
25663
+ constructor(map?: { [key: string]: any }) {
25664
+ super(map);
25665
+ }
25666
+ }
25667
+
25575
25668
  export class ModifyDiskSpecRequest extends $tea.Model {
25576
25669
  diskCategory?: string;
25577
25670
  diskId?: string;
25578
25671
  dryRun?: boolean;
25579
25672
  ownerAccount?: string;
25580
25673
  ownerId?: number;
25674
+ performanceControlOptions?: ModifyDiskSpecRequestPerformanceControlOptions;
25581
25675
  performanceLevel?: string;
25582
25676
  provisionedIops?: number;
25583
25677
  resourceOwnerAccount?: string;
@@ -25589,6 +25683,7 @@ export class ModifyDiskSpecRequest extends $tea.Model {
25589
25683
  dryRun: 'DryRun',
25590
25684
  ownerAccount: 'OwnerAccount',
25591
25685
  ownerId: 'OwnerId',
25686
+ performanceControlOptions: 'PerformanceControlOptions',
25592
25687
  performanceLevel: 'PerformanceLevel',
25593
25688
  provisionedIops: 'ProvisionedIops',
25594
25689
  resourceOwnerAccount: 'ResourceOwnerAccount',
@@ -25603,6 +25698,7 @@ export class ModifyDiskSpecRequest extends $tea.Model {
25603
25698
  dryRun: 'boolean',
25604
25699
  ownerAccount: 'string',
25605
25700
  ownerId: 'number',
25701
+ performanceControlOptions: ModifyDiskSpecRequestPerformanceControlOptions,
25606
25702
  performanceLevel: 'string',
25607
25703
  provisionedIops: 'number',
25608
25704
  resourceOwnerAccount: 'string',
@@ -27231,10 +27327,12 @@ export class ModifyInstanceSpecRequest extends $tea.Model {
27231
27327
  allowMigrateAcrossZone?: boolean;
27232
27328
  async?: boolean;
27233
27329
  clientToken?: string;
27330
+ disk?: ModifyInstanceSpecRequestDisk[];
27234
27331
  instanceId?: string;
27235
27332
  instanceType?: string;
27236
27333
  internetMaxBandwidthIn?: number;
27237
27334
  internetMaxBandwidthOut?: number;
27335
+ modifyMode?: string;
27238
27336
  ownerAccount?: string;
27239
27337
  ownerId?: number;
27240
27338
  resourceOwnerAccount?: string;
@@ -27246,10 +27344,12 @@ export class ModifyInstanceSpecRequest extends $tea.Model {
27246
27344
  allowMigrateAcrossZone: 'AllowMigrateAcrossZone',
27247
27345
  async: 'Async',
27248
27346
  clientToken: 'ClientToken',
27347
+ disk: 'Disk',
27249
27348
  instanceId: 'InstanceId',
27250
27349
  instanceType: 'InstanceType',
27251
27350
  internetMaxBandwidthIn: 'InternetMaxBandwidthIn',
27252
27351
  internetMaxBandwidthOut: 'InternetMaxBandwidthOut',
27352
+ modifyMode: 'ModifyMode',
27253
27353
  ownerAccount: 'OwnerAccount',
27254
27354
  ownerId: 'OwnerId',
27255
27355
  resourceOwnerAccount: 'ResourceOwnerAccount',
@@ -27264,10 +27364,12 @@ export class ModifyInstanceSpecRequest extends $tea.Model {
27264
27364
  allowMigrateAcrossZone: 'boolean',
27265
27365
  async: 'boolean',
27266
27366
  clientToken: 'string',
27367
+ disk: { 'type': 'array', 'itemType': ModifyInstanceSpecRequestDisk },
27267
27368
  instanceId: 'string',
27268
27369
  instanceType: 'string',
27269
27370
  internetMaxBandwidthIn: 'number',
27270
27371
  internetMaxBandwidthOut: 'number',
27372
+ modifyMode: 'string',
27271
27373
  ownerAccount: 'string',
27272
27374
  ownerId: 'number',
27273
27375
  resourceOwnerAccount: 'string',
@@ -27955,10 +28057,12 @@ export class ModifyPrepayInstanceSpecRequest extends $tea.Model {
27955
28057
  systemDisk?: ModifyPrepayInstanceSpecRequestSystemDisk;
27956
28058
  autoPay?: boolean;
27957
28059
  clientToken?: string;
28060
+ disk?: ModifyPrepayInstanceSpecRequestDisk[];
27958
28061
  endTime?: string;
27959
28062
  instanceId?: string;
27960
28063
  instanceType?: string;
27961
28064
  migrateAcrossZone?: boolean;
28065
+ modifyMode?: string;
27962
28066
  operatorType?: string;
27963
28067
  ownerAccount?: string;
27964
28068
  ownerId?: number;
@@ -27972,10 +28076,12 @@ export class ModifyPrepayInstanceSpecRequest extends $tea.Model {
27972
28076
  systemDisk: 'SystemDisk',
27973
28077
  autoPay: 'AutoPay',
27974
28078
  clientToken: 'ClientToken',
28079
+ disk: 'Disk',
27975
28080
  endTime: 'EndTime',
27976
28081
  instanceId: 'InstanceId',
27977
28082
  instanceType: 'InstanceType',
27978
28083
  migrateAcrossZone: 'MigrateAcrossZone',
28084
+ modifyMode: 'ModifyMode',
27979
28085
  operatorType: 'OperatorType',
27980
28086
  ownerAccount: 'OwnerAccount',
27981
28087
  ownerId: 'OwnerId',
@@ -27992,10 +28098,12 @@ export class ModifyPrepayInstanceSpecRequest extends $tea.Model {
27992
28098
  systemDisk: ModifyPrepayInstanceSpecRequestSystemDisk,
27993
28099
  autoPay: 'boolean',
27994
28100
  clientToken: 'string',
28101
+ disk: { 'type': 'array', 'itemType': ModifyPrepayInstanceSpecRequestDisk },
27995
28102
  endTime: 'string',
27996
28103
  instanceId: 'string',
27997
28104
  instanceType: 'string',
27998
28105
  migrateAcrossZone: 'boolean',
28106
+ modifyMode: 'string',
27999
28107
  operatorType: 'string',
28000
28108
  ownerAccount: 'string',
28001
28109
  ownerId: 'number',
@@ -48238,6 +48346,100 @@ export class DescribeResourceByTagsResponseBodyResources extends $tea.Model {
48238
48346
  }
48239
48347
  }
48240
48348
 
48349
+ export class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition extends $tea.Model {
48350
+ key?: string;
48351
+ static names(): { [key: string]: string } {
48352
+ return {
48353
+ key: 'Key',
48354
+ };
48355
+ }
48356
+
48357
+ static types(): { [key: string]: any } {
48358
+ return {
48359
+ key: 'string',
48360
+ };
48361
+ }
48362
+
48363
+ constructor(map?: { [key: string]: any }) {
48364
+ super(map);
48365
+ }
48366
+ }
48367
+
48368
+ export class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions extends $tea.Model {
48369
+ condition?: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition[];
48370
+ static names(): { [key: string]: string } {
48371
+ return {
48372
+ condition: 'Condition',
48373
+ };
48374
+ }
48375
+
48376
+ static types(): { [key: string]: any } {
48377
+ return {
48378
+ condition: { 'type': 'array', 'itemType': DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition },
48379
+ };
48380
+ }
48381
+
48382
+ constructor(map?: { [key: string]: any }) {
48383
+ super(map);
48384
+ }
48385
+ }
48386
+
48387
+ export class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource extends $tea.Model {
48388
+ conditions?: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions;
48389
+ max?: number;
48390
+ min?: number;
48391
+ status?: string;
48392
+ statusCategory?: string;
48393
+ unit?: string;
48394
+ value?: string;
48395
+ static names(): { [key: string]: string } {
48396
+ return {
48397
+ conditions: 'Conditions',
48398
+ max: 'Max',
48399
+ min: 'Min',
48400
+ status: 'Status',
48401
+ statusCategory: 'StatusCategory',
48402
+ unit: 'Unit',
48403
+ value: 'Value',
48404
+ };
48405
+ }
48406
+
48407
+ static types(): { [key: string]: any } {
48408
+ return {
48409
+ conditions: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions,
48410
+ max: 'number',
48411
+ min: 'number',
48412
+ status: 'string',
48413
+ statusCategory: 'string',
48414
+ unit: 'string',
48415
+ value: 'string',
48416
+ };
48417
+ }
48418
+
48419
+ constructor(map?: { [key: string]: any }) {
48420
+ super(map);
48421
+ }
48422
+ }
48423
+
48424
+ export class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources extends $tea.Model {
48425
+ conditionSupportedResource?: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource[];
48426
+ static names(): { [key: string]: string } {
48427
+ return {
48428
+ conditionSupportedResource: 'ConditionSupportedResource',
48429
+ };
48430
+ }
48431
+
48432
+ static types(): { [key: string]: any } {
48433
+ return {
48434
+ conditionSupportedResource: { 'type': 'array', 'itemType': DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource },
48435
+ };
48436
+ }
48437
+
48438
+ constructor(map?: { [key: string]: any }) {
48439
+ super(map);
48440
+ }
48441
+ }
48442
+
48241
48443
  export class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource extends $tea.Model {
48242
48444
  max?: number;
48243
48445
  min?: number;
@@ -48292,10 +48494,12 @@ export class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZon
48292
48494
  }
48293
48495
 
48294
48496
  export class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource extends $tea.Model {
48497
+ conditionSupportedResources?: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources;
48295
48498
  supportedResources?: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources;
48296
48499
  type?: string;
48297
48500
  static names(): { [key: string]: string } {
48298
48501
  return {
48502
+ conditionSupportedResources: 'ConditionSupportedResources',
48299
48503
  supportedResources: 'SupportedResources',
48300
48504
  type: 'Type',
48301
48505
  };
@@ -48303,6 +48507,7 @@ export class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZon
48303
48507
 
48304
48508
  static types(): { [key: string]: any } {
48305
48509
  return {
48510
+ conditionSupportedResources: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources,
48306
48511
  supportedResources: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources,
48307
48512
  type: 'string',
48308
48513
  };
@@ -51832,6 +52037,31 @@ export class ModifyDedicatedHostsChargeTypeResponseBodyFeeOfInstances extends $t
51832
52037
  }
51833
52038
  }
51834
52039
 
52040
+ export class ModifyDiskSpecRequestPerformanceControlOptions extends $tea.Model {
52041
+ IOPS?: number;
52042
+ recover?: string;
52043
+ throughput?: number;
52044
+ static names(): { [key: string]: string } {
52045
+ return {
52046
+ IOPS: 'IOPS',
52047
+ recover: 'Recover',
52048
+ throughput: 'Throughput',
52049
+ };
52050
+ }
52051
+
52052
+ static types(): { [key: string]: any } {
52053
+ return {
52054
+ IOPS: 'number',
52055
+ recover: 'string',
52056
+ throughput: 'number',
52057
+ };
52058
+ }
52059
+
52060
+ constructor(map?: { [key: string]: any }) {
52061
+ super(map);
52062
+ }
52063
+ }
52064
+
51835
52065
  export class ModifyElasticityAssuranceRequestPrivatePoolOptions extends $tea.Model {
51836
52066
  id?: string;
51837
52067
  name?: string;
@@ -52027,6 +52257,31 @@ export class ModifyInstanceSpecRequestTemporary extends $tea.Model {
52027
52257
  }
52028
52258
  }
52029
52259
 
52260
+ export class ModifyInstanceSpecRequestDisk extends $tea.Model {
52261
+ category?: string;
52262
+ diskId?: string;
52263
+ performanceLevel?: string;
52264
+ static names(): { [key: string]: string } {
52265
+ return {
52266
+ category: 'Category',
52267
+ diskId: 'DiskId',
52268
+ performanceLevel: 'PerformanceLevel',
52269
+ };
52270
+ }
52271
+
52272
+ static types(): { [key: string]: any } {
52273
+ return {
52274
+ category: 'string',
52275
+ diskId: 'string',
52276
+ performanceLevel: 'string',
52277
+ };
52278
+ }
52279
+
52280
+ constructor(map?: { [key: string]: any }) {
52281
+ super(map);
52282
+ }
52283
+ }
52284
+
52030
52285
  export class ModifyManagedInstanceResponseBodyInstance extends $tea.Model {
52031
52286
  instanceId?: string;
52032
52287
  instanceName?: string;
@@ -52109,6 +52364,31 @@ export class ModifyPrepayInstanceSpecRequestSystemDisk extends $tea.Model {
52109
52364
  }
52110
52365
  }
52111
52366
 
52367
+ export class ModifyPrepayInstanceSpecRequestDisk extends $tea.Model {
52368
+ category?: string;
52369
+ diskId?: string;
52370
+ performanceLevel?: string;
52371
+ static names(): { [key: string]: string } {
52372
+ return {
52373
+ category: 'Category',
52374
+ diskId: 'DiskId',
52375
+ performanceLevel: 'PerformanceLevel',
52376
+ };
52377
+ }
52378
+
52379
+ static types(): { [key: string]: any } {
52380
+ return {
52381
+ category: 'string',
52382
+ diskId: 'string',
52383
+ performanceLevel: 'string',
52384
+ };
52385
+ }
52386
+
52387
+ constructor(map?: { [key: string]: any }) {
52388
+ super(map);
52389
+ }
52390
+ }
52391
+
52112
52392
  export class ModifyReservedInstancesRequestConfiguration extends $tea.Model {
52113
52393
  instanceAmount?: number;
52114
52394
  instanceType?: string;
@@ -53706,6 +53986,7 @@ export default class Client extends OpenApi {
53706
53986
 
53707
53987
  /**
53708
53988
  * @deprecated
53989
+ * > This operation has been upgraded. We recommend that you do not use it. For information about the new version of this operation, see [AllocateEipAddress](~~120192~~).
53709
53990
  *
53710
53991
  * @param request AllocateEipAddressRequest
53711
53992
  * @param runtime runtime options for this request RuntimeOptions
@@ -53774,6 +54055,7 @@ export default class Client extends OpenApi {
53774
54055
 
53775
54056
  /**
53776
54057
  * @deprecated
54058
+ * > This operation has been upgraded. We recommend that you do not use it. For information about the new version of this operation, see [AllocateEipAddress](~~120192~~).
53777
54059
  *
53778
54060
  * @param request AllocateEipAddressRequest
53779
54061
  * @return AllocateEipAddressResponse
@@ -53864,7 +54146,7 @@ export default class Client extends OpenApi {
53864
54146
 
53865
54147
  /**
53866
54148
  * * Each disk can have only one automatic snapshot policy applied.
53867
- * * A single automatic snapshot policy can be applied to multiple disks.
54149
+ * * Each automatic snapshot policy can be applied to multiple disks.
53868
54150
  *
53869
54151
  * @param request ApplyAutoSnapshotPolicyRequest
53870
54152
  * @param runtime runtime options for this request RuntimeOptions
@@ -53916,7 +54198,7 @@ export default class Client extends OpenApi {
53916
54198
 
53917
54199
  /**
53918
54200
  * * Each disk can have only one automatic snapshot policy applied.
53919
- * * A single automatic snapshot policy can be applied to multiple disks.
54201
+ * * Each automatic snapshot policy can be applied to multiple disks.
53920
54202
  *
53921
54203
  * @param request ApplyAutoSnapshotPolicyRequest
53922
54204
  * @return ApplyAutoSnapshotPolicyResponse
@@ -54662,18 +54944,17 @@ export default class Client extends OpenApi {
54662
54944
  }
54663
54945
 
54664
54946
  /**
54665
- * ## Description
54666
54947
  * When you call this operation, take note of the following items:
54667
54948
  * * The total number of inbound and outbound security group rules in each security group cannot exceed 200. For more information, see the "Security group limits" section in [Limits](~~25412#SecurityGroupQuota1~~).
54668
54949
  * * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
54669
54950
  * * When multiple security group rules have the same priority, drop rules take precedence.
54670
54951
  * * The source can be a CIDR block specified by SourceCidrIp, Ipv6SourceCidrIp, or SourcePrefixListId or can be Elastic Compute Service (ECS) instances in a security group specified by SourceGroupId.
54671
- * * For advanced security groups, security groups cannot be used as authorization objects.
54672
- * * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
54952
+ * * Security groups cannot be referenced as authorization objects in rules of advanced security groups.
54953
+ * * Up to 20 security groups can be referenced as authorization objects in the rules of each basic security group.
54673
54954
  * * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
54674
- * * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
54955
+ * * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters andparameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
54675
54956
  * * 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.
54676
- * * Parameters used to specify a security group rule that controls access from a specified CIDR block: IpProtocol, PortRange, SourcePortRange, NicType, Policy, and SourceCidrIp. For a security group of the Virtual Private Cloud (VPC) type, you must set the NicType parameter to intranet. For a security group of the classic network type, you can set the NicType parameter to either internet or intranet. Sample request:
54957
+ * * Parameters used to specify 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:
54677
54958
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
54678
54959
  * &SecurityGroupId=sg-bp67acfmxazb4p****
54679
54960
  * &Permissions.1.SourceCidrIp=10.0.0.0/8
@@ -54682,7 +54963,7 @@ export default class Client extends OpenApi {
54682
54963
  * &Permissions.1.NicType=intranet
54683
54964
  * &Permissions.1.Policy=Accept
54684
54965
  * &<Common request parameters>
54685
- * * Parameters used to specify a security group rule that controls access from a security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceGroupOwnerAccount, and SourceGroupId. In this case, you must set the NicType parameter to intranet. To allow mutual access between security groups in the classic network, you can allow or deny another security group within the same region access to your security group. The security group that is allowed access to your security group can belong to your own Alibaba Cloud account or another Alibaba Cloud account specified by the SourceGroupOwnerAccount parameter. To allow mutual access between security groups in VPCs, you can allow or deny another security group within the same VPC access to your security group. Sample request:
54966
+ * * Parameters used to specify 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. For access control between security groups in the classic network, you can allow or deny other security groups within the same region to access your security group. The security groups that are allowed to access your security group can belong to your own Alibaba Cloud account or another Alibaba Cloud account specified by the SourceGroupOwnerAccount parameter. For access control between security groups in VPCs, you can allow or deny another security group within the same VPC to access your security group. Sample request:
54686
54967
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
54687
54968
  * &SecurityGroupId=sg-bp67acfmxazb4p****
54688
54969
  * &Permissions.1.SourceGroupId=sg-1651FBB**
@@ -54692,7 +54973,7 @@ export default class Client extends OpenApi {
54692
54973
  * &Permissions.1.NicType=intranet
54693
54974
  * &Permissions.1.Policy=Drop
54694
54975
  * &<Common request parameters>
54695
- * * Parameters used to specify a security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestPrefixListId. In this case, prefix lists support only security groups in VPCs. NicType must be set to intranet. Sample request:
54976
+ * * Parameters used to specify an outbound 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 VPCs. NicType must be set to intranet. Sample request:
54696
54977
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
54697
54978
  * &SecurityGroupId=sg-bp67acfmxazb4p****
54698
54979
  * &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
@@ -54837,18 +55118,17 @@ export default class Client extends OpenApi {
54837
55118
  }
54838
55119
 
54839
55120
  /**
54840
- * ## Description
54841
55121
  * When you call this operation, take note of the following items:
54842
55122
  * * The total number of inbound and outbound security group rules in each security group cannot exceed 200. For more information, see the "Security group limits" section in [Limits](~~25412#SecurityGroupQuota1~~).
54843
55123
  * * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
54844
55124
  * * When multiple security group rules have the same priority, drop rules take precedence.
54845
55125
  * * The source can be a CIDR block specified by SourceCidrIp, Ipv6SourceCidrIp, or SourcePrefixListId or can be Elastic Compute Service (ECS) instances in a security group specified by SourceGroupId.
54846
- * * For advanced security groups, security groups cannot be used as authorization objects.
54847
- * * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
55126
+ * * Security groups cannot be referenced as authorization objects in rules of advanced security groups.
55127
+ * * Up to 20 security groups can be referenced as authorization objects in the rules of each basic security group.
54848
55128
  * * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
54849
- * * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
55129
+ * * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters andparameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
54850
55130
  * * 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.
54851
- * * Parameters used to specify a security group rule that controls access from a specified CIDR block: IpProtocol, PortRange, SourcePortRange, NicType, Policy, and SourceCidrIp. For a security group of the Virtual Private Cloud (VPC) type, you must set the NicType parameter to intranet. For a security group of the classic network type, you can set the NicType parameter to either internet or intranet. Sample request:
55131
+ * * Parameters used to specify 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:
54852
55132
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
54853
55133
  * &SecurityGroupId=sg-bp67acfmxazb4p****
54854
55134
  * &Permissions.1.SourceCidrIp=10.0.0.0/8
@@ -54857,7 +55137,7 @@ export default class Client extends OpenApi {
54857
55137
  * &Permissions.1.NicType=intranet
54858
55138
  * &Permissions.1.Policy=Accept
54859
55139
  * &<Common request parameters>
54860
- * * Parameters used to specify a security group rule that controls access from a security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceGroupOwnerAccount, and SourceGroupId. In this case, you must set the NicType parameter to intranet. To allow mutual access between security groups in the classic network, you can allow or deny another security group within the same region access to your security group. The security group that is allowed access to your security group can belong to your own Alibaba Cloud account or another Alibaba Cloud account specified by the SourceGroupOwnerAccount parameter. To allow mutual access between security groups in VPCs, you can allow or deny another security group within the same VPC access to your security group. Sample request:
55140
+ * * Parameters used to specify 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. For access control between security groups in the classic network, you can allow or deny other security groups within the same region to access your security group. The security groups that are allowed to access your security group can belong to your own Alibaba Cloud account or another Alibaba Cloud account specified by the SourceGroupOwnerAccount parameter. For access control between security groups in VPCs, you can allow or deny another security group within the same VPC to access your security group. Sample request:
54861
55141
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
54862
55142
  * &SecurityGroupId=sg-bp67acfmxazb4p****
54863
55143
  * &Permissions.1.SourceGroupId=sg-1651FBB**
@@ -54867,7 +55147,7 @@ export default class Client extends OpenApi {
54867
55147
  * &Permissions.1.NicType=intranet
54868
55148
  * &Permissions.1.Policy=Drop
54869
55149
  * &<Common request parameters>
54870
- * * Parameters used to specify a security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestPrefixListId. In this case, prefix lists support only security groups in VPCs. NicType must be set to intranet. Sample request:
55150
+ * * Parameters used to specify an outbound 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 VPCs. NicType must be set to intranet. Sample request:
54871
55151
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
54872
55152
  * &SecurityGroupId=sg-bp67acfmxazb4p****
54873
55153
  * &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
@@ -54888,17 +55168,16 @@ export default class Client extends OpenApi {
54888
55168
  }
54889
55169
 
54890
55170
  /**
54891
- * ## Description
54892
55171
  * When you call this operation, take note of the following items:
54893
55172
  * * 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~~).
54894
55173
  * * You can set Policy to accept or drop for each security group rule to allow or deny access.
54895
55174
  * * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
54896
55175
  * * When several security group rules have the same priority, drop rules take precedence.
54897
55176
  * * 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.
54898
- * * For advanced security groups, security groups cannot be used as authorization objects.
54899
- * * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
55177
+ * * Security groups cannot be referenced as authorization objects in the rules of advanced security groups.
55178
+ * * Up to 20 security groups can be referenced as authorization objects in the rules of each basic security group.
54900
55179
  * * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
54901
- * * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
55180
+ * * The `Permissions.N` prefix is added to certain parameters to generate new parameters. Original parameters and parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
54902
55181
  * * 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.
54903
55182
  * * 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:
54904
55183
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
@@ -55063,17 +55342,16 @@ export default class Client extends OpenApi {
55063
55342
  }
55064
55343
 
55065
55344
  /**
55066
- * ## Description
55067
55345
  * When you call this operation, take note of the following items:
55068
55346
  * * 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~~).
55069
55347
  * * You can set Policy to accept or drop for each security group rule to allow or deny access.
55070
55348
  * * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
55071
55349
  * * When several security group rules have the same priority, drop rules take precedence.
55072
55350
  * * 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.
55073
- * * For advanced security groups, security groups cannot be used as authorization objects.
55074
- * * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
55351
+ * * Security groups cannot be referenced as authorization objects in the rules of advanced security groups.
55352
+ * * Up to 20 security groups can be referenced as authorization objects in the rules of each basic security group.
55075
55353
  * * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
55076
- * * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
55354
+ * * The `Permissions.N` prefix is added to certain parameters to generate new parameters. Original parameters and parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
55077
55355
  * * 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.
55078
55356
  * * 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:
55079
55357
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
@@ -55525,9 +55803,9 @@ export default class Client extends OpenApi {
55525
55803
  }
55526
55804
 
55527
55805
  /**
55528
- * After a public IP address is converted into an EIP, the EIP is billed separately. Make sure that you understand the billing methods of EIPs. For more information, see [Billing overview](~~122035~~).
55806
+ * After a public IP address is converted to an EIP, the EIP is billed separately. Make sure that you understand the billing methods of EIPs. For more information, see [Billing overview](~~122035~~).
55529
55807
  * Before you call this operation, make sure that the following requirements are met:
55530
- * * The instance is in the `Stopped` or `Running` state.
55808
+ * * The instance is in the **Stopped** (`Stopped`) or **Running** (`Running`) state.
55531
55809
  * * No EIPs are associated with the instance.
55532
55810
  * * The instance has no configuration change tasks that have not taken effect.
55533
55811
  * * The public bandwidth of the instance is not 0 Mbit/s.
@@ -55579,9 +55857,9 @@ export default class Client extends OpenApi {
55579
55857
  }
55580
55858
 
55581
55859
  /**
55582
- * After a public IP address is converted into an EIP, the EIP is billed separately. Make sure that you understand the billing methods of EIPs. For more information, see [Billing overview](~~122035~~).
55860
+ * After a public IP address is converted to an EIP, the EIP is billed separately. Make sure that you understand the billing methods of EIPs. For more information, see [Billing overview](~~122035~~).
55583
55861
  * Before you call this operation, make sure that the following requirements are met:
55584
- * * The instance is in the `Stopped` or `Running` state.
55862
+ * * The instance is in the **Stopped** (`Stopped`) or **Running** (`Running`) state.
55585
55863
  * * No EIPs are associated with the instance.
55586
55864
  * * The instance has no configuration change tasks that have not taken effect.
55587
55865
  * * The public bandwidth of the instance is not 0 Mbit/s.
@@ -59589,16 +59867,16 @@ export default class Client extends OpenApi {
59589
59867
  }
59590
59868
 
59591
59869
  /**
59592
- * You can specify `InstanceId` to create a snapshot-consistent group for the specified disks of the instance. You can also specify `DiskId.N` to create a snapshot-consistent group for multiple disks that are attached to multiple instances within the same zone.
59593
- * > You cannot specify both `DiskId.N` and `ExcludeDiskId.N`. If `InstanceId` is specified, `DiskId.N` is only used to specify the disks that are attached to the instance specified by InstanceId.
59870
+ * You can specify `InstanceId` to create a snapshot-consistent group for the specified disks in an instance. You can also specify `DiskId.N` to create a snapshot-consistent group for multiple disks that are attached to multiple instances within the same zone.
59871
+ * > You cannot specify both `DiskId.N` and `ExcludeDiskId.N`. If `InstanceId` is set, you can use `DiskId.N` to specify only disks attached to the instance specified by InstanceId. You cannot use DiskId.N to specify disks attached to multiple instances.
59594
59872
  * When you call this operation, take note of the following items:
59595
59873
  * * The disk for which you want to create a snapshot must be in the **In Use** (`In_use`) or **Unattached** (`Available`) state.
59596
- * * If the disk is in the **In Use** (`In_use`) state, the instance to which the disk is attached must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
59874
+ * * If the disk is in the **In Use** (`In_use`) state, the instance to which the disk is attached must be in the **Running** or **Stopped** state.````
59597
59875
  * * If the disk is in the **Unattached** (`Available`) state, make sure that the disk has been attached to an ECS instance. Snapshots cannot be created for disks that have never been attached to ECS instances.
59598
59876
  * * The snapshot-consistent group feature can be used to create snapshots only for enhanced SSDs (ESSDs).
59599
- * * A single snapshot-consistent group can contain snapshots of up to 16 disks including the system disk and data disks and cannot exceed 32 TiB in size.
59877
+ * * A single snapshot-consistent group can contain snapshots of up to 16 disks including the system disk and data disks. A single snapshot-consistent group cannot exceed 32 TiB in size.
59600
59878
  * * Snapshots that you created by using the snapshot-consistent group feature are retained until they are deleted. We recommend that you delete unnecessary snapshots on a regular basis to prevent them from incurring excessive fees.
59601
- * * Snapshot-consistent groups cannot be created for disks that have the multi-attach feature enabled. If disks that have the multi-attach feature enabled are attached to the instance for which you want to create a snapshot-consistent group, you must set the `ExcludeDiskId.N` parameter to exclude these disks.
59879
+ * * Snapshot-consistent groups cannot be created for disks that have the multi-attach feature enabled. If disks that have the multi-attach feature enabled are attached to an instance, you must set the `ExcludeDiskId.N` parameter to exclude these disks.
59602
59880
  * For information about the snapshot-consistent group feature and its billing, see [Create a snapshot-consistent group](~~199625~~).
59603
59881
  *
59604
59882
  * @param request CreateSnapshotGroupRequest
@@ -59686,16 +59964,16 @@ export default class Client extends OpenApi {
59686
59964
  }
59687
59965
 
59688
59966
  /**
59689
- * You can specify `InstanceId` to create a snapshot-consistent group for the specified disks of the instance. You can also specify `DiskId.N` to create a snapshot-consistent group for multiple disks that are attached to multiple instances within the same zone.
59690
- * > You cannot specify both `DiskId.N` and `ExcludeDiskId.N`. If `InstanceId` is specified, `DiskId.N` is only used to specify the disks that are attached to the instance specified by InstanceId.
59967
+ * You can specify `InstanceId` to create a snapshot-consistent group for the specified disks in an instance. You can also specify `DiskId.N` to create a snapshot-consistent group for multiple disks that are attached to multiple instances within the same zone.
59968
+ * > You cannot specify both `DiskId.N` and `ExcludeDiskId.N`. If `InstanceId` is set, you can use `DiskId.N` to specify only disks attached to the instance specified by InstanceId. You cannot use DiskId.N to specify disks attached to multiple instances.
59691
59969
  * When you call this operation, take note of the following items:
59692
59970
  * * The disk for which you want to create a snapshot must be in the **In Use** (`In_use`) or **Unattached** (`Available`) state.
59693
- * * If the disk is in the **In Use** (`In_use`) state, the instance to which the disk is attached must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
59971
+ * * If the disk is in the **In Use** (`In_use`) state, the instance to which the disk is attached must be in the **Running** or **Stopped** state.````
59694
59972
  * * If the disk is in the **Unattached** (`Available`) state, make sure that the disk has been attached to an ECS instance. Snapshots cannot be created for disks that have never been attached to ECS instances.
59695
59973
  * * The snapshot-consistent group feature can be used to create snapshots only for enhanced SSDs (ESSDs).
59696
- * * A single snapshot-consistent group can contain snapshots of up to 16 disks including the system disk and data disks and cannot exceed 32 TiB in size.
59974
+ * * A single snapshot-consistent group can contain snapshots of up to 16 disks including the system disk and data disks. A single snapshot-consistent group cannot exceed 32 TiB in size.
59697
59975
  * * Snapshots that you created by using the snapshot-consistent group feature are retained until they are deleted. We recommend that you delete unnecessary snapshots on a regular basis to prevent them from incurring excessive fees.
59698
- * * Snapshot-consistent groups cannot be created for disks that have the multi-attach feature enabled. If disks that have the multi-attach feature enabled are attached to the instance for which you want to create a snapshot-consistent group, you must set the `ExcludeDiskId.N` parameter to exclude these disks.
59976
+ * * Snapshot-consistent groups cannot be created for disks that have the multi-attach feature enabled. If disks that have the multi-attach feature enabled are attached to an instance, you must set the `ExcludeDiskId.N` parameter to exclude these disks.
59699
59977
  * For information about the snapshot-consistent group feature and its billing, see [Create a snapshot-consistent group](~~199625~~).
59700
59978
  *
59701
59979
  * @param request CreateSnapshotGroupRequest
@@ -62021,7 +62299,7 @@ export default class Client extends OpenApi {
62021
62299
  /**
62022
62300
  * When you call this operation, take note of the following items:
62023
62301
  * * If the specified snapshot does not exist, the request is ignored.
62024
- * * If the specified snapshot has been used to create custom images, the snapshot cannot be deleted. You must call the [DeleteImage](~~25537~~) operation to delete the custom images before you can delete the snapshot.
62302
+ * * If a snapshot has been used to create custom images, the snapshot cannot be deleted. You must call the [DeleteImage](~~25537~~) operation to delete the custom images before you can delete the snapshot.
62025
62303
  * * If the specified snapshot has been used to create disks and the `Force` parameter is not specified or is set to `false`, the snapshot cannot be deleted directly. If you want to delete the snapshot, set the `Force` parameter to true to forcefully delete the snapshot. The disks created from the snapshot cannot be re-initialized after the snapshot is forcefully deleted.
62026
62304
  *
62027
62305
  * @param request DeleteSnapshotRequest
@@ -62075,7 +62353,7 @@ export default class Client extends OpenApi {
62075
62353
  /**
62076
62354
  * When you call this operation, take note of the following items:
62077
62355
  * * If the specified snapshot does not exist, the request is ignored.
62078
- * * If the specified snapshot has been used to create custom images, the snapshot cannot be deleted. You must call the [DeleteImage](~~25537~~) operation to delete the custom images before you can delete the snapshot.
62356
+ * * If a snapshot has been used to create custom images, the snapshot cannot be deleted. You must call the [DeleteImage](~~25537~~) operation to delete the custom images before you can delete the snapshot.
62079
62357
  * * If the specified snapshot has been used to create disks and the `Force` parameter is not specified or is set to `false`, the snapshot cannot be deleted directly. If you want to delete the snapshot, set the `Force` parameter to true to forcefully delete the snapshot. The disks created from the snapshot cannot be re-initialized after the snapshot is forcefully deleted.
62080
62358
  *
62081
62359
  * @param request DeleteSnapshotRequest
@@ -62530,7 +62808,7 @@ export default class Client extends OpenApi {
62530
62808
 
62531
62809
  /**
62532
62810
  * After you [create](https://account.alibabacloud.com/register/intl_register.htm) an Alibaba Cloud account, you can create a specific number of ECS instances in different regions within the account. For more information, see [Limits](~~25412~~).
62533
- * You can also [submit a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex) to request a quota increase.
62811
+ * You can apply for a quota increase in the [Quota Center console](https://ecs.console.aliyun.com/?#/privilegeQuotaV2/region/cn-hangzhou?subTab=userQuota).
62534
62812
  *
62535
62813
  * @param request DescribeAccountAttributesRequest
62536
62814
  * @param runtime runtime options for this request RuntimeOptions
@@ -62582,7 +62860,7 @@ export default class Client extends OpenApi {
62582
62860
 
62583
62861
  /**
62584
62862
  * After you [create](https://account.alibabacloud.com/register/intl_register.htm) an Alibaba Cloud account, you can create a specific number of ECS instances in different regions within the account. For more information, see [Limits](~~25412~~).
62585
- * You can also [submit a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex) to request a quota increase.
62863
+ * You can apply for a quota increase in the [Quota Center console](https://ecs.console.aliyun.com/?#/privilegeQuotaV2/region/cn-hangzhou?subTab=userQuota).
62586
62864
  *
62587
62865
  * @param request DescribeAccountAttributesRequest
62588
62866
  * @return DescribeAccountAttributesResponse
@@ -64636,6 +64914,14 @@ export default class Client extends OpenApi {
64636
64914
  return await this.describeDisksWithOptions(request, runtime);
64637
64915
  }
64638
64916
 
64917
+ /**
64918
+ * * The full status information of an EBS device includes the lifecycle status provided by the `Status` parameter, health status provided by the `HealthStatus` parameter, and event type provided by the `EventType` parameter of the EBS device. You can filter the results based on these parameters.
64919
+ * * 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.
64920
+ *
64921
+ * @param request DescribeDisksFullStatusRequest
64922
+ * @param runtime runtime options for this request RuntimeOptions
64923
+ * @return DescribeDisksFullStatusResponse
64924
+ */
64639
64925
  async describeDisksFullStatusWithOptions(request: DescribeDisksFullStatusRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDisksFullStatusResponse> {
64640
64926
  Util.validateModel(request);
64641
64927
  let query = { };
@@ -64720,6 +65006,13 @@ export default class Client extends OpenApi {
64720
65006
  return $tea.cast<DescribeDisksFullStatusResponse>(await this.callApi(params, req, runtime), new DescribeDisksFullStatusResponse({}));
64721
65007
  }
64722
65008
 
65009
+ /**
65010
+ * * The full status information of an EBS device includes the lifecycle status provided by the `Status` parameter, health status provided by the `HealthStatus` parameter, and event type provided by the `EventType` parameter of the EBS device. You can filter the results based on these parameters.
65011
+ * * 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.
65012
+ *
65013
+ * @param request DescribeDisksFullStatusRequest
65014
+ * @return DescribeDisksFullStatusResponse
65015
+ */
64723
65016
  async describeDisksFullStatus(request: DescribeDisksFullStatusRequest): Promise<DescribeDisksFullStatusResponse> {
64724
65017
  let runtime = new $Util.RuntimeOptions({ });
64725
65018
  return await this.describeDisksFullStatusWithOptions(request, runtime);
@@ -64906,7 +65199,7 @@ export default class Client extends OpenApi {
64906
65199
  }
64907
65200
 
64908
65201
  /**
64909
- * When an elasticity assurance expires, data about the association between instances and the private pool generated by the elasticity assurance becomes invalid. When you call this operation to query the expired elasticity assurance, no value is returned.
65202
+ * When an elasticity assurance expires, data about the association between the instances and the private pool generated by the elasticity assurance becomes invalid. When you call this operation to query the expired elasticity assurance, no value is returned.
64910
65203
  *
64911
65204
  * @param request DescribeElasticityAssuranceInstancesRequest
64912
65205
  * @param runtime runtime options for this request RuntimeOptions
@@ -64965,7 +65258,7 @@ export default class Client extends OpenApi {
64965
65258
  }
64966
65259
 
64967
65260
  /**
64968
- * When an elasticity assurance expires, data about the association between instances and the private pool generated by the elasticity assurance becomes invalid. When you call this operation to query the expired elasticity assurance, no value is returned.
65261
+ * When an elasticity assurance expires, data about the association between the instances and the private pool generated by the elasticity assurance becomes invalid. When you call this operation to query the expired elasticity assurance, no value is returned.
64969
65262
  *
64970
65263
  * @param request DescribeElasticityAssuranceInstancesRequest
64971
65264
  * @return DescribeElasticityAssuranceInstancesResponse
@@ -65607,6 +65900,13 @@ export default class Client extends OpenApi {
65607
65900
  return await this.describeImagePipelineExecutionsWithOptions(request, runtime);
65608
65901
  }
65609
65902
 
65903
+ /**
65904
+ * 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.
65905
+ *
65906
+ * @param request DescribeImagePipelinesRequest
65907
+ * @param runtime runtime options for this request RuntimeOptions
65908
+ * @return DescribeImagePipelinesResponse
65909
+ */
65610
65910
  async describeImagePipelinesWithOptions(request: DescribeImagePipelinesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImagePipelinesResponse> {
65611
65911
  Util.validateModel(request);
65612
65912
  let query = { };
@@ -65679,6 +65979,12 @@ export default class Client extends OpenApi {
65679
65979
  return $tea.cast<DescribeImagePipelinesResponse>(await this.callApi(params, req, runtime), new DescribeImagePipelinesResponse({}));
65680
65980
  }
65681
65981
 
65982
+ /**
65983
+ * 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.
65984
+ *
65985
+ * @param request DescribeImagePipelinesRequest
65986
+ * @return DescribeImagePipelinesResponse
65987
+ */
65682
65988
  async describeImagePipelines(request: DescribeImagePipelinesRequest): Promise<DescribeImagePipelinesResponse> {
65683
65989
  let runtime = new $Util.RuntimeOptions({ });
65684
65990
  return await this.describeImagePipelinesWithOptions(request, runtime);
@@ -66565,6 +66871,14 @@ export default class Client extends OpenApi {
66565
66871
  return await this.describeInstanceRamRoleWithOptions(request, runtime);
66566
66872
  }
66567
66873
 
66874
+ /**
66875
+ * * For information about the lifecycle states of an ECS instance, see [Instance states](~~25687~~).
66876
+ * * You can also call this operation to query the list of ECS instances.
66877
+ *
66878
+ * @param request DescribeInstanceStatusRequest
66879
+ * @param runtime runtime options for this request RuntimeOptions
66880
+ * @return DescribeInstanceStatusResponse
66881
+ */
66568
66882
  async describeInstanceStatusWithOptions(request: DescribeInstanceStatusRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstanceStatusResponse> {
66569
66883
  Util.validateModel(request);
66570
66884
  let query = { };
@@ -66625,13 +66939,20 @@ export default class Client extends OpenApi {
66625
66939
  return $tea.cast<DescribeInstanceStatusResponse>(await this.callApi(params, req, runtime), new DescribeInstanceStatusResponse({}));
66626
66940
  }
66627
66941
 
66942
+ /**
66943
+ * * For information about the lifecycle states of an ECS instance, see [Instance states](~~25687~~).
66944
+ * * You can also call this operation to query the list of ECS instances.
66945
+ *
66946
+ * @param request DescribeInstanceStatusRequest
66947
+ * @return DescribeInstanceStatusResponse
66948
+ */
66628
66949
  async describeInstanceStatus(request: DescribeInstanceStatusRequest): Promise<DescribeInstanceStatusResponse> {
66629
66950
  let runtime = new $Util.RuntimeOptions({ });
66630
66951
  return await this.describeInstanceStatusWithOptions(request, runtime);
66631
66952
  }
66632
66953
 
66633
66954
  /**
66634
- * > The DescribeInstanceTopology operation is in invitational preview and is not commercially available.
66955
+ * > The DescribeInstanceTopology operation is in invitational preview and is not commercially available.
66635
66956
  *
66636
66957
  * @param request DescribeInstanceTopologyRequest
66637
66958
  * @param runtime runtime options for this request RuntimeOptions
@@ -66678,7 +66999,7 @@ export default class Client extends OpenApi {
66678
66999
  }
66679
67000
 
66680
67001
  /**
66681
- * > The DescribeInstanceTopology operation is in invitational preview and is not commercially available.
67002
+ * > The DescribeInstanceTopology operation is in invitational preview and is not commercially available.
66682
67003
  *
66683
67004
  * @param request DescribeInstanceTopologyRequest
66684
67005
  * @return DescribeInstanceTopologyResponse
@@ -66737,6 +67058,18 @@ export default class Client extends OpenApi {
66737
67058
  return await this.describeInstanceTypeFamiliesWithOptions(request, runtime);
66738
67059
  }
66739
67060
 
67061
+ /**
67062
+ * ## Description
67063
+ * Before you call this operation, take note of the following items:
67064
+ * * The MaxResults parameter specifies the maximum number of entries to return on each page. The maximum value of this parameter is changed from 1600 to 100. If you called this operation in 2022, you can continue to use 1600 as the maximum value of MaxResults until November 15, 2023. As of November 15, 2023, only 100 can be used as the maximum value of MaxResults. If you do not specify the NextToken parameter when you call the DescribeInstanceTypes operation, only the first page of results that contains up to 100 entries is returned. If you want to retrieve more results, specify the NextToken parameter to perform paged queries, or specify filter conditions to filter results. For information about the best practices for using DescribeInstanceTypes, see [Compare the specifications of instance types](https://help.aliyun.com/practice_detail/461278) .
67065
+ * * We recommend that you specify the MaxResults and NextToken parameters to perform paged queries. The first time you call the DescribeInstanceTypes operation, specify MaxResults to limit the maximum number of entries to return in the call. If the number of entries to return exceeds the specified value of MaxResults, the response includes a NextToken value. You can set NextToken to the return value and specify MaxResults in your next request to DescribeInstanceTypes to retrieve the next page of results.
67066
+ * * The DescribeInstanceTypes operation is used to query only the specifications and performance information of instance types. To query instance types that are available in a specific region, call the [DescribeAvailableResource](~~66186~~) operation.
67067
+ * * To use special instance types such as instance types that are unavailable for purchase, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm).
67068
+ *
67069
+ * @param request DescribeInstanceTypesRequest
67070
+ * @param runtime runtime options for this request RuntimeOptions
67071
+ * @return DescribeInstanceTypesResponse
67072
+ */
66740
67073
  async describeInstanceTypesWithOptions(request: DescribeInstanceTypesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstanceTypesResponse> {
66741
67074
  Util.validateModel(request);
66742
67075
  let query = { };
@@ -66921,6 +67254,17 @@ export default class Client extends OpenApi {
66921
67254
  return $tea.cast<DescribeInstanceTypesResponse>(await this.callApi(params, req, runtime), new DescribeInstanceTypesResponse({}));
66922
67255
  }
66923
67256
 
67257
+ /**
67258
+ * ## Description
67259
+ * Before you call this operation, take note of the following items:
67260
+ * * The MaxResults parameter specifies the maximum number of entries to return on each page. The maximum value of this parameter is changed from 1600 to 100. If you called this operation in 2022, you can continue to use 1600 as the maximum value of MaxResults until November 15, 2023. As of November 15, 2023, only 100 can be used as the maximum value of MaxResults. If you do not specify the NextToken parameter when you call the DescribeInstanceTypes operation, only the first page of results that contains up to 100 entries is returned. If you want to retrieve more results, specify the NextToken parameter to perform paged queries, or specify filter conditions to filter results. For information about the best practices for using DescribeInstanceTypes, see [Compare the specifications of instance types](https://help.aliyun.com/practice_detail/461278) .
67261
+ * * We recommend that you specify the MaxResults and NextToken parameters to perform paged queries. The first time you call the DescribeInstanceTypes operation, specify MaxResults to limit the maximum number of entries to return in the call. If the number of entries to return exceeds the specified value of MaxResults, the response includes a NextToken value. You can set NextToken to the return value and specify MaxResults in your next request to DescribeInstanceTypes to retrieve the next page of results.
67262
+ * * The DescribeInstanceTypes operation is used to query only the specifications and performance information of instance types. To query instance types that are available in a specific region, call the [DescribeAvailableResource](~~66186~~) operation.
67263
+ * * To use special instance types such as instance types that are unavailable for purchase, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm).
67264
+ *
67265
+ * @param request DescribeInstanceTypesRequest
67266
+ * @return DescribeInstanceTypesResponse
67267
+ */
66924
67268
  async describeInstanceTypes(request: DescribeInstanceTypesRequest): Promise<DescribeInstanceTypesResponse> {
66925
67269
  let runtime = new $Util.RuntimeOptions({ });
66926
67270
  return await this.describeInstanceTypesWithOptions(request, runtime);
@@ -66994,13 +67338,13 @@ export default class Client extends OpenApi {
66994
67338
  * When you call this operation, take note of the following items:
66995
67339
  * * 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.
66996
67340
  * * The **KeepAlive** time of a connection to a VNC management terminal is 60 seconds. If you do not interact with the VNC management terminal within 60 seconds, the VNC management terminal is automatically disconnected.
66997
- * * When the VNC management terminal is disconnected, you can only reconnect to the VNC management terminal up to 30 times a minute.
66998
- * * You need to add `vncUrl`, `instanceId`, `isWindows`, and `password` parameters at the end of the URL `https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?`. Separate each parameter with an ampersand (`&`).`` Where,
66999
- * * `vncUrl:` the `VncUrl` value returned after a successful query.
67341
+ * * After the VNC management terminal is disconnected, you can only reconnect to the VNC management terminal a maximum of 30 times a minute.
67342
+ * * You need to add `vncUrl`, `instanceId`, `isWindows`, and `password` parameters at the end of the URL `https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?`. Separate each parameter with an ampersand (`&`).``
67343
+ * * `vncUrl:` the value of the `VncUrl` parameter that is returned after a successful query.
67000
67344
  * * `instanceId:` the ID of your instance.
67001
67345
  * * `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.
67002
- * * `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.
67003
- * Example:
67346
+ * * `password:` Optional. A six-character password that is used to connect to the VNC management terminal. It can contain digits and letters. If you specify this parameter, you do not need to enter your password again when the connection is being established.
67347
+ * Examples:
67004
67348
  * ```
67005
67349
  * ```
67006
67350
  * <https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%\\\\*\\\\*\\\\*\\\\*&instanceId=i-wz9hhwq5a6tm\\\\*\\\\*\\\\*\\\\*&isWindows=true> \\`\\`\\`
@@ -67060,13 +67404,13 @@ export default class Client extends OpenApi {
67060
67404
  * When you call this operation, take note of the following items:
67061
67405
  * * 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.
67062
67406
  * * The **KeepAlive** time of a connection to a VNC management terminal is 60 seconds. If you do not interact with the VNC management terminal within 60 seconds, the VNC management terminal is automatically disconnected.
67063
- * * When the VNC management terminal is disconnected, you can only reconnect to the VNC management terminal up to 30 times a minute.
67064
- * * You need to add `vncUrl`, `instanceId`, `isWindows`, and `password` parameters at the end of the URL `https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?`. Separate each parameter with an ampersand (`&`).`` Where,
67065
- * * `vncUrl:` the `VncUrl` value returned after a successful query.
67407
+ * * After the VNC management terminal is disconnected, you can only reconnect to the VNC management terminal a maximum of 30 times a minute.
67408
+ * * You need to add `vncUrl`, `instanceId`, `isWindows`, and `password` parameters at the end of the URL `https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?`. Separate each parameter with an ampersand (`&`).``
67409
+ * * `vncUrl:` the value of the `VncUrl` parameter that is returned after a successful query.
67066
67410
  * * `instanceId:` the ID of your instance.
67067
67411
  * * `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.
67068
- * * `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.
67069
- * Example:
67412
+ * * `password:` Optional. A six-character password that is used to connect to the VNC management terminal. It can contain digits and letters. If you specify this parameter, you do not need to enter your password again when the connection is being established.
67413
+ * Examples:
67070
67414
  * ```
67071
67415
  * ```
67072
67416
  * <https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%\\\\*\\\\*\\\\*\\\\*&instanceId=i-wz9hhwq5a6tm\\\\*\\\\*\\\\*\\\\*&isWindows=true> \\`\\`\\`
@@ -67301,7 +67645,7 @@ export default class Client extends OpenApi {
67301
67645
  }
67302
67646
 
67303
67647
  /**
67304
- * The response includes instance states and instance system events in the Scheduled state.
67648
+ * The response includes instance states and instance system events that are in the Scheduled state.
67305
67649
  * If a period is specified, events are queried based on the specified period.
67306
67650
  *
67307
67651
  * @param request DescribeInstancesFullStatusRequest
@@ -67393,7 +67737,7 @@ export default class Client extends OpenApi {
67393
67737
  }
67394
67738
 
67395
67739
  /**
67396
- * The response includes instance states and instance system events in the Scheduled state.
67740
+ * The response includes instance states and instance system events that are in the Scheduled state.
67397
67741
  * If a period is specified, events are queried based on the specified period.
67398
67742
  *
67399
67743
  * @param request DescribeInstancesFullStatusRequest
@@ -67404,6 +67748,14 @@ export default class Client extends OpenApi {
67404
67748
  return await this.describeInstancesFullStatusWithOptions(request, runtime);
67405
67749
  }
67406
67750
 
67751
+ /**
67752
+ * * After you run a command, the command may not succeed or return the expected results. You can call this operation to query the actual execution results.
67753
+ * * You can query information about command executions within the last four weeks. A maximum of 100,000 pieces of execution information can be retained.
67754
+ *
67755
+ * @param request DescribeInvocationResultsRequest
67756
+ * @param runtime runtime options for this request RuntimeOptions
67757
+ * @return DescribeInvocationResultsResponse
67758
+ */
67407
67759
  async describeInvocationResultsWithOptions(request: DescribeInvocationResultsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInvocationResultsResponse> {
67408
67760
  Util.validateModel(request);
67409
67761
  let query = { };
@@ -67488,6 +67840,13 @@ export default class Client extends OpenApi {
67488
67840
  return $tea.cast<DescribeInvocationResultsResponse>(await this.callApi(params, req, runtime), new DescribeInvocationResultsResponse({}));
67489
67841
  }
67490
67842
 
67843
+ /**
67844
+ * * After you run a command, the command may not succeed or return the expected results. You can call this operation to query the actual execution results.
67845
+ * * You can query information about command executions within the last four weeks. A maximum of 100,000 pieces of execution information can be retained.
67846
+ *
67847
+ * @param request DescribeInvocationResultsRequest
67848
+ * @return DescribeInvocationResultsResponse
67849
+ */
67491
67850
  async describeInvocationResults(request: DescribeInvocationResultsRequest): Promise<DescribeInvocationResultsResponse> {
67492
67851
  let runtime = new $Util.RuntimeOptions({ });
67493
67852
  return await this.describeInvocationResultsWithOptions(request, runtime);
@@ -68171,6 +68530,14 @@ export default class Client extends OpenApi {
68171
68530
  return await this.describeNetworkInterfacePermissionsWithOptions(request, runtime);
68172
68531
  }
68173
68532
 
68533
+ /**
68534
+ * The `DescribeNetworkInterfaces` operation supports multiple pagination mechanisms. We recommend that you set `MaxResults` to specify the maximum number of entries to return in each request. The returned value of `NextToken` is a pagination token, which can be used in the next request to retrieve a new page of results. When you perform the next request, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
68535
+ * > If you specify `MaxResults` or `NextToken`, the system returns results based on the preceding pagination mechanism. Otherwise, the system paginates the results based on the `PageNumber` and `PageSize` parameters.
68536
+ *
68537
+ * @param request DescribeNetworkInterfacesRequest
68538
+ * @param runtime runtime options for this request RuntimeOptions
68539
+ * @return DescribeNetworkInterfacesResponse
68540
+ */
68174
68541
  async describeNetworkInterfacesWithOptions(request: DescribeNetworkInterfacesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeNetworkInterfacesResponse> {
68175
68542
  Util.validateModel(request);
68176
68543
  let query = { };
@@ -68291,6 +68658,13 @@ export default class Client extends OpenApi {
68291
68658
  return $tea.cast<DescribeNetworkInterfacesResponse>(await this.callApi(params, req, runtime), new DescribeNetworkInterfacesResponse({}));
68292
68659
  }
68293
68660
 
68661
+ /**
68662
+ * The `DescribeNetworkInterfaces` operation supports multiple pagination mechanisms. We recommend that you set `MaxResults` to specify the maximum number of entries to return in each request. The returned value of `NextToken` is a pagination token, which can be used in the next request to retrieve a new page of results. When you perform the next request, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
68663
+ * > If you specify `MaxResults` or `NextToken`, the system returns results based on the preceding pagination mechanism. Otherwise, the system paginates the results based on the `PageNumber` and `PageSize` parameters.
68664
+ *
68665
+ * @param request DescribeNetworkInterfacesRequest
68666
+ * @return DescribeNetworkInterfacesResponse
68667
+ */
68294
68668
  async describeNetworkInterfaces(request: DescribeNetworkInterfacesRequest): Promise<DescribeNetworkInterfacesResponse> {
68295
68669
  let runtime = new $Util.RuntimeOptions({ });
68296
68670
  return await this.describeNetworkInterfacesWithOptions(request, runtime);
@@ -68566,6 +68940,14 @@ export default class Client extends OpenApi {
68566
68940
  return await this.describePrefixListAttributesWithOptions(request, runtime);
68567
68941
  }
68568
68942
 
68943
+ /**
68944
+ * ## Description
68945
+ * You can specify the `AddressFamily`, `PrefixListId.N`, and `PrefixListName` request parameters to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
68946
+ *
68947
+ * @param request DescribePrefixListsRequest
68948
+ * @param runtime runtime options for this request RuntimeOptions
68949
+ * @return DescribePrefixListsResponse
68950
+ */
68569
68951
  async describePrefixListsWithOptions(request: DescribePrefixListsRequest, runtime: $Util.RuntimeOptions): Promise<DescribePrefixListsResponse> {
68570
68952
  Util.validateModel(request);
68571
68953
  let query = { };
@@ -68630,11 +69012,34 @@ export default class Client extends OpenApi {
68630
69012
  return $tea.cast<DescribePrefixListsResponse>(await this.callApi(params, req, runtime), new DescribePrefixListsResponse({}));
68631
69013
  }
68632
69014
 
69015
+ /**
69016
+ * ## Description
69017
+ * You can specify the `AddressFamily`, `PrefixListId.N`, and `PrefixListName` request parameters to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
69018
+ *
69019
+ * @param request DescribePrefixListsRequest
69020
+ * @return DescribePrefixListsResponse
69021
+ */
68633
69022
  async describePrefixLists(request: DescribePrefixListsRequest): Promise<DescribePrefixListsResponse> {
68634
69023
  let runtime = new $Util.RuntimeOptions({ });
68635
69024
  return await this.describePrefixListsWithOptions(request, runtime);
68636
69025
  }
68637
69026
 
69027
+ /**
69028
+ * ## Description
69029
+ * * The required parameters vary based on the types of resources whose prices you want to query.
69030
+ * * When the `ResourceType` parameter is set to instance, you must specify the `InstanceType` parameter.
69031
+ * * When the `ResourceType` parameter is set to disk, you must specify both the `DataDisk.1.Category` and `DataDisk.1.Size` parameters. When the `ResourceType` parameter is set to disk, only pay-as-you-go prices of cloud disks are returned. In this scenario, the `PriceUnit` parameter must be set to `Hour`.
69032
+ * * When the `ResourceType` parameter is set to ddh, you must specify the `DedicatedHostType` parameter.
69033
+ * * When the `ResourceType` parameter is set to ElasticityAssurance, you must specify the `InstanceType` parameter.
69034
+ * * When the `ResourceType` parameter is set to CapacityReservation, you must specify the `InstanceType` parameter.
69035
+ * * When the `ResourceType` parameter is set to bandwidth, only the pay-by-traffic (`PayByTraffic`) price for network usage is returned.
69036
+ * * When the `ResourceType` parameter is set to instance, the prices of up to four data disks can be queried.
69037
+ * * By default, the `ChargeType` parameter is set to `PostPaid`. You can specify the `PriceUnit` parameter to query the prices of ECS resources that have different billing cycles.
69038
+ *
69039
+ * @param request DescribePriceRequest
69040
+ * @param runtime runtime options for this request RuntimeOptions
69041
+ * @return DescribePriceResponse
69042
+ */
68638
69043
  async describePriceWithOptions(request: DescribePriceRequest, runtime: $Util.RuntimeOptions): Promise<DescribePriceResponse> {
68639
69044
  Util.validateModel(request);
68640
69045
  let query = { };
@@ -68779,6 +69184,21 @@ export default class Client extends OpenApi {
68779
69184
  return $tea.cast<DescribePriceResponse>(await this.callApi(params, req, runtime), new DescribePriceResponse({}));
68780
69185
  }
68781
69186
 
69187
+ /**
69188
+ * ## Description
69189
+ * * The required parameters vary based on the types of resources whose prices you want to query.
69190
+ * * When the `ResourceType` parameter is set to instance, you must specify the `InstanceType` parameter.
69191
+ * * When the `ResourceType` parameter is set to disk, you must specify both the `DataDisk.1.Category` and `DataDisk.1.Size` parameters. When the `ResourceType` parameter is set to disk, only pay-as-you-go prices of cloud disks are returned. In this scenario, the `PriceUnit` parameter must be set to `Hour`.
69192
+ * * When the `ResourceType` parameter is set to ddh, you must specify the `DedicatedHostType` parameter.
69193
+ * * When the `ResourceType` parameter is set to ElasticityAssurance, you must specify the `InstanceType` parameter.
69194
+ * * When the `ResourceType` parameter is set to CapacityReservation, you must specify the `InstanceType` parameter.
69195
+ * * When the `ResourceType` parameter is set to bandwidth, only the pay-by-traffic (`PayByTraffic`) price for network usage is returned.
69196
+ * * When the `ResourceType` parameter is set to instance, the prices of up to four data disks can be queried.
69197
+ * * By default, the `ChargeType` parameter is set to `PostPaid`. You can specify the `PriceUnit` parameter to query the prices of ECS resources that have different billing cycles.
69198
+ *
69199
+ * @param request DescribePriceRequest
69200
+ * @return DescribePriceResponse
69201
+ */
68782
69202
  async describePrice(request: DescribePriceRequest): Promise<DescribePriceResponse> {
68783
69203
  let runtime = new $Util.RuntimeOptions({ });
68784
69204
  return await this.describePriceWithOptions(request, runtime);
@@ -68955,6 +69375,17 @@ export default class Client extends OpenApi {
68955
69375
  return await this.describeRegionsWithOptions(request, runtime);
68956
69376
  }
68957
69377
 
69378
+ /**
69379
+ * ## Description
69380
+ * * You can call this operation to query the price for renewing a subscription instance for a specific period of time or to a synchronized expiration date.
69381
+ * * Take note of the following items:
69382
+ * * If you set only the required parameters, the price for renewing a specified instance for one month is queried by default.
69383
+ * * The renewal period-related parameter pair (`Period` and `PeriodUnit`) and the synchronized expiration date-related parameter (`ExpectedRenewDay`) are mutually exclusive. You cannot set these parameters together to query the prices for renewing a specified instance for a period of time and to a synchronized expiration date at the same time.
69384
+ *
69385
+ * @param request DescribeRenewalPriceRequest
69386
+ * @param runtime runtime options for this request RuntimeOptions
69387
+ * @return DescribeRenewalPriceResponse
69388
+ */
68958
69389
  async describeRenewalPriceWithOptions(request: DescribeRenewalPriceRequest, runtime: $Util.RuntimeOptions): Promise<DescribeRenewalPriceResponse> {
68959
69390
  Util.validateModel(request);
68960
69391
  let query = { };
@@ -69015,6 +69446,16 @@ export default class Client extends OpenApi {
69015
69446
  return $tea.cast<DescribeRenewalPriceResponse>(await this.callApi(params, req, runtime), new DescribeRenewalPriceResponse({}));
69016
69447
  }
69017
69448
 
69449
+ /**
69450
+ * ## Description
69451
+ * * You can call this operation to query the price for renewing a subscription instance for a specific period of time or to a synchronized expiration date.
69452
+ * * Take note of the following items:
69453
+ * * If you set only the required parameters, the price for renewing a specified instance for one month is queried by default.
69454
+ * * The renewal period-related parameter pair (`Period` and `PeriodUnit`) and the synchronized expiration date-related parameter (`ExpectedRenewDay`) are mutually exclusive. You cannot set these parameters together to query the prices for renewing a specified instance for a period of time and to a synchronized expiration date at the same time.
69455
+ *
69456
+ * @param request DescribeRenewalPriceRequest
69457
+ * @return DescribeRenewalPriceResponse
69458
+ */
69018
69459
  async describeRenewalPrice(request: DescribeRenewalPriceRequest): Promise<DescribeRenewalPriceResponse> {
69019
69460
  let runtime = new $Util.RuntimeOptions({ });
69020
69461
  return await this.describeRenewalPriceWithOptions(request, runtime);
@@ -69230,6 +69671,10 @@ export default class Client extends OpenApi {
69230
69671
  async describeResourcesModificationWithOptions(request: DescribeResourcesModificationRequest, runtime: $Util.RuntimeOptions): Promise<DescribeResourcesModificationResponse> {
69231
69672
  Util.validateModel(request);
69232
69673
  let query = { };
69674
+ if (!Util.isUnset(request.conditions)) {
69675
+ query["Conditions"] = request.conditions;
69676
+ }
69677
+
69233
69678
  if (!Util.isUnset(request.cores)) {
69234
69679
  query["Cores"] = request.cores;
69235
69680
  }
@@ -69897,6 +70342,15 @@ export default class Client extends OpenApi {
69897
70342
  return await this.describeSnapshotGroupsWithOptions(request, runtime);
69898
70343
  }
69899
70344
 
70345
+ /**
70346
+ * When you call this operation, take note of the following items:
70347
+ * * You can specify multiple request parameters such as `RegionId`, `DiskIds`, and `InstanceId` to be queried. Specified parameters have logical AND relations.
70348
+ * * Only the specified parameters are used as filter conditions. If the `DiskIds` and `SnapshotLinkIds` parameters are set to empty JSON arrays, they are regarded as valid filter conditions and an empty result is returned.
70349
+ *
70350
+ * @param request DescribeSnapshotLinksRequest
70351
+ * @param runtime runtime options for this request RuntimeOptions
70352
+ * @return DescribeSnapshotLinksResponse
70353
+ */
69900
70354
  async describeSnapshotLinksWithOptions(request: DescribeSnapshotLinksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSnapshotLinksResponse> {
69901
70355
  Util.validateModel(request);
69902
70356
  let query = { };
@@ -69957,6 +70411,14 @@ export default class Client extends OpenApi {
69957
70411
  return $tea.cast<DescribeSnapshotLinksResponse>(await this.callApi(params, req, runtime), new DescribeSnapshotLinksResponse({}));
69958
70412
  }
69959
70413
 
70414
+ /**
70415
+ * When you call this operation, take note of the following items:
70416
+ * * You can specify multiple request parameters such as `RegionId`, `DiskIds`, and `InstanceId` to be queried. Specified parameters have logical AND relations.
70417
+ * * Only the specified parameters are used as filter conditions. If the `DiskIds` and `SnapshotLinkIds` parameters are set to empty JSON arrays, they are regarded as valid filter conditions and an empty result is returned.
70418
+ *
70419
+ * @param request DescribeSnapshotLinksRequest
70420
+ * @return DescribeSnapshotLinksResponse
70421
+ */
69960
70422
  async describeSnapshotLinks(request: DescribeSnapshotLinksRequest): Promise<DescribeSnapshotLinksResponse> {
69961
70423
  let runtime = new $Util.RuntimeOptions({ });
69962
70424
  return await this.describeSnapshotLinksWithOptions(request, runtime);
@@ -70711,6 +71173,13 @@ export default class Client extends OpenApi {
70711
71173
  return await this.describeStorageSetsWithOptions(request, runtime);
70712
71174
  }
70713
71175
 
71176
+ /**
71177
+ * If a tag key is specified and no tag values are specified, all tags that contain the tag key are returned. If a tag key-value pair is specified, only tags that exactly match the key-value pair are returned.
71178
+ *
71179
+ * @param request DescribeTagsRequest
71180
+ * @param runtime runtime options for this request RuntimeOptions
71181
+ * @return DescribeTagsResponse
71182
+ */
70714
71183
  async describeTagsWithOptions(request: DescribeTagsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeTagsResponse> {
70715
71184
  Util.validateModel(request);
70716
71185
  let query = { };
@@ -70771,6 +71240,12 @@ export default class Client extends OpenApi {
70771
71240
  return $tea.cast<DescribeTagsResponse>(await this.callApi(params, req, runtime), new DescribeTagsResponse({}));
70772
71241
  }
70773
71242
 
71243
+ /**
71244
+ * If a tag key is specified and no tag values are specified, all tags that contain the tag key are returned. If a tag key-value pair is specified, only tags that exactly match the key-value pair are returned.
71245
+ *
71246
+ * @param request DescribeTagsRequest
71247
+ * @return DescribeTagsResponse
71248
+ */
70774
71249
  async describeTags(request: DescribeTagsRequest): Promise<DescribeTagsResponse> {
70775
71250
  let runtime = new $Util.RuntimeOptions({ });
70776
71251
  return await this.describeTagsWithOptions(request, runtime);
@@ -71521,11 +71996,11 @@ export default class Client extends OpenApi {
71521
71996
 
71522
71997
  /**
71523
71998
  * When you call this operation, take note of the following items:
71524
- * * The disk you want to detach must be in the `In_Use` state.
71525
- * * The instance from which you want to detach a data disk must be in the `Running` or `Stopped`state.********
71526
- * * The instance from which you want to detach the system disk must be in the `Stopped` state.****
71527
- * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.``
71528
- * * DetachDisk is an asynchronous operation. It takes about one minute for a disk to be detached from an instance after the operation is called.
71999
+ * * The disk that you want to detach must be in the In Use (`In_Use`) state.
72000
+ * * The instance from which you want to detach a data disk must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
72001
+ * * The instance from which you want to detach the system disk must be in the **Stopped** (`Stopped`) state.
72002
+ * * If the `OperationLocks` parameter in the response contains `"LockReason" : "security"` when you query the instance information, the instance is locked for security reasons and all operations do not take effect on the instance.
72003
+ * * DetachDisk is an asynchronous operation. It takes about 1 minute for a disk to be detached from an instance after the operation is called.
71529
72004
  *
71530
72005
  * @param request DetachDiskRequest
71531
72006
  * @param runtime runtime options for this request RuntimeOptions
@@ -71581,11 +72056,11 @@ export default class Client extends OpenApi {
71581
72056
 
71582
72057
  /**
71583
72058
  * When you call this operation, take note of the following items:
71584
- * * The disk you want to detach must be in the `In_Use` state.
71585
- * * The instance from which you want to detach a data disk must be in the `Running` or `Stopped`state.********
71586
- * * The instance from which you want to detach the system disk must be in the `Stopped` state.****
71587
- * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.``
71588
- * * DetachDisk is an asynchronous operation. It takes about one minute for a disk to be detached from an instance after the operation is called.
72059
+ * * The disk that you want to detach must be in the In Use (`In_Use`) state.
72060
+ * * The instance from which you want to detach a data disk must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
72061
+ * * The instance from which you want to detach the system disk must be in the **Stopped** (`Stopped`) state.
72062
+ * * If the `OperationLocks` parameter in the response contains `"LockReason" : "security"` when you query the instance information, the instance is locked for security reasons and all operations do not take effect on the instance.
72063
+ * * DetachDisk is an asynchronous operation. It takes about 1 minute for a disk to be detached from an instance after the operation is called.
71589
72064
  *
71590
72065
  * @param request DetachDiskRequest
71591
72066
  * @return DetachDiskResponse
@@ -71644,6 +72119,15 @@ export default class Client extends OpenApi {
71644
72119
  return await this.detachInstanceRamRoleWithOptions(request, runtime);
71645
72120
  }
71646
72121
 
72122
+ /**
72123
+ * When you call this operation, take note of the following items:
72124
+ * * After you detach an SSH key pair from an instance, you must call the [RebootInstance](~~25502~~) operation to restart the instance for the detach operation to take effect.
72125
+ * * The username and password authentication method is automatically selected for an instance after you unbind an SSH key pair from the instance.
72126
+ *
72127
+ * @param request DetachKeyPairRequest
72128
+ * @param runtime runtime options for this request RuntimeOptions
72129
+ * @return DetachKeyPairResponse
72130
+ */
71647
72131
  async detachKeyPairWithOptions(request: DetachKeyPairRequest, runtime: $Util.RuntimeOptions): Promise<DetachKeyPairResponse> {
71648
72132
  Util.validateModel(request);
71649
72133
  let query = { };
@@ -71688,11 +72172,36 @@ export default class Client extends OpenApi {
71688
72172
  return $tea.cast<DetachKeyPairResponse>(await this.callApi(params, req, runtime), new DetachKeyPairResponse({}));
71689
72173
  }
71690
72174
 
72175
+ /**
72176
+ * When you call this operation, take note of the following items:
72177
+ * * After you detach an SSH key pair from an instance, you must call the [RebootInstance](~~25502~~) operation to restart the instance for the detach operation to take effect.
72178
+ * * The username and password authentication method is automatically selected for an instance after you unbind an SSH key pair from the instance.
72179
+ *
72180
+ * @param request DetachKeyPairRequest
72181
+ * @return DetachKeyPairResponse
72182
+ */
71691
72183
  async detachKeyPair(request: DetachKeyPairRequest): Promise<DetachKeyPairResponse> {
71692
72184
  let runtime = new $Util.RuntimeOptions({ });
71693
72185
  return await this.detachKeyPairWithOptions(request, runtime);
71694
72186
  }
71695
72187
 
72188
+ /**
72189
+ * ## Description
72190
+ * When you call this operation, take note of the following items:
72191
+ * * Primary ENIs cannot be detached from ECS instances.
72192
+ * * The ENI must be in the Detaching (Detaching) or InUse (InUse) state.
72193
+ * * The instance must be in the Running (Running) or Stopped (Stopped) state.
72194
+ * * 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.
72195
+ * ![](https://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/file-manage-files/en-US/20230223/uemr/DetachNetworkInterface.png)
72196
+ * * If the ENI is in the Detaching state, the ENI detachment request is sent and the ENI is being detached from its associated instance.
72197
+ * * If the ENI is in the Available state, the ENI is detached from its associated instance.
72198
+ * * 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.
72199
+ * **For information about examples on how to call this operation, see **[Detach an ENI](~~471551~~).
72200
+ *
72201
+ * @param request DetachNetworkInterfaceRequest
72202
+ * @param runtime runtime options for this request RuntimeOptions
72203
+ * @return DetachNetworkInterfaceResponse
72204
+ */
71696
72205
  async detachNetworkInterfaceWithOptions(request: DetachNetworkInterfaceRequest, runtime: $Util.RuntimeOptions): Promise<DetachNetworkInterfaceResponse> {
71697
72206
  Util.validateModel(request);
71698
72207
  let query = { };
@@ -71749,11 +72258,35 @@ export default class Client extends OpenApi {
71749
72258
  return $tea.cast<DetachNetworkInterfaceResponse>(await this.callApi(params, req, runtime), new DetachNetworkInterfaceResponse({}));
71750
72259
  }
71751
72260
 
72261
+ /**
72262
+ * ## Description
72263
+ * When you call this operation, take note of the following items:
72264
+ * * Primary ENIs cannot be detached from ECS instances.
72265
+ * * The ENI must be in the Detaching (Detaching) or InUse (InUse) state.
72266
+ * * The instance must be in the Running (Running) or Stopped (Stopped) state.
72267
+ * * 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.
72268
+ * ![](https://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/file-manage-files/en-US/20230223/uemr/DetachNetworkInterface.png)
72269
+ * * If the ENI is in the Detaching state, the ENI detachment request is sent and the ENI is being detached from its associated instance.
72270
+ * * If the ENI is in the Available state, the ENI is detached from its associated instance.
72271
+ * * 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.
72272
+ * **For information about examples on how to call this operation, see **[Detach an ENI](~~471551~~).
72273
+ *
72274
+ * @param request DetachNetworkInterfaceRequest
72275
+ * @return DetachNetworkInterfaceResponse
72276
+ */
71752
72277
  async detachNetworkInterface(request: DetachNetworkInterfaceRequest): Promise<DetachNetworkInterfaceResponse> {
71753
72278
  let runtime = new $Util.RuntimeOptions({ });
71754
72279
  return await this.detachNetworkInterfaceWithOptions(request, runtime);
71755
72280
  }
71756
72281
 
72282
+ /**
72283
+ * ## Description
72284
+ * To prevent an activation code from being leaked, you can call the DisableActivation operation to disable the activation code. Disabled activation codes cannot be used to register new managed instances. However, managed instances that are already registered are not affected.
72285
+ *
72286
+ * @param request DisableActivationRequest
72287
+ * @param runtime runtime options for this request RuntimeOptions
72288
+ * @return DisableActivationResponse
72289
+ */
71757
72290
  async disableActivationWithOptions(request: DisableActivationRequest, runtime: $Util.RuntimeOptions): Promise<DisableActivationResponse> {
71758
72291
  Util.validateModel(request);
71759
72292
  let query = { };
@@ -71802,6 +72335,13 @@ export default class Client extends OpenApi {
71802
72335
  return $tea.cast<DisableActivationResponse>(await this.callApi(params, req, runtime), new DisableActivationResponse({}));
71803
72336
  }
71804
72337
 
72338
+ /**
72339
+ * ## Description
72340
+ * To prevent an activation code from being leaked, you can call the DisableActivation operation to disable the activation code. Disabled activation codes cannot be used to register new managed instances. However, managed instances that are already registered are not affected.
72341
+ *
72342
+ * @param request DisableActivationRequest
72343
+ * @return DisableActivationResponse
72344
+ */
71805
72345
  async disableActivation(request: DisableActivationRequest): Promise<DisableActivationResponse> {
71806
72346
  let runtime = new $Util.RuntimeOptions({ });
71807
72347
  return await this.disableActivationWithOptions(request, runtime);
@@ -72303,6 +72843,15 @@ export default class Client extends OpenApi {
72303
72843
  return await this.exportSnapshotWithOptions(request, runtime);
72304
72844
  }
72305
72845
 
72846
+ /**
72847
+ * * ECS is a virtualized cloud-based service and cannot be connected to display devices. However, Alibaba Cloud caches system command outputs for the last start, restart, or shutdown of ECS instances. You can call the GetInstanceConsoleOutput operation to obtain the command outputs.
72848
+ * * The command outputs of instances that use the retired instance types cannot be obtained. For more information, see [Retired instance types](~~55263~~).
72849
+ * * The command outputs of Windows instances cannot be obtained.
72850
+ *
72851
+ * @param request GetInstanceConsoleOutputRequest
72852
+ * @param runtime runtime options for this request RuntimeOptions
72853
+ * @return GetInstanceConsoleOutputResponse
72854
+ */
72306
72855
  async getInstanceConsoleOutputWithOptions(request: GetInstanceConsoleOutputRequest, runtime: $Util.RuntimeOptions): Promise<GetInstanceConsoleOutputResponse> {
72307
72856
  Util.validateModel(request);
72308
72857
  let query = { };
@@ -72355,11 +72904,29 @@ export default class Client extends OpenApi {
72355
72904
  return $tea.cast<GetInstanceConsoleOutputResponse>(await this.callApi(params, req, runtime), new GetInstanceConsoleOutputResponse({}));
72356
72905
  }
72357
72906
 
72907
+ /**
72908
+ * * ECS is a virtualized cloud-based service and cannot be connected to display devices. However, Alibaba Cloud caches system command outputs for the last start, restart, or shutdown of ECS instances. You can call the GetInstanceConsoleOutput operation to obtain the command outputs.
72909
+ * * The command outputs of instances that use the retired instance types cannot be obtained. For more information, see [Retired instance types](~~55263~~).
72910
+ * * The command outputs of Windows instances cannot be obtained.
72911
+ *
72912
+ * @param request GetInstanceConsoleOutputRequest
72913
+ * @return GetInstanceConsoleOutputResponse
72914
+ */
72358
72915
  async getInstanceConsoleOutput(request: GetInstanceConsoleOutputRequest): Promise<GetInstanceConsoleOutputResponse> {
72359
72916
  let runtime = new $Util.RuntimeOptions({ });
72360
72917
  return await this.getInstanceConsoleOutputWithOptions(request, runtime);
72361
72918
  }
72362
72919
 
72920
+ /**
72921
+ * ECS returns an instance screenshot that is in the JPG format and encoded in Base64. You must manually decode the screenshot. We recommend that you call this operation for troubleshooting and diagnosis. When you call this operation, take note of the following items:
72922
+ * * The instance must be in the Running state.
72923
+ * * You cannot obtain screenshots of instances whose instance types have been retired. For more information, see [Retired instance types](~~55263~~).
72924
+ * * If you want to call this operation on the same instance multiple times, you must wait at least 10 seconds between each call. Otherwise, the `Throttling` error code is returned.
72925
+ *
72926
+ * @param request GetInstanceScreenshotRequest
72927
+ * @param runtime runtime options for this request RuntimeOptions
72928
+ * @return GetInstanceScreenshotResponse
72929
+ */
72363
72930
  async getInstanceScreenshotWithOptions(request: GetInstanceScreenshotRequest, runtime: $Util.RuntimeOptions): Promise<GetInstanceScreenshotResponse> {
72364
72931
  Util.validateModel(request);
72365
72932
  let query = { };
@@ -72412,6 +72979,15 @@ export default class Client extends OpenApi {
72412
72979
  return $tea.cast<GetInstanceScreenshotResponse>(await this.callApi(params, req, runtime), new GetInstanceScreenshotResponse({}));
72413
72980
  }
72414
72981
 
72982
+ /**
72983
+ * ECS returns an instance screenshot that is in the JPG format and encoded in Base64. You must manually decode the screenshot. We recommend that you call this operation for troubleshooting and diagnosis. When you call this operation, take note of the following items:
72984
+ * * The instance must be in the Running state.
72985
+ * * You cannot obtain screenshots of instances whose instance types have been retired. For more information, see [Retired instance types](~~55263~~).
72986
+ * * If you want to call this operation on the same instance multiple times, you must wait at least 10 seconds between each call. Otherwise, the `Throttling` error code is returned.
72987
+ *
72988
+ * @param request GetInstanceScreenshotRequest
72989
+ * @return GetInstanceScreenshotResponse
72990
+ */
72415
72991
  async getInstanceScreenshot(request: GetInstanceScreenshotRequest): Promise<GetInstanceScreenshotResponse> {
72416
72992
  let runtime = new $Util.RuntimeOptions({ });
72417
72993
  return await this.getInstanceScreenshotWithOptions(request, runtime);
@@ -72617,6 +73193,27 @@ export default class Client extends OpenApi {
72617
73193
  return await this.importImageWithOptions(request, runtime);
72618
73194
  }
72619
73195
 
73196
+ /**
73197
+ * When you call this operation, take note of the following items:
73198
+ * * A maximum of 500 key pairs can be created in each region.
73199
+ * * The key pair that you wan to import must support one of the following encryption methods:
73200
+ * * rsa
73201
+ * * dsa
73202
+ * * ssh-rsa
73203
+ * * ssh-dss
73204
+ * * ecdsa
73205
+ * * ssh-rsa-cert-v00@openssh.com
73206
+ * * ssh-dss-cert-v00@openssh.com
73207
+ * * ssh-rsa-cert-v01@openssh.com
73208
+ * * ssh-dss-cert-v01@openssh.com
73209
+ * * ecdsa-sha2-nistp256-cert-v01@openssh.com
73210
+ * * ecdsa-sha2-nistp384-cert-v01@openssh.com
73211
+ * * ecdsa-sha2-nistp521-cert-v01@openssh.com
73212
+ *
73213
+ * @param request ImportKeyPairRequest
73214
+ * @param runtime runtime options for this request RuntimeOptions
73215
+ * @return ImportKeyPairResponse
73216
+ */
72620
73217
  async importKeyPairWithOptions(request: ImportKeyPairRequest, runtime: $Util.RuntimeOptions): Promise<ImportKeyPairResponse> {
72621
73218
  Util.validateModel(request);
72622
73219
  let query = { };
@@ -72669,6 +73266,26 @@ export default class Client extends OpenApi {
72669
73266
  return $tea.cast<ImportKeyPairResponse>(await this.callApi(params, req, runtime), new ImportKeyPairResponse({}));
72670
73267
  }
72671
73268
 
73269
+ /**
73270
+ * When you call this operation, take note of the following items:
73271
+ * * A maximum of 500 key pairs can be created in each region.
73272
+ * * The key pair that you wan to import must support one of the following encryption methods:
73273
+ * * rsa
73274
+ * * dsa
73275
+ * * ssh-rsa
73276
+ * * ssh-dss
73277
+ * * ecdsa
73278
+ * * ssh-rsa-cert-v00@openssh.com
73279
+ * * ssh-dss-cert-v00@openssh.com
73280
+ * * ssh-rsa-cert-v01@openssh.com
73281
+ * * ssh-dss-cert-v01@openssh.com
73282
+ * * ecdsa-sha2-nistp256-cert-v01@openssh.com
73283
+ * * ecdsa-sha2-nistp384-cert-v01@openssh.com
73284
+ * * ecdsa-sha2-nistp521-cert-v01@openssh.com
73285
+ *
73286
+ * @param request ImportKeyPairRequest
73287
+ * @return ImportKeyPairResponse
73288
+ */
72672
73289
  async importKeyPair(request: ImportKeyPairRequest): Promise<ImportKeyPairResponse> {
72673
73290
  let runtime = new $Util.RuntimeOptions({ });
72674
73291
  return await this.importKeyPairWithOptions(request, runtime);
@@ -72812,6 +73429,26 @@ export default class Client extends OpenApi {
72812
73429
  return await this.installCloudAssistantWithOptions(request, runtime);
72813
73430
  }
72814
73431
 
73432
+ /**
73433
+ * * The ECS instances on which you want to run the Cloud Assistant command must meet the following requirements. If you specify multiple ECS instances and one of the instances does not meet the requirements to run the command, the call fails. Specify instances that meet the requirements and call the InvokeCommand operation again.
73434
+ * * The network type is virtual private cloud (VPC). For more information, see [What is a VPC?](~~34217~~)
73435
+ * * The instances are in the Running (`Running`) state.
73436
+ * * The Cloud Assistant client is installed on the instances. For more information, see [Install the Cloud Assistant client](~~64921~~).
73437
+ * * Before you run PowerShell commands, make sure that the PowerShell module is configured for the instances.
73438
+ * * If you set the `Timed` parameter to false, the command is run only once.
73439
+ * * If you set the `Timed` parameter to true, the command is run on a schedule.
73440
+ * * The schedule is specified by the `Frequency` parameter. The execution results of a command do not affect the next command execution.
73441
+ * * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information, see [Configure the NTP service and time zone for Linux instances](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
73442
+ * To ensure that scheduled tasks can run as expected, make sure that the version of the Cloud Assistant client is not earlier than the following versions. A scheduled task can run a command at a specified interval, only once at a specified time, or at specific times based on a cron expression that includes a specific year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update the Cloud Assistant client to the latest version. For more information, see [Upgrade or disable upgrades for the Cloud Assistant client](~~134383~~).
73443
+ * - Linux: 2.2.3.282
73444
+ * - Windows: 2.1.3.282
73445
+ * * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on the Cloud Assistant client. If an execution fails, no execution information is generated.
73446
+ * * If you enable the custom parameter feature by setting the EnableParameter parameter to true when you create a command, you must specify custom parameters (`Parameters`) when you run the command.
73447
+ *
73448
+ * @param tmpReq InvokeCommandRequest
73449
+ * @param runtime runtime options for this request RuntimeOptions
73450
+ * @return InvokeCommandResponse
73451
+ */
72815
73452
  async invokeCommandWithOptions(tmpReq: InvokeCommandRequest, runtime: $Util.RuntimeOptions): Promise<InvokeCommandResponse> {
72816
73453
  Util.validateModel(tmpReq);
72817
73454
  let request = new InvokeCommandShrinkRequest({ });
@@ -72914,11 +73551,37 @@ export default class Client extends OpenApi {
72914
73551
  return $tea.cast<InvokeCommandResponse>(await this.callApi(params, req, runtime), new InvokeCommandResponse({}));
72915
73552
  }
72916
73553
 
73554
+ /**
73555
+ * * The ECS instances on which you want to run the Cloud Assistant command must meet the following requirements. If you specify multiple ECS instances and one of the instances does not meet the requirements to run the command, the call fails. Specify instances that meet the requirements and call the InvokeCommand operation again.
73556
+ * * The network type is virtual private cloud (VPC). For more information, see [What is a VPC?](~~34217~~)
73557
+ * * The instances are in the Running (`Running`) state.
73558
+ * * The Cloud Assistant client is installed on the instances. For more information, see [Install the Cloud Assistant client](~~64921~~).
73559
+ * * Before you run PowerShell commands, make sure that the PowerShell module is configured for the instances.
73560
+ * * If you set the `Timed` parameter to false, the command is run only once.
73561
+ * * If you set the `Timed` parameter to true, the command is run on a schedule.
73562
+ * * The schedule is specified by the `Frequency` parameter. The execution results of a command do not affect the next command execution.
73563
+ * * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information, see [Configure the NTP service and time zone for Linux instances](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
73564
+ * To ensure that scheduled tasks can run as expected, make sure that the version of the Cloud Assistant client is not earlier than the following versions. A scheduled task can run a command at a specified interval, only once at a specified time, or at specific times based on a cron expression that includes a specific year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update the Cloud Assistant client to the latest version. For more information, see [Upgrade or disable upgrades for the Cloud Assistant client](~~134383~~).
73565
+ * - Linux: 2.2.3.282
73566
+ * - Windows: 2.1.3.282
73567
+ * * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on the Cloud Assistant client. If an execution fails, no execution information is generated.
73568
+ * * If you enable the custom parameter feature by setting the EnableParameter parameter to true when you create a command, you must specify custom parameters (`Parameters`) when you run the command.
73569
+ *
73570
+ * @param request InvokeCommandRequest
73571
+ * @return InvokeCommandResponse
73572
+ */
72917
73573
  async invokeCommand(request: InvokeCommandRequest): Promise<InvokeCommandResponse> {
72918
73574
  let runtime = new $Util.RuntimeOptions({ });
72919
73575
  return await this.invokeCommandWithOptions(request, runtime);
72920
73576
  }
72921
73577
 
73578
+ /**
73579
+ * A resource is a cloud service entity that you create in Alibaba Cloud, such as an ECS instance, elastic network interface (ENI), or image. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources and monitor and run tasks in a centralized manner without switching between Alibaba Cloud services.
73580
+ *
73581
+ * @param request JoinResourceGroupRequest
73582
+ * @param runtime runtime options for this request RuntimeOptions
73583
+ * @return JoinResourceGroupResponse
73584
+ */
72922
73585
  async joinResourceGroupWithOptions(request: JoinResourceGroupRequest, runtime: $Util.RuntimeOptions): Promise<JoinResourceGroupResponse> {
72923
73586
  Util.validateModel(request);
72924
73587
  let query = { };
@@ -72971,11 +73634,33 @@ export default class Client extends OpenApi {
72971
73634
  return $tea.cast<JoinResourceGroupResponse>(await this.callApi(params, req, runtime), new JoinResourceGroupResponse({}));
72972
73635
  }
72973
73636
 
73637
+ /**
73638
+ * A resource is a cloud service entity that you create in Alibaba Cloud, such as an ECS instance, elastic network interface (ENI), or image. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources and monitor and run tasks in a centralized manner without switching between Alibaba Cloud services.
73639
+ *
73640
+ * @param request JoinResourceGroupRequest
73641
+ * @return JoinResourceGroupResponse
73642
+ */
72974
73643
  async joinResourceGroup(request: JoinResourceGroupRequest): Promise<JoinResourceGroupResponse> {
72975
73644
  let runtime = new $Util.RuntimeOptions({ });
72976
73645
  return await this.joinResourceGroupWithOptions(request, runtime);
72977
73646
  }
72978
73647
 
73648
+ /**
73649
+ * > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add instances to or remove instances from a security group, and call the [ModifyNetworkInterfaceAttribute](~~58513~~) operation to add ENIs to or remove ENIs from a security group.
73650
+ * When you call this operation, take note of the following items:
73651
+ * * Before you add an instance to a security group, the instance must be in the **Stopped** (Stopped) or **Running** (Running) state.
73652
+ * * An instance can be added to up to five security groups.
73653
+ * * To add an instance to more security groups, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm). An instance can be added to up to 16 security groups.
73654
+ * *
73655
+ * * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
73656
+ * * The security group and the instance must belong to the same region.
73657
+ * * 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.
73658
+ * * An instance and an ENI cannot be added to a security group at the same time. You cannot specify the `InstanceId` and `NetworkInterfaceId` parameters at the same time.
73659
+ *
73660
+ * @param request JoinSecurityGroupRequest
73661
+ * @param runtime runtime options for this request RuntimeOptions
73662
+ * @return JoinSecurityGroupResponse
73663
+ */
72979
73664
  async joinSecurityGroupWithOptions(request: JoinSecurityGroupRequest, runtime: $Util.RuntimeOptions): Promise<JoinSecurityGroupResponse> {
72980
73665
  Util.validateModel(request);
72981
73666
  let query = { };
@@ -73028,6 +73713,21 @@ export default class Client extends OpenApi {
73028
73713
  return $tea.cast<JoinSecurityGroupResponse>(await this.callApi(params, req, runtime), new JoinSecurityGroupResponse({}));
73029
73714
  }
73030
73715
 
73716
+ /**
73717
+ * > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add instances to or remove instances from a security group, and call the [ModifyNetworkInterfaceAttribute](~~58513~~) operation to add ENIs to or remove ENIs from a security group.
73718
+ * When you call this operation, take note of the following items:
73719
+ * * Before you add an instance to a security group, the instance must be in the **Stopped** (Stopped) or **Running** (Running) state.
73720
+ * * An instance can be added to up to five security groups.
73721
+ * * To add an instance to more security groups, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm). An instance can be added to up to 16 security groups.
73722
+ * *
73723
+ * * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
73724
+ * * The security group and the instance must belong to the same region.
73725
+ * * 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.
73726
+ * * An instance and an ENI cannot be added to a security group at the same time. You cannot specify the `InstanceId` and `NetworkInterfaceId` parameters at the same time.
73727
+ *
73728
+ * @param request JoinSecurityGroupRequest
73729
+ * @return JoinSecurityGroupResponse
73730
+ */
73031
73731
  async joinSecurityGroup(request: JoinSecurityGroupRequest): Promise<JoinSecurityGroupResponse> {
73032
73732
  let runtime = new $Util.RuntimeOptions({ });
73033
73733
  return await this.joinSecurityGroupWithOptions(request, runtime);
@@ -73111,6 +73811,15 @@ export default class Client extends OpenApi {
73111
73811
  return await this.leaveSecurityGroupWithOptions(request, runtime);
73112
73812
  }
73113
73813
 
73814
+ /**
73815
+ * Before you call this operation to query the states of Cloud Assistant plug-ins on ECS instances, make sure that the versions of the Cloud Assistant client installed on the instances are not earlier than the following ones:
73816
+ * - 2.2.3.344 for Linux instances
73817
+ * - 2.1.3.344 for Windows instances
73818
+ *
73819
+ * @param request ListPluginStatusRequest
73820
+ * @param runtime runtime options for this request RuntimeOptions
73821
+ * @return ListPluginStatusResponse
73822
+ */
73114
73823
  async listPluginStatusWithOptions(request: ListPluginStatusRequest, runtime: $Util.RuntimeOptions): Promise<ListPluginStatusResponse> {
73115
73824
  Util.validateModel(request);
73116
73825
  let query = { };
@@ -73171,11 +73880,32 @@ export default class Client extends OpenApi {
73171
73880
  return $tea.cast<ListPluginStatusResponse>(await this.callApi(params, req, runtime), new ListPluginStatusResponse({}));
73172
73881
  }
73173
73882
 
73883
+ /**
73884
+ * Before you call this operation to query the states of Cloud Assistant plug-ins on ECS instances, make sure that the versions of the Cloud Assistant client installed on the instances are not earlier than the following ones:
73885
+ * - 2.2.3.344 for Linux instances
73886
+ * - 2.1.3.344 for Windows instances
73887
+ *
73888
+ * @param request ListPluginStatusRequest
73889
+ * @return ListPluginStatusResponse
73890
+ */
73174
73891
  async listPluginStatus(request: ListPluginStatusRequest): Promise<ListPluginStatusResponse> {
73175
73892
  let runtime = new $Util.RuntimeOptions({ });
73176
73893
  return await this.listPluginStatusWithOptions(request, runtime);
73177
73894
  }
73178
73895
 
73896
+ /**
73897
+ * Specify at least one of the following parameters or parameter pairs in a request to determine a query object:
73898
+ * * `ResourceId.N`
73899
+ * * `Tag.N` parameter pair (`Tag.N.Key` and `Tag.N.Value`)
73900
+ * * `TagFilter.N`
73901
+ * If one of the following sets of request parameters is specified as filter conditions, only ECS resources that meet all of the specified filter conditions are returned:
73902
+ * * Set 1: `Tag.N.Key, Tag.N.Value`, and `ResourceId.N`
73903
+ * * Set 2: `TagFilter.N.TagKey, TagFilter.N.TagValues.N`, and `ResourceId.N`
73904
+ *
73905
+ * @param request ListTagResourcesRequest
73906
+ * @param runtime runtime options for this request RuntimeOptions
73907
+ * @return ListTagResourcesResponse
73908
+ */
73179
73909
  async listTagResourcesWithOptions(request: ListTagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse> {
73180
73910
  Util.validateModel(request);
73181
73911
  let query = { };
@@ -73240,11 +73970,32 @@ export default class Client extends OpenApi {
73240
73970
  return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
73241
73971
  }
73242
73972
 
73973
+ /**
73974
+ * Specify at least one of the following parameters or parameter pairs in a request to determine a query object:
73975
+ * * `ResourceId.N`
73976
+ * * `Tag.N` parameter pair (`Tag.N.Key` and `Tag.N.Value`)
73977
+ * * `TagFilter.N`
73978
+ * If one of the following sets of request parameters is specified as filter conditions, only ECS resources that meet all of the specified filter conditions are returned:
73979
+ * * Set 1: `Tag.N.Key, Tag.N.Value`, and `ResourceId.N`
73980
+ * * Set 2: `TagFilter.N.TagKey, TagFilter.N.TagValues.N`, and `ResourceId.N`
73981
+ *
73982
+ * @param request ListTagResourcesRequest
73983
+ * @return ListTagResourcesResponse
73984
+ */
73243
73985
  async listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse> {
73244
73986
  let runtime = new $Util.RuntimeOptions({ });
73245
73987
  return await this.listTagResourcesWithOptions(request, runtime);
73246
73988
  }
73247
73989
 
73990
+ /**
73991
+ * Before you call this operation, take note of the following items:
73992
+ * * If you modify the capacity or capacity-related settings of an auto provisioning group, the group executes a scheduling task once after the group is modified.
73993
+ * * You cannot modify an auto provisioning group when the group is being deleted.
73994
+ *
73995
+ * @param request ModifyAutoProvisioningGroupRequest
73996
+ * @param runtime runtime options for this request RuntimeOptions
73997
+ * @return ModifyAutoProvisioningGroupResponse
73998
+ */
73248
73999
  async modifyAutoProvisioningGroupWithOptions(request: ModifyAutoProvisioningGroupRequest, runtime: $Util.RuntimeOptions): Promise<ModifyAutoProvisioningGroupResponse> {
73249
74000
  Util.validateModel(request);
73250
74001
  let query = { };
@@ -73325,6 +74076,14 @@ export default class Client extends OpenApi {
73325
74076
  return $tea.cast<ModifyAutoProvisioningGroupResponse>(await this.callApi(params, req, runtime), new ModifyAutoProvisioningGroupResponse({}));
73326
74077
  }
73327
74078
 
74079
+ /**
74080
+ * Before you call this operation, take note of the following items:
74081
+ * * If you modify the capacity or capacity-related settings of an auto provisioning group, the group executes a scheduling task once after the group is modified.
74082
+ * * You cannot modify an auto provisioning group when the group is being deleted.
74083
+ *
74084
+ * @param request ModifyAutoProvisioningGroupRequest
74085
+ * @return ModifyAutoProvisioningGroupResponse
74086
+ */
73328
74087
  async modifyAutoProvisioningGroup(request: ModifyAutoProvisioningGroupRequest): Promise<ModifyAutoProvisioningGroupResponse> {
73329
74088
  let runtime = new $Util.RuntimeOptions({ });
73330
74089
  return await this.modifyAutoProvisioningGroupWithOptions(request, runtime);
@@ -73632,6 +74391,14 @@ export default class Client extends OpenApi {
73632
74391
  return await this.modifyCapacityReservationWithOptions(request, runtime);
73633
74392
  }
73634
74393
 
74394
+ /**
74395
+ * You can modify a command when it is being executed. After the command is modified, the new command content applies to subsequent executions.
74396
+ * You cannot modify the command type. For example, you cannot change a shell command (RunShellScript) to a batch command (RunBatScript).
74397
+ *
74398
+ * @param request ModifyCommandRequest
74399
+ * @param runtime runtime options for this request RuntimeOptions
74400
+ * @return ModifyCommandResponse
74401
+ */
73635
74402
  async modifyCommandWithOptions(request: ModifyCommandRequest, runtime: $Util.RuntimeOptions): Promise<ModifyCommandResponse> {
73636
74403
  Util.validateModel(request);
73637
74404
  let query = { };
@@ -73700,11 +74467,27 @@ export default class Client extends OpenApi {
73700
74467
  return $tea.cast<ModifyCommandResponse>(await this.callApi(params, req, runtime), new ModifyCommandResponse({}));
73701
74468
  }
73702
74469
 
74470
+ /**
74471
+ * You can modify a command when it is being executed. After the command is modified, the new command content applies to subsequent executions.
74472
+ * You cannot modify the command type. For example, you cannot change a shell command (RunShellScript) to a batch command (RunBatScript).
74473
+ *
74474
+ * @param request ModifyCommandRequest
74475
+ * @return ModifyCommandResponse
74476
+ */
73703
74477
  async modifyCommand(request: ModifyCommandRequest): Promise<ModifyCommandResponse> {
73704
74478
  let runtime = new $Util.RuntimeOptions({ });
73705
74479
  return await this.modifyCommandWithOptions(request, runtime);
73706
74480
  }
73707
74481
 
74482
+ /**
74483
+ * ## Description
74484
+ * * All the Elastic Compute Service (ECS) instances that are hosted on a dedicated host must be in the Stopped (`Stopped`) state before you can modify the CPU overcommit ratio of the dedicated host.
74485
+ * * Modifications to the CPU overcommit ratio of a dedicated host do not affect the operation of the dedicated host. After the CPU overcommit ratio is modified, the number of allocated vCPUs on the dedicated host cannot exceed the new total number of vCPUs. Otherwise, ECS instances that use the excess vCPUs cannot start.
74486
+ *
74487
+ * @param request ModifyDedicatedHostAttributeRequest
74488
+ * @param runtime runtime options for this request RuntimeOptions
74489
+ * @return ModifyDedicatedHostAttributeResponse
74490
+ */
73708
74491
  async modifyDedicatedHostAttributeWithOptions(request: ModifyDedicatedHostAttributeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDedicatedHostAttributeResponse> {
73709
74492
  Util.validateModel(request);
73710
74493
  let query = { };
@@ -73777,11 +74560,26 @@ export default class Client extends OpenApi {
73777
74560
  return $tea.cast<ModifyDedicatedHostAttributeResponse>(await this.callApi(params, req, runtime), new ModifyDedicatedHostAttributeResponse({}));
73778
74561
  }
73779
74562
 
74563
+ /**
74564
+ * ## Description
74565
+ * * All the Elastic Compute Service (ECS) instances that are hosted on a dedicated host must be in the Stopped (`Stopped`) state before you can modify the CPU overcommit ratio of the dedicated host.
74566
+ * * Modifications to the CPU overcommit ratio of a dedicated host do not affect the operation of the dedicated host. After the CPU overcommit ratio is modified, the number of allocated vCPUs on the dedicated host cannot exceed the new total number of vCPUs. Otherwise, ECS instances that use the excess vCPUs cannot start.
74567
+ *
74568
+ * @param request ModifyDedicatedHostAttributeRequest
74569
+ * @return ModifyDedicatedHostAttributeResponse
74570
+ */
73780
74571
  async modifyDedicatedHostAttribute(request: ModifyDedicatedHostAttributeRequest): Promise<ModifyDedicatedHostAttributeResponse> {
73781
74572
  let runtime = new $Util.RuntimeOptions({ });
73782
74573
  return await this.modifyDedicatedHostAttributeWithOptions(request, runtime);
73783
74574
  }
73784
74575
 
74576
+ /**
74577
+ * The pay-as-you-go dedicated host is automatically released at the specified time. Make sure that the dedicated host is no longer needed and that its data is backed up.
74578
+ *
74579
+ * @param request ModifyDedicatedHostAutoReleaseTimeRequest
74580
+ * @param runtime runtime options for this request RuntimeOptions
74581
+ * @return ModifyDedicatedHostAutoReleaseTimeResponse
74582
+ */
73785
74583
  async modifyDedicatedHostAutoReleaseTimeWithOptions(request: ModifyDedicatedHostAutoReleaseTimeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDedicatedHostAutoReleaseTimeResponse> {
73786
74584
  Util.validateModel(request);
73787
74585
  let query = { };
@@ -73830,11 +74628,26 @@ export default class Client extends OpenApi {
73830
74628
  return $tea.cast<ModifyDedicatedHostAutoReleaseTimeResponse>(await this.callApi(params, req, runtime), new ModifyDedicatedHostAutoReleaseTimeResponse({}));
73831
74629
  }
73832
74630
 
74631
+ /**
74632
+ * The pay-as-you-go dedicated host is automatically released at the specified time. Make sure that the dedicated host is no longer needed and that its data is backed up.
74633
+ *
74634
+ * @param request ModifyDedicatedHostAutoReleaseTimeRequest
74635
+ * @return ModifyDedicatedHostAutoReleaseTimeResponse
74636
+ */
73833
74637
  async modifyDedicatedHostAutoReleaseTime(request: ModifyDedicatedHostAutoReleaseTimeRequest): Promise<ModifyDedicatedHostAutoReleaseTimeResponse> {
73834
74638
  let runtime = new $Util.RuntimeOptions({ });
73835
74639
  return await this.modifyDedicatedHostAutoReleaseTimeWithOptions(request, runtime);
73836
74640
  }
73837
74641
 
74642
+ /**
74643
+ * ## Description
74644
+ * * If you enable auto-renewal for your subscription dedicated host, the dedicated host is automatically renewed nine days before expiration. The renewal fees are automatically paid at 08:00:00 (UTC+8). If the fees are not paid, they are paid at the same point in time the next day. Automatic payment stops after the fees are paid or after the dedicated host expires and is locked. Make sure that you have sufficient balance within your account.
74645
+ * * Subscription dedicated hosts can be automatically renewed along with the subscription Elastic Compute Service (ECS) instances hosted on the dedicated hosts. For more information, see the description of the AutoRenewWithEcs parameter.
74646
+ *
74647
+ * @param request ModifyDedicatedHostAutoRenewAttributeRequest
74648
+ * @param runtime runtime options for this request RuntimeOptions
74649
+ * @return ModifyDedicatedHostAutoRenewAttributeResponse
74650
+ */
73838
74651
  async modifyDedicatedHostAutoRenewAttributeWithOptions(request: ModifyDedicatedHostAutoRenewAttributeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDedicatedHostAutoRenewAttributeResponse> {
73839
74652
  Util.validateModel(request);
73840
74653
  let query = { };
@@ -73899,6 +74712,14 @@ export default class Client extends OpenApi {
73899
74712
  return $tea.cast<ModifyDedicatedHostAutoRenewAttributeResponse>(await this.callApi(params, req, runtime), new ModifyDedicatedHostAutoRenewAttributeResponse({}));
73900
74713
  }
73901
74714
 
74715
+ /**
74716
+ * ## Description
74717
+ * * If you enable auto-renewal for your subscription dedicated host, the dedicated host is automatically renewed nine days before expiration. The renewal fees are automatically paid at 08:00:00 (UTC+8). If the fees are not paid, they are paid at the same point in time the next day. Automatic payment stops after the fees are paid or after the dedicated host expires and is locked. Make sure that you have sufficient balance within your account.
74718
+ * * Subscription dedicated hosts can be automatically renewed along with the subscription Elastic Compute Service (ECS) instances hosted on the dedicated hosts. For more information, see the description of the AutoRenewWithEcs parameter.
74719
+ *
74720
+ * @param request ModifyDedicatedHostAutoRenewAttributeRequest
74721
+ * @return ModifyDedicatedHostAutoRenewAttributeResponse
74722
+ */
73902
74723
  async modifyDedicatedHostAutoRenewAttribute(request: ModifyDedicatedHostAutoRenewAttributeRequest): Promise<ModifyDedicatedHostAutoRenewAttributeResponse> {
73903
74724
  let runtime = new $Util.RuntimeOptions({ });
73904
74725
  return await this.modifyDedicatedHostAutoRenewAttributeWithOptions(request, runtime);
@@ -74344,6 +75165,21 @@ export default class Client extends OpenApi {
74344
75165
  return await this.modifyDiskAttributeWithOptions(request, runtime);
74345
75166
  }
74346
75167
 
75168
+ /**
75169
+ * After you change the billing method, the payment (if any) is automatically completed. Maintain a sufficient account balance. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the AutoPay parameter to false to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
75170
+ * When you call this operation, take note of the following items:
75171
+ * * You can change the billing method from subscription to pay-as-you-go for disks that are attached to a subscription instance.
75172
+ * * 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.
75173
+ * * The instance cannot be in the Stopped state due to overdue payments.
75174
+ * * 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.
75175
+ * * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
75176
+ * * You cannot change the billing method again within 5 minutes of a successful change.
75177
+ * * The billing method of disks with the multi-attach feature enabled must be pay-as-you-go and cannot be changed to subscription.
75178
+ *
75179
+ * @param request ModifyDiskChargeTypeRequest
75180
+ * @param runtime runtime options for this request RuntimeOptions
75181
+ * @return ModifyDiskChargeTypeResponse
75182
+ */
74347
75183
  async modifyDiskChargeTypeWithOptions(request: ModifyDiskChargeTypeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDiskChargeTypeResponse> {
74348
75184
  Util.validateModel(request);
74349
75185
  let query = { };
@@ -74404,11 +75240,86 @@ export default class Client extends OpenApi {
74404
75240
  return $tea.cast<ModifyDiskChargeTypeResponse>(await this.callApi(params, req, runtime), new ModifyDiskChargeTypeResponse({}));
74405
75241
  }
74406
75242
 
75243
+ /**
75244
+ * After you change the billing method, the payment (if any) is automatically completed. Maintain a sufficient account balance. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the AutoPay parameter to false to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
75245
+ * When you call this operation, take note of the following items:
75246
+ * * You can change the billing method from subscription to pay-as-you-go for disks that are attached to a subscription instance.
75247
+ * * 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.
75248
+ * * The instance cannot be in the Stopped state due to overdue payments.
75249
+ * * 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.
75250
+ * * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
75251
+ * * You cannot change the billing method again within 5 minutes of a successful change.
75252
+ * * The billing method of disks with the multi-attach feature enabled must be pay-as-you-go and cannot be changed to subscription.
75253
+ *
75254
+ * @param request ModifyDiskChargeTypeRequest
75255
+ * @return ModifyDiskChargeTypeResponse
75256
+ */
74407
75257
  async modifyDiskChargeType(request: ModifyDiskChargeTypeRequest): Promise<ModifyDiskChargeTypeResponse> {
74408
75258
  let runtime = new $Util.RuntimeOptions({ });
74409
75259
  return await this.modifyDiskChargeTypeWithOptions(request, runtime);
74410
75260
  }
74411
75261
 
75262
+ async modifyDiskDeploymentWithOptions(request: ModifyDiskDeploymentRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDiskDeploymentResponse> {
75263
+ Util.validateModel(request);
75264
+ let query = { };
75265
+ if (!Util.isUnset(request.diskCategory)) {
75266
+ query["DiskCategory"] = request.diskCategory;
75267
+ }
75268
+
75269
+ if (!Util.isUnset(request.diskId)) {
75270
+ query["DiskId"] = request.diskId;
75271
+ }
75272
+
75273
+ if (!Util.isUnset(request.dryRun)) {
75274
+ query["DryRun"] = request.dryRun;
75275
+ }
75276
+
75277
+ if (!Util.isUnset(request.ownerAccount)) {
75278
+ query["OwnerAccount"] = request.ownerAccount;
75279
+ }
75280
+
75281
+ if (!Util.isUnset(request.ownerId)) {
75282
+ query["OwnerId"] = request.ownerId;
75283
+ }
75284
+
75285
+ if (!Util.isUnset(request.performanceLevel)) {
75286
+ query["PerformanceLevel"] = request.performanceLevel;
75287
+ }
75288
+
75289
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
75290
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
75291
+ }
75292
+
75293
+ if (!Util.isUnset(request.resourceOwnerId)) {
75294
+ query["ResourceOwnerId"] = request.resourceOwnerId;
75295
+ }
75296
+
75297
+ if (!Util.isUnset(request.storageClusterId)) {
75298
+ query["StorageClusterId"] = request.storageClusterId;
75299
+ }
75300
+
75301
+ let req = new $OpenApi.OpenApiRequest({
75302
+ query: OpenApiUtil.query(query),
75303
+ });
75304
+ let params = new $OpenApi.Params({
75305
+ action: "ModifyDiskDeployment",
75306
+ version: "2014-05-26",
75307
+ protocol: "HTTPS",
75308
+ pathname: "/",
75309
+ method: "POST",
75310
+ authType: "AK",
75311
+ style: "RPC",
75312
+ reqBodyType: "formData",
75313
+ bodyType: "json",
75314
+ });
75315
+ return $tea.cast<ModifyDiskDeploymentResponse>(await this.callApi(params, req, runtime), new ModifyDiskDeploymentResponse({}));
75316
+ }
75317
+
75318
+ async modifyDiskDeployment(request: ModifyDiskDeploymentRequest): Promise<ModifyDiskDeploymentResponse> {
75319
+ let runtime = new $Util.RuntimeOptions({ });
75320
+ return await this.modifyDiskDeploymentWithOptions(request, runtime);
75321
+ }
75322
+
74412
75323
  /**
74413
75324
  * ## Description
74414
75325
  * When you call this operation, take note of the following items:
@@ -74448,6 +75359,10 @@ export default class Client extends OpenApi {
74448
75359
  query["OwnerId"] = request.ownerId;
74449
75360
  }
74450
75361
 
75362
+ if (!Util.isUnset(request.performanceControlOptions)) {
75363
+ query["PerformanceControlOptions"] = request.performanceControlOptions;
75364
+ }
75365
+
74451
75366
  if (!Util.isUnset(request.performanceLevel)) {
74452
75367
  query["PerformanceLevel"] = request.performanceLevel;
74453
75368
  }
@@ -75094,6 +76009,20 @@ export default class Client extends OpenApi {
75094
76009
  return await this.modifyImageSharePermissionWithOptions(request, runtime);
75095
76010
  }
75096
76011
 
76012
+ /**
76013
+ * A private pool is generated after an elasticity assurance or a capacity reservation is created. The private pool is associated with information about instances that are created by using the private pool. You can also use a private pool when you create an ECS instance, so that the instance can be matched to the elasticity assurance or capacity reservation associated with the private pool.
76014
+ * * After you call this operation to modify the attributes of the private pool for an instance, you do not need to restart the instance.
76015
+ * * When you call the following operations, the system rematches the instance with private pools. If the instance already matches a specified private pool, the call to an operation may fail when the private pool capacity is used up or because the private pool expires. If the call fails, call the ModifyInstanceAttachmentAttributes operation to change the match mode of the private pool to `Open`.
76016
+ * * StartInstance
76017
+ * * ReActivateInstances
76018
+ * * ModifyInstanceChargeType
76019
+ * * ModifyPrepayInstanceSpec
76020
+ * * ReplaceSystemDisk
76021
+ *
76022
+ * @param request ModifyInstanceAttachmentAttributesRequest
76023
+ * @param runtime runtime options for this request RuntimeOptions
76024
+ * @return ModifyInstanceAttachmentAttributesResponse
76025
+ */
75097
76026
  async modifyInstanceAttachmentAttributesWithOptions(request: ModifyInstanceAttachmentAttributesRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceAttachmentAttributesResponse> {
75098
76027
  Util.validateModel(request);
75099
76028
  let query = { };
@@ -75142,11 +76071,47 @@ export default class Client extends OpenApi {
75142
76071
  return $tea.cast<ModifyInstanceAttachmentAttributesResponse>(await this.callApi(params, req, runtime), new ModifyInstanceAttachmentAttributesResponse({}));
75143
76072
  }
75144
76073
 
76074
+ /**
76075
+ * A private pool is generated after an elasticity assurance or a capacity reservation is created. The private pool is associated with information about instances that are created by using the private pool. You can also use a private pool when you create an ECS instance, so that the instance can be matched to the elasticity assurance or capacity reservation associated with the private pool.
76076
+ * * After you call this operation to modify the attributes of the private pool for an instance, you do not need to restart the instance.
76077
+ * * When you call the following operations, the system rematches the instance with private pools. If the instance already matches a specified private pool, the call to an operation may fail when the private pool capacity is used up or because the private pool expires. If the call fails, call the ModifyInstanceAttachmentAttributes operation to change the match mode of the private pool to `Open`.
76078
+ * * StartInstance
76079
+ * * ReActivateInstances
76080
+ * * ModifyInstanceChargeType
76081
+ * * ModifyPrepayInstanceSpec
76082
+ * * ReplaceSystemDisk
76083
+ *
76084
+ * @param request ModifyInstanceAttachmentAttributesRequest
76085
+ * @return ModifyInstanceAttachmentAttributesResponse
76086
+ */
75145
76087
  async modifyInstanceAttachmentAttributes(request: ModifyInstanceAttachmentAttributesRequest): Promise<ModifyInstanceAttachmentAttributesResponse> {
75146
76088
  let runtime = new $Util.RuntimeOptions({ });
75147
76089
  return await this.modifyInstanceAttachmentAttributesWithOptions(request, runtime);
75148
76090
  }
75149
76091
 
76092
+ /**
76093
+ * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons and all operations are prohibited on it.
76094
+ * When you call this operation, take note of the following items:
76095
+ * * Modify the hostname (`HostName`): After the hostname is modified, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. The new hostname does not take effect if you restart the instance from within the operating system.
76096
+ * * Reset the password (`Password`):
76097
+ * * The instance must not be in the **Starting** (`Starting`) state.
76098
+ * * After the password is reset, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. The new password does not take effect if you restart the instance from within the operating system.
76099
+ * * Modify user data (`UserData`):
76100
+ * * The instance must be in the **Stopped** (`Stopped`) state.
76101
+ * * The instance must meet the conditions on user data. For more information, see [Overview of ECS instance user data](~~49121~~).
76102
+ * * Change the security group (`SecurityGroupIds.N`):
76103
+ * * You can move an instance to a security group of a different type. Before you move an instance to a security group of a different type, we recommend that you evaluate the differences in rule configurations of the two security group types. This helps prevent business continuity issues when you switch security groups.
76104
+ * * Security groups of instances in the classic network cannot be changed. For more information, see the description of the `SecurityGroupIds.N` parameter.
76105
+ * * Modify the number of queues supported by the primary elastic network interface (ENI) (`NetworkInterfaceQueueNumber`):
76106
+ * * The instance must be in the Stopped (`Stopped`) state.
76107
+ * * The value of this parameter cannot exceed the maximum number of queues per ENI allowed for the instance type.
76108
+ * * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. To obtain the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` parameters.
76109
+ * * If you set the NetworkInterfaceQueueNumber parameter to -1, the value is reset to the default value for the instance type. To obtain the default number of queues supported by the primary ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `PrimaryEniQueueNumber` parameter.
76110
+ *
76111
+ * @param request ModifyInstanceAttributeRequest
76112
+ * @param runtime runtime options for this request RuntimeOptions
76113
+ * @return ModifyInstanceAttributeResponse
76114
+ */
75150
76115
  async modifyInstanceAttributeWithOptions(request: ModifyInstanceAttributeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceAttributeResponse> {
75151
76116
  Util.validateModel(request);
75152
76117
  let query = { };
@@ -75235,6 +76200,28 @@ export default class Client extends OpenApi {
75235
76200
  return $tea.cast<ModifyInstanceAttributeResponse>(await this.callApi(params, req, runtime), new ModifyInstanceAttributeResponse({}));
75236
76201
  }
75237
76202
 
76203
+ /**
76204
+ * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons and all operations are prohibited on it.
76205
+ * When you call this operation, take note of the following items:
76206
+ * * Modify the hostname (`HostName`): After the hostname is modified, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. The new hostname does not take effect if you restart the instance from within the operating system.
76207
+ * * Reset the password (`Password`):
76208
+ * * The instance must not be in the **Starting** (`Starting`) state.
76209
+ * * After the password is reset, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. The new password does not take effect if you restart the instance from within the operating system.
76210
+ * * Modify user data (`UserData`):
76211
+ * * The instance must be in the **Stopped** (`Stopped`) state.
76212
+ * * The instance must meet the conditions on user data. For more information, see [Overview of ECS instance user data](~~49121~~).
76213
+ * * Change the security group (`SecurityGroupIds.N`):
76214
+ * * You can move an instance to a security group of a different type. Before you move an instance to a security group of a different type, we recommend that you evaluate the differences in rule configurations of the two security group types. This helps prevent business continuity issues when you switch security groups.
76215
+ * * Security groups of instances in the classic network cannot be changed. For more information, see the description of the `SecurityGroupIds.N` parameter.
76216
+ * * Modify the number of queues supported by the primary elastic network interface (ENI) (`NetworkInterfaceQueueNumber`):
76217
+ * * The instance must be in the Stopped (`Stopped`) state.
76218
+ * * The value of this parameter cannot exceed the maximum number of queues per ENI allowed for the instance type.
76219
+ * * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. To obtain the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` parameters.
76220
+ * * If you set the NetworkInterfaceQueueNumber parameter to -1, the value is reset to the default value for the instance type. To obtain the default number of queues supported by the primary ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `PrimaryEniQueueNumber` parameter.
76221
+ *
76222
+ * @param request ModifyInstanceAttributeRequest
76223
+ * @return ModifyInstanceAttributeResponse
76224
+ */
75238
76225
  async modifyInstanceAttribute(request: ModifyInstanceAttributeRequest): Promise<ModifyInstanceAttributeResponse> {
75239
76226
  let runtime = new $Util.RuntimeOptions({ });
75240
76227
  return await this.modifyInstanceAttributeWithOptions(request, runtime);
@@ -75294,9 +76281,8 @@ export default class Client extends OpenApi {
75294
76281
  }
75295
76282
 
75296
76283
  /**
75297
- * Before you call this operation, make sure that you understand the billing methods and pricing schedule of Elastic Compute Service (ECS). For more information, see the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
75298
- * * The payment for auto-renewal is first deducted automatically at 08:00:00 (UTC+8) nine days before the instance expires.
75299
- * * If the subscription period of a new instance is one week, the renewal payment is automatically deducted on the day the instance is created.
76284
+ * Before you call this operation, make sure that you are familiar with the billing methods and pricing schedule of Elastic Compute Service (ECS). For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
76285
+ * * The payment for auto-renewal is deducted automatically at 08:00:00 (UTC+8) nine days before the instance expires.
75300
76286
  * * If the first deduction attempt fails, Alibaba Cloud attempts to deduct the payment each day until the payment is deducted or until the instance is locked after the nine-day period ends. Make sure that your account balance or credit balance is sufficient.
75301
76287
  *
75302
76288
  * @param request ModifyInstanceAutoRenewAttributeRequest
@@ -75364,9 +76350,8 @@ export default class Client extends OpenApi {
75364
76350
  }
75365
76351
 
75366
76352
  /**
75367
- * Before you call this operation, make sure that you understand the billing methods and pricing schedule of Elastic Compute Service (ECS). For more information, see the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
75368
- * * The payment for auto-renewal is first deducted automatically at 08:00:00 (UTC+8) nine days before the instance expires.
75369
- * * If the subscription period of a new instance is one week, the renewal payment is automatically deducted on the day the instance is created.
76353
+ * Before you call this operation, make sure that you are familiar with the billing methods and pricing schedule of Elastic Compute Service (ECS). For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
76354
+ * * The payment for auto-renewal is deducted automatically at 08:00:00 (UTC+8) nine days before the instance expires.
75370
76355
  * * If the first deduction attempt fails, Alibaba Cloud attempts to deduct the payment each day until the payment is deducted or until the instance is locked after the nine-day period ends. Make sure that your account balance or credit balance is sufficient.
75371
76356
  *
75372
76357
  * @param request ModifyInstanceAutoRenewAttributeRequest
@@ -75377,6 +76362,23 @@ export default class Client extends OpenApi {
75377
76362
  return await this.modifyInstanceAutoRenewAttributeWithOptions(request, runtime);
75378
76363
  }
75379
76364
 
76365
+ /**
76366
+ * Before you call this operation, make sure that you are familiar with the billing methods and pricing of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
76367
+ * When you call this operation, take note of the following items:
76368
+ * * The instances must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state, and you cannot have overdue payments associated with them.
76369
+ * * After you change the billing method, the payment (if any) is automatically completed. Make sure that the balance in your account is sufficient. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the `AutoPay` parameter to `false` to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
76370
+ * * **Change the billing method from subscription to pay-as-you-go**:
76371
+ * * Your ECS usage determines whether the billing method of an instance can be changed from subscription to pay-as-you-go.
76372
+ * * After you change the billing method of an instance from subscription to pay-as-you-go, the new billing method remains in effect for the remaining lifecycle of the instance. The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
76373
+ * * **Refund rule**: You have a quota for the total refund amount each month, and the unused balance of this quota is not carried over to the next month. If you use up the refund quota of the current month, you can change the billing method only in the next month. The refund amount incurred after you change the billing method is calculated based on the following formula: **Number of vCPUs × (Number of remaining days × 24 ± Number of remaining or elapsed hours)**.
76374
+ * * **Change the billing method from pay-as-you-go to subscription**:
76375
+ * * You can change the billing method of all data disks that are attached to an instance from pay-as-you-go to subscription.
76376
+ * * This operation cannot be called for a pay-as-you-go instance that has an automatic release time set.
76377
+ *
76378
+ * @param request ModifyInstanceChargeTypeRequest
76379
+ * @param runtime runtime options for this request RuntimeOptions
76380
+ * @return ModifyInstanceChargeTypeResponse
76381
+ */
75380
76382
  async modifyInstanceChargeTypeWithOptions(request: ModifyInstanceChargeTypeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceChargeTypeResponse> {
75381
76383
  Util.validateModel(request);
75382
76384
  let query = { };
@@ -75453,6 +76455,22 @@ export default class Client extends OpenApi {
75453
76455
  return $tea.cast<ModifyInstanceChargeTypeResponse>(await this.callApi(params, req, runtime), new ModifyInstanceChargeTypeResponse({}));
75454
76456
  }
75455
76457
 
76458
+ /**
76459
+ * Before you call this operation, make sure that you are familiar with the billing methods and pricing of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
76460
+ * When you call this operation, take note of the following items:
76461
+ * * The instances must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state, and you cannot have overdue payments associated with them.
76462
+ * * After you change the billing method, the payment (if any) is automatically completed. Make sure that the balance in your account is sufficient. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the `AutoPay` parameter to `false` to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
76463
+ * * **Change the billing method from subscription to pay-as-you-go**:
76464
+ * * Your ECS usage determines whether the billing method of an instance can be changed from subscription to pay-as-you-go.
76465
+ * * After you change the billing method of an instance from subscription to pay-as-you-go, the new billing method remains in effect for the remaining lifecycle of the instance. The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
76466
+ * * **Refund rule**: You have a quota for the total refund amount each month, and the unused balance of this quota is not carried over to the next month. If you use up the refund quota of the current month, you can change the billing method only in the next month. The refund amount incurred after you change the billing method is calculated based on the following formula: **Number of vCPUs × (Number of remaining days × 24 ± Number of remaining or elapsed hours)**.
76467
+ * * **Change the billing method from pay-as-you-go to subscription**:
76468
+ * * You can change the billing method of all data disks that are attached to an instance from pay-as-you-go to subscription.
76469
+ * * This operation cannot be called for a pay-as-you-go instance that has an automatic release time set.
76470
+ *
76471
+ * @param request ModifyInstanceChargeTypeRequest
76472
+ * @return ModifyInstanceChargeTypeResponse
76473
+ */
75456
76474
  async modifyInstanceChargeType(request: ModifyInstanceChargeTypeRequest): Promise<ModifyInstanceChargeTypeResponse> {
75457
76475
  let runtime = new $Util.RuntimeOptions({ });
75458
76476
  return await this.modifyInstanceChargeTypeWithOptions(request, runtime);
@@ -75572,6 +76590,15 @@ export default class Client extends OpenApi {
75572
76590
  return await this.modifyInstanceDeploymentWithOptions(request, runtime);
75573
76591
  }
75574
76592
 
76593
+ /**
76594
+ * This operation is used to modify the maintenance policy of an instance. The maintenance policy consists of the following maintenance attributes:
76595
+ * * Maintenance window: the time period that you specify for maintenance.
76596
+ * * Maintenance action: the action that you specify in response to instance shutdown.
76597
+ *
76598
+ * @param request ModifyInstanceMaintenanceAttributesRequest
76599
+ * @param runtime runtime options for this request RuntimeOptions
76600
+ * @return ModifyInstanceMaintenanceAttributesResponse
76601
+ */
75575
76602
  async modifyInstanceMaintenanceAttributesWithOptions(request: ModifyInstanceMaintenanceAttributesRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceMaintenanceAttributesResponse> {
75576
76603
  Util.validateModel(request);
75577
76604
  let query = { };
@@ -75628,6 +76655,14 @@ export default class Client extends OpenApi {
75628
76655
  return $tea.cast<ModifyInstanceMaintenanceAttributesResponse>(await this.callApi(params, req, runtime), new ModifyInstanceMaintenanceAttributesResponse({}));
75629
76656
  }
75630
76657
 
76658
+ /**
76659
+ * This operation is used to modify the maintenance policy of an instance. The maintenance policy consists of the following maintenance attributes:
76660
+ * * Maintenance window: the time period that you specify for maintenance.
76661
+ * * Maintenance action: the action that you specify in response to instance shutdown.
76662
+ *
76663
+ * @param request ModifyInstanceMaintenanceAttributesRequest
76664
+ * @return ModifyInstanceMaintenanceAttributesResponse
76665
+ */
75631
76666
  async modifyInstanceMaintenanceAttributes(request: ModifyInstanceMaintenanceAttributesRequest): Promise<ModifyInstanceMaintenanceAttributesResponse> {
75632
76667
  let runtime = new $Util.RuntimeOptions({ });
75633
76668
  return await this.modifyInstanceMaintenanceAttributesWithOptions(request, runtime);
@@ -75804,6 +76839,24 @@ export default class Client extends OpenApi {
75804
76839
  return await this.modifyInstanceNetworkSpecWithOptions(request, runtime);
75805
76840
  }
75806
76841
 
76842
+ /**
76843
+ * ## Description
76844
+ * Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, visit the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
76845
+ * For information about ECS SDK for Python used to change resource configurations, see [Query available resources for configuration changes](~~109517~~).
76846
+ * When you call this operation, take note of the following items:
76847
+ * * You must have no overdue payments in your account.
76848
+ * * You can adjust the public bandwidth of an instance only when the instance is in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
76849
+ * * Before you change the instance type of a pay-as-you-go instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change.
76850
+ * * You can change the instance type of an instance only when the instance is in the **Stopped** (`Stopped`) state.
76851
+ * * The instance type and the public bandwidth of an instance cannot be changed together.
76852
+ * * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to throttling policies for your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
76853
+ * * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
76854
+ * * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
76855
+ *
76856
+ * @param request ModifyInstanceSpecRequest
76857
+ * @param runtime runtime options for this request RuntimeOptions
76858
+ * @return ModifyInstanceSpecResponse
76859
+ */
75807
76860
  async modifyInstanceSpecWithOptions(request: ModifyInstanceSpecRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceSpecResponse> {
75808
76861
  Util.validateModel(request);
75809
76862
  let query = { };
@@ -75819,6 +76872,10 @@ export default class Client extends OpenApi {
75819
76872
  query["ClientToken"] = request.clientToken;
75820
76873
  }
75821
76874
 
76875
+ if (!Util.isUnset(request.disk)) {
76876
+ query["Disk"] = request.disk;
76877
+ }
76878
+
75822
76879
  if (!Util.isUnset(request.instanceId)) {
75823
76880
  query["InstanceId"] = request.instanceId;
75824
76881
  }
@@ -75835,6 +76892,10 @@ export default class Client extends OpenApi {
75835
76892
  query["InternetMaxBandwidthOut"] = request.internetMaxBandwidthOut;
75836
76893
  }
75837
76894
 
76895
+ if (!Util.isUnset(request.modifyMode)) {
76896
+ query["ModifyMode"] = request.modifyMode;
76897
+ }
76898
+
75838
76899
  if (!Util.isUnset(request.ownerAccount)) {
75839
76900
  query["OwnerAccount"] = request.ownerAccount;
75840
76901
  }
@@ -75876,6 +76937,23 @@ export default class Client extends OpenApi {
75876
76937
  return $tea.cast<ModifyInstanceSpecResponse>(await this.callApi(params, req, runtime), new ModifyInstanceSpecResponse({}));
75877
76938
  }
75878
76939
 
76940
+ /**
76941
+ * ## Description
76942
+ * Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, visit the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
76943
+ * For information about ECS SDK for Python used to change resource configurations, see [Query available resources for configuration changes](~~109517~~).
76944
+ * When you call this operation, take note of the following items:
76945
+ * * You must have no overdue payments in your account.
76946
+ * * You can adjust the public bandwidth of an instance only when the instance is in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
76947
+ * * Before you change the instance type of a pay-as-you-go instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change.
76948
+ * * You can change the instance type of an instance only when the instance is in the **Stopped** (`Stopped`) state.
76949
+ * * The instance type and the public bandwidth of an instance cannot be changed together.
76950
+ * * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to throttling policies for your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
76951
+ * * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
76952
+ * * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
76953
+ *
76954
+ * @param request ModifyInstanceSpecRequest
76955
+ * @return ModifyInstanceSpecResponse
76956
+ */
75879
76957
  async modifyInstanceSpec(request: ModifyInstanceSpecRequest): Promise<ModifyInstanceSpecResponse> {
75880
76958
  let runtime = new $Util.RuntimeOptions({ });
75881
76959
  return await this.modifyInstanceSpecWithOptions(request, runtime);
@@ -76136,6 +77214,14 @@ export default class Client extends OpenApi {
76136
77214
  return await this.modifyLaunchTemplateDefaultVersionWithOptions(request, runtime);
76137
77215
  }
76138
77216
 
77217
+ /**
77218
+ * ## Description
77219
+ * The ModifyManagedInstance operation can be called to modify only the name of a single managed instance.
77220
+ *
77221
+ * @param request ModifyManagedInstanceRequest
77222
+ * @param runtime runtime options for this request RuntimeOptions
77223
+ * @return ModifyManagedInstanceResponse
77224
+ */
76139
77225
  async modifyManagedInstanceWithOptions(request: ModifyManagedInstanceRequest, runtime: $Util.RuntimeOptions): Promise<ModifyManagedInstanceResponse> {
76140
77226
  Util.validateModel(request);
76141
77227
  let query = { };
@@ -76188,6 +77274,13 @@ export default class Client extends OpenApi {
76188
77274
  return $tea.cast<ModifyManagedInstanceResponse>(await this.callApi(params, req, runtime), new ModifyManagedInstanceResponse({}));
76189
77275
  }
76190
77276
 
77277
+ /**
77278
+ * ## Description
77279
+ * The ModifyManagedInstance operation can be called to modify only the name of a single managed instance.
77280
+ *
77281
+ * @param request ModifyManagedInstanceRequest
77282
+ * @return ModifyManagedInstanceResponse
77283
+ */
76191
77284
  async modifyManagedInstance(request: ModifyManagedInstanceRequest): Promise<ModifyManagedInstanceResponse> {
76192
77285
  let runtime = new $Util.RuntimeOptions({ });
76193
77286
  return await this.modifyManagedInstanceWithOptions(request, runtime);
@@ -76370,6 +77463,19 @@ export default class Client extends OpenApi {
76370
77463
  return await this.modifyPhysicalConnectionAttributeWithOptions(request, runtime);
76371
77464
  }
76372
77465
 
77466
+ /**
77467
+ * ## Description
77468
+ * * The specified CIDR block must be valid. For example, 10.0.0.0/8 is a valid CIDR block while 10.0.0.1/8 is not. For more information, see the [What is CIDR?](https://www.alibabacloud.com/help/doc-detail/40637.htm#section-jua-0tj-q5m) section in Network FAQ.
77469
+ * * When you add or delete an entry, you cannot specify duplicate CIDR blocks. Examples:
77470
+ * * For IPv4 CIDR blocks, you cannot specify the 10.0.0.0/8 CIDR block in two entries. You cannot specify the 10.0.0.1/32 CIDR block in one entry and the 10.0.0.1 CIDR block in another entry. These two CIDR blocks are the same.
77471
+ * * For IPv6 CIDR blocks, you cannot specify the 2001:fd01:0:0:0:0:0:0/32 CIDR block in one entry and the 2001:fd01::/32 CIDR block in another entry. These two CIDR blocks are the same.
77472
+ * * The CIDR block in an entry to be added cannot the same as that in an entry to be deleted. For example, when you add an entry in which the 10.0.0.0/8 CIDR block is specified, the entry to be deleted cannot have the 10.0.0.0/8 CIDR block specified.
77473
+ * * If you want to modify the description of an entry, you must specify the CIDR block (`AddEntry.N.Cidr`) and new description (`AddEntry.N.Description`) in the entry.
77474
+ *
77475
+ * @param request ModifyPrefixListRequest
77476
+ * @param runtime runtime options for this request RuntimeOptions
77477
+ * @return ModifyPrefixListResponse
77478
+ */
76373
77479
  async modifyPrefixListWithOptions(request: ModifyPrefixListRequest, runtime: $Util.RuntimeOptions): Promise<ModifyPrefixListResponse> {
76374
77480
  Util.validateModel(request);
76375
77481
  let query = { };
@@ -76434,11 +77540,41 @@ export default class Client extends OpenApi {
76434
77540
  return $tea.cast<ModifyPrefixListResponse>(await this.callApi(params, req, runtime), new ModifyPrefixListResponse({}));
76435
77541
  }
76436
77542
 
77543
+ /**
77544
+ * ## Description
77545
+ * * The specified CIDR block must be valid. For example, 10.0.0.0/8 is a valid CIDR block while 10.0.0.1/8 is not. For more information, see the [What is CIDR?](https://www.alibabacloud.com/help/doc-detail/40637.htm#section-jua-0tj-q5m) section in Network FAQ.
77546
+ * * When you add or delete an entry, you cannot specify duplicate CIDR blocks. Examples:
77547
+ * * For IPv4 CIDR blocks, you cannot specify the 10.0.0.0/8 CIDR block in two entries. You cannot specify the 10.0.0.1/32 CIDR block in one entry and the 10.0.0.1 CIDR block in another entry. These two CIDR blocks are the same.
77548
+ * * For IPv6 CIDR blocks, you cannot specify the 2001:fd01:0:0:0:0:0:0/32 CIDR block in one entry and the 2001:fd01::/32 CIDR block in another entry. These two CIDR blocks are the same.
77549
+ * * The CIDR block in an entry to be added cannot the same as that in an entry to be deleted. For example, when you add an entry in which the 10.0.0.0/8 CIDR block is specified, the entry to be deleted cannot have the 10.0.0.0/8 CIDR block specified.
77550
+ * * If you want to modify the description of an entry, you must specify the CIDR block (`AddEntry.N.Cidr`) and new description (`AddEntry.N.Description`) in the entry.
77551
+ *
77552
+ * @param request ModifyPrefixListRequest
77553
+ * @return ModifyPrefixListResponse
77554
+ */
76437
77555
  async modifyPrefixList(request: ModifyPrefixListRequest): Promise<ModifyPrefixListResponse> {
76438
77556
  let runtime = new $Util.RuntimeOptions({ });
76439
77557
  return await this.modifyPrefixListWithOptions(request, runtime);
76440
77558
  }
76441
77559
 
77560
+ /**
77561
+ * Before you call this operation, make sure that you understand the billing methods, pricing schedule, and refund policies of [ECS](https://www.alibabacloud.com/product/ecs#pricing). For more information, see [Request a refund for the downgrade of resource specifications](~~201955~~).
77562
+ * Before you change the instance type of a subscription instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change. You can use ECS SDK for Python to query the instance types to which you can change. For more information, see [Query available resources for configuration changes](~~109517~~).
77563
+ * When you call this operation, take note of the following items:
77564
+ * * The instance type of an expired instance cannot be changed. You can renew the instance and try again.
77565
+ * * When you downgrade the instance type of an instance, take note of the following items:
77566
+ * * The instance must be in the **Stopped** state.``
77567
+ * * You must specify the operation type by setting `OperatorType` to downgrade.
77568
+ * * You can downgrade the configurations of an instance up to three times. Therefore, a maximum of three refunds for price difference can be made for an instance. Downgrade operations include instance type downgrades, bandwidth configuration downgrades, and the change of the disk billing method from subscription to pay-as-you-go.
77569
+ * * The price difference is refunded to the payment account you used. Vouchers that have been redeemed are not refundable.
77570
+ * * This operation is asynchronous. It takes 5 to 10 seconds for the instance type to change. You must restart the instance by calling the RebootInstance operation or by using the ECS console for the instance type change to take effect. If you restart only the operating system of the instance, the instance type change does not take effect.
77571
+ * * If the instance is in the **Stopped** state, you only need to start the instance. You do not need to restart the instance after it enters the Running state.
77572
+ * * If `RebootWhenFinished` is set to true for the instance, you do not need to manually restart the instance.
77573
+ *
77574
+ * @param request ModifyPrepayInstanceSpecRequest
77575
+ * @param runtime runtime options for this request RuntimeOptions
77576
+ * @return ModifyPrepayInstanceSpecResponse
77577
+ */
76442
77578
  async modifyPrepayInstanceSpecWithOptions(request: ModifyPrepayInstanceSpecRequest, runtime: $Util.RuntimeOptions): Promise<ModifyPrepayInstanceSpecResponse> {
76443
77579
  Util.validateModel(request);
76444
77580
  let query = { };
@@ -76450,6 +77586,10 @@ export default class Client extends OpenApi {
76450
77586
  query["ClientToken"] = request.clientToken;
76451
77587
  }
76452
77588
 
77589
+ if (!Util.isUnset(request.disk)) {
77590
+ query["Disk"] = request.disk;
77591
+ }
77592
+
76453
77593
  if (!Util.isUnset(request.endTime)) {
76454
77594
  query["EndTime"] = request.endTime;
76455
77595
  }
@@ -76466,6 +77606,10 @@ export default class Client extends OpenApi {
76466
77606
  query["MigrateAcrossZone"] = request.migrateAcrossZone;
76467
77607
  }
76468
77608
 
77609
+ if (!Util.isUnset(request.modifyMode)) {
77610
+ query["ModifyMode"] = request.modifyMode;
77611
+ }
77612
+
76469
77613
  if (!Util.isUnset(request.operatorType)) {
76470
77614
  query["OperatorType"] = request.operatorType;
76471
77615
  }
@@ -76519,6 +77663,23 @@ export default class Client extends OpenApi {
76519
77663
  return $tea.cast<ModifyPrepayInstanceSpecResponse>(await this.callApi(params, req, runtime), new ModifyPrepayInstanceSpecResponse({}));
76520
77664
  }
76521
77665
 
77666
+ /**
77667
+ * Before you call this operation, make sure that you understand the billing methods, pricing schedule, and refund policies of [ECS](https://www.alibabacloud.com/product/ecs#pricing). For more information, see [Request a refund for the downgrade of resource specifications](~~201955~~).
77668
+ * Before you change the instance type of a subscription instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change. You can use ECS SDK for Python to query the instance types to which you can change. For more information, see [Query available resources for configuration changes](~~109517~~).
77669
+ * When you call this operation, take note of the following items:
77670
+ * * The instance type of an expired instance cannot be changed. You can renew the instance and try again.
77671
+ * * When you downgrade the instance type of an instance, take note of the following items:
77672
+ * * The instance must be in the **Stopped** state.``
77673
+ * * You must specify the operation type by setting `OperatorType` to downgrade.
77674
+ * * You can downgrade the configurations of an instance up to three times. Therefore, a maximum of three refunds for price difference can be made for an instance. Downgrade operations include instance type downgrades, bandwidth configuration downgrades, and the change of the disk billing method from subscription to pay-as-you-go.
77675
+ * * The price difference is refunded to the payment account you used. Vouchers that have been redeemed are not refundable.
77676
+ * * This operation is asynchronous. It takes 5 to 10 seconds for the instance type to change. You must restart the instance by calling the RebootInstance operation or by using the ECS console for the instance type change to take effect. If you restart only the operating system of the instance, the instance type change does not take effect.
77677
+ * * If the instance is in the **Stopped** state, you only need to start the instance. You do not need to restart the instance after it enters the Running state.
77678
+ * * If `RebootWhenFinished` is set to true for the instance, you do not need to manually restart the instance.
77679
+ *
77680
+ * @param request ModifyPrepayInstanceSpecRequest
77681
+ * @return ModifyPrepayInstanceSpecResponse
77682
+ */
76522
77683
  async modifyPrepayInstanceSpec(request: ModifyPrepayInstanceSpecRequest): Promise<ModifyPrepayInstanceSpecResponse> {
76523
77684
  let runtime = new $Util.RuntimeOptions({ });
76524
77685
  return await this.modifyPrepayInstanceSpecWithOptions(request, runtime);
@@ -76642,6 +77803,18 @@ export default class Client extends OpenApi {
76642
77803
  return await this.modifyReservedInstanceAutoRenewAttributeWithOptions(request, runtime);
76643
77804
  }
76644
77805
 
77806
+ /**
77807
+ * ## Description
77808
+ * When you call this operation, take note of the following items:
77809
+ * * For information about limits on reserved instances, see the "Limits" section in [Reserved instance overview](~~100370~~).
77810
+ * * Before you call this operation to split a reserved instance, make sure that you fully understand the limits on splitting a reserved instance. For more information, see [Split a reserved instance](~~100375~~).
77811
+ * * Before you call this operation to merge reserved instances, make sure that you fully understand the limits on merging reserved instances. For more information, see [Merge reserved instances](~~132229~~).
77812
+ * * Before you call this operation to modify a reserved instance, make sure that you fully understand the limits and methods of modifying a reserved instance. For more information, see [Modify a reserved instance](~~132230~~).
77813
+ *
77814
+ * @param request ModifyReservedInstancesRequest
77815
+ * @param runtime runtime options for this request RuntimeOptions
77816
+ * @return ModifyReservedInstancesResponse
77817
+ */
76645
77818
  async modifyReservedInstancesWithOptions(request: ModifyReservedInstancesRequest, runtime: $Util.RuntimeOptions): Promise<ModifyReservedInstancesResponse> {
76646
77819
  Util.validateModel(request);
76647
77820
  let query = { };
@@ -76690,6 +77863,17 @@ export default class Client extends OpenApi {
76690
77863
  return $tea.cast<ModifyReservedInstancesResponse>(await this.callApi(params, req, runtime), new ModifyReservedInstancesResponse({}));
76691
77864
  }
76692
77865
 
77866
+ /**
77867
+ * ## Description
77868
+ * When you call this operation, take note of the following items:
77869
+ * * For information about limits on reserved instances, see the "Limits" section in [Reserved instance overview](~~100370~~).
77870
+ * * Before you call this operation to split a reserved instance, make sure that you fully understand the limits on splitting a reserved instance. For more information, see [Split a reserved instance](~~100375~~).
77871
+ * * Before you call this operation to merge reserved instances, make sure that you fully understand the limits on merging reserved instances. For more information, see [Merge reserved instances](~~132229~~).
77872
+ * * Before you call this operation to modify a reserved instance, make sure that you fully understand the limits and methods of modifying a reserved instance. For more information, see [Modify a reserved instance](~~132230~~).
77873
+ *
77874
+ * @param request ModifyReservedInstancesRequest
77875
+ * @return ModifyReservedInstancesResponse
77876
+ */
76693
77877
  async modifyReservedInstances(request: ModifyReservedInstancesRequest): Promise<ModifyReservedInstancesResponse> {
76694
77878
  let runtime = new $Util.RuntimeOptions({ });
76695
77879
  return await this.modifyReservedInstancesWithOptions(request, runtime);
@@ -76920,6 +78104,18 @@ export default class Client extends OpenApi {
76920
78104
  return await this.modifySecurityGroupAttributeWithOptions(request, runtime);
76921
78105
  }
76922
78106
 
78107
+ /**
78108
+ * ## Description
78109
+ * When you modify the rules of a security group by specifying the rule IDs, take note of the following limits:
78110
+ * * If the type of the authorization object (source or destination) is IP address or CIDR block, security group, or prefix list, the type cannot be changed. If the original authorization object is an IP address, you can change it to another IP address or a CIDR block, but not to a security group or prefix list.
78111
+ * * 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 it to an IPv6 CIDR block. If the original authorization object is an IPv4 prefix list, you cannot change it to an IPv6 prefix list.
78112
+ * * The modified security group rule cannot be the same as other existing rules.
78113
+ * * If you want to delete the values of non-empty parameters for the rule, we recommend that you create a new rule and delete the original rule.
78114
+ *
78115
+ * @param request ModifySecurityGroupEgressRuleRequest
78116
+ * @param runtime runtime options for this request RuntimeOptions
78117
+ * @return ModifySecurityGroupEgressRuleResponse
78118
+ */
76923
78119
  async modifySecurityGroupEgressRuleWithOptions(request: ModifySecurityGroupEgressRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifySecurityGroupEgressRuleResponse> {
76924
78120
  Util.validateModel(request);
76925
78121
  let query = { };
@@ -77036,11 +78232,32 @@ export default class Client extends OpenApi {
77036
78232
  return $tea.cast<ModifySecurityGroupEgressRuleResponse>(await this.callApi(params, req, runtime), new ModifySecurityGroupEgressRuleResponse({}));
77037
78233
  }
77038
78234
 
78235
+ /**
78236
+ * ## Description
78237
+ * When you modify the rules of a security group by specifying the rule IDs, take note of the following limits:
78238
+ * * If the type of the authorization object (source or destination) is IP address or CIDR block, security group, or prefix list, the type cannot be changed. If the original authorization object is an IP address, you can change it to another IP address or a CIDR block, but not to a security group or prefix list.
78239
+ * * 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 it to an IPv6 CIDR block. If the original authorization object is an IPv4 prefix list, you cannot change it to an IPv6 prefix list.
78240
+ * * The modified security group rule cannot be the same as other existing rules.
78241
+ * * If you want to delete the values of non-empty parameters for the rule, we recommend that you create a new rule and delete the original rule.
78242
+ *
78243
+ * @param request ModifySecurityGroupEgressRuleRequest
78244
+ * @return ModifySecurityGroupEgressRuleResponse
78245
+ */
77039
78246
  async modifySecurityGroupEgressRule(request: ModifySecurityGroupEgressRuleRequest): Promise<ModifySecurityGroupEgressRuleResponse> {
77040
78247
  let runtime = new $Util.RuntimeOptions({ });
77041
78248
  return await this.modifySecurityGroupEgressRuleWithOptions(request, runtime);
77042
78249
  }
77043
78250
 
78251
+ /**
78252
+ * When you call this operation, take note of the following items:
78253
+ * * When InnerAccessPolicy is set to Accept for a security group, the instances in the security group can communicate with each other. In this case, the Accept internal access control policy takes precedence over user-created security group rules to keep instances in the security group accessible to each other.
78254
+ * * When InnerAccessPolicy is set to Drop for a security group, the instances in the security group are isolated from each other. In this case, user-created security group rules take precedence over the Drop internal access control policy and can be used to allow access between the instances. For example, you can call the [AuthorizeSecurityGroup](~~25554~~) operation to create an inbound security group rule that allows the instances in the security group to communicate with each other.
78255
+ * * You can call the [DescribeSecurityGroupAttribute](~~25555~~) operation to query the internal access policy of a security group.
78256
+ *
78257
+ * @param request ModifySecurityGroupPolicyRequest
78258
+ * @param runtime runtime options for this request RuntimeOptions
78259
+ * @return ModifySecurityGroupPolicyResponse
78260
+ */
77044
78261
  async modifySecurityGroupPolicyWithOptions(request: ModifySecurityGroupPolicyRequest, runtime: $Util.RuntimeOptions): Promise<ModifySecurityGroupPolicyResponse> {
77045
78262
  Util.validateModel(request);
77046
78263
  let query = { };
@@ -77093,11 +78310,31 @@ export default class Client extends OpenApi {
77093
78310
  return $tea.cast<ModifySecurityGroupPolicyResponse>(await this.callApi(params, req, runtime), new ModifySecurityGroupPolicyResponse({}));
77094
78311
  }
77095
78312
 
78313
+ /**
78314
+ * When you call this operation, take note of the following items:
78315
+ * * When InnerAccessPolicy is set to Accept for a security group, the instances in the security group can communicate with each other. In this case, the Accept internal access control policy takes precedence over user-created security group rules to keep instances in the security group accessible to each other.
78316
+ * * When InnerAccessPolicy is set to Drop for a security group, the instances in the security group are isolated from each other. In this case, user-created security group rules take precedence over the Drop internal access control policy and can be used to allow access between the instances. For example, you can call the [AuthorizeSecurityGroup](~~25554~~) operation to create an inbound security group rule that allows the instances in the security group to communicate with each other.
78317
+ * * You can call the [DescribeSecurityGroupAttribute](~~25555~~) operation to query the internal access policy of a security group.
78318
+ *
78319
+ * @param request ModifySecurityGroupPolicyRequest
78320
+ * @return ModifySecurityGroupPolicyResponse
78321
+ */
77096
78322
  async modifySecurityGroupPolicy(request: ModifySecurityGroupPolicyRequest): Promise<ModifySecurityGroupPolicyResponse> {
77097
78323
  let runtime = new $Util.RuntimeOptions({ });
77098
78324
  return await this.modifySecurityGroupPolicyWithOptions(request, runtime);
77099
78325
  }
77100
78326
 
78327
+ /**
78328
+ * When you modify a security group rule by specifying its ID, take note of the following items:
78329
+ * * If the type of the authorization object (source or destination) is IP address or CIDR block, security group, or prefix list, the authorization object type cannot be changed. The type of an existing security group authorization object cannot be modified. If the original authorization object is an IP address, you can change it to another IP address or a CIDR block, but not to a security group or prefix list.
78330
+ * * 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 it to an IPv6 CIDR block. If the original authorization object is an IPv4 prefix list, you cannot change it to an IPv6 prefix list.
78331
+ * * The modified security group rule cannot be the same as other existing rules.
78332
+ * * If you want to delete the values of non-empty parameters for the rule, we recommend that you create a new rule and delete the original rule.
78333
+ *
78334
+ * @param request ModifySecurityGroupRuleRequest
78335
+ * @param runtime runtime options for this request RuntimeOptions
78336
+ * @return ModifySecurityGroupRuleResponse
78337
+ */
77101
78338
  async modifySecurityGroupRuleWithOptions(request: ModifySecurityGroupRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifySecurityGroupRuleResponse> {
77102
78339
  Util.validateModel(request);
77103
78340
  let query = { };
@@ -77214,6 +78451,16 @@ export default class Client extends OpenApi {
77214
78451
  return $tea.cast<ModifySecurityGroupRuleResponse>(await this.callApi(params, req, runtime), new ModifySecurityGroupRuleResponse({}));
77215
78452
  }
77216
78453
 
78454
+ /**
78455
+ * When you modify a security group rule by specifying its ID, take note of the following items:
78456
+ * * If the type of the authorization object (source or destination) is IP address or CIDR block, security group, or prefix list, the authorization object type cannot be changed. The type of an existing security group authorization object cannot be modified. If the original authorization object is an IP address, you can change it to another IP address or a CIDR block, but not to a security group or prefix list.
78457
+ * * 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 it to an IPv6 CIDR block. If the original authorization object is an IPv4 prefix list, you cannot change it to an IPv6 prefix list.
78458
+ * * The modified security group rule cannot be the same as other existing rules.
78459
+ * * If you want to delete the values of non-empty parameters for the rule, we recommend that you create a new rule and delete the original rule.
78460
+ *
78461
+ * @param request ModifySecurityGroupRuleRequest
78462
+ * @return ModifySecurityGroupRuleResponse
78463
+ */
77217
78464
  async modifySecurityGroupRule(request: ModifySecurityGroupRuleRequest): Promise<ModifySecurityGroupRuleResponse> {
77218
78465
  let runtime = new $Util.RuntimeOptions({ });
77219
78466
  return await this.modifySecurityGroupRuleWithOptions(request, runtime);
@@ -77843,6 +79090,14 @@ export default class Client extends OpenApi {
77843
79090
  return await this.modifyVpcAttributeWithOptions(request, runtime);
77844
79091
  }
77845
79092
 
79093
+ /**
79094
+ * * Before you call this operation, make sure that you are familiar with the billing method of reserved instances. For more information, see [Reserved instances](~~100371~~).
79095
+ * * Before you purchase a reserved instance, you can call the [DescribeAvailableResource](~~66186~~) operation to query available instance resources.
79096
+ *
79097
+ * @param request PurchaseReservedInstancesOfferingRequest
79098
+ * @param runtime runtime options for this request RuntimeOptions
79099
+ * @return PurchaseReservedInstancesOfferingResponse
79100
+ */
77846
79101
  async purchaseReservedInstancesOfferingWithOptions(request: PurchaseReservedInstancesOfferingRequest, runtime: $Util.RuntimeOptions): Promise<PurchaseReservedInstancesOfferingResponse> {
77847
79102
  Util.validateModel(request);
77848
79103
  let query = { };
@@ -77943,11 +79198,25 @@ export default class Client extends OpenApi {
77943
79198
  return $tea.cast<PurchaseReservedInstancesOfferingResponse>(await this.callApi(params, req, runtime), new PurchaseReservedInstancesOfferingResponse({}));
77944
79199
  }
77945
79200
 
79201
+ /**
79202
+ * * Before you call this operation, make sure that you are familiar with the billing method of reserved instances. For more information, see [Reserved instances](~~100371~~).
79203
+ * * Before you purchase a reserved instance, you can call the [DescribeAvailableResource](~~66186~~) operation to query available instance resources.
79204
+ *
79205
+ * @param request PurchaseReservedInstancesOfferingRequest
79206
+ * @return PurchaseReservedInstancesOfferingResponse
79207
+ */
77946
79208
  async purchaseReservedInstancesOffering(request: PurchaseReservedInstancesOfferingRequest): Promise<PurchaseReservedInstancesOfferingResponse> {
77947
79209
  let runtime = new $Util.RuntimeOptions({ });
77948
79210
  return await this.purchaseReservedInstancesOfferingWithOptions(request, runtime);
77949
79211
  }
77950
79212
 
79213
+ /**
79214
+ * Before you call this operation, make sure that you understand the billing methods and pricing of SCUs. For more information, see [Storage capacity units](~~137897~~).
79215
+ *
79216
+ * @param request PurchaseStorageCapacityUnitRequest
79217
+ * @param runtime runtime options for this request RuntimeOptions
79218
+ * @return PurchaseStorageCapacityUnitResponse
79219
+ */
77951
79220
  async purchaseStorageCapacityUnitWithOptions(request: PurchaseStorageCapacityUnitRequest, runtime: $Util.RuntimeOptions): Promise<PurchaseStorageCapacityUnitResponse> {
77952
79221
  Util.validateModel(request);
77953
79222
  let query = { };
@@ -78028,6 +79297,12 @@ export default class Client extends OpenApi {
78028
79297
  return $tea.cast<PurchaseStorageCapacityUnitResponse>(await this.callApi(params, req, runtime), new PurchaseStorageCapacityUnitResponse({}));
78029
79298
  }
78030
79299
 
79300
+ /**
79301
+ * Before you call this operation, make sure that you understand the billing methods and pricing of SCUs. For more information, see [Storage capacity units](~~137897~~).
79302
+ *
79303
+ * @param request PurchaseStorageCapacityUnitRequest
79304
+ * @return PurchaseStorageCapacityUnitResponse
79305
+ */
78031
79306
  async purchaseStorageCapacityUnit(request: PurchaseStorageCapacityUnitRequest): Promise<PurchaseStorageCapacityUnitResponse> {
78032
79307
  let runtime = new $Util.RuntimeOptions({ });
78033
79308
  return await this.purchaseStorageCapacityUnitWithOptions(request, runtime);
@@ -78105,6 +79380,21 @@ export default class Client extends OpenApi {
78105
79380
  return await this.reActivateInstancesWithOptions(request, runtime);
78106
79381
  }
78107
79382
 
79383
+ /**
79384
+ * When you call this operation, take note of the following items:
79385
+ * * The disk that you want to re-initialize must be in the **In Use** (In_use) state and the instance to which the disk is attached must be in the **Stopped** (Stopped) state.
79386
+ * * If the instance has never been started since it was created, the disks attached to it cannot be re-initialized.
79387
+ * * If a local snapshot has been created for a disk, the disk cannot be re-initialized.
79388
+ * * Disks that have the multi-attach feature enabled cannot be re-initialized.
79389
+ * * When a system disk is re-initialized, it is restored to the state of the image from which it was created. If the source image is deleted, the system disk cannot be re-initialized.
79390
+ * * When a separately created data disk is re-initialized, it is restored to an empty data disk.
79391
+ * * When a data disk that was created from a snapshot is re-initialized, the disk is restored to the state of the snapshot.
79392
+ * > If the source snapshot is deleted, the disk cannot be re-initialized and an error is returned.
79393
+ *
79394
+ * @param request ReInitDiskRequest
79395
+ * @param runtime runtime options for this request RuntimeOptions
79396
+ * @return ReInitDiskResponse
79397
+ */
78108
79398
  async reInitDiskWithOptions(request: ReInitDiskRequest, runtime: $Util.RuntimeOptions): Promise<ReInitDiskResponse> {
78109
79399
  Util.validateModel(request);
78110
79400
  let query = { };
@@ -78161,16 +79451,30 @@ export default class Client extends OpenApi {
78161
79451
  return $tea.cast<ReInitDiskResponse>(await this.callApi(params, req, runtime), new ReInitDiskResponse({}));
78162
79452
  }
78163
79453
 
79454
+ /**
79455
+ * When you call this operation, take note of the following items:
79456
+ * * The disk that you want to re-initialize must be in the **In Use** (In_use) state and the instance to which the disk is attached must be in the **Stopped** (Stopped) state.
79457
+ * * If the instance has never been started since it was created, the disks attached to it cannot be re-initialized.
79458
+ * * If a local snapshot has been created for a disk, the disk cannot be re-initialized.
79459
+ * * Disks that have the multi-attach feature enabled cannot be re-initialized.
79460
+ * * When a system disk is re-initialized, it is restored to the state of the image from which it was created. If the source image is deleted, the system disk cannot be re-initialized.
79461
+ * * When a separately created data disk is re-initialized, it is restored to an empty data disk.
79462
+ * * When a data disk that was created from a snapshot is re-initialized, the disk is restored to the state of the snapshot.
79463
+ * > If the source snapshot is deleted, the disk cannot be re-initialized and an error is returned.
79464
+ *
79465
+ * @param request ReInitDiskRequest
79466
+ * @return ReInitDiskResponse
79467
+ */
78164
79468
  async reInitDisk(request: ReInitDiskRequest): Promise<ReInitDiskResponse> {
78165
79469
  let runtime = new $Util.RuntimeOptions({ });
78166
79470
  return await this.reInitDiskWithOptions(request, runtime);
78167
79471
  }
78168
79472
 
78169
79473
  /**
78170
- * * Only instances that are in the `Running` state can be restarted.****
78171
- * * After the ECS instance is restarted, the status of the instance changes to `Starting`.****
78172
- * * An instance can be forcibly restarted. A forced restart (`ForceStop`) is equivalent to performing a hard restart. This operation can cause data loss if data in the instance is not written to the disk.
78173
- * * 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 restarted. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
79474
+ * * The ECS instance to which you want to restart must be in the **Running** (`Running`) state.
79475
+ * * After this operation is called, the status of the instance changes to `Starting`.****
79476
+ * * An instance can be forcefully restarted. A forced restart (`ForceReboot`) is equivalent to powering off a traditional server and then starting the server. If data in the instance operating system is not written to block storage devices when the operation is called, the data is lost.
79477
+ * * If `OperationLocks` in the DescribeInstances response contains "LockReason" : "security" for an instance, the instance is locked for security reasons and cannot be restarted. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
78174
79478
  *
78175
79479
  * @param request RebootInstanceRequest
78176
79480
  * @param runtime runtime options for this request RuntimeOptions
@@ -78225,10 +79529,10 @@ export default class Client extends OpenApi {
78225
79529
  }
78226
79530
 
78227
79531
  /**
78228
- * * Only instances that are in the `Running` state can be restarted.****
78229
- * * After the ECS instance is restarted, the status of the instance changes to `Starting`.****
78230
- * * An instance can be forcibly restarted. A forced restart (`ForceStop`) is equivalent to performing a hard restart. This operation can cause data loss if data in the instance is not written to the disk.
78231
- * * 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 restarted. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
79532
+ * * The ECS instance to which you want to restart must be in the **Running** (`Running`) state.
79533
+ * * After this operation is called, the status of the instance changes to `Starting`.****
79534
+ * * An instance can be forcefully restarted. A forced restart (`ForceReboot`) is equivalent to powering off a traditional server and then starting the server. If data in the instance operating system is not written to block storage devices when the operation is called, the data is lost.
79535
+ * * If `OperationLocks` in the DescribeInstances response contains "LockReason" : "security" for an instance, the instance is locked for security reasons and cannot be restarted. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
78232
79536
  *
78233
79537
  * @param request RebootInstanceRequest
78234
79538
  * @return RebootInstanceResponse
@@ -78238,16 +79542,6 @@ export default class Client extends OpenApi {
78238
79542
  return await this.rebootInstanceWithOptions(request, runtime);
78239
79543
  }
78240
79544
 
78241
- /**
78242
- * * The ECS instances to which you want to restart are in the **Running** (`Running`) state.
78243
- * * You can restart multiple instances at a time and use the `BatchOptimization` parameter to specify the batch operation mode.
78244
- * * Instances can be forcefully restarted. A force restart (`ForceStop`) is equivalent to powering off traditional servers to restart them. This operation may lead to data loss if data in the instance operating system is not written to block storage devices.
78245
- * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of the instance, the instance is locked for security reasons and all operations are prohibited on it.
78246
- *
78247
- * @param request RebootInstancesRequest
78248
- * @param runtime runtime options for this request RuntimeOptions
78249
- * @return RebootInstancesResponse
78250
- */
78251
79545
  async rebootInstancesWithOptions(request: RebootInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RebootInstancesResponse> {
78252
79546
  Util.validateModel(request);
78253
79547
  let query = { };
@@ -78304,15 +79598,6 @@ export default class Client extends OpenApi {
78304
79598
  return $tea.cast<RebootInstancesResponse>(await this.callApi(params, req, runtime), new RebootInstancesResponse({}));
78305
79599
  }
78306
79600
 
78307
- /**
78308
- * * The ECS instances to which you want to restart are in the **Running** (`Running`) state.
78309
- * * You can restart multiple instances at a time and use the `BatchOptimization` parameter to specify the batch operation mode.
78310
- * * Instances can be forcefully restarted. A force restart (`ForceStop`) is equivalent to powering off traditional servers to restart them. This operation may lead to data loss if data in the instance operating system is not written to block storage devices.
78311
- * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of the instance, the instance is locked for security reasons and all operations are prohibited on it.
78312
- *
78313
- * @param request RebootInstancesRequest
78314
- * @return RebootInstancesResponse
78315
- */
78316
79601
  async rebootInstances(request: RebootInstancesRequest): Promise<RebootInstancesResponse> {
78317
79602
  let runtime = new $Util.RuntimeOptions({ });
78318
79603
  return await this.rebootInstancesWithOptions(request, runtime);
@@ -78390,6 +79675,13 @@ export default class Client extends OpenApi {
78390
79675
  return await this.recoverVirtualBorderRouterWithOptions(request, runtime);
78391
79676
  }
78392
79677
 
79678
+ /**
79679
+ * If a dedicated host is in the UnderAssessment state, we recommend that you call this operation to migrate ECS instances away from the dedicated host to prevent permanent failures. You can call the [DescribeDedicatedHosts](~~134242~~) operation to query the status of a dedicated host.
79680
+ *
79681
+ * @param request RedeployDedicatedHostRequest
79682
+ * @param runtime runtime options for this request RuntimeOptions
79683
+ * @return RedeployDedicatedHostResponse
79684
+ */
78393
79685
  async redeployDedicatedHostWithOptions(request: RedeployDedicatedHostRequest, runtime: $Util.RuntimeOptions): Promise<RedeployDedicatedHostResponse> {
78394
79686
  Util.validateModel(request);
78395
79687
  let query = { };
@@ -78434,11 +79726,44 @@ export default class Client extends OpenApi {
78434
79726
  return $tea.cast<RedeployDedicatedHostResponse>(await this.callApi(params, req, runtime), new RedeployDedicatedHostResponse({}));
78435
79727
  }
78436
79728
 
79729
+ /**
79730
+ * If a dedicated host is in the UnderAssessment state, we recommend that you call this operation to migrate ECS instances away from the dedicated host to prevent permanent failures. You can call the [DescribeDedicatedHosts](~~134242~~) operation to query the status of a dedicated host.
79731
+ *
79732
+ * @param request RedeployDedicatedHostRequest
79733
+ * @return RedeployDedicatedHostResponse
79734
+ */
78437
79735
  async redeployDedicatedHost(request: RedeployDedicatedHostRequest): Promise<RedeployDedicatedHostResponse> {
78438
79736
  let runtime = new $Util.RuntimeOptions({ });
78439
79737
  return await this.redeployDedicatedHostWithOptions(request, runtime);
78440
79738
  }
78441
79739
 
79740
+ /**
79741
+ * RedeployInstance is an asynchronous operation. This operation migrates data before it restarts the instance. After the instance is redeployed, the instance enters the Running (`Running`) state. If the instance fails to be redeployed, the instance returns to the original physical server and the state before redeployment.
79742
+ * When you call this operation, take note of the following items:
79743
+ * * The instance must be in the Running (Running) or Stopped (Stopped) state. After the instance is redeployed, the following changes occur to the status of the instance:
79744
+ * * If the instance is in the Running (`Running`) state, the instance enters the Stopping (`Stopping`) state.
79745
+ * * If the instance is in the Stopped (`Stopped`) state, the instance enters the Starting (`Starting`) state.
79746
+ * * If an instance is deployed on a dedicated host, you cannot redeploy the instance.
79747
+ * * If the `OperationLocks` parameter in the DescribeInstances response contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons and cannot be redeployed.
79748
+ * * If you receive notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for an instance, you cannot redeploy the instance.
79749
+ * * 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~~).
79750
+ * The following table describes the system events that you can handle by calling the RedeployInstance operation. The table also provides possible event status.
79751
+ * |System event|Event status|
79752
+ * |---|---|
79753
+ * |Instance restart due to system maintenance (SystemMaintenance.Reboot)|Inquiring and Scheduled|
79754
+ * |Instance redeployment due to system maintenance (SystemMaintenance.Redeploy)|Inquiring and Scheduled|
79755
+ * |Instance restart and replacement of damaged disks due to system maintenance (SystemMaintenance.RebootAndIsolateErrorDisk)|Inquiring|
79756
+ * |Instance restart and re-initialization of damaged disks due to system maintenance (SystemMaintenance.RebootAndReInitErrorDisk)|Inquiring|
79757
+ * |Instance redeployment due to system errors (SystemFailure.Redeploy)|Inquiring and Scheduled|
79758
+ * |For ECS instances that use only local disks: instance restart due to a system error (SystemFailure.Reboot)|Executing|
79759
+ * |Isolation of damaged disks due to system maintenance (SystemMaintenance.IsolateErrorDisk)|Inquiring|
79760
+ * |Re-initialization of damaged disks due to system maintenance (SystemMaintenance.ReInitErrorDisk)|Inquiring|
79761
+ * **Note**When instances that use local disks are redeployed, the local disks are re-initialized and data on the local disks is cleared.
79762
+ *
79763
+ * @param request RedeployInstanceRequest
79764
+ * @param runtime runtime options for this request RuntimeOptions
79765
+ * @return RedeployInstanceResponse
79766
+ */
78442
79767
  async redeployInstanceWithOptions(request: RedeployInstanceRequest, runtime: $Util.RuntimeOptions): Promise<RedeployInstanceResponse> {
78443
79768
  Util.validateModel(request);
78444
79769
  let query = { };
@@ -78483,11 +79808,44 @@ export default class Client extends OpenApi {
78483
79808
  return $tea.cast<RedeployInstanceResponse>(await this.callApi(params, req, runtime), new RedeployInstanceResponse({}));
78484
79809
  }
78485
79810
 
79811
+ /**
79812
+ * RedeployInstance is an asynchronous operation. This operation migrates data before it restarts the instance. After the instance is redeployed, the instance enters the Running (`Running`) state. If the instance fails to be redeployed, the instance returns to the original physical server and the state before redeployment.
79813
+ * When you call this operation, take note of the following items:
79814
+ * * The instance must be in the Running (Running) or Stopped (Stopped) state. After the instance is redeployed, the following changes occur to the status of the instance:
79815
+ * * If the instance is in the Running (`Running`) state, the instance enters the Stopping (`Stopping`) state.
79816
+ * * If the instance is in the Stopped (`Stopped`) state, the instance enters the Starting (`Starting`) state.
79817
+ * * If an instance is deployed on a dedicated host, you cannot redeploy the instance.
79818
+ * * If the `OperationLocks` parameter in the DescribeInstances response contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons and cannot be redeployed.
79819
+ * * If you receive notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for an instance, you cannot redeploy the instance.
79820
+ * * 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~~).
79821
+ * The following table describes the system events that you can handle by calling the RedeployInstance operation. The table also provides possible event status.
79822
+ * |System event|Event status|
79823
+ * |---|---|
79824
+ * |Instance restart due to system maintenance (SystemMaintenance.Reboot)|Inquiring and Scheduled|
79825
+ * |Instance redeployment due to system maintenance (SystemMaintenance.Redeploy)|Inquiring and Scheduled|
79826
+ * |Instance restart and replacement of damaged disks due to system maintenance (SystemMaintenance.RebootAndIsolateErrorDisk)|Inquiring|
79827
+ * |Instance restart and re-initialization of damaged disks due to system maintenance (SystemMaintenance.RebootAndReInitErrorDisk)|Inquiring|
79828
+ * |Instance redeployment due to system errors (SystemFailure.Redeploy)|Inquiring and Scheduled|
79829
+ * |For ECS instances that use only local disks: instance restart due to a system error (SystemFailure.Reboot)|Executing|
79830
+ * |Isolation of damaged disks due to system maintenance (SystemMaintenance.IsolateErrorDisk)|Inquiring|
79831
+ * |Re-initialization of damaged disks due to system maintenance (SystemMaintenance.ReInitErrorDisk)|Inquiring|
79832
+ * **Note**When instances that use local disks are redeployed, the local disks are re-initialized and data on the local disks is cleared.
79833
+ *
79834
+ * @param request RedeployInstanceRequest
79835
+ * @return RedeployInstanceResponse
79836
+ */
78486
79837
  async redeployInstance(request: RedeployInstanceRequest): Promise<RedeployInstanceResponse> {
78487
79838
  let runtime = new $Util.RuntimeOptions({ });
78488
79839
  return await this.redeployInstanceWithOptions(request, runtime);
78489
79840
  }
78490
79841
 
79842
+ /**
79843
+ * If the release mode of a capacity reservation that takes effect immediately is set to manual release, you can call this operation to release the capacity reservation.
79844
+ *
79845
+ * @param request ReleaseCapacityReservationRequest
79846
+ * @param runtime runtime options for this request RuntimeOptions
79847
+ * @return ReleaseCapacityReservationResponse
79848
+ */
78491
79849
  async releaseCapacityReservationWithOptions(request: ReleaseCapacityReservationRequest, runtime: $Util.RuntimeOptions): Promise<ReleaseCapacityReservationResponse> {
78492
79850
  Util.validateModel(request);
78493
79851
  let query = { };
@@ -78536,11 +79894,24 @@ export default class Client extends OpenApi {
78536
79894
  return $tea.cast<ReleaseCapacityReservationResponse>(await this.callApi(params, req, runtime), new ReleaseCapacityReservationResponse({}));
78537
79895
  }
78538
79896
 
79897
+ /**
79898
+ * If the release mode of a capacity reservation that takes effect immediately is set to manual release, you can call this operation to release the capacity reservation.
79899
+ *
79900
+ * @param request ReleaseCapacityReservationRequest
79901
+ * @return ReleaseCapacityReservationResponse
79902
+ */
78539
79903
  async releaseCapacityReservation(request: ReleaseCapacityReservationRequest): Promise<ReleaseCapacityReservationResponse> {
78540
79904
  let runtime = new $Util.RuntimeOptions({ });
78541
79905
  return await this.releaseCapacityReservationWithOptions(request, runtime);
78542
79906
  }
78543
79907
 
79908
+ /**
79909
+ * Before you release a pay-as-you-go dedicated host, make sure that no Elastic Compute Service (ECS) instances are deployed on the dedicated host.
79910
+ *
79911
+ * @param request ReleaseDedicatedHostRequest
79912
+ * @param runtime runtime options for this request RuntimeOptions
79913
+ * @return ReleaseDedicatedHostResponse
79914
+ */
78544
79915
  async releaseDedicatedHostWithOptions(request: ReleaseDedicatedHostRequest, runtime: $Util.RuntimeOptions): Promise<ReleaseDedicatedHostResponse> {
78545
79916
  Util.validateModel(request);
78546
79917
  let query = { };
@@ -78585,6 +79956,12 @@ export default class Client extends OpenApi {
78585
79956
  return $tea.cast<ReleaseDedicatedHostResponse>(await this.callApi(params, req, runtime), new ReleaseDedicatedHostResponse({}));
78586
79957
  }
78587
79958
 
79959
+ /**
79960
+ * Before you release a pay-as-you-go dedicated host, make sure that no Elastic Compute Service (ECS) instances are deployed on the dedicated host.
79961
+ *
79962
+ * @param request ReleaseDedicatedHostRequest
79963
+ * @return ReleaseDedicatedHostResponse
79964
+ */
78588
79965
  async releaseDedicatedHost(request: ReleaseDedicatedHostRequest): Promise<ReleaseDedicatedHostResponse> {
78589
79966
  let runtime = new $Util.RuntimeOptions({ });
78590
79967
  return await this.releaseDedicatedHostWithOptions(request, runtime);
@@ -78820,6 +80197,14 @@ export default class Client extends OpenApi {
78820
80197
  return await this.removeTagsWithOptions(request, runtime);
78821
80198
  }
78822
80199
 
80200
+ /**
80201
+ * ## Description
80202
+ * When you renew the subscription dedicated hosts, deductible vouchers are used first by default. Make sure that your account supports credit card payments or balance payments.
80203
+ *
80204
+ * @param request RenewDedicatedHostsRequest
80205
+ * @param runtime runtime options for this request RuntimeOptions
80206
+ * @return RenewDedicatedHostsResponse
80207
+ */
78823
80208
  async renewDedicatedHostsWithOptions(request: RenewDedicatedHostsRequest, runtime: $Util.RuntimeOptions): Promise<RenewDedicatedHostsResponse> {
78824
80209
  Util.validateModel(request);
78825
80210
  let query = { };
@@ -78876,6 +80261,13 @@ export default class Client extends OpenApi {
78876
80261
  return $tea.cast<RenewDedicatedHostsResponse>(await this.callApi(params, req, runtime), new RenewDedicatedHostsResponse({}));
78877
80262
  }
78878
80263
 
80264
+ /**
80265
+ * ## Description
80266
+ * When you renew the subscription dedicated hosts, deductible vouchers are used first by default. Make sure that your account supports credit card payments or balance payments.
80267
+ *
80268
+ * @param request RenewDedicatedHostsRequest
80269
+ * @return RenewDedicatedHostsResponse
80270
+ */
78879
80271
  async renewDedicatedHosts(request: RenewDedicatedHostsRequest): Promise<RenewDedicatedHostsResponse> {
78880
80272
  let runtime = new $Util.RuntimeOptions({ });
78881
80273
  return await this.renewDedicatedHostsWithOptions(request, runtime);
@@ -78961,6 +80353,14 @@ export default class Client extends OpenApi {
78961
80353
  return await this.renewInstanceWithOptions(request, runtime);
78962
80354
  }
78963
80355
 
80356
+ /**
80357
+ * * Before you call this operation, make sure that you fully understand the billing method of reserved instances. For more information, see [Reserved instances](~~100371~~).
80358
+ * * You can call the [DescribeReservedInstances](~~100065~~) operation to query the reserved instances that you purchased.
80359
+ *
80360
+ * @param request RenewReservedInstancesRequest
80361
+ * @param runtime runtime options for this request RuntimeOptions
80362
+ * @return RenewReservedInstancesResponse
80363
+ */
78964
80364
  async renewReservedInstancesWithOptions(request: RenewReservedInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RenewReservedInstancesResponse> {
78965
80365
  Util.validateModel(request);
78966
80366
  let query = { };
@@ -79025,11 +80425,38 @@ export default class Client extends OpenApi {
79025
80425
  return $tea.cast<RenewReservedInstancesResponse>(await this.callApi(params, req, runtime), new RenewReservedInstancesResponse({}));
79026
80426
  }
79027
80427
 
80428
+ /**
80429
+ * * Before you call this operation, make sure that you fully understand the billing method of reserved instances. For more information, see [Reserved instances](~~100371~~).
80430
+ * * You can call the [DescribeReservedInstances](~~100065~~) operation to query the reserved instances that you purchased.
80431
+ *
80432
+ * @param request RenewReservedInstancesRequest
80433
+ * @return RenewReservedInstancesResponse
80434
+ */
79028
80435
  async renewReservedInstances(request: RenewReservedInstancesRequest): Promise<RenewReservedInstancesResponse> {
79029
80436
  let runtime = new $Util.RuntimeOptions({ });
79030
80437
  return await this.renewReservedInstancesWithOptions(request, runtime);
79031
80438
  }
79032
80439
 
80440
+ /**
80441
+ * When you call this operation, take note of the following items:
80442
+ * * You must specify the `ImageId` parameter or the `DiskId` parameter. You cannot specify both parameters in the same request. Otherwise, the request fails and an error message is returned.````
80443
+ * > You can use the `DiskId` parameter to replace the operating system of an instance. This feature is in invitational preview. To use this feature, [submit a ticket](https://workorder-intl.console.aliyun.com/console.htm).
80444
+ * * The category of the system disk cannot be changed.
80445
+ * * The billing method of the system disk cannot be changed.
80446
+ * * The instance must be in the `Stopped` state.
80447
+ * **
80448
+ * **Note**This item is applicable only to instances in virtual private clouds (VPCs). If the instance is a pay-as-you-go instance and the economical mode is enabled by default for the instance, you must set the stop mode to the standard mode when you stop the instance. This prevents instance restart failures caused by insufficient resources after the system disk is replaced. For more information, see [StopInstance](~~25501~~).
80449
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.`` For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
80450
+ * * You cannot have unpaid orders that are associated with the instance.
80451
+ * * You can configure the `SystemDisk.Size` parameter to specify the capacity of the new system disk.
80452
+ * After you call this operation, you can use one of the following methods to check whether the system disk is replaced:
80453
+ * * Call the [DescribeDisks](~~25514~~) operation to query the state of the new system disk. If the new system disk is in the In_use state, the system disk is replaced.
80454
+ * * Call the [DescribeInstances](~~25506~~) operation to query the state of the instance whose system disk is replaced. If `OperationLocks` in the response is empty, the system disk is replaced.
80455
+ *
80456
+ * @param request ReplaceSystemDiskRequest
80457
+ * @param runtime runtime options for this request RuntimeOptions
80458
+ * @return ReplaceSystemDiskResponse
80459
+ */
79033
80460
  async replaceSystemDiskWithOptions(request: ReplaceSystemDiskRequest, runtime: $Util.RuntimeOptions): Promise<ReplaceSystemDiskResponse> {
79034
80461
  Util.validateModel(request);
79035
80462
  let query = { };
@@ -79130,6 +80557,25 @@ export default class Client extends OpenApi {
79130
80557
  return $tea.cast<ReplaceSystemDiskResponse>(await this.callApi(params, req, runtime), new ReplaceSystemDiskResponse({}));
79131
80558
  }
79132
80559
 
80560
+ /**
80561
+ * When you call this operation, take note of the following items:
80562
+ * * You must specify the `ImageId` parameter or the `DiskId` parameter. You cannot specify both parameters in the same request. Otherwise, the request fails and an error message is returned.````
80563
+ * > You can use the `DiskId` parameter to replace the operating system of an instance. This feature is in invitational preview. To use this feature, [submit a ticket](https://workorder-intl.console.aliyun.com/console.htm).
80564
+ * * The category of the system disk cannot be changed.
80565
+ * * The billing method of the system disk cannot be changed.
80566
+ * * The instance must be in the `Stopped` state.
80567
+ * **
80568
+ * **Note**This item is applicable only to instances in virtual private clouds (VPCs). If the instance is a pay-as-you-go instance and the economical mode is enabled by default for the instance, you must set the stop mode to the standard mode when you stop the instance. This prevents instance restart failures caused by insufficient resources after the system disk is replaced. For more information, see [StopInstance](~~25501~~).
80569
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.`` For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
80570
+ * * You cannot have unpaid orders that are associated with the instance.
80571
+ * * You can configure the `SystemDisk.Size` parameter to specify the capacity of the new system disk.
80572
+ * After you call this operation, you can use one of the following methods to check whether the system disk is replaced:
80573
+ * * Call the [DescribeDisks](~~25514~~) operation to query the state of the new system disk. If the new system disk is in the In_use state, the system disk is replaced.
80574
+ * * Call the [DescribeInstances](~~25506~~) operation to query the state of the instance whose system disk is replaced. If `OperationLocks` in the response is empty, the system disk is replaced.
80575
+ *
80576
+ * @param request ReplaceSystemDiskRequest
80577
+ * @return ReplaceSystemDiskResponse
80578
+ */
79133
80579
  async replaceSystemDisk(request: ReplaceSystemDiskRequest): Promise<ReplaceSystemDiskResponse> {
79134
80580
  let runtime = new $Util.RuntimeOptions({ });
79135
80581
  return await this.replaceSystemDiskWithOptions(request, runtime);
@@ -79216,6 +80662,17 @@ export default class Client extends OpenApi {
79216
80662
  return await this.reportInstancesStatusWithOptions(request, runtime);
79217
80663
  }
79218
80664
 
80665
+ /**
80666
+ * When you call this operation, take note of the following items:
80667
+ * * The disk must be in the In Use (In_Use) or Unattached (Available) state.
80668
+ * * The Elastic Compute Service (ECS) instance to which the disk is attached must be in the Stopped (Stopped) state. You can call the [StopInstances](~~155372~~) operation to stop an instance.
80669
+ * * The snapshot specified by the SnapshotId parameter must be created from the disk specified by the DiskId parameter.
80670
+ * * When you call the [DescribeInstances](~~25506~~) operation to query instance information, if the response contains `{"OperationLocks": {"LockReason" : "security"}}` for an instance, the instance is locked for security reasons and no operations can be performed on the instance.
80671
+ *
80672
+ * @param request ResetDiskRequest
80673
+ * @param runtime runtime options for this request RuntimeOptions
80674
+ * @return ResetDiskResponse
80675
+ */
79219
80676
  async resetDiskWithOptions(request: ResetDiskRequest, runtime: $Util.RuntimeOptions): Promise<ResetDiskResponse> {
79220
80677
  Util.validateModel(request);
79221
80678
  let query = { };
@@ -79264,11 +80721,28 @@ export default class Client extends OpenApi {
79264
80721
  return $tea.cast<ResetDiskResponse>(await this.callApi(params, req, runtime), new ResetDiskResponse({}));
79265
80722
  }
79266
80723
 
80724
+ /**
80725
+ * When you call this operation, take note of the following items:
80726
+ * * The disk must be in the In Use (In_Use) or Unattached (Available) state.
80727
+ * * The Elastic Compute Service (ECS) instance to which the disk is attached must be in the Stopped (Stopped) state. You can call the [StopInstances](~~155372~~) operation to stop an instance.
80728
+ * * The snapshot specified by the SnapshotId parameter must be created from the disk specified by the DiskId parameter.
80729
+ * * When you call the [DescribeInstances](~~25506~~) operation to query instance information, if the response contains `{"OperationLocks": {"LockReason" : "security"}}` for an instance, the instance is locked for security reasons and no operations can be performed on the instance.
80730
+ *
80731
+ * @param request ResetDiskRequest
80732
+ * @return ResetDiskResponse
80733
+ */
79267
80734
  async resetDisk(request: ResetDiskRequest): Promise<ResetDiskResponse> {
79268
80735
  let runtime = new $Util.RuntimeOptions({ });
79269
80736
  return await this.resetDiskWithOptions(request, runtime);
79270
80737
  }
79271
80738
 
80739
+ /**
80740
+ * This operation will be removed in the future. We recommend that you call the [ResetDisk](~~25520~~) operation to roll back a disk.
80741
+ *
80742
+ * @param request ResetDisksRequest
80743
+ * @param runtime runtime options for this request RuntimeOptions
80744
+ * @return ResetDisksResponse
80745
+ */
79272
80746
  async resetDisksWithOptions(request: ResetDisksRequest, runtime: $Util.RuntimeOptions): Promise<ResetDisksResponse> {
79273
80747
  Util.validateModel(request);
79274
80748
  let query = { };
@@ -79317,11 +80791,30 @@ export default class Client extends OpenApi {
79317
80791
  return $tea.cast<ResetDisksResponse>(await this.callApi(params, req, runtime), new ResetDisksResponse({}));
79318
80792
  }
79319
80793
 
80794
+ /**
80795
+ * This operation will be removed in the future. We recommend that you call the [ResetDisk](~~25520~~) operation to roll back a disk.
80796
+ *
80797
+ * @param request ResetDisksRequest
80798
+ * @return ResetDisksResponse
80799
+ */
79320
80800
  async resetDisks(request: ResetDisksRequest): Promise<ResetDisksResponse> {
79321
80801
  let runtime = new $Util.RuntimeOptions({ });
79322
80802
  return await this.resetDisksWithOptions(request, runtime);
79323
80803
  }
79324
80804
 
80805
+ /**
80806
+ * ## Description
80807
+ * > Before you call this operation to resize a disk, you must check the partition format of the disk. You cannot resize a master boot record (MBR) disk to greater than or equal to 2 TiB without data loss. To resize an MBR disk to greater than or equal to 2 TiB in size, we recommend that you create and attach a new data disk with the desired size. Then, you can partition and format the new data disk to GUID partition table (GPT) and copy data from the MBR disk to the new GPT data disk. For more information, see [Resize disks offline](~~44986~~).
80808
+ * * 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`).
80809
+ * * You cannot resize a disk when a snapshot is being created for the disk.
80810
+ * * The instance to which the disk to be resized is attached must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
80811
+ * * After you resize a disk, its partitions and file systems are not changed. You must manually allocate the storage space on the disk after it is resized.
80812
+ * * 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.
80813
+ *
80814
+ * @param request ResizeDiskRequest
80815
+ * @param runtime runtime options for this request RuntimeOptions
80816
+ * @return ResizeDiskResponse
80817
+ */
79325
80818
  async resizeDiskWithOptions(request: ResizeDiskRequest, runtime: $Util.RuntimeOptions): Promise<ResizeDiskResponse> {
79326
80819
  Util.validateModel(request);
79327
80820
  let query = { };
@@ -79374,11 +80867,52 @@ export default class Client extends OpenApi {
79374
80867
  return $tea.cast<ResizeDiskResponse>(await this.callApi(params, req, runtime), new ResizeDiskResponse({}));
79375
80868
  }
79376
80869
 
80870
+ /**
80871
+ * ## Description
80872
+ * > Before you call this operation to resize a disk, you must check the partition format of the disk. You cannot resize a master boot record (MBR) disk to greater than or equal to 2 TiB without data loss. To resize an MBR disk to greater than or equal to 2 TiB in size, we recommend that you create and attach a new data disk with the desired size. Then, you can partition and format the new data disk to GUID partition table (GPT) and copy data from the MBR disk to the new GPT data disk. For more information, see [Resize disks offline](~~44986~~).
80873
+ * * 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`).
80874
+ * * You cannot resize a disk when a snapshot is being created for the disk.
80875
+ * * The instance to which the disk to be resized is attached must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
80876
+ * * After you resize a disk, its partitions and file systems are not changed. You must manually allocate the storage space on the disk after it is resized.
80877
+ * * 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.
80878
+ *
80879
+ * @param request ResizeDiskRequest
80880
+ * @return ResizeDiskResponse
80881
+ */
79377
80882
  async resizeDisk(request: ResizeDiskRequest): Promise<ResizeDiskResponse> {
79378
80883
  let runtime = new $Util.RuntimeOptions({ });
79379
80884
  return await this.resizeDiskWithOptions(request, runtime);
79380
80885
  }
79381
80886
 
80887
+ /**
80888
+ * When you call this operation, you can use one of the following groups of parameters to specify the security group rules that you want to delete:
80889
+ * * Parameters used to specify the IDs of security group rules. We recommend that you specify the IDs of security group rules to delete the rules. - If the specified security group rule ID does not exist, an error is reported. - Parameters that are no longer used and their Permissions.N-prefixed counterparts cannot be specified at the same time. - Sample request:
80890
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup
80891
+ * &SecurityGroupId=sg-bp67acfmxazb4p****
80892
+ * &SecurityGroupRuleId.1=sgr-bpdfmk****
80893
+ * &SecurityGroupRuleId.2=sgr-bpdfmg****
80894
+ * &<Common request parameters>
80895
+ * * Parameters prefixed with Permissions.N.
80896
+ * * If no security group rule matches the specified parameters, the call to RevokeSecurityGroup is successful but no security group rule is deleted.
80897
+ * * Security group rule IDs and parameters without the Permissions.N prefix cannot be specified.
80898
+ * * You can determine an inbound rule by specifying one of the following groups of parameters. You cannot determine a security group rule by specifying only one parameter.
80899
+ * * Parameters used to determine an inbound security group rule that controls access from a specified CIDR block: SecurityGroupId, Permissions.N.IpProtocol, Permissions.N.PortRange, Permissions.N.SourcePortRange, Permissions.N.NicType, Permissions.N.Policy, Permissions.N.DestCidrIp, and Permissions.N.SourceCidrIp. The Permissions.N.SourcePortRange and Permissions.N.DestCidrIp parameters are optional. Sample request:
80900
+ * ```
80901
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup&SecurityGroupId=sg-bp67acfmxazb4p****&Permissions.1.SourceCidrIp=10.0.0.0/8&Permissions.1.IpProtocol=TCP&Permissions.1.PortRange=80/80&Permissions.1.NicType=intranet&Permissions.1.Policy=accept&<Common request parameters>
80902
+ * ```
80903
+ * * Parameters used to determine an inbound security group rule that controls access from a security group: SecurityGroupId, Permissions.N.IpProtocol, Permissions.N.PortRange, Permissions.N.SourcePortRange, Permissions.N.NicType, Permissions.N.Policy, Permissions.N.DestCidrIp, and Permissions.N.SourceGroupId. The Permissions.N.SourcePortRange and Permissions.N.DestCidrIp parameters are optional. Sample request:
80904
+ * ```
80905
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup \\&SecurityGroupId=sg-bp67acfmxazb4p****&Permissions.1.SourceGroupId=sg-bp67acfmxa123b****&Permissions.1.IpProtocol=TCP&Permissions.1.PortRange=80/80&Permissions.1.NicType=intranet&Permissions.1.Policy=accept&<Common request parameters>
80906
+ * ```
80907
+ * * Parameters used to delete an inbound security group rule that controls access from a prefix list. SecurityGroupId, Permissions.N.IpProtocol, Permissions.N.PortRange, Permissions.N.SourcePortRange, Permissions.N.NicType, Permissions.N.Policy, Permissions.N.DestCidrIp, and Permissions.N.SourcePrefixListId. The Permissions.N.SourcePortRange and Permissions.N.DestCidrIp parameters are optional. Sample request:
80908
+ * ```
80909
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup&SecurityGroupId=sg-bp67acfmxazb4p****&Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****&Permissions.1.IpProtocol=TCP&Permissions.1.PortRange=80/80&Permissions.1.NicType=intranet&Permissions.1.Policy=accept&<Common request parameters>
80910
+ * ```
80911
+ *
80912
+ * @param request RevokeSecurityGroupRequest
80913
+ * @param runtime runtime options for this request RuntimeOptions
80914
+ * @return RevokeSecurityGroupResponse
80915
+ */
79382
80916
  async revokeSecurityGroupWithOptions(request: RevokeSecurityGroupRequest, runtime: $Util.RuntimeOptions): Promise<RevokeSecurityGroupResponse> {
79383
80917
  Util.validateModel(request);
79384
80918
  let query = { };
@@ -79507,6 +81041,34 @@ export default class Client extends OpenApi {
79507
81041
  return $tea.cast<RevokeSecurityGroupResponse>(await this.callApi(params, req, runtime), new RevokeSecurityGroupResponse({}));
79508
81042
  }
79509
81043
 
81044
+ /**
81045
+ * When you call this operation, you can use one of the following groups of parameters to specify the security group rules that you want to delete:
81046
+ * * Parameters used to specify the IDs of security group rules. We recommend that you specify the IDs of security group rules to delete the rules. - If the specified security group rule ID does not exist, an error is reported. - Parameters that are no longer used and their Permissions.N-prefixed counterparts cannot be specified at the same time. - Sample request:
81047
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup
81048
+ * &SecurityGroupId=sg-bp67acfmxazb4p****
81049
+ * &SecurityGroupRuleId.1=sgr-bpdfmk****
81050
+ * &SecurityGroupRuleId.2=sgr-bpdfmg****
81051
+ * &<Common request parameters>
81052
+ * * Parameters prefixed with Permissions.N.
81053
+ * * If no security group rule matches the specified parameters, the call to RevokeSecurityGroup is successful but no security group rule is deleted.
81054
+ * * Security group rule IDs and parameters without the Permissions.N prefix cannot be specified.
81055
+ * * You can determine an inbound rule by specifying one of the following groups of parameters. You cannot determine a security group rule by specifying only one parameter.
81056
+ * * Parameters used to determine an inbound security group rule that controls access from a specified CIDR block: SecurityGroupId, Permissions.N.IpProtocol, Permissions.N.PortRange, Permissions.N.SourcePortRange, Permissions.N.NicType, Permissions.N.Policy, Permissions.N.DestCidrIp, and Permissions.N.SourceCidrIp. The Permissions.N.SourcePortRange and Permissions.N.DestCidrIp parameters are optional. Sample request:
81057
+ * ```
81058
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup&SecurityGroupId=sg-bp67acfmxazb4p****&Permissions.1.SourceCidrIp=10.0.0.0/8&Permissions.1.IpProtocol=TCP&Permissions.1.PortRange=80/80&Permissions.1.NicType=intranet&Permissions.1.Policy=accept&<Common request parameters>
81059
+ * ```
81060
+ * * Parameters used to determine an inbound security group rule that controls access from a security group: SecurityGroupId, Permissions.N.IpProtocol, Permissions.N.PortRange, Permissions.N.SourcePortRange, Permissions.N.NicType, Permissions.N.Policy, Permissions.N.DestCidrIp, and Permissions.N.SourceGroupId. The Permissions.N.SourcePortRange and Permissions.N.DestCidrIp parameters are optional. Sample request:
81061
+ * ```
81062
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup \\&SecurityGroupId=sg-bp67acfmxazb4p****&Permissions.1.SourceGroupId=sg-bp67acfmxa123b****&Permissions.1.IpProtocol=TCP&Permissions.1.PortRange=80/80&Permissions.1.NicType=intranet&Permissions.1.Policy=accept&<Common request parameters>
81063
+ * ```
81064
+ * * Parameters used to delete an inbound security group rule that controls access from a prefix list. SecurityGroupId, Permissions.N.IpProtocol, Permissions.N.PortRange, Permissions.N.SourcePortRange, Permissions.N.NicType, Permissions.N.Policy, Permissions.N.DestCidrIp, and Permissions.N.SourcePrefixListId. The Permissions.N.SourcePortRange and Permissions.N.DestCidrIp parameters are optional. Sample request:
81065
+ * ```
81066
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup&SecurityGroupId=sg-bp67acfmxazb4p****&Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****&Permissions.1.IpProtocol=TCP&Permissions.1.PortRange=80/80&Permissions.1.NicType=intranet&Permissions.1.Policy=accept&<Common request parameters>
81067
+ * ```
81068
+ *
81069
+ * @param request RevokeSecurityGroupRequest
81070
+ * @return RevokeSecurityGroupResponse
81071
+ */
79510
81072
  async revokeSecurityGroup(request: RevokeSecurityGroupRequest): Promise<RevokeSecurityGroupResponse> {
79511
81073
  let runtime = new $Util.RuntimeOptions({ });
79512
81074
  return await this.revokeSecurityGroupWithOptions(request, runtime);
@@ -79922,6 +81484,33 @@ export default class Client extends OpenApi {
79922
81484
  return await this.runCommandWithOptions(request, runtime);
79923
81485
  }
79924
81486
 
81487
+ /**
81488
+ * * **Preparations**:
81489
+ * * The real-name verification is complete. For more information, see [Real-name verification](~~48263~~).
81490
+ * * Cost estimation: Learn about the billing methods of ECS resources. For more information, see [Billing overview](~~25398~~).
81491
+ * * Instance type selection: Call the [DescribeInstanceTypes](~~25620~~) operation to query the performance data of instance types, or see [Best practices for instance type selection](~~58291~~) to learn about how to select instance types.
81492
+ * * Query for available resources: Call the [DescribeAvailableResource](~~66186~~) operation to query available resources in a specific region or zone.
81493
+ * * Network planning: Make sure that you have security groups available for use. For more information, see [CreateSecurityGroup](~~25553~~). Before you create an instance of the Virtual Private Cloud (VPC) type, create a VPC in the region where you want to create the instance. For more information, see [Create a VPC](~~65430~~).
81494
+ * * **Precautions**:
81495
+ * * You can create a maximum of 100 instances at a time.
81496
+ * * You can use the `AutoReleaseTime` parameter to set the time when you want the instances to be automatically released.
81497
+ * * After instances are created, you can call the [DescribeInstances](~~25506~~) operation to check their states.
81498
+ * * By default, instances automatically start after they are created. Instances are ready for use when they are in the Running (`Running`) state.
81499
+ * * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to the throttling policy for your account. To increase the maximum bandwidth value, submit a ticket. The throttling policy imposes the following constraints: Within a single region, the total maximum bandwidth value of all instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s and that of all instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
81500
+ * * Different from the [CreateInstance](~~25499~~) operation, the `RunInstances` operation allows the system to assign public IP addresses to the new instances if you set the `InternetMaxBandwidthOut` parameter to a value greater than 0.
81501
+ * * When you call the RunInstances operation to create an instance, you can use one of the following methods to bind a primary elastic network interface (ENI) to the instance. Note that you can use only one of the methods to configure the primary ENI in each call. Otherwise, the call fails and an error message is returned. Specify parameters such as `SecurityGroupId`, `VSwitchId`, `PrivateIpAddress`, `NetworkInterfaceQueueNumber`, and `Ipv6AddressCount` to configure the primary ENI. Specify parameters that start with `NetworkInterface.N.` to configure the primary and secondary ENIs. If `NetworkInterface.N.InstanceType` is set to `Primary`, the primary ENI is bound to the instance. If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, a secondary ENI is bound to the instance.
81502
+ * * After you call this operation, an error is returned if a parameter is invalid or if available resources are insufficient. For more information, see the "Error codes" section of this topic.
81503
+ * > If the `QuotaExceed.ElasticQuota` error is returned when you call this operation, you have reached the maximum number of instances of the specified instance type that can be created within the specified region or the maximum number of vCPUs for all instance types in a zone. You can go to the [ECS console](https://ecs.console.aliyun.com/?spm=a2c8b.12215451.favorites.decs.5e3a336aMGTtzy#/privileges/quota) or [Quota Center](https://quotas.console.aliyun.com/products/ecs/quotas) to request a quota increase.
81504
+ * * **Best practices**:
81505
+ * * We recommend that you use auto provisioning groups in the following scenarios: Resources are insufficient to create more than 100 instances at a time, you want to quickly create instances regardless of resource configurations such as instance types or zones, or you want to create instances to consume a specific total number of vCPUs regardless of the number of the instances. You can call the [CreateAutoProvisioningGroup](~~122738~~) operation to create an auto provisioning group to deploy an instance cluster across different billing methods, instance families, and zones. For more information, see [Use auto provisioning group-related API operations to create multiple ECS instances at the same time](~~200772~~).
81506
+ * * You can call the `RunInstances` operation to batch create instances. To better manage and search for these instances, we recommend that you specify tags for the instances by using the `Tag.N.Key` and `Tag.N.Value` parameters. You can also append incremental suffixes (`UniqueSuffix`) to the hostname (`HostName`) and to the instance name (`InstanceName`).
81507
+ * * A launch template contains parameters required to create an instance so that you do not have to specify these parameters every time you create instances. You can call the [CreateLaunchTemplate](~~74686~~) operation to create a launch template. Then, in your request to call the `RunInstances` operation, you can specify the `LaunchTemplateId` and `LaunchTemplateVersion` parameters to use the launch template.
81508
+ * * When you create an instance in the [ECS console](https://ecs.console.aliyun.com/), you can view the best practices for calling the `RunInstances` operation. In the Preview step, click View Open API in the Configurations Selected section. In the dialog box that appears, the left-side **API Workflow** section shows the operations and request parameters that are related to the `RunInstances` operation. The right-side section shows SDK examples for the **Java** and **Python** programming languages.
81509
+ *
81510
+ * @param request RunInstancesRequest
81511
+ * @param runtime runtime options for this request RuntimeOptions
81512
+ * @return RunInstancesResponse
81513
+ */
79925
81514
  async runInstancesWithOptions(request: RunInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RunInstancesResponse> {
79926
81515
  Util.validateModel(request);
79927
81516
  let query = { };
@@ -80246,11 +81835,50 @@ export default class Client extends OpenApi {
80246
81835
  return $tea.cast<RunInstancesResponse>(await this.callApi(params, req, runtime), new RunInstancesResponse({}));
80247
81836
  }
80248
81837
 
81838
+ /**
81839
+ * * **Preparations**:
81840
+ * * The real-name verification is complete. For more information, see [Real-name verification](~~48263~~).
81841
+ * * Cost estimation: Learn about the billing methods of ECS resources. For more information, see [Billing overview](~~25398~~).
81842
+ * * Instance type selection: Call the [DescribeInstanceTypes](~~25620~~) operation to query the performance data of instance types, or see [Best practices for instance type selection](~~58291~~) to learn about how to select instance types.
81843
+ * * Query for available resources: Call the [DescribeAvailableResource](~~66186~~) operation to query available resources in a specific region or zone.
81844
+ * * Network planning: Make sure that you have security groups available for use. For more information, see [CreateSecurityGroup](~~25553~~). Before you create an instance of the Virtual Private Cloud (VPC) type, create a VPC in the region where you want to create the instance. For more information, see [Create a VPC](~~65430~~).
81845
+ * * **Precautions**:
81846
+ * * You can create a maximum of 100 instances at a time.
81847
+ * * You can use the `AutoReleaseTime` parameter to set the time when you want the instances to be automatically released.
81848
+ * * After instances are created, you can call the [DescribeInstances](~~25506~~) operation to check their states.
81849
+ * * By default, instances automatically start after they are created. Instances are ready for use when they are in the Running (`Running`) state.
81850
+ * * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to the throttling policy for your account. To increase the maximum bandwidth value, submit a ticket. The throttling policy imposes the following constraints: Within a single region, the total maximum bandwidth value of all instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s and that of all instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
81851
+ * * Different from the [CreateInstance](~~25499~~) operation, the `RunInstances` operation allows the system to assign public IP addresses to the new instances if you set the `InternetMaxBandwidthOut` parameter to a value greater than 0.
81852
+ * * When you call the RunInstances operation to create an instance, you can use one of the following methods to bind a primary elastic network interface (ENI) to the instance. Note that you can use only one of the methods to configure the primary ENI in each call. Otherwise, the call fails and an error message is returned. Specify parameters such as `SecurityGroupId`, `VSwitchId`, `PrivateIpAddress`, `NetworkInterfaceQueueNumber`, and `Ipv6AddressCount` to configure the primary ENI. Specify parameters that start with `NetworkInterface.N.` to configure the primary and secondary ENIs. If `NetworkInterface.N.InstanceType` is set to `Primary`, the primary ENI is bound to the instance. If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, a secondary ENI is bound to the instance.
81853
+ * * After you call this operation, an error is returned if a parameter is invalid or if available resources are insufficient. For more information, see the "Error codes" section of this topic.
81854
+ * > If the `QuotaExceed.ElasticQuota` error is returned when you call this operation, you have reached the maximum number of instances of the specified instance type that can be created within the specified region or the maximum number of vCPUs for all instance types in a zone. You can go to the [ECS console](https://ecs.console.aliyun.com/?spm=a2c8b.12215451.favorites.decs.5e3a336aMGTtzy#/privileges/quota) or [Quota Center](https://quotas.console.aliyun.com/products/ecs/quotas) to request a quota increase.
81855
+ * * **Best practices**:
81856
+ * * We recommend that you use auto provisioning groups in the following scenarios: Resources are insufficient to create more than 100 instances at a time, you want to quickly create instances regardless of resource configurations such as instance types or zones, or you want to create instances to consume a specific total number of vCPUs regardless of the number of the instances. You can call the [CreateAutoProvisioningGroup](~~122738~~) operation to create an auto provisioning group to deploy an instance cluster across different billing methods, instance families, and zones. For more information, see [Use auto provisioning group-related API operations to create multiple ECS instances at the same time](~~200772~~).
81857
+ * * You can call the `RunInstances` operation to batch create instances. To better manage and search for these instances, we recommend that you specify tags for the instances by using the `Tag.N.Key` and `Tag.N.Value` parameters. You can also append incremental suffixes (`UniqueSuffix`) to the hostname (`HostName`) and to the instance name (`InstanceName`).
81858
+ * * A launch template contains parameters required to create an instance so that you do not have to specify these parameters every time you create instances. You can call the [CreateLaunchTemplate](~~74686~~) operation to create a launch template. Then, in your request to call the `RunInstances` operation, you can specify the `LaunchTemplateId` and `LaunchTemplateVersion` parameters to use the launch template.
81859
+ * * When you create an instance in the [ECS console](https://ecs.console.aliyun.com/), you can view the best practices for calling the `RunInstances` operation. In the Preview step, click View Open API in the Configurations Selected section. In the dialog box that appears, the left-side **API Workflow** section shows the operations and request parameters that are related to the `RunInstances` operation. The right-side section shows SDK examples for the **Java** and **Python** programming languages.
81860
+ *
81861
+ * @param request RunInstancesRequest
81862
+ * @return RunInstancesResponse
81863
+ */
80249
81864
  async runInstances(request: RunInstancesRequest): Promise<RunInstancesResponse> {
80250
81865
  let runtime = new $Util.RuntimeOptions({ });
80251
81866
  return await this.runInstancesWithOptions(request, runtime);
80252
81867
  }
80253
81868
 
81869
+ /**
81870
+ * * The instances to which to send a file must be in the Running (`Running`) state.
81871
+ * * The Cloud Assistant client must be installed on the instances. For information about how to install the Cloud Assistant client, see [InstallCloudAssistant](~~85916~~).
81872
+ * * Only the Cloud Assistant client versions that are later than the following ones support file sending. If the `ClientNeedUpgrade` error code is returned, you must upgrade the Cloud Assistant client to the latest version. For more information, see [Update or disable updates for the Cloud Assistant client](~~134383~~).
81873
+ * * For Linux instances, the version of the Cloud Assistant client must be later than 1.0.2.569.
81874
+ * * For Windows instances, the version of the Cloud Assistant client must be later than 1.0.0.149.
81875
+ * * The file to be sent must not exceed 32 KB in size after it is encoded in Base64.
81876
+ * * The file may fail to be sent due to exceptions on the instances, network, or the Cloud Assistance client. Call the [DescribeSendFileResults](~~~~) operation to troubleshoot the issues.
81877
+ *
81878
+ * @param request SendFileRequest
81879
+ * @param runtime runtime options for this request RuntimeOptions
81880
+ * @return SendFileResponse
81881
+ */
80254
81882
  async sendFileWithOptions(request: SendFileRequest, runtime: $Util.RuntimeOptions): Promise<SendFileResponse> {
80255
81883
  Util.validateModel(request);
80256
81884
  let query = { };
@@ -80347,6 +81975,18 @@ export default class Client extends OpenApi {
80347
81975
  return $tea.cast<SendFileResponse>(await this.callApi(params, req, runtime), new SendFileResponse({}));
80348
81976
  }
80349
81977
 
81978
+ /**
81979
+ * * The instances to which to send a file must be in the Running (`Running`) state.
81980
+ * * The Cloud Assistant client must be installed on the instances. For information about how to install the Cloud Assistant client, see [InstallCloudAssistant](~~85916~~).
81981
+ * * Only the Cloud Assistant client versions that are later than the following ones support file sending. If the `ClientNeedUpgrade` error code is returned, you must upgrade the Cloud Assistant client to the latest version. For more information, see [Update or disable updates for the Cloud Assistant client](~~134383~~).
81982
+ * * For Linux instances, the version of the Cloud Assistant client must be later than 1.0.2.569.
81983
+ * * For Windows instances, the version of the Cloud Assistant client must be later than 1.0.0.149.
81984
+ * * The file to be sent must not exceed 32 KB in size after it is encoded in Base64.
81985
+ * * The file may fail to be sent due to exceptions on the instances, network, or the Cloud Assistance client. Call the [DescribeSendFileResults](~~~~) operation to troubleshoot the issues.
81986
+ *
81987
+ * @param request SendFileRequest
81988
+ * @return SendFileResponse
81989
+ */
80350
81990
  async sendFile(request: SendFileRequest): Promise<SendFileResponse> {
80351
81991
  let runtime = new $Util.RuntimeOptions({ });
80352
81992
  return await this.sendFileWithOptions(request, runtime);
@@ -80416,6 +82056,14 @@ export default class Client extends OpenApi {
80416
82056
  return await this.startElasticityAssuranceWithOptions(request, runtime);
80417
82057
  }
80418
82058
 
82059
+ /**
82060
+ * * After an image template is created, you must call the StartImagePipelineExecution operation to execute an image creation task. The system creates, distributes, and shares an image based on the parameters configured in the image template.
82061
+ * * Only one image creation task can be executed at a time based on a single image template. You can call the CancelImagePipelineExecution operation multiple times to cancel multiple image creation tasks at a time. If you cancel some image creation tasks, the other tasks are not affected.
82062
+ *
82063
+ * @param request StartImagePipelineExecutionRequest
82064
+ * @param runtime runtime options for this request RuntimeOptions
82065
+ * @return StartImagePipelineExecutionResponse
82066
+ */
80419
82067
  async startImagePipelineExecutionWithOptions(request: StartImagePipelineExecutionRequest, runtime: $Util.RuntimeOptions): Promise<StartImagePipelineExecutionResponse> {
80420
82068
  Util.validateModel(request);
80421
82069
  let query = { };
@@ -80472,11 +82120,28 @@ export default class Client extends OpenApi {
80472
82120
  return $tea.cast<StartImagePipelineExecutionResponse>(await this.callApi(params, req, runtime), new StartImagePipelineExecutionResponse({}));
80473
82121
  }
80474
82122
 
82123
+ /**
82124
+ * * After an image template is created, you must call the StartImagePipelineExecution operation to execute an image creation task. The system creates, distributes, and shares an image based on the parameters configured in the image template.
82125
+ * * Only one image creation task can be executed at a time based on a single image template. You can call the CancelImagePipelineExecution operation multiple times to cancel multiple image creation tasks at a time. If you cancel some image creation tasks, the other tasks are not affected.
82126
+ *
82127
+ * @param request StartImagePipelineExecutionRequest
82128
+ * @return StartImagePipelineExecutionResponse
82129
+ */
80475
82130
  async startImagePipelineExecution(request: StartImagePipelineExecutionRequest): Promise<StartImagePipelineExecutionResponse> {
80476
82131
  let runtime = new $Util.RuntimeOptions({ });
80477
82132
  return await this.startImagePipelineExecutionWithOptions(request, runtime);
80478
82133
  }
80479
82134
 
82135
+ /**
82136
+ * ## Usage notes
82137
+ * When you call this operation, take note of the following items:
82138
+ * * The instances that you want to start must be in the **Stopped** (`Stopped`) state.
82139
+ * * If the response contains `{"OperationLocks"`: `{"LockReason" : "security"}}` for an instance when you query the information of the instance, the instance is locked for [security reasons](~~25695~~) and cannot be started.
82140
+ *
82141
+ * @param request StartInstanceRequest
82142
+ * @param runtime runtime options for this request RuntimeOptions
82143
+ * @return StartInstanceResponse
82144
+ */
80480
82145
  async startInstanceWithOptions(request: StartInstanceRequest, runtime: $Util.RuntimeOptions): Promise<StartInstanceResponse> {
80481
82146
  Util.validateModel(request);
80482
82147
  let query = { };
@@ -80525,11 +82190,30 @@ export default class Client extends OpenApi {
80525
82190
  return $tea.cast<StartInstanceResponse>(await this.callApi(params, req, runtime), new StartInstanceResponse({}));
80526
82191
  }
80527
82192
 
82193
+ /**
82194
+ * ## Usage notes
82195
+ * When you call this operation, take note of the following items:
82196
+ * * The instances that you want to start must be in the **Stopped** (`Stopped`) state.
82197
+ * * If the response contains `{"OperationLocks"`: `{"LockReason" : "security"}}` for an instance when you query the information of the instance, the instance is locked for [security reasons](~~25695~~) and cannot be started.
82198
+ *
82199
+ * @param request StartInstanceRequest
82200
+ * @return StartInstanceResponse
82201
+ */
80528
82202
  async startInstance(request: StartInstanceRequest): Promise<StartInstanceResponse> {
80529
82203
  let runtime = new $Util.RuntimeOptions({ });
80530
82204
  return await this.startInstanceWithOptions(request, runtime);
80531
82205
  }
80532
82206
 
82207
+ /**
82208
+ * When you call this operation, take note of the following items:
82209
+ * * The ECS instances that you want to start must be in the **Stopped** (`Stopped`) state.
82210
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the ECS instance is locked to ensure security. No operations are allowed on the ECS instance.
82211
+ * * You can start multiple ECS instances at the same time and use the `BatchOptimization` parameter to specify the batch operation mode.
82212
+ *
82213
+ * @param request StartInstancesRequest
82214
+ * @param runtime runtime options for this request RuntimeOptions
82215
+ * @return StartInstancesResponse
82216
+ */
80533
82217
  async startInstancesWithOptions(request: StartInstancesRequest, runtime: $Util.RuntimeOptions): Promise<StartInstancesResponse> {
80534
82218
  Util.validateModel(request);
80535
82219
  let query = { };
@@ -80582,11 +82266,35 @@ export default class Client extends OpenApi {
80582
82266
  return $tea.cast<StartInstancesResponse>(await this.callApi(params, req, runtime), new StartInstancesResponse({}));
80583
82267
  }
80584
82268
 
82269
+ /**
82270
+ * When you call this operation, take note of the following items:
82271
+ * * The ECS instances that you want to start must be in the **Stopped** (`Stopped`) state.
82272
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the ECS instance is locked to ensure security. No operations are allowed on the ECS instance.
82273
+ * * You can start multiple ECS instances at the same time and use the `BatchOptimization` parameter to specify the batch operation mode.
82274
+ *
82275
+ * @param request StartInstancesRequest
82276
+ * @return StartInstancesResponse
82277
+ */
80585
82278
  async startInstances(request: StartInstancesRequest): Promise<StartInstancesResponse> {
80586
82279
  let runtime = new $Util.RuntimeOptions({ });
80587
82280
  return await this.startInstancesWithOptions(request, runtime);
80588
82281
  }
80589
82282
 
82283
+ /**
82284
+ * ## Description
82285
+ * The session management feature is in public preview. To use this feature, log on with your Alibaba Cloud account and activate this feature.
82286
+ * 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. Before you call this operation to create a session to an ECS instance, take note of the following items:
82287
+ * - The ECS instance must be in the Running (Running) state.
82288
+ * - The Cloud Assistant client must be installed on the ECS instance. You can call the [DescribeCloudAssistantStatus](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/describecloudassistantstatus) operation to check whether the Cloud Assistant client is installed on the ECS instance and query the version number of the installed Cloud Assistant client. - If the Cloud Assistant client is not installed on the ECS instance, call the [InstallCloudAssistant](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/installcloudassistant) operation to install the client.
82289
+ * - Only the Cloud Assistant client versions that are later than the following ones support the session management feature. You can upgrade your Cloud Assistant client. For information about how to upgrade the Cloud Assistant client, see [Update or disable updates for the Cloud Assistant client](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/update-or-disable-updates-for-the-cloud-assistant-client). - For Linux operating systems: V2.2.3.256
82290
+ * - For Windows operating systems: V2.1.3.256
82291
+ * - Each WebSocket URL returned by the StartTerminalSession operation remains valid for 10 minutes.
82292
+ * - 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.
82293
+ *
82294
+ * @param request StartTerminalSessionRequest
82295
+ * @param runtime runtime options for this request RuntimeOptions
82296
+ * @return StartTerminalSessionResponse
82297
+ */
80590
82298
  async startTerminalSessionWithOptions(request: StartTerminalSessionRequest, runtime: $Util.RuntimeOptions): Promise<StartTerminalSessionResponse> {
80591
82299
  Util.validateModel(request);
80592
82300
  let query = { };
@@ -80639,11 +82347,33 @@ export default class Client extends OpenApi {
80639
82347
  return $tea.cast<StartTerminalSessionResponse>(await this.callApi(params, req, runtime), new StartTerminalSessionResponse({}));
80640
82348
  }
80641
82349
 
82350
+ /**
82351
+ * ## Description
82352
+ * The session management feature is in public preview. To use this feature, log on with your Alibaba Cloud account and activate this feature.
82353
+ * 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. Before you call this operation to create a session to an ECS instance, take note of the following items:
82354
+ * - The ECS instance must be in the Running (Running) state.
82355
+ * - The Cloud Assistant client must be installed on the ECS instance. You can call the [DescribeCloudAssistantStatus](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/describecloudassistantstatus) operation to check whether the Cloud Assistant client is installed on the ECS instance and query the version number of the installed Cloud Assistant client. - If the Cloud Assistant client is not installed on the ECS instance, call the [InstallCloudAssistant](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/installcloudassistant) operation to install the client.
82356
+ * - Only the Cloud Assistant client versions that are later than the following ones support the session management feature. You can upgrade your Cloud Assistant client. For information about how to upgrade the Cloud Assistant client, see [Update or disable updates for the Cloud Assistant client](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/update-or-disable-updates-for-the-cloud-assistant-client). - For Linux operating systems: V2.2.3.256
82357
+ * - For Windows operating systems: V2.1.3.256
82358
+ * - Each WebSocket URL returned by the StartTerminalSession operation remains valid for 10 minutes.
82359
+ * - 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.
82360
+ *
82361
+ * @param request StartTerminalSessionRequest
82362
+ * @return StartTerminalSessionResponse
82363
+ */
80642
82364
  async startTerminalSession(request: StartTerminalSessionRequest): Promise<StartTerminalSessionResponse> {
80643
82365
  let runtime = new $Util.RuntimeOptions({ });
80644
82366
  return await this.startTerminalSessionWithOptions(request, runtime);
80645
82367
  }
80646
82368
 
82369
+ /**
82370
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance. ``For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
82371
+ * * 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.
82372
+ *
82373
+ * @param request StopInstanceRequest
82374
+ * @param runtime runtime options for this request RuntimeOptions
82375
+ * @return StopInstanceResponse
82376
+ */
80647
82377
  async stopInstanceWithOptions(request: StopInstanceRequest, runtime: $Util.RuntimeOptions): Promise<StopInstanceResponse> {
80648
82378
  Util.validateModel(request);
80649
82379
  let query = { };
@@ -80704,11 +82434,27 @@ export default class Client extends OpenApi {
80704
82434
  return $tea.cast<StopInstanceResponse>(await this.callApi(params, req, runtime), new StopInstanceResponse({}));
80705
82435
  }
80706
82436
 
82437
+ /**
82438
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance. ``For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
82439
+ * * 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.
82440
+ *
82441
+ * @param request StopInstanceRequest
82442
+ * @return StopInstanceResponse
82443
+ */
80707
82444
  async stopInstance(request: StopInstanceRequest): Promise<StopInstanceResponse> {
80708
82445
  let runtime = new $Util.RuntimeOptions({ });
80709
82446
  return await this.stopInstanceWithOptions(request, runtime);
80710
82447
  }
80711
82448
 
82449
+ /**
82450
+ * * If you call the DescribeInstances operation and the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instances are locked for security reasons and cannot be stopped.
82451
+ * * If the economical mode is enabled for pay-as-you-go instances, you can set `StoppedMode` to KeepCharging to enable the standard mode for the instances. Then, after the instances are stopped in standard mode, you continue to be charged for them, and their instance type resources and public IP addresses are retained.
82452
+ * * Batch operations are supported. You can use the `BatchOptimization` parameter to specify the batch operation mode.
82453
+ *
82454
+ * @param request StopInstancesRequest
82455
+ * @param runtime runtime options for this request RuntimeOptions
82456
+ * @return StopInstancesResponse
82457
+ */
80712
82458
  async stopInstancesWithOptions(request: StopInstancesRequest, runtime: $Util.RuntimeOptions): Promise<StopInstancesResponse> {
80713
82459
  Util.validateModel(request);
80714
82460
  let query = { };
@@ -80769,11 +82515,27 @@ export default class Client extends OpenApi {
80769
82515
  return $tea.cast<StopInstancesResponse>(await this.callApi(params, req, runtime), new StopInstancesResponse({}));
80770
82516
  }
80771
82517
 
82518
+ /**
82519
+ * * If you call the DescribeInstances operation and the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instances are locked for security reasons and cannot be stopped.
82520
+ * * If the economical mode is enabled for pay-as-you-go instances, you can set `StoppedMode` to KeepCharging to enable the standard mode for the instances. Then, after the instances are stopped in standard mode, you continue to be charged for them, and their instance type resources and public IP addresses are retained.
82521
+ * * Batch operations are supported. You can use the `BatchOptimization` parameter to specify the batch operation mode.
82522
+ *
82523
+ * @param request StopInstancesRequest
82524
+ * @return StopInstancesResponse
82525
+ */
80772
82526
  async stopInstances(request: StopInstancesRequest): Promise<StopInstancesResponse> {
80773
82527
  let runtime = new $Util.RuntimeOptions({ });
80774
82528
  return await this.stopInstancesWithOptions(request, runtime);
80775
82529
  }
80776
82530
 
82531
+ /**
82532
+ * * If you stop the process of a command that runs only once, the executions that have started are not interrupted. The executions that have not started are canceled.
82533
+ * * 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.
82534
+ *
82535
+ * @param request StopInvocationRequest
82536
+ * @param runtime runtime options for this request RuntimeOptions
82537
+ * @return StopInvocationResponse
82538
+ */
80777
82539
  async stopInvocationWithOptions(request: StopInvocationRequest, runtime: $Util.RuntimeOptions): Promise<StopInvocationResponse> {
80778
82540
  Util.validateModel(request);
80779
82541
  let query = { };
@@ -80826,11 +82588,25 @@ export default class Client extends OpenApi {
80826
82588
  return $tea.cast<StopInvocationResponse>(await this.callApi(params, req, runtime), new StopInvocationResponse({}));
80827
82589
  }
80828
82590
 
82591
+ /**
82592
+ * * If you stop the process of a command that runs only once, the executions that have started are not interrupted. The executions that have not started are canceled.
82593
+ * * 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.
82594
+ *
82595
+ * @param request StopInvocationRequest
82596
+ * @return StopInvocationResponse
82597
+ */
80829
82598
  async stopInvocation(request: StopInvocationRequest): Promise<StopInvocationResponse> {
80830
82599
  let runtime = new $Util.RuntimeOptions({ });
80831
82600
  return await this.stopInvocationWithOptions(request, runtime);
80832
82601
  }
80833
82602
 
82603
+ /**
82604
+ * Before you add tags to a resource, Alibaba Cloud checks the number of existing tags of the resource. If the maximum number of tags is reached, an error message is returned. For more information, see the "Tag limits" section in [Limits](~~25412~~).
82605
+ *
82606
+ * @param request TagResourcesRequest
82607
+ * @param runtime runtime options for this request RuntimeOptions
82608
+ * @return TagResourcesResponse
82609
+ */
80834
82610
  async tagResourcesWithOptions(request: TagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<TagResourcesResponse> {
80835
82611
  Util.validateModel(request);
80836
82612
  let query = { };
@@ -80883,6 +82659,12 @@ export default class Client extends OpenApi {
80883
82659
  return $tea.cast<TagResourcesResponse>(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
80884
82660
  }
80885
82661
 
82662
+ /**
82663
+ * Before you add tags to a resource, Alibaba Cloud checks the number of existing tags of the resource. If the maximum number of tags is reached, an error message is returned. For more information, see the "Tag limits" section in [Limits](~~25412~~).
82664
+ *
82665
+ * @param request TagResourcesRequest
82666
+ * @return TagResourcesResponse
82667
+ */
80886
82668
  async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
80887
82669
  let runtime = new $Util.RuntimeOptions({ });
80888
82670
  return await this.tagResourcesWithOptions(request, runtime);