Vps - Endpoints Legacy Documentation

  • GET /vps/list

  • GET /vps/get/$id

    • @param (int) $vmid - Required
      • Match Pattern
        • [0-9]
  • GET /vps/iso

    • List ISO Images
  • POST /vps/iso

    • @param (int) $vmid - Required
      • Match Pattern
        • [0-9]
    • @param (string) $image - Required
      • Match Pattern
        • Valid ISO Image from "GET /vps/iso"
  • GET /vps/template/$type

    • @param (enum) $type - Required
      • Xen
      • OpenVZ
  • POST /vps/reinstall

    • @param (int) $vmid - Required
      • Match Pattern
        • [0-9]
    • @param (string) $template - Required
      • Match Pattern
        • Valid Template Image from "GET /vps/template"
  • POST /vps/power

    • @param (int) $vmid - Required
      • Match Pattern
        • [0-9]
    • @param (enum) $action - Required
      • on
        • Power On
      • off
        • Power Off
      • reboot
        • Power Cycle
  • POST /vps/hostname

    • @param (int) $vmid - Required
      • Match Pattern
        • [0-9]
    • @param (string) $hostname - Required
      • Match Pattern
        • @todo REGEX Pattern
  • POST /vps/password

    • @param (int) $vmid - Required
      • Match Pattern
        • [0-9]
    • Return: (string) $password
  • POST /vps/tun

    • @param (enum) $action - Required
      • enable
      • disable
  • GET /vps/network

    • List VPS IPv4 & IPv6 Addresses
  • POST /vps/rDNS

    • @param (string) $ip - Required
      • Match Pattern
        • IPv4: ^(((2(5[0-5]|[0-4][0-9])|[01]?[0-9][0-9]?)\.){3}(2(5[0-5]|[0-4][0-9])|[01]?[0-9][0-9]?))$
        • IPv6: ^(::|(([a-fA-F0-9]{1,4}):){7}(([a-fA-F0-9]{1,4}))|(:(:([a-fA-F0-9]{1,4})){1,6})|((([a-fA-F0-9]{1,4}):){1,6}:)|((([a-fA-F0-9]{1,4}):)(:([a-fA-F0-9]{1,4})){1,6})|((([a-fA-F0-9]{1,4}):){2}(:([a-fA-F0-9]{1,4})){1,5})|((([a-fA-F0-9]{1,4}):){3}(:([a-fA-F0-9]{1,4})){1,4})|((([a-fA-F0-9]{1,4}):){4}(:([a-fA-F0-9]{1,4})){1,3})|((([a-fA-F0-9]{1,4}):){5}(:([a-fA-F0-9]{1,4})){1,2}))$
    • @param (string) $record - Required
      • Match Pattern
        • [A-Za-z0-9\-._]

VPS - PHP Example


<?php
// Example Coming Soon...
?>