How to call an interface whose instance status is stopped
How do I call an interface whose instance status is stopped? Many people have little knowledge of how to call an interface whose instance state is stopped. The editor summarizes the following. The following information is related.
StartInstance
Start an instance.
Description
The instance status must be stopped (Stopped) before the interface can be called.
The instance goes into Starting state after the API call is successful.
The instance cannot be started when the locked state of "LockReason": "security" is marked in the security-controlled instance OperationLocks.
Request parameter
Return parameters
All are common return parameters. See common return parameters.
Example
Request example
Https://ecs.aliyuncs.com/?Action=StartInstance&InstanceId=i-instance1&
Return the example
XML format
C0003E8B-B930-4F59-ADC0-0E20xxxxxxxx
JSON format
{"RequestId": "C0003E8B-B930-4F59-ADC0-0E20xxxxxxxx"}
Error code
The following are the error codes specific to this API. For more error codes, please visit the API error Center.
After reading the above, have you mastered the method of calling the interface whose instance status is stopped? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!