@alicloud/ecs20140526 4.1.1 → 4.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ecs20140526",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -44760,6 +44760,25 @@ export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCa
44760
44760
  }
44761
44761
  }
44762
44762
 
44763
+ export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupportedBootModes extends $tea.Model {
44764
+ supportedBootMode?: string[];
44765
+ static names(): { [key: string]: string } {
44766
+ return {
44767
+ supportedBootMode: 'SupportedBootMode',
44768
+ };
44769
+ }
44770
+
44771
+ static types(): { [key: string]: any } {
44772
+ return {
44773
+ supportedBootMode: { 'type': 'array', 'itemType': 'string' },
44774
+ };
44775
+ }
44776
+
44777
+ constructor(map?: { [key: string]: any }) {
44778
+ super(map);
44779
+ }
44780
+ }
44781
+
44763
44782
  export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceType extends $tea.Model {
44764
44783
  baselineCredit?: number;
44765
44784
  cpuArchitecture?: string;
@@ -44798,6 +44817,7 @@ export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceType extends
44798
44817
  primaryEniQueueNumber?: number;
44799
44818
  queuePairNumber?: number;
44800
44819
  secondaryEniQueueNumber?: number;
44820
+ supportedBootModes?: DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupportedBootModes;
44801
44821
  totalEniQueueQuantity?: number;
44802
44822
  static names(): { [key: string]: string } {
44803
44823
  return {
@@ -44838,6 +44858,7 @@ export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceType extends
44838
44858
  primaryEniQueueNumber: 'PrimaryEniQueueNumber',
44839
44859
  queuePairNumber: 'QueuePairNumber',
44840
44860
  secondaryEniQueueNumber: 'SecondaryEniQueueNumber',
44861
+ supportedBootModes: 'SupportedBootModes',
44841
44862
  totalEniQueueQuantity: 'TotalEniQueueQuantity',
44842
44863
  };
44843
44864
  }
@@ -44881,6 +44902,7 @@ export class DescribeInstanceTypesResponseBodyInstanceTypesInstanceType extends
44881
44902
  primaryEniQueueNumber: 'number',
44882
44903
  queuePairNumber: 'number',
44883
44904
  secondaryEniQueueNumber: 'number',
44905
+ supportedBootModes: DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupportedBootModes,
44884
44906
  totalEniQueueQuantity: 'number',
44885
44907
  };
44886
44908
  }
@@ -58300,19 +58322,20 @@ export default class Client extends OpenApi {
58300
58322
  }
58301
58323
 
