Overview
Error Handling

Methods

API Documentation (API Version bleed)

Cloud/Server/

DESCRIPTION

This section of the API provides convenience methods for managing cloud (Storm) servers in your account. All of the functionality here is also available in /server, but these methods strip away some of the generic boilerplate in /server that isn't necessary to manage cloud (Storm) servers.

addToCart

URL:

https://api.liquidweb.com/bleed/Cloud/Server/addToCart

Description:

Add a server and desired configuration to the cart. If a cart uuid is not provided a new cart will be generated automatically.

Parameters:

ParameterTypeNotes
backupsAn associative array containing the fields:* Optional
  • Defaults to: HASH(0x768fab8)
 
daysA positive integer value (i.e. 1 and up).* Optional
  • Defaults to: 3
nameOne of: 'none', 'per_gb'* Required
block_storageAn associative array containing the fields:* Optional
  • Defaults to: HASH(0x76b4338)
 
gbA positive integer value (i.e. 1 and up).* Required if:
  • name is set to 'per_gb'
nameOne of: 'none', 'per_gb'* Required
cart_item_uuidA valid UUID (Universally Unique IDentifier).
cart_uuidA valid UUID (Universally Unique IDentifier).
config_idA positive integer value (i.e. 1 and up).* Required
cpanel_licenseA product option value.
cycleA valid billing cycle (monthly, quarterly, biannually, yearly, or biennially).* Optional
  • Defaults to: monthly
ddosOne of: 'Advanced', 'Standard'* Optional
  • Defaults to: Standard
domainA fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc)
extra_ipA non-negative integer value (i.e. 0 and up).* Optional
  • Defaults to: 0
mssqlA product option value.
product_codeA valid product code, at least 3 chars long, including at least one letter.* Required
quantityA positive integer value (i.e. 1 and up).* Optional
  • Defaults to: 1
region_idA positive integer value (i.e. 1 and up).* Required
templateA product option value.* Required
use_ipv6A boolean value (0 or 1).* Optional
  • Defaults to: 0
win_avA product option value.
zone_idA positive integer value (i.e. 1 and up).

Returns:

FieldType
cart_uuidA valid UUID (Universally Unique IDentifier).

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

clone

URL:

https://api.liquidweb.com/bleed/Cloud/Server/clone

Description:

Clone a server. Returns the information about the newly created clone.

All of the optional fields are defaulted to the values on the original server if they aren't received. For cloning to a private parent, include the uniq_id of the parent server to be cloned to, along with the memory/diskspace/vcpu amounts (if different from the original).

Parameters:

ParameterTypeNotes
config_idA non-negative integer value (i.e. 0 and up).
diskspaceA positive integer value (i.e. 1 and up).
domainA fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc)* Required
memoryA positive integer value (i.e. 1 and up).
new_ip6sA non-negative integer value (i.e. 0 and up).
new_ipsA non-negative integer value (i.e. 0 and up).* Required if:
  • pool_ips is not given
parentA six-character identifier, containing only capital letters and digits.* Required if:
  • config_id is set to '0'
passwordA password of at least 7 characters and up to 30 characters in length, containing no spaces. Must contain 3 of the 4 following classes: lowercase, uppercase, numbers and punctuation.* Required
pool6_ipsAn array of an IPv6 address w/mask (e.g. 2001:DB8:0BFF:202:B3FF:FE1E:8329:0BFF/64)
pool_ipsAn array of an IPv4 IP address, in quad-dotted decimal notation (i.e. 127.0.0.1)
uniq_idA six-character identifier, containing only capital letters and digits.* Required
vcpuA positive integer value (i.e. 1 and up).
zoneA non-negative integer value (i.e. 0 and up).

Returns:

FieldTypeNotes
accntA valid account number, up to 6 digits in length.
activeA boolean value (0 or 1).
backup_enabledA boolean value (0 or 1).
backup_planA single word, consisting of only letters, digits, and underscores.* Required if:
  • backup_enabled is set to '1'
backup_quotaA non-negative integer value (i.e. 0 and up).* Required if:
  • backup_enabled is set to '1'
backup_sizeA floating-point value.* Optional
bandwidth_quotaA non-negative integer value (i.e. 0 and up).
config_descriptionA string.
config_idA positive integer value (i.e. 1 and up).
create_dateA valid date and time in YYYY-MM-DD HH:MM:SS format.
diskspaceA non-negative integer value (i.e. 0 and up).* Optional
domainA fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc)
ipAn IPv4 IP address, in quad-dotted decimal notation (i.e. 127.0.0.1)
ip_countA positive integer value (i.e. 1 and up).
manage_levelA single word, consisting of only letters and digits.
memoryA non-negative integer value (i.e. 0 and up).* Optional
templateA single word, consisting of only letters, digits, and underscores.
template_descriptionA string.
typeA valid product code, at least 3 chars long, including at least one letter.
uniq_idA six-character identifier, containing only capital letters and digits.
vcpuA non-negative integer value (i.e. 0 and up).* Optional
zoneAn associative array containing the fields:* Optional
 
