更新时间:2025-09-23 GMT+08:00

获取自启动项的历史变动记录

功能介绍

获取自启动项的历史变动记录

URI

GET /v5/{project_id}/asset/auto-launch/change-history

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

租户ID

表2 Query参数

参数

是否必选

参数类型

描述

host_id

String

主机id

host_ip

String

主机ip

host_name

String

主机名称

auto_launch_name

String

自启动项名称

type

Integer

自启动项类型

  • 0 :自启动服务

  • 1 :定时任务

  • 2 :预加载动态库

  • 3 :Run注册表键

  • 4 :开机启动文件夹

variation_type

String

变更类型:

  • add :新建

  • delete :删除

  • modify :修改

enterprise_project_id

String

企业项目

sort_key

String

排序的key值

sort_dir

String

升序还是降序,默认升序,asc

limit

Integer

默认10

offset

Integer

默认是0

start_time

Long

变更开始时间,13位时间戳

end_time

Long

变更结束时间,13位时间戳

请求参数

表3 请求Header参数

参数

是否必选

参数类型

描述

x-auth-token

String

iam token

响应参数

状态码:200

表4 响应Body参数

参数

参数类型

描述

total_num

Integer

总数

data_list

Array of AutoLaunchChangeResponseInfo objects

软件历史变动记录列表

表5 AutoLaunchChangeResponseInfo

参数

参数类型

描述

agent_id

String

agent_id

variation_type

String

the type of change

  • add :新建

  • delete :删除

  • modify :修改

type

Integer

自启动项类型

host_id

String

host_id

host_name

String

弹性服务器名称

host_ip

String

主机IP

path

String

路径

hash

String

文件hash

run_user

String

运行用户

name

String

自启动项名称

recent_scan_time

Long

最近更新时间

请求示例

默认查询前10条开始时间为1693101881568,结束时间为1701050681569的自启动项的历史变动记录

GET https://{endpoint}/v5/{project_id}/asset/auto-launch/change-history?start_time=1693101881568&end_time=1701050681569

响应示例

状态码:200

App change history info list

{
  "total_num" : 1,
  "data_list" : [ {
    "agent_id" : "d83c7be8a106485a558f97446617443b87604c8116e3cf0453c2a44exxxxxxxx",
    "variation_type" : "abnormal_behavior",
    "type" : 0,
    "host_id" : "host_id",
    "host_name" : "host_name",
    "host_ip" : "host_ip",
    "path" : "/path",
    "hash" : "xxxxxxxx227bffa0c04425ba6c8e0024046caa38dfbca6281b40109axxxxxxxx",
    "run_user" : 1668246126302,
    "name" : 1668246126302,
    "recent_scan_time" : 1668246126302
  } ]
}

状态码

状态码

描述

200

App change history info list

错误码

请参见错误码