All Products
Search
Document Center

CloudOps Orchestration Service:ACS::ECS::ElegantRunCommandInSLBDefaultServerGroup

Last Updated:Jun 12, 2024

Description

Runs commands on an Elastic Compute Service (ECS) instance in the default server group of a Server Load Balancer (SLB) instance.

Syntax

Action: ACS::ECS::ElegantRunCommandInSLBDefaultServerGroup
Properties:
 regionId: String
 loadBalancerId: String
 serverId: String
 weight: Number
 type: String
 port: Number
 commandType: String
 commandContent: String

Attributes

Attribute

Description

Type

Required

Default value

Limit

regionId

The region ID.

String

No

{{ ACS::RegionId }}

loadBalancerId

The SLB instance ID.

String

Yes

serverId

The ID of the backend server.

String

Yes

weight

The weight of the backend server.

Number

Yes

type

The type of the backend server.

String

Yes

port

The port of the backend server.

Number

Yes

commandType

The type of the Cloud Assistant command.

String

No

RunShellScript

commandContent

The commands that are run on the backend server.

String

Yes

Output

Output item

Description

Type

commandOutput

String

References

For more information, see ACS::ECS::ElegantRunCommandInSLBDefaultServerGroup.yml at GitHub.