Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use GetInstanceScreenshot to obtain screenshot information of an instance

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to use GetInstanceScreenshot to obtain screenshot information of an instance. The article is very detailed and has certain reference value. Interested friends must read it!

This article introduces the use of GetInstanceScreenshot to obtain screenshot information on the basis of the example, focusing on its specific steps, this article is compact, I hope you can harvest.

GetInstanceScreenshot

described

We return an example screenshot of Base64 encoded JPG image format, which you will need to decode yourself. You can invoke this interface when troubleshooting, and note:

The instance must be in the Running state.

Screenshots are not available for discontinued instance specifications.

request parameters

return parameter

example

request example

http://ecs-cn-hangzhou.example.com/? Action=GetInstanceScreenshot&RegionId=cn-shenzhen&InstanceId=i-j5e42sbbthlokka11eci&Wakeup=False&

Normal Return Example

XML format

22A1933F-AD02-4560-A6A7-53CF2231D942 i-j5e42sbbthlokka11ech iVBORw0KGgoA... AAABJRU5ErkJggg==

JSON format

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

Exception Return Example

XML format

C38E0D94-C18B-44F3-8C05-6E35BE334088 ecs.aliyuncs.com NotSupported The operation is not supported for "i-j5e42sbbthlokkaXXXXX".

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 error codes are specific to this interface. For more error codes, visit the API Error Center.

The above is how to use GetInstanceScreenshot to get all the screenshot information of the instance, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report