Home > Operation and Maintenance > Linux Operation and Maintenance > Use GetInstanceScreenshot to obtain instance screenshot information

Use GetInstanceScreenshot to obtain instance screenshot information

坏嘻嘻
Release: 2018-09-27 13:49:23
Original
2080 people have browsed it

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

Use GetInstanceScreenshot to obtain instance screenshot information

##Return parameters

Use GetInstanceScreenshot to obtain instance screenshot information

Example

Request Example

http://ecs-cn-hangzhou.example.com/?Action=GetInstanceScreenshot
&RegionId=cn-shenzhen
&InstanceId=i-j5e42sbbthlokka11eci
&Wakeup=False
&<公共请求参数>
Copy after login

Normal return example

XML format

<GetInstanceScreenshotResponse>
    <RequestId>22A1933F-AD02-4560-A6A7-53CF2231D942</RequestId>
    <InstanceId>i-j5e42sbbthlokka11ech</InstanceId>
    <Screenshot>iVBORw0KGgoA...AAABJRU5ErkJggg==</Screenshot>
</GetInstanceScreenshotResponse>
Copy after login

JSON format

{
    "RequestId": "22A1933F-AD02-4560-A6A7-53CF2231D942",
    "InstanceId": "i-j5e42sbbthlokka11ech",
    "Screenshot": "iVBORw0KGgoA...AAABJRU5ErkJggg=="
}
Copy after login

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>
Copy after login

JSON format

{
    "RequestId": "C38E0D94-C18B-44F3-8C05-6E35BE334088",
    "HostId": "ecs.aliyuncs.com",
    "Code": "NotSupported",
    "Message": "The operation is not supported for "i-j5e42sbbthlokkaXXXXX"."
}
Copy after login

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

Use GetInstanceScreenshot to obtain instance screenshot information

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template