Assigns an IPv6 address to a MAC address and host.
Output / Response
Returns true if the IPv6 address is successfully assigned; returns false if the address is not successfully assigned.
API call:
boolean assignIP6Address ( long containerId,
String address, String action, String
macAddress, String hostInfo, String
properties )
Parameter | Description |
---|---|
containerId | The object ID of the container in which the IPv6 address is being assigned. This can be the object ID of a Configuration, IPv6 block or IPv6 network. The parent IPv6 network object must exist before adding an IPv6 address, otherwise an error will occur. |
address | The IPv6 address to be assigned. This value cannot be empty. The address must be created with addIP6Address() before it can be assigned. For more information, refer to Add IPv6 Address. The address must be a string representing an IPv6 address. |
action | Determines how to assign the address. Valid values are MAKE_STATIC or MAKE_DHCP_RESERVED. |
macAddress | The MAC address in the format nnnnnnnnnnnn, nn-nn-nn-nn-nn-nn or nn:nn:nn:nn:nn:nn, where nn is a hexadecimal value. |
hostInfo | The host information for the IPv6 address. This value can be
empty. The hostInfo string uses the following
format: viewId, hostname, ifSameAsZone,
ifReverseMapping. Where viewId is the object ID of the DNS view; hostname is the name of DNS zone for the address; ifSameAsZone is a Boolean value, with true indicating that the name of the resource record should be the same as the host; ifReverseMapping is a Boolean value, with trueindicating that a reverse record should be created. Shown here is an example of a hostInfo string: 2030445,www.example.com,false,true. |
properties | A string containing the following property,
including user-defined fields:
|