hss__BatchScanSwrImage
Triggers batch vulnerability scans for Huawei Cloud SWR container images, enabling scans of selected images or all images in a project.
Instructions
[HSS] 镜像仓库镜像批量扫描
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": {
"image_type": "<image_type>",
"project_id": "<project_id>"
},
"name": "hss__BatchScanSwrImage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No | 组织名称 | |
| repo_type | No | 仓库类型,现阶段接入了swr镜像仓库,包含如下: | |
| image_name | No | 镜像名称 | |
| image_size | No | 镜像大小 | |
| image_type | Yes | 镜像类型,包含如下: | |
| project_id | Yes | 项目ID | |
| operate_all | No | 若为true全量查询,可筛选条件全部查询,若image_info_list为空,则必填 | |
| scan_status | No | 扫描状态,包含如下: | |
| image_version | No | 镜像版本 | |
| latest_version | No | 仅关注最新版本镜像 | |
| image_info_list | No | 要扫描的镜像信息列表,operate_all参数为false时为必填 | |
| end_latest_scan_time | No | 最近一次扫描完成时间结束日期,时间单位 毫秒(ms) | |
| enterprise_project_id | No | 主机所属的企业项目ID。 | 0 |
| end_latest_update_time | No | 创建时间结束日期,时间单位 毫秒(ms) | |
| start_latest_scan_time | No | 最近一次扫描完成时间开始日期,时间单位 毫秒(ms) | |
| start_latest_update_time | No | 创建时间开始日期,时间单位 毫秒(ms) |