idA positive integer value (i.e. 1 and up).
nameA string.
regionAn associative array containing the fields:
 
idA positive integer value (i.e. 1 and up).
nameA string.

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

create

URL:

https://api.liquidweb.com/bleed/Cloud/Server/create

Description:

Provision a new server. This fires off the build process, which does the actual provisioning of a new server on its parent. Each server consists of several distinct options:

	config_id: the id of the server configuration you wish to use.  For a list
	of available configs, see the cloud/config/list API method

	template: templates are the LiquidWeb-provided server OS images.  For a list
	of available templates, see the cloud/template/list API method

	image_id: rather that provisioning a LiquidWeb template, you can specify
	the id of a user-created image on your account.  Use the API method
	cloud/image/list to find any existing images you have, or cloud/image/create
	to create a new image from an existing server

	ip_count: the number of IPs you wish the server to have.  This defaults to
	1 IP, which is included in the base price.  Pricing for additional IPs can
	be found using the product/details API method.

	bandwidth_quota: the bandwidth plan you wish to use.  A quota of 0 indicates
	that you want as-you-go, usage-based bandwidth charges, but may not be
	permitted with all configs.  The remaining available quota options can be
	found with the product/details API method.

	backup_enabled: whether or not backups should be enabled.  Defaults to no.
	If this is not set to 1, neither of the following two options will be used.

	backup_plan: either 'quota' or 'daily', depending on whether you are
	choosing a quota-based backup plan or just a specific number of days to be
	backed up.

	backup_quota: for a 'daily' plan, this indicates the number of days to back
	up.  For a quota plan, this is the total number of GB to keep.  Available
	options are found with the product/details API method .

	public_ssh_key: optional public ssh key you want added to authorized_keys
	on your new server.  This should be a valid public ssh key, e.g. the contents
	of your id_rsa.pub file.

Beyond those options, we need the hostname of the server ('domain') and the root password you would like set on the server originally ('password').

More information about the returned data structure are found in the documentation for the cloud/server/details method.

Parameters:

ParameterTypeNotes
antivirusA string.
backup_enabledA boolean value (0 or 1).* Optional
  • Defaults to: 0
backup_idA positive integer value (i.e. 1 and up).
backup_planA single word, consisting of only letters and digits.* Required if:
  • backup_enabled is set to '1'
backup_quotaA positive integer value (i.e. 1 and up).* Required if:
  • backup_enabled is set to '1'
bandwidth_quotaA non-negative integer value (i.e. 0 and up).* Optional
  • Defaults to: 0
config_idA non-negative integer value (i.e. 0 and up).* Required
diskspaceA positive integer value (i.e. 1 and up).* Required if:
  • config_id is set to '0'
domainA fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc)* Required
image_idA positive integer value (i.e. 1 and up).
memoryA positive integer value (i.e. 1 and up).* Required if:
  • config_id is set to '0'
ms_sqlA string.
new_ipsA non-negative integer value (i.e. 0 and up).* Required if:
  • pool_ips is not given
parentA six-character identifier, containing only capital letters and digits.* Required if:
  • config_id is set to '0'
passwordA password of at least 7 characters and up to 30 characters in length, containing no spaces. Must contain 3 of the 4 following classes: lowercase, uppercase, numbers and punctuation.* Required if:
  • public_ssh_key is not given
pool6_ipsAn array of an IPv6 address w/mask (e.g. 2001:DB8:0BFF:202:B3FF:FE1E:8329:0BFF/64)
pool_ipsAn array of an IPv4 IP address, in quad-dotted decimal notation (i.e. 127.0.0.1)
public_ssh_keyEither: a public ssh key, e.g. the contents of an id_rsa.pub or id_dsa.pub file.; or a single word, consisting of only letters, digits, and underscores.
templateA single word, consisting of only letters, digits, and underscores.* Required if:
  • backup_id is not given
  • image_id is not given
typeA valid subaccnt type descriptor (i.e. DS.W1, GUARD, etc), at least 3 chars long.
vcpuA positive integer value (i.e. 1 and up).* Required if:
  • config_id is set to '0'
zoneA positive integer value (i.e. 1 and up).

