查询最近一周指定实例历史系统事件信息的方法

  介绍

这篇文章将为大家详细讲解有关查询最近一周指定实例历史系统事件信息的方法,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

DescribeInstanceHistoryEvents


查询最近一周指定实例历史系统事件信息的方法

查询最近一周指定实例历史系统事件信息的方法

查询最近一周指定实例历史系统事件信息的方法

<强>数据类型InstanceSystemEventType

查询最近一周指定实例历史系统事件信息的方法

<强>请求示例

https://ecs.aliyuncs.com/?Action=DescribeInstanceHistoryEvents   ,RegionId=cn-hangzhou   ,InstanceId=i-2ze3tphuqvc93cixxxx3   ,& lt;公共请求参数在

<强>正常返回示例

<强> XML格式

& lt; DescribeInstanceHistoryEventsResponse>   & lt; InstanceSystemEventSet>   & lt; InstanceSystemEventType>   & lt; InstanceId> i-2ze3tphuqvc93cixxxx3   & lt; EventId> e-2ze9yxxxxwtqcvai68rl   & lt; EventType>   & lt; Code> 1 & lt;/Code>   & lt; Name> SystemMaintenance.Reboot   & lt;/EventType>   & lt; EventCycleStatus>   & lt; Code> 0 & lt;/Code>   & lt; Name> Executed   & lt;/EventCycleStatus>   & lt; EventPublishTime> 2017 - 11 - 30 - t06:32:31z   & lt; NotBefore> 2017 - 12 - 01 - t06:32:31z   & lt; EventFinishTime> 2017 - 12 - 01 - t06:35:31z   & lt;/InstanceSystemEventType>   & lt; InstanceSystemEventType>   & lt; InstanceId> i-2ze3tphuqvc93cixxxx3   & lt; EventId> e-2ze9yxxxxwtqcvai68r3   & lt; EventType>   & lt; Code> 34 & lt;/Code>   & lt; Name> InstanceExpiration.Stop   & lt;/EventType>   & lt; EventCycleStatus>   & lt; Code> 8 & lt;/Code>   & lt; Name> Avoided   & lt;/EventCycleStatus>   & lt; EventPublishTime> 2017 - 11 - 29 t06:32:31z   & lt; NotBefore> 2017 - 12 - 06 - t00:00:00z   & lt; EventFinishTime> 2017 - 12 - 05 - t12:35:31z   & lt;/InstanceSystemEventType>   & lt;/InstanceSystemEventSet>   & lt; PageSize> 10 & lt;/PageSize>   & lt; PageNumber> 1 & lt;/PageNumber>   & lt; TotalCount> 2 & lt;/TotalCount>   & lt; RequestId> 02 ea76d3 - 5 -负责- 44 - eb - xxxx - 8901881 - d8707   & lt;/DescribeInstanceHistoryEventsResponse>

<强> JSON格式

{   “InstanceSystemEventSet": {   “InstanceSystemEventType":(   {   “InstanceId":“i-2ze3tphuqvc93cixxxx3"   “EventId":“e-2ze9yxxxxwtqcvai68rl"   “EventType": {   “Code": 1、   “Name":“SystemMaintenance.Reboot"   },   “EventCycleStatus": {   “Code": 0,   “Name":“Executed"   },   “EventPublishTime":“2017 - 11 - 30 - t06:32:31z"   “NotBefore":“2017 - 12 - 01 t06:32:31z"   “EventFinishTime":“2017 - 12 - 01 - t06:35:31z"   },   {   “InstanceId":“i-2ze3tphuqvc93cixxxx3"   “EventId":“e-2ze9yxxxxwtqcvai68r3"   “EventType": {   “Code": 34岁   “Name":“InstanceExpiration.Stop"   },   “EventCycleStatus": {   “Code": 8   “Name":“Avoided"   },   “EventPublishTime":“2017 - 11 - 29 - t06:32:31z"   “NotBefore":“2017 - 12 - 06 - t00:00:00z"   “EventFinishTime":“2017 - 12 - 05 - t12:35:31z"   }   ]   },   “PageSize": 10,   “PageNumber": 1、   “TotalCount": 2   “RequestId":“02 ea76d3 - 5 -负责- 44 - eb - xxxx - 8901881 - d8707"   }

<强>异常返回示例

<强> XML格式

& lt; Error>   & lt; RequestId> C38E0D94-C18B-44F3-8C05-6E35BE334087   & lt; HostId> ecs.aliyuncs.com   & lt; Code> InvalidParameter   & lt; Message>参数“EventCycleStatus"提供的是无效的。你们;/Message>   & lt;/Error>

<强> JSON格式

查询最近一周指定实例历史系统事件信息的方法