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

The method of querying the event information of the specified instance history system in the last week

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

Share

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

This article will explain in detail the method of querying the event information of the specified historical system in the last week. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

DescribeInstanceHistoryEvents

Request parameter

Return parameters

Data type InstanceSystemEventType

Example

Request example

Https://ecs.aliyuncs.com/?Action=DescribeInstanceHistoryEvents&RegionId=cn-hangzhou&InstanceId=i-2ze3tphuqvc93cixxxx3&

Normal return example

XML format

I-2ze3tphuqvc93cixxxx3 e-2ze9yxxxxwtqcvai68rl 1 SystemMaintenance.Reboot 0 Executed 2017-11-30T06:32:31Z 2017-12-01T06:32:31Z 2017-12-01T06:35:31Z I-2ze3tphuqvc93cixxxx3 e-2ze9yxxxxwtqcvai68r3 34 InstanceExpiration.Stop 8 Avoided 2017-11-29T06:32:31Z 2017-12-06T00:00:00Z 2017-12-05T12:35:31Z 10 1 2 02EA76D3-5A2A-44EB-XXXX-8901881D8707

JSON format

{"InstanceSystemEventSet": {"InstanceSystemEventType": [{"InstanceId": "i-2ze3tphuqvc93cixxxx3", "EventId": "e-2ze9yxxxxwtqcvai68rl", "EventType": {"Code": 1, "Name": "SystemMaintenance.Reboot"}, "EventCycleStatus": {"Code": 0, "Name": "Executed"} "EventPublishTime": "2017-11-30T06:32:31Z", "NotBefore": "2017-12-01T06:32:31Z", "EventFinishTime": "2017-12-01T06:35:31Z"}, {"InstanceId": "i-2ze3tphuqvc93cixxxx3", "EventId": "e-2ze9yxxxxwtqcvai68r3", "EventType": {"Code": 34 "Name": "InstanceExpiration.Stop"}, "EventCycleStatus": {"Code": 8, "Name": "Avoided"}, "EventPublishTime": "2017-11-29T06:32:31Z", "NotBefore": "2017-12-06T00:00:00Z" "EventFinishTime": "2017-12-05T12:35:31Z"}]}, "PageSize": 10, "PageNumber": 1, "TotalCount": 2, "RequestId": "02EA76D3-5A2A-44EB-XXXX-8901881D8707"}

Exception return example

XML format

C38E0D94-C18B-44F3-8C05-6E35BE334087 ecs.aliyuncs.com InvalidParameter The Parameter "EventCycleStatus" provided is not valid.

JSON format

{"RequestId": "1A8B4B27-8B2D-XXXX-XXXX-0F64DBE4C212", "HostId": "ecs.aliyuncs.com"Code": "InvalidParameter"Message": "The Parameter" EventCycleStatus "provided is not valid."}

Error code

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

This is the end of the method of querying the event information of the specified instance history system in the last week. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

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