Returns:

FieldTypeNotes
accntA valid account number, up to 6 digits in length.
activeA boolean value (0 or 1).
backup_enabledA boolean value (0 or 1).
backup_planA single word, consisting of only letters, digits, and underscores.* Required if:
  • backup_enabled is set to '1'
backup_quotaA non-negative integer value (i.e. 0 and up).* Required if:
  • backup_enabled is set to '1'
backup_sizeA floating-point value.* Optional
bandwidth_quotaA non-negative integer value (i.e. 0 and up).
config_descriptionA string.
config_idA positive integer value (i.e. 1 and up).
create_dateA valid date and time in YYYY-MM-DD HH:MM:SS format.
diskspaceA non-negative integer value (i.e. 0 and up).* Optional
domainA fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc)
ipAn IPv4 IP address, in quad-dotted decimal notation (i.e. 127.0.0.1)
ip_countA positive integer value (i.e. 1 and up).
manage_levelA single word, consisting of only letters and digits.
memoryA non-negative integer value (i.e. 0 and up).* Optional
templateA single word, consisting of only letters, digits, and underscores.
template_descriptionA string.
typeA valid product code, at least 3 chars long, including at least one letter.
uniq_idA six-character identifier, containing only capital letters and digits.
vcpuA non-negative integer value (i.e. 0 and up).* Optional
zoneAn associative array containing the fields:* Optional
 
idA positive integer value (i.e. 1 and up).
nameA string.
regionAn associative array containing the fields:
 
idA positive integer value (i.e. 1 and up).
nameA string.

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

destroy

URL:

https://api.liquidweb.com/bleed/Cloud/Server/destroy

Description:

Kills a server. It will refund for any remaining time that has been prepaid, charge any outstanding bandwidth charges, and then start the workflow to tear down the server.

Parameters:

ParameterTypeNotes
uniq_idA six-character identifier, containing only capital letters and digits.* Required

Returns:

FieldType
destroyedA six-character identifier, containing only capital letters and digits.

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

details

URL:

https://api.liquidweb.com/bleed/Cloud/Server/details

Description:

Gets data relevant to a cloud (Storm) server.

Here's a rundown of what the returned fields mean:

	accnt: your account number

	active: a flag indicating whether the server has finished building

	backup_enabled: whether or not backups are enabled

	backup_plan: either 'quota' or 'daily', depending on which backup plan you
	have enabled.  If backups are not enabled, this field is empty.

	backup_quota: for a 'daily' plan, this indicates the number of days backed
	up. For a quota plan, this is the total number of GB of backups kept for
	this server. If backups are not enabled, this field is empty.

	backup_size: the number of GB your current backups are using

	bandwidth_quota: the number of GB of bandwidth included in your bill.
	O indicates as-you-go usage-based bandwidth.

	config_id: the id of the server configuration this server is using

	config_description: a more descriptive name for the server configuration
	assigned to this server. 'Storm 2GB', for example.

	create_date: the date and time when the server was created

	ip: the primary IP of the server

	ip_count: the number of IPs the server has assigned to it

	manage_level: 'self', 'core', or 'full', determined by which template you
	chose when creating the server

		self: Includes support for hardware, network and virtualization layers.

		core: Includes complete support of the base operating system as well as
		Apache, Mysql and PHP. Proactive service restoration is provided.

		full: Includes cPanel + Fantastico as well complete support of base
		operating system and all cPanel services. Proactive service restoration
		is provided.

	template: which OS image you have installed.  Even when you create a server
	from an image, the original OS image is returned here.

	template_description: a more informative description of the OS you are using
	on this server.  'CentOS 5.5 64bit Core-Managed', for example.

	uniq_id: the unique server identifier, made of 6 letters and numbers

	zone: the zone in which your server resides.  This is not yet useful, but is
	still provided as reference.  The zone identifiers may change.

Parameters:

ParameterTypeNotes
uniq_idA six-character identifier, containing only capital letters and digits.* Required

Returns:

FieldTypeNotes
accntA valid account number, up to 6 digits in length.
activeA boolean value (0 or 1).
backup_enabledA boolean value (0 or 1).
backup_planA single word, consisting of only letters, digits, and underscores.* Required if:
  • backup_enabled is set to '1'
backup_quotaA non-negative integer value (i.e. 0 and up).* Required if:
  • backup_enabled is set to '1'
