Update External Host Record - BlueCat Address Manager - 9.0.0

Address Manager API Guide

Locale
English (United States)
Product name
BlueCat Address Manager
Version
9.0.0

An external host record’s name and comment properties can be updated using the generic update() method.

For more information, see Updating Objects.

Update External Host Records assigned to IP addresses

You can update external host records that are assigned to IPv4 or IPv6 addresses through PTR records using the generic update() method. Refer to the following ptrs property values and example:
  • null—updates IPv4 or IPv6 address without any change to the existing PTR record.
  • empty string ("")—use an empty string ("") for the ptrs property value when updating. This will remove all PTR records that linked IP addresses to the external host records.
  • Valid comma-separated external host records string—use a valid string. This will remove any PTR records that previously linked IP addresses with the external host records and link newly specified IP addresses to the external host records using PTR records. The records previously linked should not be unlinked.
    EntityProperties props = new EntityProperties();
           props.addProperty( ObjectProperties.ptrs,  "123,exHostFQDN.com,456,exHostFQDN.net" );
           service.update( ipAddress );