非预期事件记录列表
更新时间:2025-11-17
该接口用于查询已完成的非预期事件。
请求结构
Plain Text
1POST /?action={action}
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
|---|---|---|---|---|
| action | String | 是 | Query参数 | 对实例执行的动作,本接口中该参数取值:DescribeUnplannedEventRecords |
| marker | String | 否 | RequestBody | 批量获取列表的查询的起始事件id |
| maxKeys | Integer | 否 | RequestBody | 每页包含的最大数量,最大数量通常不超过100,缺省值为10 |
| serverEventIds | List<String> | 否 | RequestBody | 维修事件的id列表 |
| instanceIds | List<String> | 否 | RequestBody | 虚机的短id列表 |
| productCategory | String | 否 | RequestBody | 故障实例产品类型 (BBC / BCC / HPAS) |
| serverEventType | String | 否 | RequestBody | 事件类型,支持类型:InstanceRepairBySystemFailureEvent,InstanceRepairOrFastRepairBySystemFailureEvent,LocalDiskInstanceRepairBySystemFailureEvent,LocalDiskInstanceRepairOrFastRepairBySystemFailureEvent |
| serverEventLogTimeFilter | String | 否 | RequestBody | 根据事件操作日志的类型查询periodStartTime和periodEndTime范围内的事件,支持类型:EventCreate、EventAuthorize、EventExecuting、RejectCheckResult |
| periodStartTime | String | 否 | RequestBody | timeFilter类型开始时间, 若为空则只按照periodEndTime限制,符合BCE规范的日期格式 |
| periodEndTime | String | 否 | RequestBody | timeFilter类型结束时间, 若为空则只按照periodStartTime限制,符合BCE规范的日期格式 |
返回头域
除公共头域,无其它特殊头域。
返回参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| requestId | String | 请求Id |
| isTruncated | Boolean | true表示后面还有数据,false表示已经是最后一页 |
| marker | String | 标记查询的起始位置 |
| maxKeys | Integer | 每页包含的最大数量 |
| nextMarker | String | 获取下一页所需要传递的marker值。当isTruncated为false时,该域不出现 |
| unplannedMaintenanceEvents | List<UnplannedEventResponse> | 非预期事件列表 |
请求示例
Plain Text
1POST /?action=DescribeUnplannedEventRecords HTTP/1.1
2Host: bcc.bj.baidubce.com
3ContentType: application/json
4Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
5{
6 "maxKeys":1
7}
返回示例
Plain Text
1```
2HTTP/1.1 200 OK
3x-bce-request-id: bc4d97cd-f6af-4c9b-acb3-bd3f8349e3b3
4Date: Wed, 03 Dec 2014 06:42:19 GMT
5Content-Type: application/json;charset=UTF-8
6Server: BWS
7
8{
9 "requestId": "bc4d97cd-f6af-4c9b-acb3-bd3f8349e3b3",
10 "isTruncated": true,
11 "marker": "",
12 "maxKeys": 1,
13 "nextMarker": "event-ddYbQQ8C",
14 "unplannedMaintenanceEvents": [
15 {
16 "serverEventId": "event-NcPLU2hl",
17 "serverEventType": "InstanceRepairBySystemFailureEvent",
18 "serverEventStatus": "Abnormal",
19 "instanceId": "i-TSZQLLlc",
20 "productCategory": "BCC",
21 "instanceSpec": "bcc.g5.c2m8",
22 "instanceName": "AS-zzz",
23 "privateIp": "192.168.0.75",
24 "serverEventCreatedTime": "2025-11-10T08:13:14Z",
25 "serverEventEndedTime": "2025-11-10T08:13:26Z",
26 "maintenanceOptions": [
27 "Repair"
28 ],
29 "supportMaintenanceOptions": [
30 "Repair"
31 ],
32 "authorizedMaintenanceOperation": "",
33 "associatedPlannedMaintenanceServerEventIds": [],
34 "associatedUnplannedMaintenanceServerEventIds": null,
35 "executeTime": "1971-01-01T00:00:01Z",
36 "serverEventLogs": [
37 {
38 "name": "EventCreate",
39 "operator": "系统",
40 "operateTime": "2025-11-10T08:13:15Z"
41 },
42 {
43 "name": "EventAbnormal",
44 "operator": "系统",
45 "operateTime": "2025-11-10T08:13:26Z"
46 }
47 ],
48 "failures": [
49 {
50 "issueName": "NETWORK_FAIL",
51 "issueAlias": null,
52 "issueEffect": "unplan effect hpas",
53 "issueDescription": "",
54 "issueOccurTime": "2025-11-10T08:13:14Z",
55 "issueSource": null
56 }
57 ]
58 }
59 ]
60}
61```