backup_sizeA floating-point value.* Optional
bandwidth_quotaA non-negative integer value (i.e. 0 and up).
config_descriptionA string.
config_idA positive integer value (i.e. 1 and up).
create_dateA valid date and time in YYYY-MM-DD HH:MM:SS format.
diskspaceA non-negative integer value (i.e. 0 and up).* Optional
domainA fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc)
ipAn IPv4 IP address, in quad-dotted decimal notation (i.e. 127.0.0.1)
ip_countA positive integer value (i.e. 1 and up).
manage_levelA single word, consisting of only letters and digits.
memoryA non-negative integer value (i.e. 0 and up).* Optional
templateA single word, consisting of only letters, digits, and underscores.
template_descriptionA string.
typeA valid product code, at least 3 chars long, including at least one letter.
uniq_idA six-character identifier, containing only capital letters and digits.
vcpuA non-negative integer value (i.e. 0 and up).* Optional
zoneAn associative array containing the fields:* Optional
 
idA positive integer value (i.e. 1 and up).
nameA string.
regionAn associative array containing the fields:
 
idA positive integer value (i.e. 1 and up).
nameA string.

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

detailsForCart

URL:

https://api.liquidweb.com/bleed/Cloud/Server/detailsForCart

Description:

Returns details to add a provisioned Cloud server to the cart.

Regions can have more than one zone and the latest zone in the region will be used unless otherwise specified in parameters.

Parameters:

ParameterTypeNotes
product_codeA valid product code, at least 3 chars long, including at least one letter.* Required
region_idA positive integer value (i.e. 1 and up).
zone_idA positive integer value (i.e. 1 and up).

Returns:

FieldTypeNotes
backupsAn array of associative arrays containing
 
nameOne of: 'none', 'per_gb'
block_storageAn array of associative arrays containing
 
nameOne of: 'none', 'per_gb'
control_panelsAn array of associative arrays containing
 
included_optionsAn array of associative arrays containing
 
keyA product option name.
nameA string of text, containing no newlines or other control characters.
valuesAn array of associative arrays containing
 
descriptionA string of text, containing no newlines or other control characters.
valueA product option value.
typeA string consisting of only letters, digits, hyphens, spaces, and underscores.
cyclesAn array of associative arrays containing
 
cycleA valid billing cycle (monthly, quarterly, biannually, yearly, or biennially).
discount_percentA floating-point value.* Optional
discount_repetitionsAn integer value.* Optional
monthsA positive integer value (i.e. 1 and up).
ddosAn array of associative arrays containing
 
nameOne of: 'Advanced', 'Standard'
extra_ipAn associative array containing the fields:
 
maxA non-negative integer value (i.e. 0 and up).
minA non-negative integer value (i.e. 0 and up).
hardwareAn array of associative arrays containing
 
categoryA string.
configsAn array of associative arrays containing
 
coresA positive integer value (i.e. 1 and up).* Required if:
  • category is set to 'bare-metal'
cpu_coresA positive integer value (i.e. 1 and up).* Required if:
  • category is set to 'bare-metal'
cpu_countA positive integer value (i.e. 1 and up).* Required if:
  • category is set to 'bare-metal'
cpu_hyperthreadingA boolean value (0 or 1).* Required if:
  • category is set to 'bare-metal'
cpu_modelA string.* Required if:
  • category is set to 'bare-metal'
cpu_speedA positive integer value (i.e. 1 and up).* Required if:
  • category is set to 'bare-metal'
descriptionA string of text, containing no newlines or other control characters.
diskA positive integer value (i.e. 1 and up).* Optional
disk_typeA string permitting tabs, carriage returns and newlines* Required if:
  • category is set to 'bare-metal'
gpu_countA positive integer value (i.e. 1 and up).* Required if:
  • category is set to 'bare-metal-gpu'
gpu_nameA string of text, containing no newlines or other control characters.* Required if:
  • category is set to 'bare-metal-gpu'
idA positive integer value (i.e. 1 and up).
included_optionsAn array of associative arrays containing
 
keyA product option name.
nameA string of text, containing no newlines or other control characters.
valuesAn array of associative arrays containing
 
descriptionA string of text, containing no newlines or other control characters.
valueA product option value.
link_speedA positive integer value (i.e. 1 and up).* Optional
memoryA positive integer value (i.e. 1 and up).* Optional
raid_levelAn integer value.* Required if:
  • category is set to 'bare-metal'
vcpuA positive integer value (i.e. 1 and up).* Optional
descriptionA string of text, containing no newlines or other control characters.
managementAn array of One of: 'Core-Managed', 'Fully-Managed', 'Self-Managed'
osAn array of associative arrays containing
 
bitA non-negative integer value (i.e. 0 and up).
nameA string consisting of only letters, digits, hyphens, spaces, and underscores.
typeOne of: 'Linux', 'Windows'
versionA string of text, containing no newlines or other control characters.
package_version_idA valid id number (a positive integer).* Optional
regionsAn array of associative arrays containing
 
