workspace__ListScriptRecords
Retrieve and filter script execution records for a Huawei Cloud Workspace project by script, resource, status, task type, or execution time range, with pagination to track run history.
Instructions
[WORKSPACE] 查询脚本执行记录列表。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>"
},
"name": "workspace__ListScriptRecords"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 单次查询的大小[1-100],默认值10。 | |
| offset | No | 查询的偏移量,默认值0。 | |
| status | No | 执行脚本的执行情况。 | |
| script_id | No | 执行的脚本ID。 | |
| task_type | No | 执行记录的任务类型(SCRIPT/COMMAND)。 | |
| project_id | Yes | 项目ID。 | |
| resource_id | No | 执行脚本的资源ID列表。 | |
| script_name | No | 执行的脚本名称。 | |
| show_history | No | 是否查询历史记录,默认为false,为true时需要同时传入resource_id与script_id。 | |
| is_first_order | No | 是否首批执行。 | |
| script_task_id | No | 执行脚本的任务ID。 | |
| execute_time_end | No | 按执行时间查询的终止时间。指定该参数后,返回的结果为此时间之前的所有执行记录。时间格式如:“2021-10-01T12:00:00Z”。 | |
| resource_group_id | No | 执行脚本的资源组ID。 | |
| execute_time_start | No | 按执行时间查询的起始时间。指定该参数后,返回的结果为此时间之后的所有执行记录。时间格式如:“2021-10-01T12:00:00Z”。 |