This topic describes how to call the StopInstance operation by using Alibaba Cloud CLI to stop an ECS instance that is in the Running state.
Background information
You can call the StopInstance operation to stop an ECS instance in the Running
state. After the call succeeds, the status of the ECS instance changes from Stopping
to Stopped
. We recommend that you read the description of the operation before you call the
operation. For more information, see StopInstance.
When you call an API operation through Alibaba Cloud CLI, make sure that request parameter values of different data types are in required formats. For more information, see Parameter format overview.
Request examples
Result
{
"RequestId": "A6344A79-D6CD-4AC2-8F2A-DEE3E16F8C5D"
}