更新时间:2025-09-12 GMT+08:00
分享

查看OBS审计日志列表

功能介绍

dsc:common:list

调用方法

请参见如何调用API

URI

POST /v1/{project_id}/sdg/exception/list-events

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

project_id

请求参数

表2 请求Body参数

参数

是否必选

参数类型

描述

end_time

Long

查询的结束时间。

limit

Integer

返回结果的限制数量。

offset

Integer

返回结果的偏移量。

start_time

Long

查询的开始时间。

status

String

异常事件的状态。

type

String

异常事件的类型。

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

exceptions

Array of ExceptionEventInfo objects

异常事件的列表。

total

Integer

异常事件的总数。

表4 ExceptionEventInfo

参数

参数类型

描述

alarm_time

Long

异常事件的报警时间。

confirmed

Boolean

异常事件是否已确认。

event_name

String

异常事件的名称。

expired

Boolean

异常事件是否已过期。

id

String

异常事件的唯一标识符。

owner_id

String

异常事件的所有者ID。

requester_id

String

异常事件的请求者ID。

status

String

异常事件的状态。

type

String

异常事件的类型。

状态码:201

Created

请求示例

POST /v1/{project_id}/sdg/exception/list-events

{
  "end_time" : 0,
  "limit" : 0,
  "offset" : 0,
  "start_time" : 0,
  "status" : "string",
  "type" : "string"
}

响应示例

状态码

状态码

描述

200

OK

201

Created

401

未授权,用户未登录或令牌无效

403

无权限访问该资源

404

指定的项目不存在

错误码

请参见错误码

相关文档