vpc__ListPorts
Lists all VPC ports for a tenant and returns up to 2,000 records per query, with filters such as ID, name, status, network, MAC address, and security group to locate specific ports.
Instructions
[VPC] 查询提交请求的租户的所有端口,单次查询最多返回2000条数据。
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": "vpc__ListPorts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | 按照port_id过滤查询 | |
| name | No | 功能说明:按照name过滤查询 | |
| limit | No | 每页返回的个数 | |
| marker | No | 分页查询起始的资源ID,为空时查询第一页 | |
| status | No | 功能说明:按照status过滤查询 | |
| device_id | No | 按照device_id过滤查询 | |
| fixed_ips | No | 按照fixed_ips=ip_address或者fixed_ips=subnet_id过滤查询 | |
| enable_efi | No | 按照是否使能efi过滤查询 | |
| network_id | No | 按照network_id过滤查询 | |
| project_id | Yes | 项目ID | |
| mac_address | No | 按照mac_address过滤查询 | |
| device_owner | No | 按照device_owner过滤查询 | |
| admin_state_up | No | 按照admin_state_up进行过滤 | |
| security_groups | No | 按照安全组ID列表过滤查询 | |
| enterprise_project_id | No | 功能说明:企业项目ID,用于基于企业项目的权限管理。 |