Description
Assigns an IPv6 address to a MAC address and host.
Parameters
Name | Description |
---|---|
action |
Location: query Type: string Determines how to assign the address. Valid values are MAKE_STATIC
or MAKE_DHCP_RESERVED.
|
address |
Location: query Type: string The IPv6 address to be assigned. The address
must be created with addIP6Address before it can be
assigned. For more information, refer to
POST /v1/addIP6Address. The address must be a string
representing an IPv6 address.
|
containerId |
Location: query Type: integer (int64) 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.
|
hostInfo |
Location: query Type: string The host information for the IPv6 address. This value can be empty. The
hostInfo string uses the following format:
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 true indicating that a reverse record should be created. Shown here is an example of a hostInfo string:
|
macAddress |
Location: query Type: string The MAC address as a 12 digit hexadecimal in the format nnnnnnnnnnnn,
nn-nn-nn-nn-nn-nn, or nn:nn:nn:nn:nn:nn.
|
properties |
Location: query Type: string A string containing the following property, including user-defined
fields:
|
Responses
Code | Description |
---|---|
201 |
Type: boolean Returns true if the IPv6 address is successfully assigned; returns false if the address is not successfully assigned.
|