backupsAn array of associative arrays containing
 
defaultA boolean value (0 or 1).
nameOne of: 'none', 'per_gb'
per_gb_priceAn array of associative arrays containing
 
amountA monetary value, such as -$.05, 0.05, or -5.00
unitOne of: 'hour', 'month'
block_storageAn array of associative arrays containing
 
defaultA boolean value (0 or 1).
nameOne of: 'none', 'per_gb'
per_gb_priceAn array of associative arrays containing
 
amountA monetary value, such as -$.05, 0.05, or -5.00
unitOne of: 'hour', 'month'
configsAn array of associative arrays containing
 
bandwidthA positive integer value (i.e. 1 and up).
defaultA boolean value (0 or 1).
display_orderA non-negative integer value (i.e. 0 and up).
idA positive integer value (i.e. 1 and up).
included_optionsAn array of associative arrays containing
 
display_orderA non-negative integer value (i.e. 0 and up).
keyA product option name.
nameA string of text, containing no newlines or other control characters.
valuesAn array of associative arrays containing
 
defaultA boolean value (0 or 1).
descriptionA string of text, containing no newlines or other control characters.
display_orderA non-negative integer value (i.e. 0 and up).
priceAn array of associative arrays containing
 
amountA monetary value, such as -$.05, 0.05, or -5.00
unitOne of: 'hour', 'month'
valueA product option value.
priceAn array of associative arrays containing
 
amountA monetary value, such as -$.05, 0.05, or -5.00
unitOne of: 'hour', 'month'
ddosAn array of associative arrays containing
 
defaultA boolean value (0 or 1).
nameOne of: 'Advanced', 'Standard'
priceAn array of associative arrays containing
 
amountA monetary value, such as -$.05, 0.05, or -5.00
unitOne of: 'hour', 'month'
extra_ipAn associative array containing the fields:
 
maxA non-negative integer value (i.e. 0 and up).
minA non-negative integer value (i.e. 0 and up).
per_ip_priceAn array of associative arrays containing
 
amountA monetary value, such as -$.05, 0.05, or -5.00
unitOne of: 'hour', 'month'
idA positive integer value (i.e. 1 and up).
managementAn array of associative arrays containing
 
defaultA boolean value (0 or 1).
display_orderA non-negative integer value (i.e. 0 and up).
nameOne of: 'Core-Managed', 'Fully-Managed', 'Self-Managed'
osAn array of associative arrays containing
 
bitA non-negative integer value (i.e. 0 and up).
control_panelsAn array of associative arrays containing
 
defaultA boolean value (0 or 1).
display_orderA non-negative integer value (i.e. 0 and up).
included_optionsAn array of associative arrays containing
 
display_orderA non-negative integer value (i.e. 0 and up).
keyA product option name.
nameA string of text, containing no newlines or other control characters.
valuesAn array of associative arrays containing
 
defaultA boolean value (0 or 1).
descriptionA string of text, containing no newlines or other control characters.
display_orderA non-negative integer value (i.e. 0 and up).
priceAn array of associative arrays containing
 
amountA monetary value, such as -$.05, 0.05, or -5.00
unitOne of: 'hour', 'month'
valueA product option value.
nameA string consisting of only letters, digits, hyphens, spaces, and underscores.
priceAn array of associative arrays containing
 
amountA monetary value, such as -$.05, 0.05, or -5.00
unitOne of: 'hour', 'month'
templateA product option value.
defaultA boolean value (0 or 1).
display_orderA non-negative integer value (i.e. 0 and up).
nameA string consisting of only letters, digits, hyphens, spaces, and underscores.
priceAn array of associative arrays containing
 
amountA monetary value, such as -$.05, 0.05, or -5.00
unitOne of: 'hour', 'month'
typeOne of: 'Linux', 'Windows'
versionA string of text, containing no newlines or other control characters.
priceAn array of associative arrays containing
 
amountA monetary value, such as -$.05, 0.05, or -5.00
unitOne of: 'hour', 'month'
nameOne of: 'ams', 'lan', 'phx'
other_options_pricingAn array of associative arrays containing
 
amountA monetary value, such as -$.05, 0.05, or -5.00
unitOne of: 'hour', 'month'
zoneA single letter.
zone_idA positive integer value (i.e. 1 and up).

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

history

URL:

https://api.liquidweb.com/bleed/Cloud/Server/history

Description:

Get a list of notifications for a specific server. Information about the data returned can here be found in cloud/alerts/details

