Home > Article > Operation and Maintenance > Use GetInstanceScreenshot to obtain instance screenshot information
This article introduces the use of GetInstanceScreenshot to obtain the screenshot information of the instance, and focuses on the specific steps. The content of this article is compact, and I hope you can gain something.
GetInstanceScreenshot
Description
We return instance screenshots in Base64 encoded JPG image format, you need to decode it yourself. You can call this interface when troubleshooting, and please note:
The instance must be in the Running state.
Instance specifications that have been discontinued cannot obtain screenshot information.
Request parameters
##Return parameters
Example
Request Example
http://ecs-cn-hangzhou.example.com/?Action=GetInstanceScreenshot &RegionId=cn-shenzhen &InstanceId=i-j5e42sbbthlokka11eci &Wakeup=False &<公共请求参数>
Normal return example
XML format
<GetInstanceScreenshotResponse> <RequestId>22A1933F-AD02-4560-A6A7-53CF2231D942</RequestId> <InstanceId>i-j5e42sbbthlokka11ech</InstanceId> <Screenshot>iVBORw0KGgoA...AAABJRU5ErkJggg==</Screenshot> </GetInstanceScreenshotResponse>
JSON format
{ "RequestId": "22A1933F-AD02-4560-A6A7-53CF2231D942", "InstanceId": "i-j5e42sbbthlokka11ech", "Screenshot": "iVBORw0KGgoA...AAABJRU5ErkJggg==" }
Exception Return example
XML format
<Error> <RequestId>C38E0D94-C18B-44F3-8C05-6E35BE334088</RequestId> <HostId>ecs.aliyuncs.com</HostId> <Code>NotSupported</Code> <Message>The operation is not supported for "i-j5e42sbbthlokkaXXXXX".</Message> </Error>
JSON format
{ "RequestId": "C38E0D94-C18B-44F3-8C05-6E35BE334088", "HostId": "ecs.aliyuncs.com", "Code": "NotSupported", "Message": "The operation is not supported for "i-j5e42sbbthlokkaXXXXX"." }
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 Use GetInstanceScreenshot to obtain instance screenshot information. For more information, please follow other related articles on the PHP Chinese website!