To be able to enjoy the web you need a more recent and safe browser. For more information, check the Internet Explorer updates.
 You cannot register this service. Contact Support

API dinahosting

All the commands you need
If you have doubts, we help you for free

api.cta__h1

List of commands

List of errors

Librería de archivos

Dinahosting HTTP_Request libary files
Introduce el texto mostrado en la imagen

Cloud_CreateManaged

Create a managed cloud server.
Please note this command has a delayed execution and it'll return SUCCESS_PENDING code on success and a ticket id (integer) on the data field.
Version: 1.0
Special errors:
AUTH_ERROR_OBJECT If user is not allowed to create cloud servers.
PARAM_VALUE_RANGE If resourcesUsage and reservedResources sum exceeds 15.
COMMAND_BILLING_CREDIT User haven't got enought credit available.
BILLING_FAILURE There was some error at payment / billing runtime.

Parameters:

  • diskSpace (int): Disk space (GB). The parameter is required. Parameter value must be a valid integer. Parameter value must be between values 10 and 3000 inclusive. Parameter value modulo by 5 (euclidean division remainder) must be zero.
  • resourcesUsage (int): Resource number using. E.g. 1 = 1CPU+2GiB RAM, 2 = 2CPU+4GiB RAM, ..., 15 = 15CPU+30GiB RAM. The parameter is required. Parameter value must be a valid integer. Parameter value must be between values 1 and 15 inclusive.
  • reservedResources (int): Additional resource reservation. E.g. 0 = None, 1 = 1CPU+2GiB RAM, 2 = 2CPU+4GiB RAM, ..., 15 = 15CPU+30GiB RAM. Please note that resourcesUsage+reservedResources should be lower or equal than 15. The parameter is optional. Parameter value must be a valid integer. Parameter value must be between values 0 and 15 inclusive.
  • image (string): O.S. image identificacion. The parameter is optional. Accepted parameter values: "debian-8-isp-amd64-ded-cloud-php-fpm-node-python-ruby,debian-9-isp-amd64-ded-cloud-php-fpm-varnish".
  • storageType (string): Storage type. SAS is recommended. The parameter is optional. Accepted parameter values: "SAS","SATA".
  • autoscaling (struct): Autoscaling configuration. The parameter is optional. This method accepts a structure with following keys: active (bool value), aggressiveness (int value: 5, 10 or 15 minutes) and upperLoadLimit (int value 0-100 %)

Response data type.

int

Additional Information

El modo de simulación no se aplica plenamente este comando.

Code generator.

Disk space (GB).

Resource number using. E.g. 1 = 1CPU+2GiB RAM, 2 = 2CPU+4GiB RAM, ..., 15 = 15CPU+30GiB RAM.

Additional resource reservation. E.g. 0 = None, 1 = 1CPU+2GiB RAM, 2 = 2CPU+4GiB RAM, ..., 15 = 15CPU+30GiB RAM. Please note that resourcesUsage+reservedResources should be lower or equal than 15.

O.S. image identificacion.

Storage type. SAS is recommended.

Autoscaling configuration. / Web format: Comma separated key+value pairs, one pair by line

 
 

Simulator

Los datos de respuesta no son reales.

Disk space (GB).

Resource number using. E.g. 1 = 1CPU+2GiB RAM, 2 = 2CPU+4GiB RAM, ..., 15 = 15CPU+30GiB RAM.

Additional resource reservation. E.g. 0 = None, 1 = 1CPU+2GiB RAM, 2 = 2CPU+4GiB RAM, ..., 15 = 15CPU+30GiB RAM. Please note that resourcesUsage+reservedResources should be lower or equal than 15.

O.S. image identificacion.

Storage type. SAS is recommended.

Autoscaling configuration. / Web format: Comma separated key+value pairs, one pair by line