The official Liquid Web API.
Welcome to the Liquid Web API documentation. Our API offers a versatile set of options for managing Liquid Web services, such as Cloud VPS, Cloud Metal/Dedicated, Bare Metal, Object and Block Storage, DNS zones, and virtual IP addresses. To begin, you'll require a my.liquidweb.com API user for authentication and access to this API interface. If you haven't set up one yet, you can find clear instructions on creating API users here: Creating a Liquid Web Cloud API Token.
For added flexibility, we also provide additional API client libraries and the Liquid Web CLI on our Github page: Liquid Web on Github.
Feel free to explore the possibilities our API offers, and don't hesitate to reach out with any questions or feedback you may have. We're here to assist you on your technical journey.
Using the account/auth/token
method, it is possible to receive a temporary authentication token.
While this token remains alive, it can be used in place of a password for HTTP Basic authentication for API requests.
The lifetime of each token can be specified on creation, up to a maximum of twelve hours.
API method calls authenticate using the credentials of a normal user account. If the user in question has enabled 2FA, each API call must be authenticated using a 2FA passcode. Each 2FA passcode is valid for thirty seconds, and during that time, it is the only passcode that is valid.
The trick is that, for important security reasons, each passcode can be used a maximum of one time. This necessarily means that API calls using a 2FA passcode can be made a maximum of once every thirty seconds.
The workaround here is to use the account/auth/token
method to exchange a username + password + passcode combination for a username + token.
This token will allow the use of API calls without the need to submit further 2FA passcodes.
Recall that an authentication token lasts, at a maximum, twelve hours, after which time a new 2FA
passcode would be needed to request a new token.
While this could be done programmatically, such a practice would negate the security benefits of 2FA (namely => the air - gap between TOTP generator and login prompt). As a result, we suggest against the enabling of 2FA for user accounts which will be used to perform API requests.
If the response code is 200, that means we successfully processed the request. Otherwise, the appropriate apache response code will be issued. The response will either be in the format described by the method's documentation, if no error occurred, or in the following format if an exception was raised:
{
"error_class": "ExceptionType",
"error_message": "The error message",
"extra_key": "extra_value"
}
Each error will have at least an 'error_class' and 'error_message' returned. Depending on the error type, additional information might be passed back to help narrow down the cause of the problem.
Currently, the API supports the following encoding formats:
If your desired encoding is not supported, feel free to request it. If it's reasonable to implement, we'll do our best to accommodate the request.
You can specify an encoding by the file extension of the API URL. If none is specified, the default (JSON) will be used.
For example:
This section of the API handles basic operations (list, details) on assets associated with an account. An asset is a product or service associated with an account, such as a server, a DNS zone, a domain name or an SSL certificate, to list a few.
These methods are used for gathering information about what assets a
given account has. Methods for manipulating or gathering further
information about an asset can be found in different API namespaces.
This method can be used to gather information about a single account asset.
alsowith | Array of any Items Enum: "acronisBackingUp" "ancestorServer" "backupsAndStorage" "businessEmailPricing" "capabilities" "categories" "children" "creation_date" "description" "diskDetails" "distro" "emailFriendlyName" "featureDetails" "finalizeDetails" "generatedDomainDetails" "hostedEmailPricing" "hostedEmailUsage" "hostingDetails" "instance" "loadbalancer" "machine" "managedType" "mesDetails" "monitorableServices" "mrc" "networkSummary" "nocworxRemoteDetails" "nocworxServiceDetails" "objectStore" "osFamily" "parentDetails" "powerStatus" "price" "primaryProductCategory" "privateParent" "product" "productDisplayGroup" "project" "prometheusDetails" "publicProductCategory" "region" "resourceState" "servers" "shortDescription" "usageDetails" "zone" |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
uniq_id | string (SUBACCNT_UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
required | object |
{- "params": {
- "accnt": 0,
- "alsowith": [
- "acronisBackingUp"
], - "uniq_id": "string"
}
}
{- "active": true,
- "domain": "string",
- "ip": "172.0.0.1",
- "project_id": 80,
- "project_name": "string",
- "region_id": 80,
- "status": "New",
- "type": "string",
- "uniq_id": "string",
- "username": "string"
}
Get a list of servers, services, and devices on your account.
Valid options for category include:
Dedicated -- This includes dedicated and virtual servers as well as special dedicated items VirtualDedicated -- Legacy vps and provisioned servers StrictDedicated -- Dedicated servers SpecialDedicated -- This list includes network devices and load balancers Provisioned -- Products which are subject to automated provisioning, such as Storm LoadBalancer -- A hardware or software load balancer ObjectStorage -- An object storage account. SBS -- Products backed by our Storm Block Storage technology
alsowith | Array of any Items Enum: "acronisBackingUp" "ancestorServer" "backupsAndStorage" "businessEmailPricing" "capabilities" "categories" "children" "creation_date" "description" "diskDetails" "distro" "emailFriendlyName" "featureDetails" "finalizeDetails" "generatedDomainDetails" "hostedEmailPricing" "hostedEmailUsage" "hostingDetails" "instance" "loadbalancer" "machine" "managedType" "mesDetails" "monitorableServices" "mrc" "networkSummary" "nocworxRemoteDetails" "nocworxServiceDetails" "objectStore" "osFamily" "parentDetails" "powerStatus" "price" "primaryProductCategory" "privateParent" "product" "productDisplayGroup" "project" "prometheusDetails" "publicProductCategory" "region" "resourceState" "servers" "shortDescription" "usageDetails" "zone" |
public_category | string (WORD) ^(?i)[a-z0-9]*\z A single word, consisting of only letters and digits. |
domain_match | boolean (BOOLEAN) Find all assets via partial domain match rather than exact match |
uniq_id | Array of strings (SUBACCNT_UNIQ_ID) |
ACCOUNT_TYPE (string) or Array of MULTI_TYPE (strings) (MULTI_TYPE) One of [ACCOUNT_TYPE] or [ARRAY[ACCOUNT_TYPE]]. | |
capability | string (WORD) ^(?i)[a-z0-9]*\z A single word, consisting of only letters and digits. |
project_name | string (TEXT_GENERAL) A string permitting tabs, carriage returns and newlines |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
object | |
exclude_category | Array of strings (WORD) |
page_num | integer (POSITIVE_INT) ^[1-9]\d*\z Default: 1 Example: page_num=80 A positive integer value (i.e. 1 and up). |
domain | string (MULTI_TYPE) One of [DOMAIN_FRAGMENT] or [DOMAIN_FULL]. |
status | string (SUBACCNT_STATUS) A valid subaccnt status (New, Active, BucketPart, Disabled, Terminated, Pending-Termination, Pending-Activation, Pending-Payment, Pending-Config). |
page_size | integer (POSITIVE_INT) ^[1-9]\d*\z Default: 25 Example: page_size=80 A positive integer value (i.e. 1 and up). |
category | Array of strings (WORD) |
required | object |
{- "params": {
- "accnt": 0,
- "alsowith": [
- "acronisBackingUp"
], - "capability": "string",
- "category": [
- "string"
], - "domain": "string",
- "domain_match": true,
- "exclude_category": [
- "string"
], - "order_by": {
- "field": "domain",
- "sort": "asc"
}, - "page_num": 80,
- "page_size": 80,
- "project_name": "string",
- "public_category": "string",
- "status": "string",
- "type": "string",
- "uniq_id": [
- "string"
]
}
}
{- "item_count": 12345,
- "item_total": 12345,
- "items": [
- {
- "active": true,
- "domain": "string",
- "ip": "172.0.0.1",
- "project_id": 80,
- "project_name": "string",
- "region_id": 80,
- "status": "New",
- "type": "string",
- "uniq_id": "string",
- "username": "string"
}
], - "page_num": 80,
- "page_size": 80,
- "page_total": 80
}
uniq_id | string (SUBACCNT_UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
required | object |
{- "params": {
- "accnt": 0,
- "uniq_id": "string"
}
}
{- "password": "string",
- "username": "string"
}
Request removal of this asset.
cancellation_comment | string (TEXT_GENERAL) A string permitting tabs, carriage returns and newlines |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
cleanup_assets | boolean (BOOLEAN) If this is the last subaccount on the account that is not an SSL, Domain Registration or DNS Zone, disable auto-renew on all Domain Registrations and SSL certificates and remove all remaining DNS zones. |
rating | any Enum: 0 5 10 Rating of customer's experience with Liquid Web. |
uniq_id | string (SUBACCNT_UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
cancellation_reason | string (TEXT_GENERAL) A string permitting tabs, carriage returns and newlines |
required | object |
{- "params": {
- "accnt": 0,
- "cancellation_comment": "string",
- "cancellation_reason": "string",
- "cleanup_assets": true,
- "rating": 0,
- "uniq_id": "string"
}
}
{- "removal_requested": "string"
}
Change the details of a subaccnt.
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
uniq_id | string (SUBACCNT_UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
features | object (HASH) Example: An associative array of arbitrary keys and values. |
domain | string <hostname> (DOMAIN_FULL) Example: domain=example.com A fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc) |
required | object |
{- "params": {
- "accnt": 0,
- "domain": "example.com",
- "features": { },
- "uniq_id": "string"
}
}
{- "accnt": 0,
- "active": true,
- "capabilities": { },
- "categories": [
- "string"
], - "description": "string",
- "domain": "string",
- "features": { },
- "ip": "172.0.0.1",
- "region_id": 80,
- "type": "string",
- "uniq_id": "string",
- "username": "string",
- "valid_source_hvs": { }
}
This section of the API handles provisioning, destroying, resizing, cloning, etc. Basically anything to do with managing a server is here.
Many of the methods here will fire off long-running processes that run
in the background and can be polled for status information.
uniq_id | string (SUBACCNT_UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
required | object |
{- "params": {
- "accnt": 0,
- "uniq_id": "string"
}
}
{- "hostname": "example.com",
- "ip": "172.0.0.1",
- "port": 80,
- "token": "string",
- "type": "string"
}
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:
type: the product code for the provisioned server to create.
features: an associative array of product features, specifying extra
configuration options for the server. The keys and values for this allow
specifying features such as MsSQL and AntiVirus service on Windows systems,
and can be determined by calling the product/details method for the product
code of the server, and examining the 'options' array. In general, these
settings are not necessary on Linux systems, and are only necessary on
servers with a Windows operating system.
image_id: rather than provisioning a LiquidWeb template, you can specify
the id of a user-created image on your account. Use the API method
storm/image/list to find any existing images you have or storm/image/create
to create a new image from an existing server
new_ips: 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 for the product type in
question, under 'options', specified as 'ExtraIp'
new_ip6s: the number of IPv6 /64s you wish the server to have. By default,
you are limited to a maximum of 1.
pool_ips: an optional array of IPv4 ips to be assigned to the server from
the ip pool.
pool6_ips: an optional array of IPv6 /64s to be assigned to the server from
the ip pool.
bandwidth_quota: the bandwidth plan you wish to use. A quota of 0 indicates
that you want as-you-go, usage-based bandwidth charges. 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.
zone: the numerical id for the zone you wish to deploy the server in.
See network/zone/list for available zones.
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 documenation for the server/details method.
domain | string <hostname> (DOMAIN_FULL) Example: domain=example.com A fully-qualified domain name (i.e. liquidweb.com, www.liquidweb.com, etc) |
type | any Enum: "Cloud.VPS" "Cloud.VPS.WIN" "Cloud.Metal" "Cloud.Metal.WIN" "Bare.Metal" "Bare.Metal.GPU" |
plan_id | integer (RELATION_ID) ^[1-9]\d*\z Example: plan_id=54321 A valid id number (a positive integer). |
template_name | string (LINE) ^[^[:cntrl:]]*\z A string of text, containing no newlines or other control characters. |
zone_id | integer (RELATION_ID) ^[1-9]\d*\z Example: zone_id=54321 A valid id number (a positive integer). |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
region_id | integer (RELATION_ID) ^[1-9]\d*\z Example: region_id=54321 A valid id number (a positive integer). |
required | object |
{- "params": {
- "accnt": 0,
- "domain": "example.com",
- "plan_id": 54321,
- "region_id": 54321,
- "template_name": "string",
- "type": "Cloud.VPS",
- "zone_id": 54321
}
}
{- "accnt": 0,
- "ip": "172.0.0.1",
- "plan_id": "string",
- "region_id": 54321,
- "status": "string",
- "template_name": "string",
- "type": "Cloud.VPS",
- "uniq_id": "string",
- "username": "string",
- "zone_id": 54321
}
Gets data relevant to a provisioned server.
Here's a rundown of what the returned fields mean:
active: a flag indicating whether or not 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.
capabilities: a list of capabilities the server has
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
features: a list of features the server is configured with
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.
uniq_id | string (UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
required | object |
{- "params": {
- "accnt": 0,
- "uniq_id": "string"
}
}
{- "accnt": 0,
- "ip": "172.0.0.1",
- "plan_id": "string",
- "region_id": 54321,
- "status": "string",
- "template_name": "string",
- "type": "Cloud.VPS",
- "uniq_id": "string",
- "username": "string",
- "zone_id": 54321
}
Get a list of servers, services, and devices on your account. A more detailed description of what is returned can be found in the documentation for the server/details method.
Valid options for category include:
Dedicated -- This includes dedicated and virtual servers as well as special dedicated items VirtualDedicated -- Legacy vps and provisioned servers StrictDedicated -- Dedicated servers SpecialDedicated -- This list includes network devices and load balancers Provisioned -- Products which are subject to automated provisioning, such as Storm LoadBalancer -- A hardware or software load balancer ObjectStorage -- An object storage account. SBS -- Products backed by our Storm Block Storage technology
Note that this method has been deprecated. Use of asset/list is now preferred.
ip | string <ipv4> (PUBLIC_IPV4) Example: ip=172.0.0.1 A valid IPV4 address, not in one of the reserved private ranges, and not localhost |
template_name | string (LINE) ^[^[:cntrl:]]*\z A string of text, containing no newlines or other control characters. |
type | any Enum: "Cloud.VPS" "Cloud.VPS.WIN" "Cloud.Metal" "Cloud.Metal.WIN" "Bare.Metal" "Bare.Metal.GPU" |
object | |
region_id | integer (RELATION_ID) ^[1-9]\d*\z Example: region_id=54321 A valid id number (a positive integer). |
zone_id | integer (RELATION_ID) ^[1-9]\d*\z Example: zone_id=54321 A valid id number (a positive integer). |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
page_num | integer (POSITIVE_INT) ^[1-9]\d*\z Default: 1 Example: page_num=80 A positive integer value (i.e. 1 and up). |
page_size | integer (POSITIVE_INT) ^[1-9]\d*\z Default: 25 Example: page_size=80 A positive integer value (i.e. 1 and up). |
plan_id | string (LINE) ^[^[:cntrl:]]*\z A string of text, containing no newlines or other control characters. |
status | string (LAXWORD) ^[\w-]*\z A single word, consisting of only letters, digits, hyphens, and underscores. |
required | object |
{- "params": {
- "accnt": 0,
- "ip": "172.0.0.1",
- "order_by": {
- "field": "uniq_id",
- "sort": "asc"
}, - "page_num": 80,
- "page_size": 80,
- "plan_id": "string",
- "region_id": 54321,
- "status": "string",
- "template_name": "string",
- "type": "Cloud.VPS",
- "zone_id": 54321
}
}
{- "item_count": 12345,
- "item_total": 12345,
- "items": [
- {
- "accnt": 0,
- "ip": "172.0.0.1",
- "plan_id": "string",
- "region_id": 54321,
- "status": "string",
- "template_name": "string",
- "type": "Cloud.VPS",
- "uniq_id": "string",
- "username": "string",
- "zone_id": 54321
}
], - "page_num": 80,
- "page_size": 80,
- "page_total": 80
}
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
uniq_id | string (UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
required | object |
{- "params": {
- "accnt": 0,
- "uniq_id": "string"
}
}
{- "password": "string"
}
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
uniq_id | string (UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
required | object |
{- "params": {
- "accnt": 0,
- "uniq_id": "string"
}
}
{- "accnt": 0,
- "ip": "172.0.0.1",
- "plan_id": "string",
- "region_id": 54321,
- "status": "string",
- "template_name": "string",
- "type": "Cloud.VPS",
- "uniq_id": "string",
- "username": "string",
- "zone_id": 54321
}
Update details about your server, including the backup and bandwidth plans, any advanced authentication options, 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.
password | string (LINE) ^[^[:cntrl:]]*\z A string of text, containing no newlines or other control characters. |
uniq_id | string (UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
username | string (LAXWORD) ^[\w-]*\z A single word, consisting of only letters, digits, hyphens, and underscores. |
required | object |
{- "params": {
- "accnt": 0,
- "password": "string",
- "uniq_id": "string",
- "username": "string"
}
}
{- "accnt": 0,
- "ip": "172.0.0.1",
- "plan_id": "string",
- "region_id": 54321,
- "status": "string",
- "template_name": "string",
- "type": "Cloud.VPS",
- "uniq_id": "string",
- "username": "string",
- "zone_id": 54321
}
This section of the API provides server plan information. A plan represents hardware specifications of a Cloud server or Bare Metal server. Note, that a plan is represented under a different term depending on the platform of the server you are deploying resides in. In the Cloud platform, a plan is called a config. In the Bare Metal platfrom, a plan is called a model.
server_type | any Enum: "Cloud.VPS" "Cloud.VPS.WIN" "Cloud.Metal" "Cloud.Metal.WIN" "Bare.Metal" "Bare.Metal.GPU" |
id | integer (RELATION_ID) ^[1-9]\d*\z Example: id=54321 A valid id number (a positive integer). |
zone_id | integer (RELATION_ID) ^[1-9]\d*\z Example: zone_id=54321 A valid id number (a positive integer). |
region_id | integer (RELATION_ID) ^[1-9]\d*\z Example: region_id=54321 A valid id number (a positive integer). |
required | object |
{- "params": {
- "id": 54321,
- "region_id": 54321,
- "server_type": "Cloud.VPS",
- "zone_id": 54321
}
}
{- "available": true,
- "cores": 12345,
- "cpu_cores": 12345,
- "cpu_count": 12345,
- "cpu_hyperthreading": true,
- "cpu_model": "string",
- "cpu_speed": 12345,
- "description": "string",
- "disk": 12345,
- "disk_type": "string",
- "gpu_count": 12345,
- "gpu_name": "string",
- "id": 54321,
- "link_speed": 12345,
- "memory": 12345,
- "raid_level": 12345,
- "region_id": 54321,
- "server_type": "Cloud.VPS",
- "type": "MachineModel",
- "vcpu": 12345,
- "zone_id": 54321
}
page_size | integer (POSITIVE_INT) ^[1-9]\d*\z Default: 25 Example: page_size=80 A positive integer value (i.e. 1 and up). |
page_num | integer (POSITIVE_INT) ^[1-9]\d*\z Default: 1 Example: page_num=80 A positive integer value (i.e. 1 and up). |
server_type | any Enum: "Cloud.VPS" "Cloud.VPS.WIN" "Cloud.Metal" "Cloud.Metal.WIN" "Bare.Metal" "Bare.Metal.GPU" |
region_id | integer (RELATION_ID) ^[1-9]\d*\z Example: region_id=54321 A valid id number (a positive integer). |
object | |
available | boolean (BOOLEAN) Default: 1 A boolean value (0 or 1). |
required | object |
{- "params": {
- "available": 1,
- "order_by": {
- "field": "id",
- "sort": "asc"
}, - "page_num": 80,
- "page_size": 80,
- "region_id": 54321,
- "server_type": "Cloud.VPS"
}
}
{- "item_count": 12345,
- "item_total": 12345,
- "items": [
- {
- "available": true,
- "cores": 12345,
- "cpu_cores": 12345,
- "cpu_count": 12345,
- "cpu_hyperthreading": true,
- "cpu_model": "string",
- "cpu_speed": 12345,
- "description": "string",
- "disk": 12345,
- "disk_type": "string",
- "gpu_count": 12345,
- "gpu_name": "string",
- "id": 54321,
- "link_speed": 12345,
- "memory": 12345,
- "raid_level": 12345,
- "region_id": 54321,
- "server_type": "Cloud.VPS",
- "type": "MachineModel",
- "vcpu": 12345,
- "zone_id": 54321
}
], - "page_num": 80,
- "page_size": 80,
- "page_total": 80
}
Return the current power status of the requested server.
uniq_id | string (SUBACCNT_UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
required | object |
{- "params": {
- "accnt": 0,
- "uniq_id": "string"
}
}
{- "error": "string",
- "powerStatus": "string",
- "resource": "string",
- "status": "string",
- "task": 80
}
Reboot the requested server.
uniq_id | string (SUBACCNT_UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
required | object |
{- "params": {
- "accnt": 0,
- "uniq_id": "string"
}
}
{- "error": "string",
- "powerStatus": "string",
- "resource": "string",
- "status": "string",
- "task": 80
}
Reset the requested server.
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
uniq_id | string (SUBACCNT_UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
required | object |
{- "params": {
- "accnt": 0,
- "uniq_id": "string"
}
}
{- "error": "string",
- "powerStatus": "string",
- "resource": "string",
- "status": "string",
- "task": 80
}
Shutdown the requested server.
uniq_id | string (SUBACCNT_UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
required | object |
{- "params": {
- "accnt": 0,
- "uniq_id": "string"
}
}
{- "error": "string",
- "powerStatus": "string",
- "resource": "string",
- "status": "string",
- "task": 80
}
Start the requested server.
uniq_id | string (SUBACCNT_UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
required | object |
{- "params": {
- "accnt": 0,
- "uniq_id": "string"
}
}
{- "error": "string",
- "powerStatus": "string",
- "resource": "string",
- "status": "string",
- "task": 80
}
Return the cached power status of the requested server.
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
uniq_id | string (SUBACCNT_UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
required | object |
{- "params": {
- "accnt": 0,
- "uniq_id": "string"
}
}
{- "error": "string",
- "powerStatus": "string",
- "resource": "string",
- "status": "string",
- "task": 80
}
Stop the requested server.
uniq_id | string (SUBACCNT_UNIQ_ID) ^[A-HJ-NP-Z0-9]{6}\z A six-character identifier, containing only capital letters and digits. |
accnt | integer (ACCOUNT_NUMBER) ^\d{1,8}\z A valid account number, up to 6 digits in length. |
required | object |
{- "params": {
- "accnt": 0,
- "uniq_id": "string"
}
}
{- "error": "string",
- "powerStatus": "string",
- "resource": "string",
- "status": "string",
- "task": 80
}
This section of the API provides server template information. A template represents the operating system, management, and optionally the inclusion of a control panel as part of the server deployment.
name | string (LINE) ^[^[:cntrl:]]*\z A string of text, containing no newlines or other control characters. |
server_type | any Enum: "Cloud.VPS" "Cloud.VPS.WIN" "Cloud.Metal" "Cloud.Metal.WIN" "Bare.Metal" "Bare.Metal.GPU" |
region_id | integer (RELATION_ID) ^[1-9]\d*\z Example: region_id=54321 A valid id number (a positive integer). |
zone_id | integer (RELATION_ID) ^[1-9]\d*\z Example: zone_id=54321 A valid id number (a positive integer). |
required | object |
{- "params": {
- "name": "string",
- "region_id": 54321,
- "server_type": "Cloud.VPS",
- "zone_id": 54321
}
}
{- "available": true,
- "control_panel": "string",
- "management": "string",
- "name": "string",
- "os_bit": 12345,
- "os_name": "string",
- "os_type": "string",
- "os_version": "string",
- "region_id": 54321,
- "server_type": "Cloud.VPS",
- "type": "MachineTemplate",
- "zone_id": 54321
}
available | boolean (BOOLEAN) Default: 1 A boolean value (0 or 1). |
object | |
region_id | integer (RELATION_ID) ^[1-9]\d*\z Example: region_id=54321 A valid id number (a positive integer). |
server_type | any Enum: "Cloud.VPS" "Cloud.VPS.WIN" "Cloud.Metal" "Cloud.Metal.WIN" "Bare.Metal" "Bare.Metal.GPU" |
page_num | integer (POSITIVE_INT) ^[1-9]\d*\z Default: 1 Example: page_num=80 A positive integer value (i.e. 1 and up). |
page_size | integer (POSITIVE_INT) ^[1-9]\d*\z Default: 25 Example: page_size=80 A positive integer value (i.e. 1 and up). |
required | object |
{- "params": {
- "available": 1,
- "order_by": {
- "field": "name",
- "sort": "asc"
}, - "page_num": 80,
- "page_size": 80,
- "region_id": 54321,
- "server_type": "Cloud.VPS"
}
}
{- "item_count": 12345,
- "item_total": 12345,
- "items": [
- {
- "available": true,
- "control_panel": "string",
- "management": "string",
- "name": "string",
- "os_bit": 12345,
- "os_name": "string",
- "os_type": "string",
- "os_version": "string",
- "region_id": 54321,
- "server_type": "Cloud.VPS",
- "type": "MachineTemplate",
- "zone_id": 54321
}
], - "page_num": 80,
- "page_size": 80,
- "page_total": 80
}