All Products
Search
Document Center

CloudOps Orchestration Service:ACS::ECS::RunCommandForApplyPatchBaseline

Last Updated:Jul 31, 2024

Description

Runs the script of a patch baseline on an Elastic Compute Service (ECS) instance.

Syntax

Action: ACS::ECS::RunCommandForApplyPatchBaseline
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 in which the commands are run on the ECS instance.

String

No

""

timeout

The timeout period for running the commands.

Number

No

600

enableParameter

Specifies whether the commands contain encryption parameters or custom parameters.

Boolean

No

False

parameters

The command parameters.

Json

No

{}

username

The username of the account that is used to run the commands on the ECS instance.

String

No

""

windowsPasswordName

The password of the account that is used to run the commands on the Windows instance.

String

No

""

Output

Output item

Description

Type

invocationOutput

String

References

For more information, see ACS::ECS::RunCommandForApplyPatchBaseline at GitHub.