hss__ListPorts
Lists open ports on a specified Huawei Cloud host to identify exposed services and support security checks; filter by port, protocol, status, or host details.
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": {
"host_id": "<host_id>",
"project_id": "<project_id>"
},
"name": "hss__ListPorts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | 端口号 | |
| type | No | 端口类型:目前包括TCP,UDP两种 | |
| limit | No | 每页显示数量 | |
| offset | No | 偏移量:指定返回记录的开始位置 | |
| status | No | 端口状态,包含如下: | |
| host_id | Yes | 主机id | |
| host_ip | No | 主机ip | |
| category | No | 类别,默认为host,包含如下: | |
| host_name | No | 主机名称 | |
| project_id | Yes | 项目ID | |
| enterprise_project_id | No | 主机所属的企业项目ID。 |