九章智算云
查询实例事件

查询实例的运行事件日志,用于实例启动失败或运行异常时定位原因。同步返回。

GEThttps://api.alayanew.com/api/osm/v1/cci/instance/{id}/get-event

鉴权(Authorizations)

AuthorizationString必填

用户获取Authorization请求头后,通过该请求头完成身份认证。例如:Authorization: [your-auth-header]。

Path Parameters

idString必填

实例 ID(来自查询实例列表的 id)。例如:2006a5d0-0a55-4e8f-9d3c-b7a1f20c5d88。

Response

statusInteger

业务状态码,200 表示成功。

messageString

接口响应信息。例如:"OK"。

dataArray

事件数组。

显示 properties
eventTypeString

事件类型。例如:"Failed"。

reasonString

事件原因。例如:"ImagePullBackOff"。

messageString

事件信息。例如:"镜像拉取失败,请检查镜像地址"。

firstTimestampString

事件首次发生时间。例如:"2026-10-14 09:00:10"。

lastTimestampString

事件最近发生时间。例如:"2026-10-14 09:05:20"。

curl -X 'GET' \
  'https://api.alayanew.com/api/osm/v1/cci/instance/2006a5d0-0a55-4e8f-9d3c-b7a1f20c5d88/get-event' \
  -H 'accept: application/json' \
  -H 'Authorization: [your-auth-header]'
import requests

instance_id = "2006a5d0-0a55-4e8f-9d3c-b7a1f20c5d88"
url = f"https://api.alayanew.com/api/osm/v1/cci/instance/{instance_id}/get-event"
headers = {
    "accept": "application/json",
    "Authorization": "[your-auth-header]"
}

response = requests.get(url, headers=headers)
print(response.json())
const instanceId = '2006a5d0-0a55-4e8f-9d3c-b7a1f20c5d88';

fetch(`https://api.alayanew.com/api/osm/v1/cci/instance/${instanceId}/get-event`, {
  method: 'GET',
  headers: {
    'accept': 'application/json',
    'Authorization': '[your-auth-header]'
  }
})
  .then(res => res.json())
  .then(console.log)
  .catch(console.error);
{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "eventType": "Failed",
      "reason": "ImagePullBackOff",
      "message": "镜像拉取失败,请检查镜像地址",
      "firstTimestamp": "2026-10-14 09:00:10",
      "lastTimestamp": "2026-10-14 09:05:20"
    }
  ]
}

最后更新于