Systems90 by Webglobe
  • Help
  • API Documentation
  • Login
  • limits
  • library for API PHP
  • Other API functions
  • login
  • timeout
  • ok
  • error
  • logout
  • Domain API functions
  • domain_list
  • domain_detail
  • domain_list_dns
  • domain_delete_dns
  • domain_add_dns
  • domain_update_dns
  • domain_list_email_subdomain
  • domain_delete_email_subdomain
  • domain_add_email_subdomain
  • domain_list_email
  • domain_delete_email
  • domain_add_email
  • domain_edit_email
  • domain_list_tld
  • domain_list_plan
  • domain_order
  • VServer API functions
  • vserver_list
  • vserver_vnc_setting
  • vserver_create_image
  • vserver_image_edit
  • vserver_image_list
  • vserver_image_delete
  • vserver_image_restore
  • vserver_image_copy
  • vserver_parking
  • vserver_parking_restore
  • vserver_list_backup
  • vserver_restore
  • vserver_create_backup
  • vserver_remove_backup
  • vserver_set_backup
  • vserver_change_login
  • vserver_change_custom_name
  • vserver_change_rdns
  • vserver_detail
  • vserver_add_ip_address
  • vserver_list_iso
  • vserver_select_iso
  • vserver_list_livecd
  • vserver_select_livecd
  • vserver_reinstall
  • vserver_reboot
  • vserver_shutdown
  • vserver_start
  • vserver_set_autostart
  • vserver_get_autostart
  • vserver_action_lock
  • vserver_list_plan
  • vserver_list_license
  • vserver_buy_license
  • vserver_fit_to_program
  • vserver_upgrade_program
  • vserver_downgrade_program
  • vserver_destroy
  • vserver_order
  • vserver_commands
  • vserver_ready_for_command
  • vserver_screenshot
  • vserver_graph
  • vserver_graph_data
  • vserver_virtualization_parameters
  • vserver_vlan_list
  • vserver_vlan_add
  • vserver_vlan_detail
  • vserver_vlan_edit
  • vserver_vlan_delete
  • vserver_vlan_member_add
  • vserver_vlan_member_delete
  • vserver_vhosts_usage
  • vserver_subnet_usage
  • vserver_active_license_list
  • vserver_allowed_plans
  • vserver_license_accounting
  • vserver_license_accounting_postpay
  • vserver_software_iso_list
  • vserver_software_iso_mount
  • vserver_software_iso_unmount
  • vserver_ip_address_set_hostname
  • vserver_remove_ip_address
  • vserver_add_ipv6_subnet
  • vserver_remove_ipv6_subnet
  • vserver_ipv6_subnet_detail
  • vserver_ipv6_subnet_rdns_add
  • vserver_ipv6_subnet_rdns_remove
  • vserver_ipv6_subnet_rdns_edit
  • vserver_shaper
  • Export API Functions
  • export_internal_invoices

vserver_order ()

This function places new order of a VPS. The order will be placed under the account that is logged in using /api/login.

HTTP Method:GET
Parameters:sidsession id*
vserver_idunique id of VPS*
plan_idunique VPS plan identifier*
iso_idid of ISO that should be attached to the VPS after start**
managedcreates VPS from a template (value of image_id)**
license_name[...]requested license name (parameter is array, write index into brackets. To order one license, use value without brackets.
disk_sizedisk size in GB, parameter of type integer. Must be between 10 and VPS plan disk size.
billing_periodbilling period, possible setting: 'day', 'month', 'halfy' or 'year'
backupcount of daily backups: 0 - disable, 3 - default, 7
Returns:HTTP code200 (OK)
The order has been accepted. Reply portion reply contains ordered service overview.
Parameters marked with * are mandatory
One and only one of parameters marked with ** must be submited. These parameters are mutually exclusive.
If disk_size parameter is set the disk size will be fixed for this VPS. That means that consequent upgrade/downgrade function call without this parameter will not change disk size of the VPS.
Return errors
Error codeHTTP response codeDescription
1400 (Bad request) Function was not performed, because all required parameters were not entered. Reply portion reply is empty.
3403 (Forbidden) Function call failed, invalid sid parameter. Create new sid using /api/login function. Reply portion reply is empty.
4400 (Bad request) Function call failed, some parameter(s) have invalid value (e.g. contains invalid characters. Reply portion reply specifies invalid parameters.
CURL

			curl "https://admin.systems90.cz/api/vserver_order?sid=%sid%&plan_id=%plan_id%&iso_id=%iso_id%"
		
PHP Library

			$api->vserver_order(array(
				'plan_id' => %plan_id%,
				'iso_id' => %iso_id%,
			));
		
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
  <status>
    <code>0</code>
    <text>Order sent</text>
  </status>
  <overview>
    <plan_id>572</plan_id>
    <order_id>202634</order_id>
    <vserver_id>100148</vserver_id>
    <iso_id>635</iso_id>
  </overview>
</reply>