Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-02 04:23:50 10月04日 Update

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.

Tags: Format example error more event information history instance method system query parameter article good practical content interface data article knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple vpn Shulou Tech Info Microsoft OPPO Reno