Get Virtualizor

Edit IPv6 Subnet

Use the Edit IPv6 Subnet API to edit the IPv6 subnet present on your server. You can also lock this subnet by passing in the locked parameter as shown. Locking the subnet will prevent it from being used by any other VPS.

For more information about IPv6 subnets, please refer this IPv6 Subnets guide.

HTTP Request



actGETeditiprangeThe action will edit the IPv6 SubnetYes
ipidPOSTIntThe IPv6 Subnet ID that needs to be editedYes
editipPOST1/0If set then the ip will be editedYes
ipPOSTtextThe Ip addressYes
lockedPOST1/0If set then the IPv6 Subnet will be lockedNo
netmaskPOSTIntThe netmask of IPv6 Subnet to be updated, allowed values are(64/80/96/112)No

Sample Code



    $key =  'your_api_key';
    $pass = 'your_api_pass';
    $ip = 'your_server_ip';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['ip'] = '1234:0f0f:0f0f:0123:1000:0000:ecf7:0001';
    $post['ipid'] = 104;
    $post['netmask'] = 80;
    $post['locked'] = 1;
    $post['editip'] = 1;

    $output = $admin->editiprange($post);




    "title": "Edit IPs",
    "timenow": 1481882455,
    "time_taken": "0.109"
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list