Get port
get_portFetch a single OpenStack port by ID to inspect its network, device, MAC, fixed IPs, security groups, and address pairs. Use list_ports first to find port IDs.
Instructions
Get one port by ID: network, device, MAC, fixed IPs, security groups, address pairs.
Use list_ports to find IDs by network or device. Returns not_found if the port is not visible to the selected project.
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": {
"port_id": "<port_id>"
},
"name": "get_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port_id | Yes | Port ID, as returned by list_ports. | |
| project_id | No | Project ID to work in; omit for the default project. Allowed values are listed by get_scope. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| status | No | ||
| device_id | No | ||
| fixed_ips | No | ||
| network_id | No | ||
| project_id | No | ||
| description | No | ||
| mac_address | No | ||
| device_owner | No | ||
| is_admin_state_up | No | ||
| security_group_ids | No | ||
| allowed_address_pairs | No |