Runs commands on an Elastic Compute Service (ECS) instance for an extended period of time.
Description
Runs commands on an Elastic Compute Service (ECS) instance for an extended period of time.
Syntax
Action: ACS::ECS::RunCommandForLongTime
Properties:
regionId: String
commandContent: String
instanceId: String
commandType: String
workingDir: String
timeout: Number
enableParameter: Boolean
parameters: Json
username: String
windowsPasswordName: String
Attributes
|
Attribute |
Description |
Type |
Required |
Default value |
Limit |
|
regionId |
The region ID. |
String |
No |
{{ ACS::RegionId }} |
|
|
commandContent |
The content of the Cloud Assistant commands. |
String |
Yes |
||
|
instanceId |
The ID of the ECS instance. |
String |
Yes |
The ID must be 1 to 30 characters in length. |
|
|
commandType |
The type of the Cloud Assistant commands. |
String |
Yes |
||
|
workingDir |
The working directory for command execution on the ECS instance. |
String |
No |
"" |
|
|
timeout |
The command execution timeout period. |
Number |
No |
86400 |
|
|
enableParameter |
Whether the commands contain encryption parameters or custom parameters. |
Boolean |
No |
False |
|
|
parameters |
The command parameters. |
Json |
No |
{} |
|
|
username |
The username of the account used to run commands on the ECS instance. |
String |
No |
"" |
|
|
windowsPasswordName |
The password of the account used to run commands on a Windows instance. |
String |
No |
"" |
Output
|
Output item |
Description |
Type |
|
invocationOutput |
String |
References
For more information, see ACS::ECS::RunCommandForLongTime at GitHub.