All Products
Search
Document Center

CloudOps Orchestration Service:ACS::ECS::RunImageTemplateCommand

Last Updated:Jun 17, 2024

Description

Runs commands on an Elastic Compute Service (ECS) instance or restarts an ECS instance across regions.

Syntax

Action: ACS::ECS::RunImageTemplateCommand
Properties:
 regionId: String
 instanceId: String
 parameters: Json

Attributes

Attribute

Description

Type

Required

Default value

Limit

regionId

The region ID.

String

Yes

instanceId

The ID of the ECS instance.

String

Yes

parameters

The parameters of the template. Example: {"type": "RESTART"} or {" commandType": "RunShellScript", "commandContent": "pwd", "workingDir": "/root", "type": "RunCommand", "timeout": 600}.

Json

Yes

Output

Output item

Description

Type

commandOutput

String

References

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