All Products
Search
Document Center

CloudOps Orchestration Service:ACS::ECS::SMCVerifyInstanceByRunCommand

Last Updated:Jul 31, 2024

Description

Runs custom or default commands on an Elastic Compute Service (ECS) instance to check the ECS instance.

Syntax

Action: ACS::ECS::SMCVerifyInstanceByRunCommand
Properties:
 regionId: String
 instanceId: String
 isDeleteInstance: Boolean
 commandType: String
 commandContent: String
 timeout: Number
 workingDir: String

Attributes

Attribute

Description

Type

Required

Default value

Limit

regionId

The region ID.

String

No

{{ ACS::RegionId }}

instanceId

The ID of the ECS instance.

String

Yes

isDeleteInstance

Specifies whether to delete the ECS instance after the check is complete. By default, the instance is not deleted.

Boolean

No

False

commandType

The type of the commands.

String

No

RunShellScript

commandContent

The content of the commands.

String

No

""

timeout

The timeout period for running the commands.

Number

No

60

workingDir

The directory in which the commands are run on the ECS instance.

String

No

/root

Output

Output item

Description

Type

invocationOutput

Json

References

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