Parameters:

ParameterTypeNotes
page_numA positive integer value (i.e. 1 and up).* Optional
  • Defaults to: 1
page_sizeA positive integer value (i.e. 1 and up).* Optional
  • Defaults to: 25
uniq_idA six-character identifier, containing only capital letters and digits.* Required

Returns:

FieldType
item_countA non-negative integer value (i.e. 0 and up).
item_totalA non-negative integer value (i.e. 0 and up).
itemsAn array of associative arrays containing
 
categoryA string of text, containing no newlines or other control characters.* Optional
descriptionA string permitting tabs, carriage returns and newlines
domainA fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc)* Optional
enddateA valid date and time in YYYY-MM-DD HH:MM:SS format.* Optional
idA positive integer value (i.e. 1 and up).
last_alertA string permitting tabs, carriage returns and newlines* Optional
modifieddateA valid date and time in YYYY-MM-DD HH:MM:SS format.
resolvedA boolean value (0 or 1).
severityA single word, consisting of only letters and digits.
startdateA valid date and time in YYYY-MM-DD HH:MM:SS format.
systemA string consisting of only letters, digits, hyphens, spaces, and underscores.
system_identifierA positive integer value (i.e. 1 and up).* Optional
uniq_idA six-character identifier, containing only capital letters and digits.* Optional
page_numA positive integer value (i.e. 1 and up).
page_sizeA positive integer value (i.e. 1 and up).
page_totalA positive integer value (i.e. 1 and up).

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

isSBSOptimized

URL:

https://api.liquidweb.com/bleed/Cloud/Server/isSBSOptimized

Description:

An instance uses more memory when using Cloud Block Storage volumes. Normal cloud (Storm) instances have enough pad for this to not be an issue, but bare-metal runs very tight. To work around this we can have a bare-metal instance use less memory so that the parent OS has more. We call this Cloud Block Storage optimization. This method returns a boolean flag is_optimized which is true if the instance has been optimized and false otherwise.

Parameters:

ParameterTypeNotes
subaccntA valid id number (a positive integer).* Required if:
  • uniq_id is not given
uniq_idA six-character identifier, containing only capital letters and digits.

Returns:

FieldType
is_optimizedA boolean value (0 or 1).

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

list

URL:

https://api.liquidweb.com/bleed/Cloud/Server/list

Description:

Retrieve a paginated list of cloud (Storm) servers on your account. A more detailed description of what is returned can be found in the documentation for the cloud/server/details method.

Parameters:

ParameterTypeNotes
page_numA positive integer value (i.e. 1 and up).* Optional
  • Defaults to: 1
page_sizeA positive integer value (i.e. 1 and up).* Optional
  • Defaults to: 25
parentA six-character identifier, containing only capital letters and digits.

Returns:

FieldType
item_countA non-negative integer value (i.e. 0 and up).
item_totalA non-negative integer value (i.e. 0 and up).
itemsAn array of associative arrays containing
 
accntA valid account number, up to 6 digits in length.
activeA boolean value (0 or 1).
backup_enabledA boolean value (0 or 1).
backup_planA single word, consisting of only letters, digits, and underscores.* Required if:
  • backup_enabled is set to '1'
backup_quotaA non-negative integer value (i.e. 0 and up).* Required if:
  • backup_enabled is set to '1'
backup_sizeA floating-point value.* Optional
bandwidth_quotaA non-negative integer value (i.e. 0 and up).
config_descriptionA string.
config_idA positive integer value (i.e. 1 and up).
create_dateA valid date and time in YYYY-MM-DD HH:MM:SS format.
diskspaceA non-negative integer value (i.e. 0 and up).* Optional
domainA fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc)
ipAn IPv4 IP address, in quad-dotted decimal notation (i.e. 127.0.0.1)
ip_countA positive integer value (i.e. 1 and up).
manage_levelA single word, consisting of only letters and digits.
memoryA non-negative integer value (i.e. 0 and up).* Optional
templateA single word, consisting of only letters, digits, and underscores.
template_descriptionA string.
typeA valid product code, at least 3 chars long, including at least one letter.
uniq_idA six-character identifier, containing only capital letters and digits.
vcpuA non-negative integer value (i.e. 0 and up).* Optional
zoneAn associative array containing the fields:* Optional
 
idA positive integer value (i.e. 1 and up).
nameA string.
regionAn associative array containing the fields:
 
idA positive integer value (i.e. 1 and up).
nameA string.
page_numA positive integer value (i.e. 1 and up).
page_sizeA positive integer value (i.e. 1 and up).
page_totalA positive integer value (i.e. 1 and up).

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

