Skip to content

update_dynamic_dns

Patch fields on an existing Dynamic DNS config.

Side effects:

  • Modifies the named DDNS config in place. Only fields supplied in updates change; everything else is preserved.
  • Takes effect immediately: changing host_name or service repoints the next update; toggling enabled starts or stops updates.
  • Mutates controller state. Use dry_run=True to preview the change without applying.
update_dynamic_dns(ddns_id="65f...", updates={"enabled": False})
ParameterTypeRequiredDefaultDescription
ddns_idstringyesThe _id from list_dynamic_dns.
updatesobjectyesPartial DDNS record. Common keys: service, host_name, login, x_password (new password/token), server, interface, enabled.
controllerstringno”default”Name of the UniFi controller to target. Defaults to "default".
dry_runbooleannofalsePreview the change without applying it. Returns the predicted change set (x_password redacted if present).