This topic lists the Elastic Compute Service (ECS) actions specific to various scenarios, including their usage, involved API operations, parameters, outputs, and sample codes. You can use the ACS::Template action to call the cloud product actions.
Instance operation scenarios
Cloud product action | Description | API operation | Parameter | Output |
ACS::ECS::DescribeInstancesByTag | Queries ECS instance IDs by tag. | DescribeInstances |
| instanceIds: List |
ACS::ECS::RunInstances | Starts one or more ECS instances. |
|
| instanceIds: List |
ACS::ECS::RunInstancesFromTemplate | Creates an ECS instance based on a template. |
|
| instanceIds: List |
ACS::ECS::DeleteInstance | Deletes an ECS instance. | DeleteInstance | instanceId: String | - |
ACS::ECS::StartInstance | Starts an ECS instance. |
| instanceId: String | - |
ACS::ECS::StopInstance | Stops an ECS instance. |
| instanceId: String | - |
ACS::ECS::RebootInstance | Restarts an ECS instance. |
| instanceId: String | - |
ACS::ECS::DescribeInstancesByName | Queries ECS instances by name. | DescribeInstances | instanceName: String | instanceIds: List |
ACS::ECS::DescribeInstancesByStatus | Queries ECS instances by status. | DescribeInstances | status: String | instanceIds: List |
Instance modification scenarios
Cloud product action | Description | API operation | Parameter | Output |
ACS::ECS::ResizeDisk | Scales up a data disk. |
|
| - |
ACS::ECS::ModifyInstanceVpcAttribute | Modifies the virtual private cloud (VPC) attributes of an ECS instance. |
|
| - |
ACS::ECS::ResetPassword | Changes the password of an ECS instance. |
|
| instanceId: String |
ACS::ECS::ModifyVncPassword | Changes the Virtual Network Computing (VNC) password of an ECS instance. |
|
| - |
ACS::ECS::ModifyPrepaySpec | Upgrades or downgrades the specifications of a subscribed ECS instance. |
|
| orderId: String |
ACS::ECS::AttachDisk | Attaches a cloud disk to an ECS instance. |
|
| - |
ACS::ECS::DetachDisk | Detaches a cloud disk from an ECS instance. |
|
| - |
Cloud Assistant scenarios
Cloud product action | Description | API operation | Parameter | Output |
ACS::ECS::InstallCloudAssistant | Installs Cloud Assistant. |
| instanceId: String | - |
ACS::ECS::RunCommand | Runs a command in the Cloud Assistant client. |
|
| invocationResult: String |
Other scenarios
Cloud product action | Description | API operation | Parameter | Output |
ACS::ECS::CreateImage | Creates an image. |
|
| imageId: String |
ACS::ECS::CreateSnapshot | Creates a snapshot. |
|
| snapshotId: String |
ACS::ECS::ResetDisk | Rolls back a cloud disk to a specific point in time based on a snapshot of the disk. |
|
| - |
ACS::ECS::CreateAndAttachDisk | Creates a cloud disk and attaches it to an ECS instance. |
|
| diskId: String |
ACS::ECS::ReplaceSystemDisk | Replaces the system disk. |
|
| - |
ACS::ECS::ReInitDisk | Initializes a cloud disk. |
| diskId: String | - |
ACS::ECS::AllocatePublicIpAddress | Assigns a public IP address to an ECS instance. |
| instanceId: String | - |
ACS::ECS::CreateAndAttachNetworkInterface | Creates and installs a network interface card (NIC). |
|
| networkInterfaceId: String |
ACS::ECS::DeleteImage | Deletes an image. | DeleteImage | imageId: String | - |
ACS::ECS::InstallLogtail | Installs Logtail. |
|
|
|