StopInstance
Region:
China (Hangzhou)
Request Parameters
Required
InstanceIdThe ID of the insta...
ForceStopSpecifies whether t...
Plugin DownloadLearn more
VS Code Plugin
Before installing the plugin, please install VS CodeBefore installing the plugin, please install VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains Plugin
Before installing the plugin, please install JetBrains IDEBefore installing the plugin, please install JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

Operation Description

  • You can call this operation to stop instances that are only in the Running state.
  • If the call is successful, the state of the instance becomes Stopping.
  • Once the instance is stopped, the state of the instance becomes Stopped.
  • Force stop is supported, which is equivalent to power-off. Data that is not written to disks on the instance may be lost.

Request Parameters

Field NameField Details
InstanceIdstring

The ID of the instance that you want to stop. You can specify only one instance ID.

Example:i-instanceid****Reference Value Source:
    RunInstances
    CreateInstance
    MountInstanceSDG
    DescribeInstances
    DeployInstanceSDG
    RemoveInstanceSDG
    AttachInstanceSDG
    UnmountInstanceSDG
    ModifyInstanceChargeType
    AddNetworkInterfaceToInstance
ForceStopstring

Specifies whether to forcibly stop the servers.View Details...

Example:trueEnumeration Value:truefalse

Response Parameters

Field NameField Details
Codeinteger<int32>

The returned service code. 0 indicates that the request was successful.

Example:0
RequestIdstring

The request ID.

Example:473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
Change History
No Change History found.