phpipam.addresses.allocate
Allocate the first available IP address in a subnet. Provide subnet ID and optional hostname, MAC, owner, or notes to assign the next free address.
Instructions
Allocate the first available IP address in a subnet. Requires PHPIPAM_WRITE_ENABLED=true
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": {
"subnetId": "<subnetId>"
},
"name": "phpipam.addresses.allocate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mac | No | MAC address | |
| note | No | Additional notes | |
| owner | No | Owner/responsible person | |
| hostname | No | Hostname for the address | |
| subnetId | Yes | Subnet ID to allocate from | |
| description | No | Description |