create_subnet
Add a new subnet to a phpIPAM section using network address and mask. Optional description and VLAN ID support.
Instructions
Create a new subnet in phpIPAM.
Args: section_id: Section ID where subnet will be created subnet: Network address (e.g., "192.168.1.0") mask: Subnet mask (e.g., "24") description: Optional description for the subnet vlan_id: Optional VLAN ID
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": {
"section_id": "<section_id>",
"subnet": "<subnet>",
"mask": "<mask>"
},
"name": "create_subnet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | Yes | ||
| subnet | Yes | ||
| vlan_id | No | ||
| section_id | Yes | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |