manage_network
Manage IPAM network resources: create, update, delete, get, list, and allocate next-available subnets/blocks. Supports dry-run mode for safe deletes.
Instructions
Manage IPAM network resources: create, update, delete, get, list, and allocate next-available subnets/blocks. USE THIS for IPAM CRUD operations. For IP reservations use manage_ip_reservation(). For utilization use get_ip_utilization().
IMPORTANT: Delete runs in dry_run mode by default — shows impact without deleting. next_available_subnet and next_available_address_block require resource_type="address_block" + resource_id + cidr.
Args: resource_type: Type of IPAM network resource to manage action: Operation to perform name: Resource name (for create or lookup) address: CIDR notation for subnets/blocks (e.g., "10.20.0.0/16"), or IP for ranges space: IP space name or ID (required for create) start: Start IP for ranges end: End IP for ranges resource_id: Resource ID for get/update/delete/next_available_* cidr: CIDR prefix length for next_available_subnet/next_available_address_block (e.g., 24) count: Number of resources to allocate (default 1) for next_available_* actions comment: Description tags: Optional tags dict dry_run: If True (default), delete shows impact only. Set False to execute.
Returns: Operation result with resource details
Examples: - manage_network(resource_type="subnet", action="create", address="10.20.3.0/24", space="prod", comment="Web servers") - manage_network(resource_type="subnet", action="get", resource_id="ipam/subnet/abc123") - manage_network(resource_type="range", action="create", start="10.20.3.100", end="10.20.3.200", space="prod") - manage_network(resource_type="address_block", action="delete", resource_id="ipam/address_block/xyz", dry_run=False) - manage_network(resource_type="address_block", action="next_available_subnet", resource_id="ipam/address_block/xyz", cidr=24) - manage_network(resource_type="address_block", action="next_available_address_block", resource_id="ipam/address_block/xyz", cidr=20)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| cidr | No | ||
| name | No | ||
| tags | No | ||
| count | No | ||
| space | No | ||
| start | No | ||
| action | Yes | ||
| address | No | ||
| comment | No | ||
| dry_run | No | ||
| resource_id | No | ||
| resource_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||