reboot

URL:

https://api.liquidweb.com/bleed/Cloud/Server/reboot

Description:

Reboot a server. The 'force' flag will do a hard shutdown/boot of the server from the parent server.

Parameters:

ParameterTypeNotes
forceA boolean value (0 or 1).
uniq_idA six-character identifier, containing only capital letters and digits.* Required

Returns:

FieldType
rebootedA six-character identifier, containing only capital letters and digits.

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

resize

URL:

https://api.liquidweb.com/bleed/Cloud/Server/resize

Description:

Resize a server to a new configuration. Available config_ids can be found in cloud/config/list.

You will be billed for the prorated difference of the price of the new configuration compared to the price of your old configuration. The difference will be refunded or charged at your next billing date.

A server resize cannot cross zones.

When resizing to a larger configuration, the filesystem resize operation can be skipped by passing the 'skip_fs_resize' option. In this case, the storage associated with the new configuration is allocated, but not available immediately. The filesystem resize should be scheduled with the support team.

Skipping the filesystem resize is only possible when moving to a larger configuration. This option has no effect if moving to the same or smaller configuration.

Parameters:

ParameterTypeNotes
config_idA non-negative integer value (i.e. 0 and up).* Required
diskspaceA positive integer value (i.e. 1 and up).* Required if:
  • config_id is set to '0'
memoryA positive integer value (i.e. 1 and up).* Required if:
  • config_id is set to '0'
parentA six-character identifier, containing only capital letters and digits.* Required if:
  • config_id is set to '0'
skip_fs_resizeA boolean value (0 or 1).* Optional
  • Defaults to: 0
uniq_idA six-character identifier, containing only capital letters and digits.* Required
vcpuA positive integer value (i.e. 1 and up).* Required if:
  • config_id is set to '0'

Returns:

FieldTypeNotes
accntA valid account number, up to 6 digits in length.
activeA boolean value (0 or 1).
backup_enabledA boolean value (0 or 1).
backup_planA single word, consisting of only letters, digits, and underscores.* Required if:
  • backup_enabled is set to '1'
backup_quotaA non-negative integer value (i.e. 0 and up).* Required if:
  • backup_enabled is set to '1'
backup_sizeA floating-point value.* Optional
bandwidth_quotaA non-negative integer value (i.e. 0 and up).
config_descriptionA string.
config_idA positive integer value (i.e. 1 and up).
create_dateA valid date and time in YYYY-MM-DD HH:MM:SS format.
diskspaceA non-negative integer value (i.e. 0 and up).* Optional
domainA fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc)
ipAn IPv4 IP address, in quad-dotted decimal notation (i.e. 127.0.0.1)
ip_countA positive integer value (i.e. 1 and up).
manage_levelA single word, consisting of only letters and digits.
memoryA non-negative integer value (i.e. 0 and up).* Optional
templateA single word, consisting of only letters, digits, and underscores.
template_descriptionA string.
typeA valid product code, at least 3 chars long, including at least one letter.
uniq_idA six-character identifier, containing only capital letters and digits.
vcpuA non-negative integer value (i.e. 0 and up).* Optional
zoneAn associative array containing the fields:* Optional
 
idA positive integer value (i.e. 1 and up).
nameA string.
regionAn associative array containing the fields:
 
idA positive integer value (i.e. 1 and up).
nameA string.

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

resizePlan

URL:

https://api.liquidweb.com/bleed/Cloud/Server/resizePlan

Description:

Use this method to determine if currently resizing your server to your chosen config_id would result in any downtime.

If there is no inventory available for the config_id, an exception will be raised.

Parameters:

ParameterTypeNotes
config_idA non-negative integer value (i.e. 0 and up).* Required
diskA positive integer value (i.e. 1 and up).* Required if:
  • config_id is set to '0'
memoryA positive integer value (i.e. 1 and up).* Required if:
  • config_id is set to '0'
private_parentA six-character identifier, containing only capital letters and digits.* Required if:
  • config_id is set to '0'
uniq_idA six-character identifier, containing only capital letters and digits.* Required
vcpuA positive integer value (i.e. 1 and up).* Required if:
  • config_id is set to '0'

Returns:

FieldType
diskDifferenceAn integer value.
memoryDifferenceAn integer value.
rebootRequiredA boolean value (0 or 1).
vcpuDifferenceAn integer value.

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

setSBSOptimized

URL:

https://api.liquidweb.com/bleed/Cloud/Server/setSBSOptimized

Description:

Start the appropriate workflow to turn Cloud Block Storage optimization on or off. If the desired value that you pass is the same as the current state of your instance, this method is a no-op.

