hss__ListSwrImageRepository
Lists images in SWR image repositories for Huawei Cloud HSS with filters for namespace, image, scan status, vulnerabilities, and timestamps. Use it to audit container images before syncing updates.
Instructions
[HSS] 查询swr镜像仓库镜像列表,如果需要从swr同步最新镜像,需要先调用“从swr同步镜像”接口
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__ListSwrImageRepository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 每页显示数量 | |
| offset | No | 偏移量:指定返回记录的开始位置 | |
| has_vul | No | 是否存在软件漏洞 | |
| namespace | No | 组织名称 | |
| image_name | No | 镜像名称 | |
| image_size | No | 镜像大小 | |
| image_type | Yes | 镜像类型,包含如下: | |
| project_id | Yes | 项目ID | |
| instance_id | No | 企业仓库实例ID,swr共享版无需使用该参数 | |
| scan_status | No | 扫描状态,包含如下: | |
| image_version | No | 镜像版本 | |
| instance_name | No | 企业镜像实例名称 | |
| latest_version | No | 仅关注最新版本镜像 | |
| has_malicious_file | No | 是否存在恶意文件 | |
| has_unsafe_setting | No | 是否存在基线检查 | |
| 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) |