Create IP Address
hudu_create_ip_addressCreate an IP address record in Hudu, specifying its status, FQDN, network, and asset to maintain accurate IP documentation.
Instructions
Create a new ip address in Hudu. An ip_address record documents one address: its allocation status, its FQDN, the network it sits in and the asset it is configured on.
Returns the created record, including the id Hudu assigned. Hudu answers 422 with the offending field named when validation fails.
Operation class: Create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fqdn | No | Fully qualified domain name for this address, e.g. "dc01.corp.example.com". Hudu stores whatever you write and does not resolve or verify it against DNS, so treat a value here as documentation rather than as evidence the record is current. | |
| status | No | Allocation state of the address. "assigned" means a host is using it, "reserved" means it is held back from allocation, "unassigned" means it is free, "deprecated" means it is on its way out, and "dhcp" and "slaac" mean it is handed out dynamically rather than set on the device. These six are the values Hudu documents. | |
| address | Yes | One IP address, e.g. "10.20.0.14" or "2001:db8::14". Ranges belong on a network record; see hudu_create_network. | |
| asset_id | No | Numeric id of the asset that holds this address — the server, firewall or printer it is configured on. This is the join that answers "what is on 10.20.0.14?". Find the id with hudu_list_assets (its `search` filter takes a hostname); note that hudu_get_asset needs the asset's company_id as well, which hudu_list_assets returns. | |
| comments | No | Longer free-text notes about the address. | |
| company_id | No | Numeric id of the company this address is documented for. Resolve a customer name with hudu_list_companies. Setting it consistently with the parent network is what keeps a company-scoped IPAM view complete. | |
| network_id | No | Numeric id of the network this address belongs to. Find it with hudu_list_networks — Hudu does not infer the network from the address, so an address created without this is not linked to its subnet. | |
| description | No | Short description of what this address is for. |