@alicloud/ecs20140526 4.1.0 → 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/dist/client.d.ts +120 -91
- package/dist/client.js +167 -100
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +179 -91
package/dist/client.d.ts
CHANGED
|
@@ -6418,6 +6418,8 @@ export declare class DescribeDedicatedHostsRequest extends $tea.Model {
|
|
|
6418
6418
|
dedicatedHostName?: string;
|
|
6419
6419
|
dedicatedHostType?: string;
|
|
6420
6420
|
lockReason?: string;
|
|
6421
|
+
maxResults?: number;
|
|
6422
|
+
nextToken?: string;
|
|
6421
6423
|
ownerAccount?: string;
|
|
6422
6424
|
ownerId?: number;
|
|
6423
6425
|
pageNumber?: number;
|
|
@@ -6442,6 +6444,7 @@ export declare class DescribeDedicatedHostsRequest extends $tea.Model {
|
|
|
6442
6444
|
}
|
|
6443
6445
|
export declare class DescribeDedicatedHostsResponseBody extends $tea.Model {
|
|
6444
6446
|
dedicatedHosts?: DescribeDedicatedHostsResponseBodyDedicatedHosts;
|
|
6447
|
+
nextToken?: string;
|
|
6445
6448
|
pageNumber?: number;
|
|
6446
6449
|
pageSize?: number;
|
|
6447
6450
|
requestId?: string;
|
|
@@ -8406,11 +8409,16 @@ export declare class DescribeInstanceTypeFamiliesResponse extends $tea.Model {
|
|
|
8406
8409
|
}
|
|
8407
8410
|
export declare class DescribeInstanceTypesRequest extends $tea.Model {
|
|
8408
8411
|
cpuArchitecture?: string;
|
|
8412
|
+
cpuArchitectures?: string[];
|
|
8409
8413
|
GPUSpec?: string;
|
|
8414
|
+
gpuSpecs?: string[];
|
|
8415
|
+
instanceCategories?: string[];
|
|
8410
8416
|
instanceCategory?: string;
|
|
8411
8417
|
instanceFamilyLevel?: string;
|
|
8418
|
+
instanceTypeFamilies?: string[];
|
|
8412
8419
|
instanceTypeFamily?: string;
|
|
8413
8420
|
instanceTypes?: string[];
|
|
8421
|
+
localStorageCategories?: string[];
|
|
8414
8422
|
localStorageCategory?: string;
|
|
8415
8423
|
maxResults?: number;
|
|
8416
8424
|
maximumCpuCoreCount?: number;
|
|
@@ -8444,6 +8452,7 @@ export declare class DescribeInstanceTypesRequest extends $tea.Model {
|
|
|
8444
8452
|
ownerAccount?: string;
|
|
8445
8453
|
ownerId?: number;
|
|
8446
8454
|
physicalProcessorModel?: string;
|
|
8455
|
+
physicalProcessorModels?: string[];
|
|
8447
8456
|
resourceOwnerAccount?: string;
|
|
8448
8457
|
resourceOwnerId?: number;
|
|
8449
8458
|
static names(): {
|
|
@@ -23720,6 +23729,18 @@ export declare class DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeN
|
|
|
23720
23729
|
[key: string]: any;
|
|
23721
23730
|
});
|
|
23722
23731
|
}
|
|
23732
|
+
export declare class DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupportedBootModes extends $tea.Model {
|
|
23733
|
+
supportedBootMode?: string[];
|
|
23734
|
+
static names(): {
|
|
23735
|
+
[key: string]: string;
|
|
23736
|
+
};
|
|
23737
|
+
static types(): {
|
|
23738
|
+
[key: string]: any;
|
|
23739
|
+
};
|
|
23740
|
+
constructor(map?: {
|
|
23741
|
+
[key: string]: any;
|
|
23742
|
+
});
|
|
23743
|
+
}
|
|
23723
23744
|
export declare class DescribeInstanceTypesResponseBodyInstanceTypesInstanceType extends $tea.Model {
|
|
23724
23745
|
baselineCredit?: number;
|
|
23725
23746
|
cpuArchitecture?: string;
|
|
@@ -23758,6 +23779,7 @@ export declare class DescribeInstanceTypesResponseBodyInstanceTypesInstanceType
|
|
|
23758
23779
|
primaryEniQueueNumber?: number;
|
|
23759
23780
|
queuePairNumber?: number;
|
|
23760
23781
|
secondaryEniQueueNumber?: number;
|
|
23782
|
+
supportedBootModes?: DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupportedBootModes;
|
|
23761
23783
|
totalEniQueueQuantity?: number;
|
|
23762
23784
|
static names(): {
|
|
23763
23785
|
[key: string]: string;
|
|
@@ -30223,19 +30245,20 @@ export default class Client extends OpenApi {
|
|
|
30223
30245
|
*/
|
|
30224
30246
|
createCapacityReservation(request: CreateCapacityReservationRequest): Promise<CreateCapacityReservationResponse>;
|
|
30225
30247
|
/**
|
|
30248
|
+
* ## [](#)Usage notes
|
|
30226
30249
|
* * You can create commands of the following types:
|
|
30227
|
-
* *
|
|
30228
|
-
* *
|
|
30229
|
-
* *
|
|
30230
|
-
* * You can specify the
|
|
30231
|
-
* *
|
|
30250
|
+
* * Batch commands (RunBatScript), applicable to Windows instances
|
|
30251
|
+
* * PowerShell commands (RunPowerShellScript), applicable to Windows instances
|
|
30252
|
+
* * Shell commands (RunShellScript), applicable to Linux instances
|
|
30253
|
+
* * 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.
|
|
30254
|
+
* * For a one-time task, when the execution times out, the state of the command ([InvokeRecordStatus](~~64845~~)) becomes Failed.
|
|
30232
30255
|
* * For a scheduled task, take note of the following items:
|
|
30233
|
-
* * The timeout period takes effect on each execution
|
|
30234
|
-
* * When
|
|
30235
|
-
* * The timeout of one execution does not affect the subsequent executions
|
|
30236
|
-
* * You can retain up to 500 to
|
|
30237
|
-
* * You can use
|
|
30238
|
-
* * You can enable the custom parameter feature for a Cloud Assistant command by setting EnableParameter to true
|
|
30256
|
+
* * The timeout period takes effect on each execution.
|
|
30257
|
+
* * When an execution times out, the state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
|
|
30258
|
+
* * The timeout of one execution does not affect the subsequent executions.
|
|
30259
|
+
* * 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~~).
|
|
30260
|
+
* * 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`.
|
|
30261
|
+
* * 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.
|
|
30239
30262
|
*
|
|
30240
30263
|
* @param request CreateCommandRequest
|
|
30241
30264
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30243,19 +30266,20 @@ export default class Client extends OpenApi {
|
|
|
30243
30266
|
*/
|
|
30244
30267
|
createCommandWithOptions(request: CreateCommandRequest, runtime: $Util.RuntimeOptions): Promise<CreateCommandResponse>;
|
|
30245
30268
|
/**
|
|
30269
|
+
* ## [](#)Usage notes
|
|
30246
30270
|
* * You can create commands of the following types:
|
|
30247
|
-
* *
|
|
30248
|
-
* *
|
|
30249
|
-
* *
|
|
30250
|
-
* * You can specify the
|
|
30251
|
-
* *
|
|
30271
|
+
* * Batch commands (RunBatScript), applicable to Windows instances
|
|
30272
|
+
* * PowerShell commands (RunPowerShellScript), applicable to Windows instances
|
|
30273
|
+
* * Shell commands (RunShellScript), applicable to Linux instances
|
|
30274
|
+
* * 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.
|
|
30275
|
+
* * For a one-time task, when the execution times out, the state of the command ([InvokeRecordStatus](~~64845~~)) becomes Failed.
|
|
30252
30276
|
* * For a scheduled task, take note of the following items:
|
|
30253
|
-
* * The timeout period takes effect on each execution
|
|
30254
|
-
* * When
|
|
30255
|
-
* * The timeout of one execution does not affect the subsequent executions
|
|
30256
|
-
* * You can retain up to 500 to
|
|
30257
|
-
* * You can use
|
|
30258
|
-
* * You can enable the custom parameter feature for a Cloud Assistant command by setting EnableParameter to true
|
|
30277
|
+
* * The timeout period takes effect on each execution.
|
|
30278
|
+
* * When an execution times out, the state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
|
|
30279
|
+
* * The timeout of one execution does not affect the subsequent executions.
|
|
30280
|
+
* * 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~~).
|
|
30281
|
+
* * 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`.
|
|
30282
|
+
* * 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.
|
|
30259
30283
|
*
|
|
30260
30284
|
* @param request CreateCommandRequest
|
|
30261
30285
|
* @return CreateCommandResponse
|
|
@@ -30633,6 +30657,7 @@ export default class Client extends OpenApi {
|
|
|
30633
30657
|
* * If NetworkInterfaceId is empty in the response, no ENI is created. Call the operation again to create an ENI.
|
|
30634
30658
|
* * An ENI can be attached only to a single instance that resides in a virtual private cloud (VPC).
|
|
30635
30659
|
* * 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.
|
|
30660
|
+
* * When you call this operation to create an ENI, you can assign up to 49 secondary private IP addresses to the ENI.
|
|
30636
30661
|
* * 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~~)
|
|
30637
30662
|
* * 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~~).
|
|
30638
30663
|
* **For information about examples on how to call this operation, see** [Create an ENI](~~471552~~).
|
|
@@ -30649,6 +30674,7 @@ export default class Client extends OpenApi {
|
|
|
30649
30674
|
* * If NetworkInterfaceId is empty in the response, no ENI is created. Call the operation again to create an ENI.
|
|
30650
30675
|
* * An ENI can be attached only to a single instance that resides in a virtual private cloud (VPC).
|
|
30651
30676
|
* * 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.
|
|
30677
|
+
* * When you call this operation to create an ENI, you can assign up to 49 secondary private IP addresses to the ENI.
|
|
30652
30678
|
* * 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~~)
|
|
30653
30679
|
* * 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~~).
|
|
30654
30680
|
* **For information about examples on how to call this operation, see** [Create an ENI](~~471552~~).
|
|
@@ -32112,20 +32138,7 @@ export default class Client extends OpenApi {
|
|
|
32112
32138
|
* @return DescribeInstanceStatusResponse
|
|
32113
32139
|
*/
|
|
32114
32140
|
describeInstanceStatus(request: DescribeInstanceStatusRequest): Promise<DescribeInstanceStatusResponse>;
|
|
32115
|
-
/**
|
|
32116
|
-
* > The DescribeInstanceTopology operation is in invitational preview and is not commercially available.
|
|
32117
|
-
*
|
|
32118
|
-
* @param request DescribeInstanceTopologyRequest
|
|
32119
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
32120
|
-
* @return DescribeInstanceTopologyResponse
|
|
32121
|
-
*/
|
|
32122
32141
|
describeInstanceTopologyWithOptions(request: DescribeInstanceTopologyRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstanceTopologyResponse>;
|
|
32123
|
-
/**
|
|
32124
|
-
* > The DescribeInstanceTopology operation is in invitational preview and is not commercially available.
|
|
32125
|
-
*
|
|
32126
|
-
* @param request DescribeInstanceTopologyRequest
|
|
32127
|
-
* @return DescribeInstanceTopologyResponse
|
|
32128
|
-
*/
|
|
32129
32142
|
describeInstanceTopology(request: DescribeInstanceTopologyRequest): Promise<DescribeInstanceTopologyResponse>;
|
|
32130
32143
|
describeInstanceTypeFamiliesWithOptions(request: DescribeInstanceTypeFamiliesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstanceTypeFamiliesResponse>;
|
|
32131
32144
|
describeInstanceTypeFamilies(request: DescribeInstanceTypeFamiliesRequest): Promise<DescribeInstanceTypeFamiliesResponse>;
|
|
@@ -32234,10 +32247,12 @@ export default class Client extends OpenApi {
|
|
|
32234
32247
|
*/
|
|
32235
32248
|
describeInstancesFullStatus(request: DescribeInstancesFullStatusRequest): Promise<DescribeInstancesFullStatusResponse>;
|
|
32236
32249
|
/**
|
|
32237
|
-
*
|
|
32250
|
+
* ## [](#)Usage notes
|
|
32251
|
+
* * 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.
|
|
32238
32252
|
* * You can query information about command executions within the last four weeks. Up to 100,000 pieces of execution information can be retained.
|
|
32239
|
-
*
|
|
32240
|
-
*
|
|
32253
|
+
* * You can use one of the following methods to check the responses:
|
|
32254
|
+
* * 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.
|
|
32255
|
+
* * 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.
|
|
32241
32256
|
*
|
|
32242
32257
|
* @param request DescribeInvocationResultsRequest
|
|
32243
32258
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32245,20 +32260,24 @@ export default class Client extends OpenApi {
|
|
|
32245
32260
|
*/
|
|
32246
32261
|
describeInvocationResultsWithOptions(request: DescribeInvocationResultsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInvocationResultsResponse>;
|
|
32247
32262
|
/**
|
|
32248
|
-
*
|
|
32263
|
+
* ## [](#)Usage notes
|
|
32264
|
+
* * 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.
|
|
32249
32265
|
* * You can query information about command executions within the last four weeks. Up to 100,000 pieces of execution information can be retained.
|
|
32250
|
-
*
|
|
32251
|
-
*
|
|
32266
|
+
* * You can use one of the following methods to check the responses:
|
|
32267
|
+
* * 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.
|
|
32268
|
+
* * 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.
|
|
32252
32269
|
*
|
|
32253
32270
|
* @param request DescribeInvocationResultsRequest
|
|
32254
32271
|
* @return DescribeInvocationResultsResponse
|
|
32255
32272
|
*/
|
|
32256
32273
|
describeInvocationResults(request: DescribeInvocationResultsRequest): Promise<DescribeInvocationResultsResponse>;
|
|
32257
32274
|
/**
|
|
32258
|
-
*
|
|
32259
|
-
*
|
|
32260
|
-
*
|
|
32261
|
-
*
|
|
32275
|
+
* ## [](#)Usage notes
|
|
32276
|
+
* * After you run a command, the command may not succeed or return the expected results. You can call this operation to query the execution results.
|
|
32277
|
+
* * You can query information about command executions within the last four weeks. Up to 100,000 pieces of execution information can be retained.
|
|
32278
|
+
* * You can use one of the following methods to check the responses:
|
|
32279
|
+
* * Method 1: During a paged query, when you call the DescribeInvocations operation to retrieve the first page of results, use `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token, which you can use in the next request to retrieve a new page of results. When you call the DescribeInvocations 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.
|
|
32280
|
+
* * 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.
|
|
32262
32281
|
*
|
|
32263
32282
|
* @param request DescribeInvocationsRequest
|
|
32264
32283
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32266,10 +32285,12 @@ export default class Client extends OpenApi {
|
|
|
32266
32285
|
*/
|
|
32267
32286
|
describeInvocationsWithOptions(request: DescribeInvocationsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInvocationsResponse>;
|
|
32268
32287
|
/**
|
|
32269
|
-
*
|
|
32270
|
-
*
|
|
32271
|
-
*
|
|
32272
|
-
*
|
|
32288
|
+
* ## [](#)Usage notes
|
|
32289
|
+
* * After you run a command, the command may not succeed or return the expected results. You can call this operation to query the execution results.
|
|
32290
|
+
* * You can query information about command executions within the last four weeks. Up to 100,000 pieces of execution information can be retained.
|
|
32291
|
+
* * You can use one of the following methods to check the responses:
|
|
32292
|
+
* * Method 1: During a paged query, when you call the DescribeInvocations operation to retrieve the first page of results, use `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token, which you can use in the next request to retrieve a new page of results. When you call the DescribeInvocations 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.
|
|
32293
|
+
* * 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.
|
|
32273
32294
|
*
|
|
32274
32295
|
* @param request DescribeInvocationsRequest
|
|
32275
32296
|
* @return DescribeInvocationsResponse
|
|
@@ -33425,17 +33446,17 @@ export default class Client extends OpenApi {
|
|
|
33425
33446
|
* ## [](#)Usage notes
|
|
33426
33447
|
* * 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.
|
|
33427
33448
|
* * The instances are in the Running (`Running`) state. You can call the [DescribeInstances](~~25506~~) operation to query the status of instances.
|
|
33428
|
-
* * Cloud Assistant Agent is installed on the instances. For more information, see [Install Cloud Assistant Agent](~~64921~~).
|
|
33449
|
+
* * Cloud Assistant Agent is installed on the instances. For more information, see [Install Cloud Assistant Agent on an ECS instance](~~64921~~).
|
|
33429
33450
|
* * Before you run PowerShell commands on the instances, make sure that the instances have the PowerShell module configured.
|
|
33430
33451
|
* * You can configure the command to run only once on the instances.
|
|
33431
33452
|
* * You can configure the command to run multiple times on the instances based on a schedule.
|
|
33432
33453
|
* * 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.
|
|
33433
|
-
* * 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
|
|
33434
|
-
* 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.
|
|
33454
|
+
* * 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~~)
|
|
33455
|
+
* 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~~).
|
|
33435
33456
|
* * Linux: 2.2.3.282
|
|
33436
33457
|
* * Windows: 2.1.3.282
|
|
33437
|
-
* *
|
|
33438
|
-
* * If you
|
|
33458
|
+
* * 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~~).
|
|
33459
|
+
* * If you enable the custom parameter feature when you create the command, you must specify custom parameters (`Parameters`) to run the command.
|
|
33439
33460
|
* * 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.
|
|
33440
33461
|
*
|
|
33441
33462
|
* @param tmpReq InvokeCommandRequest
|
|
@@ -33447,17 +33468,17 @@ export default class Client extends OpenApi {
|
|
|
33447
33468
|
* ## [](#)Usage notes
|
|
33448
33469
|
* * 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.
|
|
33449
33470
|
* * The instances are in the Running (`Running`) state. You can call the [DescribeInstances](~~25506~~) operation to query the status of instances.
|
|
33450
|
-
* * Cloud Assistant Agent is installed on the instances. For more information, see [Install Cloud Assistant Agent](~~64921~~).
|
|
33471
|
+
* * Cloud Assistant Agent is installed on the instances. For more information, see [Install Cloud Assistant Agent on an ECS instance](~~64921~~).
|
|
33451
33472
|
* * Before you run PowerShell commands on the instances, make sure that the instances have the PowerShell module configured.
|
|
33452
33473
|
* * You can configure the command to run only once on the instances.
|
|
33453
33474
|
* * You can configure the command to run multiple times on the instances based on a schedule.
|
|
33454
33475
|
* * 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.
|
|
33455
|
-
* * 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
|
|
33456
|
-
* 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.
|
|
33476
|
+
* * 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~~)
|
|
33477
|
+
* 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~~).
|
|
33457
33478
|
* * Linux: 2.2.3.282
|
|
33458
33479
|
* * Windows: 2.1.3.282
|
|
33459
|
-
* *
|
|
33460
|
-
* * If you
|
|
33480
|
+
* * 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~~).
|
|
33481
|
+
* * If you enable the custom parameter feature when you create the command, you must specify custom parameters (`Parameters`) to run the command.
|
|
33461
33482
|
* * 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.
|
|
33462
33483
|
*
|
|
33463
33484
|
* @param request InvokeCommandRequest
|
|
@@ -34311,18 +34332,21 @@ export default class Client extends OpenApi {
|
|
|
34311
34332
|
*/
|
|
34312
34333
|
modifyInstanceVpcAttribute(request: ModifyInstanceVpcAttributeRequest): Promise<ModifyInstanceVpcAttributeResponse>;
|
|
34313
34334
|
/**
|
|
34314
|
-
* * You can modify the execution information of a
|
|
34315
|
-
* * Period: The
|
|
34316
|
-
* * NextRebootOnly: The
|
|
34317
|
-
* * EveryReboot: The
|
|
34318
|
-
* * You can modify the execution information of a command
|
|
34319
|
-
* * Pending: The command is being verified or sent. When the execution
|
|
34320
|
-
* * Running: The command is being run on
|
|
34321
|
-
* * Scheduled: The command that is set to run on a schedule is sent and waiting to be run. When the execution
|
|
34322
|
-
* * Stopping: The command
|
|
34323
|
-
* *
|
|
34335
|
+
* * 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.
|
|
34336
|
+
* * Period: The task runs the command on a schedule.
|
|
34337
|
+
* * NextRebootOnly: The task runs the command the next time the associated instances start.
|
|
34338
|
+
* * EveryReboot: The task runs the command every time the associated instances start.
|
|
34339
|
+
* * 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.
|
|
34340
|
+
* * 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.
|
|
34341
|
+
* * 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.
|
|
34342
|
+
* * 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.
|
|
34343
|
+
* * Stopping: The command task is being stopped. When the execution state on at least one instance is Stopping, the overall execution state is Stopping.
|
|
34344
|
+
* * 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:
|
|
34324
34345
|
* * Linux: 2.2.3.541
|
|
34325
34346
|
* * Windows: 2.1.3.541
|
|
34347
|
+
* * If the `InvalidOperation.CloudAssistantVersionUnsupported` error code is returned in the response, update Cloud Assistant Agent to the latest version.
|
|
34348
|
+
* * You cannot modify `CommandContent` for a common Cloud Assistant command.
|
|
34349
|
+
* * 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~~).
|
|
34326
34350
|
*
|
|
34327
34351
|
* @param tmpReq ModifyInvocationAttributeRequest
|
|
34328
34352
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -34330,18 +34354,21 @@ export default class Client extends OpenApi {
|
|
|
34330
34354
|
*/
|
|
34331
34355
|
modifyInvocationAttributeWithOptions(tmpReq: ModifyInvocationAttributeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInvocationAttributeResponse>;
|
|
34332
34356
|
/**
|
|
34333
|
-
* * You can modify the execution information of a
|
|
34334
|
-
* * Period: The
|
|
34335
|
-
* * NextRebootOnly: The
|
|
34336
|
-
* * EveryReboot: The
|
|
34337
|
-
* * You can modify the execution information of a command
|
|
34338
|
-
* * Pending: The command is being verified or sent. When the execution
|
|
34339
|
-
* * Running: The command is being run on
|
|
34340
|
-
* * Scheduled: The command that is set to run on a schedule is sent and waiting to be run. When the execution
|
|
34341
|
-
* * Stopping: The command
|
|
34342
|
-
* *
|
|
34357
|
+
* * 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.
|
|
34358
|
+
* * Period: The task runs the command on a schedule.
|
|
34359
|
+
* * NextRebootOnly: The task runs the command the next time the associated instances start.
|
|
34360
|
+
* * EveryReboot: The task runs the command every time the associated instances start.
|
|
34361
|
+
* * 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.
|
|
34362
|
+
* * 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.
|
|
34363
|
+
* * 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.
|
|
34364
|
+
* * 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.
|
|
34365
|
+
* * Stopping: The command task is being stopped. When the execution state on at least one instance is Stopping, the overall execution state is Stopping.
|
|
34366
|
+
* * 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:
|
|
34343
34367
|
* * Linux: 2.2.3.541
|
|
34344
34368
|
* * Windows: 2.1.3.541
|
|
34369
|
+
* * If the `InvalidOperation.CloudAssistantVersionUnsupported` error code is returned in the response, update Cloud Assistant Agent to the latest version.
|
|
34370
|
+
* * You cannot modify `CommandContent` for a common Cloud Assistant command.
|
|
34371
|
+
* * 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~~).
|
|
34345
34372
|
*
|
|
34346
34373
|
* @param request ModifyInvocationAttributeRequest
|
|
34347
34374
|
* @return ModifyInvocationAttributeResponse
|
|
@@ -34558,12 +34585,13 @@ export default class Client extends OpenApi {
|
|
|
34558
34585
|
*/
|
|
34559
34586
|
modifySecurityGroupPolicy(request: ModifySecurityGroupPolicyRequest): Promise<ModifySecurityGroupPolicyResponse>;
|
|
34560
34587
|
/**
|
|
34561
|
-
*
|
|
34562
|
-
*
|
|
34563
|
-
*
|
|
34564
|
-
* *
|
|
34565
|
-
* *
|
|
34566
|
-
* *
|
|
34588
|
+
* ## [](#)Usage notes
|
|
34589
|
+
* In security group-related API documents, inbound traffic refers to the traffic that is sent by the source device and received at the destination device.
|
|
34590
|
+
* Take note of the following items:
|
|
34591
|
+
* * An authorization object in a security group rule can be one of the following types: IP address or CIDR block, security group, or prefix list. You cannot call this operation to change the type of an existing authorization object. For example, if an authorization object is an IP address, you can change the authorization object to another IP address or a CIDR block, but you cannot change the authorization object to a security group or prefix list.
|
|
34592
|
+
* * You cannot change the IP address family of an existing authorization object. For example, if an authorization object is an IPv4 CIDR block, you cannot change the authorization object to an IPv6 CIDR block. If an authorization object is a prefix list of the IPv4 address family, you cannot change the authorization object to a prefix list of the IPv6 address family.
|
|
34593
|
+
* * The new security group rule after modification cannot be the same as other existing rules.
|
|
34594
|
+
* * You cannot delete the value of a non-empty parameter. If you want to delete the values of non-empty parameters, we recommend that you create another rule and delete the original rule.
|
|
34567
34595
|
*
|
|
34568
34596
|
* @param request ModifySecurityGroupRuleRequest
|
|
34569
34597
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -34571,12 +34599,13 @@ export default class Client extends OpenApi {
|
|
|
34571
34599
|
*/
|
|
34572
34600
|
modifySecurityGroupRuleWithOptions(request: ModifySecurityGroupRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifySecurityGroupRuleResponse>;
|
|
34573
34601
|
/**
|
|
34574
|
-
*
|
|
34575
|
-
*
|
|
34576
|
-
*
|
|
34577
|
-
* *
|
|
34578
|
-
* *
|
|
34579
|
-
* *
|
|
34602
|
+
* ## [](#)Usage notes
|
|
34603
|
+
* In security group-related API documents, inbound traffic refers to the traffic that is sent by the source device and received at the destination device.
|
|
34604
|
+
* Take note of the following items:
|
|
34605
|
+
* * An authorization object in a security group rule can be one of the following types: IP address or CIDR block, security group, or prefix list. You cannot call this operation to change the type of an existing authorization object. For example, if an authorization object is an IP address, you can change the authorization object to another IP address or a CIDR block, but you cannot change the authorization object to a security group or prefix list.
|
|
34606
|
+
* * You cannot change the IP address family of an existing authorization object. For example, if an authorization object is an IPv4 CIDR block, you cannot change the authorization object to an IPv6 CIDR block. If an authorization object is a prefix list of the IPv4 address family, you cannot change the authorization object to a prefix list of the IPv6 address family.
|
|
34607
|
+
* * The new security group rule after modification cannot be the same as other existing rules.
|
|
34608
|
+
* * You cannot delete the value of a non-empty parameter. If you want to delete the values of non-empty parameters, we recommend that you create another rule and delete the original rule.
|
|
34580
34609
|
*
|
|
34581
34610
|
* @param request ModifySecurityGroupRuleRequest
|
|
34582
34611
|
* @return ModifySecurityGroupRuleResponse
|