Get subnet
get_subnetRetrieve a subnet by ID to inspect its CIDR, gateway, DHCP settings, allocation pools, DNS servers, and routes. Use it after finding subnet IDs to review network configuration.
Instructions
Get one subnet by ID: CIDR, gateway, DHCP, allocation pools, DNS servers and routes.
Use list_subnets to find IDs, optionally for one network. Returns not_found if the subnet 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": {
"subnet_id": "<subnet_id>"
},
"name": "get_subnet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subnet_id | Yes | Subnet ID, as returned by list_subnets. | |
| 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 | ||
| cidr | No | ||
| name | No | ||
| gateway_ip | No | ||
| ip_version | No | ||
| network_id | No | ||
| project_id | No | ||
| description | No | ||
| host_routes | No | ||
| dns_nameservers | No | ||
| is_dhcp_enabled | No | ||
| allocation_pools | No |