Update IP Address
hudu_update_ip_addressUpdate an existing IP address record in Hudu by overwriting only the fields you supply—status, FQDN, address, or asset—leaving all other values intact.
Instructions
Update an existing ip address. An ip_address record documents one address: its allocation status, its FQDN, the network it sits in and the asset it is configured on.
Only the fields you supply are sent. Be aware that Hudu applies these as a PUT: for fields you do send, the new value replaces the old one outright — read the record first with hudu_get_ip_address if you intend to append rather than overwrite.
Operation class: Update. Impact: Overwrites the supplied fields on this ip address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric Hudu id of the ip address. | |
| 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 | No | One IP address, not a range — "10.20.0.14" or "2001:db8::14". A CIDR block belongs on a network record instead; 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. |