Home >Operation and Maintenance >Linux Operation and Maintenance >How to call this interface when the instance status is stopped
The content of this article is about how to call the interface when the instance status is stopped. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
StartInstance
Start an instance.
Description
The instance status must be Stopped before this interface can be called.
After the interface is called successfully, the instance enters the Starting state.
When the security-controlled instance OperationLocks is marked with "LockReason" : "security" lock status, the instance cannot be started.
Request parameters
##Return parameters
are all public return parameters. See Public Return Parameters.Example
Request example
https://ecs.aliyuncs.com/?Action=StartInstance &InstanceId=i-instance1 &<公共请求参数>
Return example
XML format
<StartInstanceResponse> <RequestId>C0003E8B-B930-4F59-ADC0-0E20xxxxxxxx</RequestId> </StartInstanceResponse>
JSON format
{ "RequestId": "C0003E8B-B930-4F59-ADC0-0E20xxxxxxxx" }
Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to call this interface when the instance status is stopped. For more information, please follow other related articles on the PHP Chinese website!