云桌面 Workspace-查询脚本执行记录列表:URI

时间:2025-02-12 15:01:22

URI

GET /v2/{project_id}/script-execution-records

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目ID。

表2 Query参数

参数

是否必选

参数类型

描述

offset

Integer

查询的偏移量。

limit

Integer

单次查询的大小[1-100]。

resource_id

Array of strings

执行脚本的资源ID列表。

resource_group_id

Array of strings

执行脚本的资源组ID。

script_id

Array of strings

执行的脚本ID。

script_name

Array of strings

执行的脚本名称。

status

String

执行脚本的执行情况。

is_first_order

Boolean

是否首批执行。

script_task_id

String

执行脚本的任务ID。

task_type

String

执行记录的任务类型(SCRIPT/COMMAND)。

show_history

Boolean

是否查询历史记录,默认为false,为true时需要同时传入resource_id与script_id。

execute_time_start

String

按执行时间查询的起始时间。指定该参数后,返回的结果为此时间之后的所有执行记录。时间格式如:“2021-10-01T12:00:00Z”。

execute_time_end

String

按执行时间查询的终止时间。指定该参数后,返回的结果为此时间之前的所有执行记录。时间格式如:“2021-10-01T12:00:00Z”。

support.huaweicloud.com/api-workspace/ListScriptRecords.html