hss__ListPortStatistics
Queries open port statistics for servers, letting you filter by port or protocol to count affected hosts and review exposed services.
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": {
"project_id": "<project_id>"
},
"name": "hss__ListPortStatistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | 端口号,精确匹配 | |
| type | No | 端口类型 | |
| limit | No | 每页显示数量 | |
| offset | No | 偏移量:指定返回记录的开始位置 | |
| status | No | 端口状态,包含如下: | |
| category | No | 类别,默认为host,包含如下: | |
| sort_dir | No | 升序还是降序,默认升序,asc | |
| sort_key | No | 排序的key值,目前支持按照端口号port排序 | |
| project_id | Yes | 项目ID | |
| port_string | No | 端口字符串,用来进行模糊匹配 | |
| enterprise_project_id | No | 主机所属的企业项目ID。 |