Get IPv6 Range by IP Address - BlueCat Address Manager - 8.3.1

Address Manager API Guide

prodname
BlueCat Address Manager
version_custom
8.3.1

Returns the DHCPv6 Range containing the specified IPv6 address.

Use this method to find the Configuration, IPv6 Block, IPv6 Network, or DHCPv6 Range containing a specified address. You can specify the type of object to be returned, or you can leave the type of object empty ("") to find the most direct container for the object.

Output / Response

Returns an APIEntity for the DHCPv6 Range containing the specified IPv6 address. If no object is found, returns an empty APIEntity. If ObjectTypes.IP6Block, ObjectTypes.IP6Network,or ObjectTypes.DHCP6Range is specified as the type parameter, returns an object of the specified type. If an empty string ("") is specified as the type parameter, returns the most direct container for the IPv6 address.

API call:

APIEntity getIPRangedByIP ( long containerId, String type, String address )
Parameter Description
containerId The object ID of the container in which the IPv6 address is located. This can be a Configuration, IPv6 Block, IPv6 Network, or DHCP Range. When you do not know the block, network, or range in which the address is located, specify the configuration.
type The type of object containing the IPv6 address. Specify ObjectTypes.IP6Block, ObjectTypes.IP6Network, or ObjectTypes.DHCP6Range to find the block, network, or range containing the IPv6 address. Specify an empty string ("") to return the most direct container for the IPv6 address.
address An IPv6 address.