58302
58324
  /**
58325
+ * ## [](#)Usage notes
58303
58326
  * * You can create commands of the following types:
58304
- * * RunBatScript: batch commands. These commands are applicable to Windows instances.
58305
- * * RunPowerShellScript: PowerShell commands. These commands are applicable to Windows instances.
58306
- * * RunShellScript: shell commands. These commands are applicable to Linux instances.
58307
- * * You can specify the TimeOut parameter to set the maximum timeout period for executions of a command on Elastic Compute Service (ECS) instances. If an execution times out, the Cloud Assistant client forcefully terminates the command process by canceling the process ID (PID) of the command. For more information, see [Install the Cloud Assistant client](~~64921~~).
58308
- * * When the one-time execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
58327
+ * * Batch commands (RunBatScript), applicable to Windows instances
58328
+ * * PowerShell commands (RunPowerShellScript), applicable to Windows instances
58329
+ * * Shell commands (RunShellScript), applicable to Linux instances
58330
+ * * You can specify the Timeout parameter to set the maximum timeout period for executions of a command on Elastic Compute Service (ECS) instances. If an execution times out, [Cloud Assistant Agent](~~64921~~) forcefully terminates the command process by canceling the process ID (PID) of the command.
58331
+ * * For a one-time task, when the execution times out, the state of the command ([InvokeRecordStatus](~~64845~~)) becomes Failed.
58309
58332
  * * For a scheduled task, take note of the following items:
58310
- * * The timeout period takes effect on each execution of the command.
58311
- * * When a scheduled execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
58312
- * * The timeout of one execution does not affect the subsequent executions of the command.
58313
- * * You can retain up to 500 to 10,000 Cloud Assistant commands in each region.
58314
- * * You can use the WorkingDir parameter to specify the execution directory of a Cloud Assistant command. For Linux instances, the default execution directory of a command is the home directory of the root user, which is `/root`. For Windows instances, the default execution directory of a command is the directory where the Cloud Assistant client process resides, such as `C:\\Windows\\System32`.
58315
- * * You can enable the custom parameter feature for a Cloud Assistant command by setting EnableParameter to true when you create the command. When you configure the CommandContent parameter, you can define custom parameters in the {{parameter}} format. Then, when the [InvokeCommand](~~64841~~) operation is called, the key-value pairs of custom parameters are passed in. For example, assume that the command content is `echo {{name}}`. You can use the Parameters parameter to pass in the `<name, Jack>` key-value pair when the InvokeCommand operation is called. The name key of the custom parameter is automatically replaced by the paired Jack value to generate a new command. Therefore, the `echo Jack` command is actually run.
58333
+ * * The timeout period takes effect on each execution.
58334
+ * * When an execution times out, the state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
58335
+ * * The timeout of one execution does not affect the subsequent executions.
58336
+ * * You can retain up to 500 to 50,000 Cloud Assistant commands in each region. You can also apply for a quota increase. For information about how to query and increase quotas, see [Manage quotas](~~184116~~).
58337
+ * * You can use WorkingDir to specify the execution directory of a Cloud Assistant command. For Linux instances, the default execution directory of Cloud Assistant commands is the home directory of the root user, which is `/root`. For Windows instances, the default execution directory of Cloud Assistant commands is the directory where the Cloud Assistant Agent process resides, such as `C:\\Windows\\System32`.
58338
+ * * You can enable the custom parameter feature for a Cloud Assistant command by setting EnableParameter to true. When you set CommandContent, you can define custom parameters in the {{parameter}} format. Then, when the [InvokeCommand](~~64841~~) operation is called, the key-value pairs of custom parameters are passed in. For example, if a command is `echo {{name}}`, the Parameters parameter can be used to pass in the `<name, Jack>` key-value pair when the InvokeCommand operation is called. The name key of the custom parameter is automatically replaced by the paired Jack value to generate a new command. As a result, the `echo Jack` command is run.
58316
58339
  *
58317
58340
  * @param request CreateCommandRequest
58318
58341
  * @param runtime runtime options for this request RuntimeOptions
@@ -58403,19 +58426,20 @@ export default class Client extends OpenApi {
58403
58426
  }
58404
58427
 
58405
58428
  /**
58429
+ * ## [](#)Usage notes
58406
58430
  * * You can create commands of the following types:
58407
- * * RunBatScript: batch commands. These commands are applicable to Windows instances.
58408
- * * RunPowerShellScript: PowerShell commands. These commands are applicable to Windows instances.
58409
- * * RunShellScript: shell commands. These commands are applicable to Linux instances.
58410
- * * You can specify the TimeOut parameter to set the maximum timeout period for executions of a command on Elastic Compute Service (ECS) instances. If an execution times out, the Cloud Assistant client forcefully terminates the command process by canceling the process ID (PID) of the command. For more information, see [Install the Cloud Assistant client](~~64921~~).
58411
- * * When the one-time execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
58431
+ * * Batch commands (RunBatScript), applicable to Windows instances
58432
+ * * PowerShell commands (RunPowerShellScript), applicable to Windows instances
58433
+ * * Shell commands (RunShellScript), applicable to Linux instances
58434
+ * * You can specify the Timeout parameter to set the maximum timeout period for executions of a command on Elastic Compute Service (ECS) instances. If an execution times out, [Cloud Assistant Agent](~~64921~~) forcefully terminates the command process by canceling the process ID (PID) of the command.
58435
+ * * For a one-time task, when the execution times out, the state of the command ([InvokeRecordStatus](~~64845~~)) becomes Failed.
58412
58436
  * * For a scheduled task, take note of the following items:
58413
- * * The timeout period takes effect on each execution of the command.
58414
- * * When a scheduled execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
58415
- * * The timeout of one execution does not affect the subsequent executions of the command.
58416
- * * You can retain up to 500 to 10,000 Cloud Assistant commands in each region.
58417
- * * You can use the WorkingDir parameter to specify the execution directory of a Cloud Assistant command. For Linux instances, the default execution directory of a command is the home directory of the root user, which is `/root`. For Windows instances, the default execution directory of a command is the directory where the Cloud Assistant client process resides, such as `C:\\Windows\\System32`.
58418
- * * You can enable the custom parameter feature for a Cloud Assistant command by setting EnableParameter to true when you create the command. When you configure the CommandContent parameter, you can define custom parameters in the {{parameter}} format. Then, when the [InvokeCommand](~~64841~~) operation is called, the key-value pairs of custom parameters are passed in. For example, assume that the command content is `echo {{name}}`. You can use the Parameters parameter to pass in the `<name, Jack>` key-value pair when the InvokeCommand operation is called. The name key of the custom parameter is automatically replaced by the paired Jack value to generate a new command. Therefore, the `echo Jack` command is actually run.
58437
+ * * The timeout period takes effect on each execution.
58438
+ * * When an execution times out, the state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
58439
+ * * The timeout of one execution does not affect the subsequent executions.
58440
+ * * You can retain up to 500 to 50,000 Cloud Assistant commands in each region. You can also apply for a quota increase. For information about how to query and increase quotas, see [Manage quotas](~~184116~~).
58441
+ * * You can use WorkingDir to specify the execution directory of a Cloud Assistant command. For Linux instances, the default execution directory of Cloud Assistant commands is the home directory of the root user, which is `/root`. For Windows instances, the default execution directory of Cloud Assistant commands is the directory where the Cloud Assistant Agent process resides, such as `C:\\Windows\\System32`.
58442
+ * * You can enable the custom parameter feature for a Cloud Assistant command by setting EnableParameter to true. When you set CommandContent, you can define custom parameters in the {{parameter}} format. Then, when the [InvokeCommand](~~64841~~) operation is called, the key-value pairs of custom parameters are passed in. For example, if a command is `echo {{name}}`, the Parameters parameter can be used to pass in the `<name, Jack>` key-value pair when the InvokeCommand operation is called. The name key of the custom parameter is automatically replaced by the paired Jack value to generate a new command. As a result, the `echo Jack` command is run.
58419
58443
  *
58420
58444
  * @param request CreateCommandRequest
58421
58445
  * @return CreateCommandResponse
@@ -60635,6 +60659,7 @@ export default class Client extends OpenApi {
60635
60659
  * * If NetworkInterfaceId is empty in the response, no ENI is created. Call the operation again to create an ENI.
60636
60660
  * * An ENI can be attached only to a single instance that resides in a virtual private cloud (VPC).
60637
60661
  * * When an ENI is detached from an instance and attached to another instance, the attributes of the ENI remain unchanged and network traffic is redirected to the new instance.
60662
+ * * When you call this operation to create an ENI, you can assign up to 49 secondary private IP addresses to the ENI.
60638
60663
  * * If you want to assign IPv6 addresses when you create an ENI, make sure that IPv6 is enabled for the vSwitch with which you want to associate the ENI. For more information, see [What is an IPv6 gateway?](~~98896~~)
60639
60664
  * * A quota is imposed on the number of ENIs that can be created per Alibaba Cloud region per account. You can view the quota in the ECS console. For more information, see [View and increase resource quotas](~~184115~~).
60640
60665
  * **For information about examples on how to call this operation, see** [Create an ENI](~~471552~~).
@@ -60798,6 +60823,7 @@ export default class Client extends OpenApi {
60798
60823
  * * If NetworkInterfaceId is empty in the response, no ENI is created. Call the operation again to create an ENI.
60799
60824
  * * An ENI can be attached only to a single instance that resides in a virtual private cloud (VPC).
60800
60825
  * * When an ENI is detached from an instance and attached to another instance, the attributes of the ENI remain unchanged and network traffic is redirected to the new instance.
60826
+ * * When you call this operation to create an ENI, you can assign up to 49 secondary private IP addresses to the ENI.
60801
60827
  * * If you want to assign IPv6 addresses when you create an ENI, make sure that IPv6 is enabled for the vSwitch with which you want to associate the ENI. For more information, see [What is an IPv6 gateway?](~~98896~~)
60802
60828
  * * A quota is imposed on the number of ENIs that can be created per Alibaba Cloud region per account. You can view the quota in the ECS console. For more information, see [View and increase resource quotas](~~184115~~).
60803
60829
  * **For information about examples on how to call this operation, see** [Create an ENI](~~471552~~).
@@ -68924,13 +68950,6 @@ export default class Client extends OpenApi {
68924
68950
  return await this.describeInstanceStatusWithOptions(request, runtime);
68925
68951
  }
68926
68952
 
68927
- /**
68928
- * > The DescribeInstanceTopology operation is in invitational preview and is not commercially available.
68929
- *
68930
- * @param request DescribeInstanceTopologyRequest
68931
- * @param runtime runtime options for this request RuntimeOptions
68932
- * @return DescribeInstanceTopologyResponse
68933
- */
68934
68953
  async describeInstanceTopologyWithOptions(request: DescribeInstanceTopologyRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstanceTopologyResponse> {
68935
68954
  Util.validateModel(request);
68936
68955
  let query = { };
@@ -68971,12 +68990,6 @@ export default class Client extends OpenApi {
68971
68990
  return $tea.cast<DescribeInstanceTopologyResponse>(await this.callApi(params, req, runtime), new DescribeInstanceTopologyResponse({}));
68972
68991
  }
68973
68992
 
68974
- /**
68975
- * > The DescribeInstanceTopology operation is in invitational preview and is not commercially available.
68976
- *
68977
- * @param request DescribeInstanceTopologyRequest
68978
- * @return DescribeInstanceTopologyResponse
68979
- */
68980
68993
  async describeInstanceTopology(request: DescribeInstanceTopologyRequest): Promise<DescribeInstanceTopologyResponse> {
68981
68994
  let runtime = new $Util.RuntimeOptions({ });
68982
68995
  return await this.describeInstanceTopologyWithOptions(request, runtime);
@@ -69672,10 +69685,12 @@ export default class Client extends OpenApi {
69672
69685
  }
69673
69686
 
69674
69687
  /**
69675
- * * After you run a command, the command may fail to run or may return unexpected results. You can call this operation to query the actual execution results.
69688
+ * ## [](#)Usage notes
69689
+ * * After you run a command, the command may fail to run or may return unexpected results. You can call this operation to query the execution results of a command.
69676
69690
  * * You can query information about command executions within the last four weeks. Up to 100,000 pieces of execution information can be retained.
69677
- * - Method 1: During a paged query, when you call the DescribeInvocationResults operation to retrieve the first page of results, set MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeInvocationResults operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.
69678
- * - Method 2: Use PageSize to specify the number of entries to return on each page and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
69691
+ * * You can use one of the following methods to check the responses:
69692
+ * * Method 1: During a paged query, when you call the DescribeInvocationResults operation to retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeInvocationResults operation to retrieve a new page of results, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
69693
+ * * Method 2: Use `PageSize` to specify the number of entries to return on each page and then use `PageNumber` to specify the number of the page to return. You can use only one of the preceding methods. If you specify `MaxResults` or `NextToken`, the `PageSize` and `PageNumber` request parameters do not take effect and the `TotalCount` response parameter is invalid.
69679
69694
  *
69680
69695
  * @param request DescribeInvocationResultsRequest
69681
69696
  * @param runtime runtime options for this request RuntimeOptions
@@ -69774,10 +69789,12 @@ export default class Client extends OpenApi {
69774
69789
  }
69775
69790
 
69776
69791
  /**
69777
- * * After you run a command, the command may fail to run or may return unexpected results. You can call this operation to query the actual execution results.
69792
+ * ## [](#)Usage notes
69793
+ * * After you run a command, the command may fail to run or may return unexpected results. You can call this operation to query the execution results of a command.
69778
69794
  * * You can query information about command executions within the last four weeks. Up to 100,000 pieces of execution information can be retained.
69779
- * - Method 1: During a paged query, when you call the DescribeInvocationResults operation to retrieve the first page of results, set MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeInvocationResults operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.
69780
- * - Method 2: Use PageSize to specify the number of entries to return on each page and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
69795
+ * * You can use one of the following methods to check the responses:
69796
+ * * Method 1: During a paged query, when you call the DescribeInvocationResults operation to retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeInvocationResults operation to retrieve a new page of results, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
69797
+ * * Method 2: Use `PageSize` to specify the number of entries to return on each page and then use `PageNumber` to specify the number of the page to return. You can use only one of the preceding methods. If you specify `MaxResults` or `NextToken`, the `PageSize` and `PageNumber` request parameters do not take effect and the `TotalCount` response parameter is invalid.
69781
69798
  *
69782
69799
  * @param request DescribeInvocationResultsRequest
69783
69800
  * @return DescribeInvocationResultsResponse
@@ -75617,17 +75634,17 @@ export default class Client extends OpenApi {
75617
75634
  * ## [](#)Usage notes
75618
75635
  * * The Elastic Compute Service (ECS) instances on which you want to run the Cloud Assistant command must meet the following requirements. If multiple ECS instances are specified and one of the instances does not meet the requirements for running the command, the call fails. You must specify instances that meet the requirements and call the InvokeCommand operation again.
75619
75636
  * * The instances are in the Running (`Running`) state. You can call the [DescribeInstances](~~25506~~) operation to query the status of instances.
75620
- * * Cloud Assistant Agent is installed on the instances. For more information, see [Install Cloud Assistant Agent](~~64921~~).
75637
+ * * Cloud Assistant Agent is installed on the instances. For more information, see [Install Cloud Assistant Agent on an ECS instance](~~64921~~).
75621
75638
  * * Before you run PowerShell commands on the instances, make sure that the instances have the PowerShell module configured.
75622
75639
  * * You can configure the command to run only once on the instances.
75623
75640
  * * You can configure the command to run multiple times on the instances based on a schedule.
75624
75641
  * * The schedule is specified by the Frequency parameter. The results of each execution of the command do not affect the next execution of the command.
75625
- * * If you use a cron expression to specify a schedule, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information, see [Configure the NTP service for ECS instances that run CentOS 6](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
75626
- * To ensure that scheduled tasks can run as expected, make sure that the version of Cloud Assistant Agent is not earlier than the following ones. You can configure a command to run at a fixed interval based on a rate expression, run only once at a specified time, or run at designated times based on a cron expression. If the ClientNeedUpgrade error code is returned, you must upgrade Cloud Assistant Agent to the latest version. For more information, see [Upgrade or disable upgrades for Cloud Assistant Agent](~~134383~~).
75642
+ * * If you use a cron expression to specify a schedule, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instances meets your business requirements. For more information, see [Manage the time synchronization service](~~92803~~).[](~~51890~~)
75643
+ * To ensure that scheduled tasks can run as expected, make sure that the version of Cloud Assistant Agent is not earlier than the following ones. A scheduled task can run a command at a fixed interval, only once at a specific time, or at specific times based on a cron expression in a specified year or time zone. If the ClientNeedUpgrade error code is returned, you must upgrade Cloud Assistant Agent to the latest version. For more information, see [Upgrade or disable upgrades for Cloud Assistant Agent](~~134383~~).
75627
75644
  * * Linux: 2.2.3.282
75628
75645
  * * Windows: 2.1.3.282
75629
- * * Commands may fail to run due to instance status exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If a command fails to run, no execution information is generated. For more information, see [Check execution results and troubleshoot common issues](~~87029~~).
75630
- * * If you enabled the custom parameter feature when you created the command, you must specify custom parameters (`Parameters`) to run the command.
75646
+ * * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If a command execution fails, no execution information is generated. For more information, see [Check execution results and troubleshoot common issues](~~87029~~).
75647
+ * * If you enable the custom parameter feature when you create the command, you must specify custom parameters (`Parameters`) to run the command.
75631
75648
  * * Before you run the command on instances, especially new instances, we recommend that you call the [DescribeCloudAssistantStatus](~~87346~~) operation to query the status of Cloud Assistant Agent on the instances. Run the command when the return value of CloudAssistantStatus is true.
75632
75649
  *
75633
75650
  * @param tmpReq InvokeCommandRequest
@@ -75748,17 +75765,17 @@ export default class Client extends OpenApi {
75748
75765
  * ## [](#)Usage notes
75749
75766
  * * The Elastic Compute Service (ECS) instances on which you want to run the Cloud Assistant command must meet the following requirements. If multiple ECS instances are specified and one of the instances does not meet the requirements for running the command, the call fails. You must specify instances that meet the requirements and call the InvokeCommand operation again.
75750
75767
  * * The instances are in the Running (`Running`) state. You can call the [DescribeInstances](~~25506~~) operation to query the status of instances.
75751
- * * Cloud Assistant Agent is installed on the instances. For more information, see [Install Cloud Assistant Agent](~~64921~~).
75768
+ * * Cloud Assistant Agent is installed on the instances. For more information, see [Install Cloud Assistant Agent on an ECS instance](~~64921~~).
75752
75769
  * * Before you run PowerShell commands on the instances, make sure that the instances have the PowerShell module configured.
75753
75770
  * * You can configure the command to run only once on the instances.
75754
75771
  * * You can configure the command to run multiple times on the instances based on a schedule.
75755
75772
  * * The schedule is specified by the Frequency parameter. The results of each execution of the command do not affect the next execution of the command.
75756
- * * If you use a cron expression to specify a schedule, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information, see [Configure the NTP service for ECS instances that run CentOS 6](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
75757
- * To ensure that scheduled tasks can run as expected, make sure that the version of Cloud Assistant Agent is not earlier than the following ones. You can configure a command to run at a fixed interval based on a rate expression, run only once at a specified time, or run at designated times based on a cron expression. If the ClientNeedUpgrade error code is returned, you must upgrade Cloud Assistant Agent to the latest version. For more information, see [Upgrade or disable upgrades for Cloud Assistant Agent](~~134383~~).
75773
+ * * If you use a cron expression to specify a schedule, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instances meets your business requirements. For more information, see [Manage the time synchronization service](~~92803~~).[](~~51890~~)
75774
+ * To ensure that scheduled tasks can run as expected, make sure that the version of Cloud Assistant Agent is not earlier than the following ones. A scheduled task can run a command at a fixed interval, only once at a specific time, or at specific times based on a cron expression in a specified year or time zone. If the ClientNeedUpgrade error code is returned, you must upgrade Cloud Assistant Agent to the latest version. For more information, see [Upgrade or disable upgrades for Cloud Assistant Agent](~~134383~~).
75758
75775
  * * Linux: 2.2.3.282
75759
75776
  * * Windows: 2.1.3.282
75760
- * * Commands may fail to run due to instance status exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If a command fails to run, no execution information is generated. For more information, see [Check execution results and troubleshoot common issues](~~87029~~).
75761
- * * If you enabled the custom parameter feature when you created the command, you must specify custom parameters (`Parameters`) to run the command.
75777
+ * * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If a command execution fails, no execution information is generated. For more information, see [Check execution results and troubleshoot common issues](~~87029~~).
75778
+ * * If you enable the custom parameter feature when you create the command, you must specify custom parameters (`Parameters`) to run the command.
75762
75779
  * * Before you run the command on instances, especially new instances, we recommend that you call the [DescribeCloudAssistantStatus](~~87346~~) operation to query the status of Cloud Assistant Agent on the instances. Run the command when the return value of CloudAssistantStatus is true.
75763
75780
  *
75764
75781
  * @param request InvokeCommandRequest
@@ -79508,18 +79525,21 @@ export default class Client extends OpenApi {
79508
79525
  }
79509
79526
 
79510
79527
  /**
79511
- * * You can modify the execution information of a command that is run in one of the following modes:
79512
- * * Period: The command is run on a schedule.
79513
- * * NextRebootOnly: The command is run the next time the instance starts.
79514
- * * EveryReboot: The command is run every time the instance starts.
79515
- * * You can modify the execution information of a command that is in one of the following status (For more information, see the [InvocationStatus](~~64840~~) response parameter of `DescribeInvocations`.):
79516
- * * Pending: The command is being verified or sent. When the execution status on at least one instance is Pending, the overall execution status is Pending.
79517
- * * Running: The command is being run on the instance. When the execution status on at least one instance is Running, the overall execution status is Running.
79518
- * * Scheduled: The command that is set to run on a schedule is sent and waiting to be run. When the execution status on at least one instance is Scheduled, the overall execution status is Scheduled.
79519
- * * Stopping: The command that is running is being stopped. When the execution status on at least one instance is Stopping, the overall execution status is Stopping.
79520
- * * The Cloud Assistant Agent version that is installed on the instance must be later than one of the following versions to support the ModifyInvocationAttribute operation. If the `ClientNeedUpgrade` error code is returned, update Cloud Assistant Agent to the latest version.
79528
+ * * You can modify the execution information of a task that runs a command in one of the following modes. To query the execution mode of a command, you can call the [DescribeInvocations](~~2679916~~) operation and check the `RepeatMode` value in the response.
79529
+ * * Period: The task runs the command on a schedule.
79530
+ * * NextRebootOnly: The task runs the command the next time the associated instances start.
79531
+ * * EveryReboot: The task runs the command every time the associated instances start.
79532
+ * * You can modify the execution information of a command task in one of the following execution states. To query the execution status of a command, you can call the [DescribeInvocations](~~2679916~~) operation and check the `InvocationStatus` value.
79533
+ * * Pending: The command is being verified or sent. When the execution state on at least one instance is Pending, the overall execution state is Pending.
79534
+ * * Running: The command is being run on instances. When the execution state on at least one instance is Running, the overall execution state is Running.
79535
+ * * Scheduled: The command that is set to run on a schedule is sent and waiting to be run. When the execution state on at least one instance is Scheduled, the overall execution state is Scheduled.
79536
+ * * Stopping: The command task is being stopped. When the execution state on at least one instance is Stopping, the overall execution state is Stopping.
79537
+ * * Before you modify the execution information of a scheduled task, such as the command content, custom parameters, and execution frequency, make sure that the version of Cloud Assistant Agent on the ECS instances or managed instances associated with the task is later than the following versions:
79521
79538
  * * Linux: 2.2.3.541
79522
79539
  * * Windows: 2.1.3.541
79540
+ * * If the `InvalidOperation.CloudAssistantVersionUnsupported` error code is returned in the response, update Cloud Assistant Agent to the latest version.
79541
+ * * You cannot modify `CommandContent` for a common Cloud Assistant command.
79542
+ * * If you modify the `CommandContent` value of a command and set `KeepCommand` to `true` when you call the [InvokeCommand](~~64841~~) or [RunCommand](~~141751~~) operation to run the command, a new command is added and retained. The new command consumes the quota for Cloud Assistant commands. You can retain up to 500 to 50,000 Cloud Assistant commands in each region. You can apply for a quota increase. For information about how to query and increase quotas, see [Manage quotas](~~184116~~).
79523
79543
  *
79524
79544
  * @param tmpReq ModifyInvocationAttributeRequest
79525
79545
  * @param runtime runtime options for this request RuntimeOptions
@@ -79604,18 +79624,21 @@ export default class Client extends OpenApi {
79604
79624
  }
79605
79625
 
79606
79626
  /**
79607
- * * You can modify the execution information of a command that is run in one of the following modes:
79608
- * * Period: The command is run on a schedule.
79609
- * * NextRebootOnly: The command is run the next time the instance starts.
79610
- * * EveryReboot: The command is run every time the instance starts.
79611
- * * You can modify the execution information of a command that is in one of the following status (For more information, see the [InvocationStatus](~~64840~~) response parameter of `DescribeInvocations`.):
79612
- * * Pending: The command is being verified or sent. When the execution status on at least one instance is Pending, the overall execution status is Pending.
79613
- * * Running: The command is being run on the instance. When the execution status on at least one instance is Running, the overall execution status is Running.
79614
- * * Scheduled: The command that is set to run on a schedule is sent and waiting to be run. When the execution status on at least one instance is Scheduled, the overall execution status is Scheduled.
79615
- * * Stopping: The command that is running is being stopped. When the execution status on at least one instance is Stopping, the overall execution status is Stopping.
79616
- * * The Cloud Assistant Agent version that is installed on the instance must be later than one of the following versions to support the ModifyInvocationAttribute operation. If the `ClientNeedUpgrade` error code is returned, update Cloud Assistant Agent to the latest version.
79627
+ * * You can modify the execution information of a task that runs a command in one of the following modes. To query the execution mode of a command, you can call the [DescribeInvocations](~~2679916~~) operation and check the `RepeatMode` value in the response.
79628
+ * * Period: The task runs the command on a schedule.
79629
+ * * NextRebootOnly: The task runs the command the next time the associated instances start.
79630
+ * * EveryReboot: The task runs the command every time the associated instances start.
79631
+ * * You can modify the execution information of a command task in one of the following execution states. To query the execution status of a command, you can call the [DescribeInvocations](~~2679916~~) operation and check the `InvocationStatus` value.
79632
+ * * Pending: The command is being verified or sent. When the execution state on at least one instance is Pending, the overall execution state is Pending.
79633
+ * * Running: The command is being run on instances. When the execution state on at least one instance is Running, the overall execution state is Running.
79634
+ * * Scheduled: The command that is set to run on a schedule is sent and waiting to be run. When the execution state on at least one instance is Scheduled, the overall execution state is Scheduled.
79635
+ * * Stopping: The command task is being stopped. When the execution state on at least one instance is Stopping, the overall execution state is Stopping.
79636
+ * * Before you modify the execution information of a scheduled task, such as the command content, custom parameters, and execution frequency, make sure that the version of Cloud Assistant Agent on the ECS instances or managed instances associated with the task is later than the following versions:
79617
79637
  * * Linux: 2.2.3.541
79618
79638
  * * Windows: 2.1.3.541
79639
+ * * If the `InvalidOperation.CloudAssistantVersionUnsupported` error code is returned in the response, update Cloud Assistant Agent to the latest version.
79640
+ * * You cannot modify `CommandContent` for a common Cloud Assistant command.
79641
+ * * If you modify the `CommandContent` value of a command and set `KeepCommand` to `true` when you call the [InvokeCommand](~~64841~~) or [RunCommand](~~141751~~) operation to run the command, a new command is added and retained. The new command consumes the quota for Cloud Assistant commands. You can retain up to 500 to 50,000 Cloud Assistant commands in each region. You can apply for a quota increase. For information about how to query and increase quotas, see [Manage quotas](~~184116~~).
79619
79642
  *
79620
79643
  * @param request ModifyInvocationAttributeRequest
79621
79644
  * @return ModifyInvocationAttributeResponse