Create VPS

vserver-create

Purpose

Create new VPS.

Attributes

  • pid - product id
  • billingcycle - monthly, quarterly, semiannually
  • hostname - The hostname of the server.
  • ns1prefix - the prefix to be used for the NS1 nameserver
  • ns2prefix - the prefix to be used for the NS2 nameserver
  • rootpw - The root password for the server

Optional Atributes

  • extraip - how many extra ip need for VPS
  • promocode - pass coupon code to apply to the order

Example Command

$postfields = array();
$postfields["responsetype"] = "json";

$postfields["action"] = "vserver-create";
$postfields["pid"] = "1";
$postfields["hostname"] = "tesztvps.com";
$postfields["billingcycle"] = "monthly";
$postfields["ns1prefix"] = "ns1";
$postfields["ns2prefix"] = "ns2";
$postfields['extraip'] = "2";
$postfields["rootpw"] = "xasdf";

$result = mikrovps_SendCommand( $postfields );

Successful Response

status - success
orderid = xxx # Order ID
invoiceid = xxx # Invoice ID
productids = ID of the created VPS

Error Response

result=error
message=ERROR MESSAGE
  • 0 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Articles connexes

Boot Virtual Server

vserver-boothttps://documentation.solusvm.com/display/DOCS/Boot+Virtual+Server

Change Boot Order

vserver-bootorderhttps://documentation.solusvm.com/display/DOCS/Change+Boot+Order

Change Hostname

vserver-hostnamehttps://documentation.solusvm.com/display/DOCS/Change+Hostname

Change Root Password

vserver-rootpasswordhttps://documentation.solusvm.com/display/DOCS/Change+Root+Password

Change VNC Password

vserver-vncpasshttps://documentation.solusvm.com/display/DOCS/Change+VNC+Password