Description

This function adds a range of IPv6 addresses to the server.



Examples 




https://hostname.example.com:2087/cpsess##########/json-api/ipv6_range_add?api.version=1&enabled=1&name=ExampleRange&range=2001%3Adb8%3A111%3A%3A%2F64




https://hostname.example.com:2087/cpsess##########/xml-api/ipv6_range_add?api.version=1&enabled=1&name=ExampleRange&range=2001%3Adb8%3A111%3A%3A%2F64




whmapi1 ipv6_range_add enabled=1 name=ExampleRange range=2001%3Adb8%3A111%3A%3A%2F64



{
    "metadata": {
        "version": 1,
        "reason": "OK",
        "result": 1,
        "command": "ipv6_range_add"
    }
}




<result>
   <metadata>
      <version>1</version>
      <reason>OK</reason>
      <result>1</result>
      <command>ipv6_range_add</command>
   </metadata>
</result>



   

Parameters

ParameterTypeDescriptionPossible valuesExample
range
string

Required

The IPv6 address range.

A valid IPv6 address range and network portion, in CIDR format.
                2001:db8:66ac:cafe::/64
              

name

string

Required

The IPv6 address range's name.

A valid string.

You cannot use SHARED as a range's name. In cPanel & WHM version 54 and later, the system reserves this name for the server's shared IPv6 address. 


ExampleRange
enabledBooleanWhether the IPv6 address range is available.
  • 1 — Available.
  • 0 — Reserved.
1

Returns

This function only returns metadata.