Get Subnets
get_subnetsList Neutron subnets for the current project, including shared and external networks, or retrieve details for one subnet by name or ID.
Instructions
List the current project's Neutron subnets, plus the subnets of shared and external networks, or show one subnet.
For subnets grouped under their networks, use get_network_details.
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": "get_subnets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subnet_name | No | Optional subnet name or ID. When provided, show that subnet (with host_routes, created_at and updated_at); otherwise list subnets. | |
| all_projects | No | List only. If True, list every subnet Neutron shows the credential in any project (like 'openstack subnet list' as an administrator). Requires ALLOW_CROSS_PROJECT_READ=true on the server; rows then carry project_name and shared, and the result has a scope (check scope.warning). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |