vpc__NeutronListPorts
Queries VPC ports for a tenant with filters such as network, IP, status, and security group; returns up to 2,000 results and supports pagination for larger inventories.
Instructions
[VPC] 查询提交请求的租户的所有端口,单次查询最多返回2000条数据,超过2000后会返回分页标记。分页查询请参考分页查询。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "vpc__NeutronListPorts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | 按照端口的ID过滤查询 | |
| name | No | 按照端口的名称过滤查询 | |
| limit | No | 每页返回的个数 | |
| marker | No | 分页查询起始的资源ID,为空时查询第一页 | |
| status | No | 按照端口状态过滤查询,取值范围:ACTIVE、BUILD、DOWN | |
| device_id | No | 按照端口的设备ID过滤查询 | |
| fixed_ips | No | 按照端口的IP地址过滤查询,fixed_ips=ip_address或者fixed_ips=subnet_id过滤查询 | |
| tenant_id | No | 按照端口所属的项目ID过滤查询 | |
| network_id | No | 按照端口所属的网络ID过滤查询 | |
| mac_address | No | 按照端口的mac地址过滤查询 | |
| device_owner | No | 按照端口的设备所属过滤查询 | |
| admin_state_up | No | 按照端口的管理状态过滤查询,取值范围:true or false | |
| security_groups | No | 按照安全组ID列表过滤查询 |