這篇文章將為大家詳細講解有關(guān)查詢最近一周指定實例歷史系統(tǒng)事件信息的方法,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。

DescribeInstanceHistoryEvents
請求參數(shù)


返回參數(shù)

數(shù)據(jù)類型 InstanceSystemEventType

示例
請求示例
https://ecs.aliyuncs.com/?Action=DescribeInstanceHistoryEvents &RegionId=cn-hangzhou &InstanceId=i-2ze3tphuqvc93cixxxx3 &<公共請求參數(shù)>
正常返回示例
XML 格式
<DescribeInstanceHistoryEventsResponse>
<InstanceSystemEventSet>
<InstanceSystemEventType>
<InstanceId>i-2ze3tphuqvc93cixxxx3</InstanceId>
<EventId>e-2ze9yxxxxwtqcvai68rl</EventId>
<EventType>
<Code>1</Code>
<Name>SystemMaintenance.Reboot</Name>
</EventType>
<EventCycleStatus>
<Code>0</Code>
<Name>Executed</Name>
</EventCycleStatus>
<EventPublishTime>2017-11-30T06:32:31Z</EventPublishTime>
<NotBefore>2017-12-01T06:32:31Z</NotBefore>
<EventFinishTime>2017-12-01T06:35:31Z</EventFinishTime>
</InstanceSystemEventType>
<InstanceSystemEventType>
<InstanceId>i-2ze3tphuqvc93cixxxx3</InstanceId>
<EventId>e-2ze9yxxxxwtqcvai68r3</EventId>
<EventType>
<Code>34</Code>
<Name>InstanceExpiration.Stop</Name>
</EventType>
<EventCycleStatus>
<Code>8</Code>
<Name>Avoided</Name>
</EventCycleStatus>
<EventPublishTime>2017-11-29T06:32:31Z</EventPublishTime>
<NotBefore>2017-12-06T00:00:00Z</NotBefore>
<EventFinishTime>2017-12-05T12:35:31Z</EventFinishTime>
</InstanceSystemEventType>
</InstanceSystemEventSet>
<PageSize>10</PageSize>
<PageNumber>1</PageNumber>
<TotalCount>2</TotalCount>
<RequestId>02EA76D3-5A2A-44EB-XXXX-8901881D8707</RequestId>
</DescribeInstanceHistoryEventsResponse>JSON 格式
{
"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"
}異常返回示例
XML 格式
<Error>
<RequestId>C38E0D94-C18B-44F3-8C05-6E35BE334087</RequestId>
<HostId>ecs.aliyuncs.com</HostId>
<Code>InvalidParameter</Code>
<Message>The Parameter "EventCycleStatus" provided is not valid.</Message>
</Error>JSON 格式
{
"RequestId": "1A8B4B27-8B2D-XXXX-XXXX-0F64DBE4C212",
"HostId": "ecs.aliyuncs.com"
"Code": "InvalidParameter"
"Message": "The Parameter "EventCycleStatus" provided is not valid."
}錯誤碼
以下為本接口特有的錯誤碼。更多錯誤碼,請訪問API錯誤中心。

關(guān)于查詢最近一周指定實例歷史系統(tǒng)事件信息的方法就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。
分享名稱:查詢最近一周指定實例歷史系統(tǒng)事件信息的方法-創(chuàng)新互聯(lián)
轉(zhuǎn)載注明:http://chinadenli.net/article28/gcgcp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導航、企業(yè)網(wǎng)站制作、品牌網(wǎng)站制作、網(wǎng)站排名、關(guān)鍵詞優(yōu)化、網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容