Parameters:

ParameterTypeNotes
subaccntA valid id number (a positive integer).* Required if:
  • uniq_id is not given
uniq_idA six-character identifier, containing only capital letters and digits.
valueA boolean value (0 or 1).* Required

Returns:

FieldType
updatedA six-character identifier, containing only capital letters and digits.

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

shutdown

URL:

https://api.liquidweb.com/bleed/Cloud/Server/shutdown

Description:

Stop a server. The 'force' flag will do a hard stop of the server from the parent server. Otherwise, it will issue a halt command to the server and shutdown normally.

Parameters:

ParameterTypeNotes
forceA boolean value (0 or 1).
uniq_idA six-character identifier, containing only capital letters and digits.* Required

Returns:

FieldType
shutdownA six-character identifier, containing only capital letters and digits.

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

start

URL:

https://api.liquidweb.com/bleed/Cloud/Server/start

Description:

Boot a server. If the server is already running, this will do nothing.

Parameters:

ParameterTypeNotes
uniq_idA six-character identifier, containing only capital letters and digits.* Required

Returns:

FieldType
startedA six-character identifier, containing only capital letters and digits.

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

status

URL:

https://api.liquidweb.com/bleed/Cloud/Server/status

Description:

Gets the current status of a server, in relation to what processes are being run on its behalf.

The list of available statuses at this time are:

	Building
	Cloning
	Resizing
	Moving
	Booting
	Stopping
	Restarting
	Rebooting
	Shutting Down
	Restoring Backup
	Creating Image
	Deleting Image
	Restoring Image
	Re-Imaging
	Updating Firewall
	Updating Network
	Adding IPs
	Removing IP
	Destroying

If nothing is currently running, only the 'status' field will be returned with one of the following statuses:

	Failed
	Provisioning
	Running
	Shutdown
	Stopped

Parameters:

ParameterTypeNotes
uniq_idA six-character identifier, containing only capital letters and digits.* Required

Returns:

FieldTypeNotes
detailed_statusA string.* Optional
progressA floating-point value.* Optional
runningAn array of associative arrays containing * Optional
 
current_stepA non-negative integer value (i.e. 0 and up).
detailed_statusA string.* Optional
nameA string.
statusA string.
statusA string.

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

update

URL:

https://api.liquidweb.com/bleed/Cloud/Server/update

Description:

Update details about your server, including the backup and bandwidth plans, and the hostname ('domain') we have on file.

Updating the 'domain' field will not change the actual hostname on the server. It merely updates what our records show.

Parameters:

ParameterTypeNotes
backup_enabledA boolean value (0 or 1).
backup_planA single word, consisting of only letters and digits.* Required if:
  • backup_enabled is set to '1'
backup_quotaA positive integer value (i.e. 1 and up).* Required if:
  • backup_enabled is set to '1'
bandwidth_quotaA non-negative integer value (i.e. 0 and up).
domainA fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc)
uniq_idA six-character identifier, containing only capital letters and digits.* Required

Returns:

FieldTypeNotes
accntA valid account number, up to 6 digits in length.
activeA boolean value (0 or 1).
backup_enabledA boolean value (0 or 1).
backup_planA single word, consisting of only letters, digits, and underscores.* Required if:
  • backup_enabled is set to '1'
backup_quotaA non-negative integer value (i.e. 0 and up).* Required if:
  • backup_enabled is set to '1'
backup_sizeA floating-point value.* Optional
bandwidth_quotaA non-negative integer value (i.e. 0 and up).
config_descriptionA string.
config_idA positive integer value (i.e. 1 and up).
create_dateA valid date and time in YYYY-MM-DD HH:MM:SS format.
diskspaceA non-negative integer value (i.e. 0 and up).* Optional
domainA fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc)
ipAn IPv4 IP address, in quad-dotted decimal notation (i.e. 127.0.0.1)
ip_countA positive integer value (i.e. 1 and up).
manage_levelA single word, consisting of only letters and digits.
memoryA non-negative integer value (i.e. 0 and up).* Optional
templateA single word, consisting of only letters, digits, and underscores.
template_descriptionA string.
typeA valid product code, at least 3 chars long, including at least one letter.
uniq_idA six-character identifier, containing only capital letters and digits.
vcpuA non-negative integer value (i.e. 0 and up).* Optional
zoneAn associative array containing the fields:* Optional
 
idA positive integer value (i.e. 1 and up).
nameA string.
regionAn associative array containing the fields:
 
idA positive integer value (i.e. 1 and up).
nameA string.

Possible Errors:

Refer to the Error Handling documentation for the list of exception types