All Products
Search
Document Center

CloudOps Orchestration Service:ACS::ECS::InvokeCommand

Last Updated:Jul 31, 2024

Description

Runs a Cloud Assistant command on an Elastic Compute Service (ECS) instance.

Syntax

Action: ACS::ECS::InvokeCommand
Properties:
 regionId: String
 commandId: String
 instanceId: String
 username: String
 parameters: Json

Attributes

Attribute

Description

Type

Required

Default value

Limit

regionId

The region ID.

String

No

{{ ACS::RegionId }}

commandId

The ID of the Cloud Assistant command.

String

Yes

instanceId

The ID of the ECS instance on which the Cloud Assistant command is run.

String

Yes

The ID must be 1 to 30 characters in length.

username

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

String

No

""

parameters

The key-value pairs of custom parameters that you want to pass to the command if the custom parameter feature is enabled.

Json

No

{'': ''}

Output

Output item

Description

Type

invocationOutput

String

References

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