Netbox Allocate Available
netbox_allocate_availableAllocate the next free IP, prefix, VLAN, or ASN from a NetBox pool and create it atomically, preventing duplicate assignments by concurrent callers.
Instructions
Allocate the next free IP, prefix, VLAN or ASN from a pool and create it. NetBox picks the value atomically, so concurrent callers never get the same one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Attributes of the new object(s). Prefixes need {'prefix_length': 24}; VLANs need {'name': 'users'}. A list allocates several at once, e.g. [{'description': 'a'}, {'description': 'b'}] for two IPs. | |
| kind | Yes | What to look for: 'ips' (prefix or IP range), 'prefixes' (prefix), 'vlans' (VLAN group), 'asns' (ASN range). | |
| parent_id | Yes | Numeric object ID. | |
| parent_type | Yes | Type of the parent object that holds the pool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||