Instances

Deploy instance

Deploy a new instance.

Before deploying an instance, you need to add at least ssh key to be able to access your instance.

Instance types can be listed using the GET /instance-types endpoint.

Available images can be listed using the GET /images endpoint, using the image_type value from the result.

Existing detached OS volumes could be used as an image, put the volume ID as the image value.

It's also possible to define new volumes that will be created and attached to the new instance. New volumes location will be the same as the instance.

Existing detached volumes can be attached to the deployed instance by adding their IDs to the existing_volumes property.

post/v1/instances

Request

  • Base URL: https://api.verda.com
  • URL: https://api.verda.com/v1/instances
  • Auth: HTTP bearer

Request body

instance_group_idstring

Create this instance in the given instance group.

instance_typestring

Required unless instance_group_id is set, in which case the group supplies it.

imagestring

Required unless instance_group_id is set, in which case the group's template supplies the default (a group instance may override it).

OS image specification for the created instance. There are two options:

  1. OS image type or UUID. For a list of advertised images, check GET /images. Hidden images can also be deployed directly. The image must be enabled or explicitly enabled for the project owner. To set the name and size, use "os_volume" property.
  2. Previously customized OS volume ID. (To create an OS volume, first make an instance with existing "image" type. To customize the volume content, ssh into that instance. Finally, delete the instance but keep the volume.)
startup_script_idstring
hostnamestring required
descriptionstring

Optional instance description.

location_codestring

Location code for the instance and any newly created volumes. Required unless instance_group_id is set, in which case the group supplies it.

is_spotboolean

Create a spot instance. Spot instances may be evicted by Verda at any time without warning.

couponstring
existing_volumesstring[]

IDs of additional existing detached volumes to attach to this new instance when its created.

(To configure instance OS volume, use "image" and "os_volume" properties.)

contract'LONG_TERM' | 'PAY_AS_YOU_GO' | 'SPOT'
pricing'DYNAMIC_PRICE' | 'FIXED_PRICE'

This field is deprecated as DYNAMIC_PRICE is removed. Only FIXED_PRICE is supported now.

Example request

{
  "instance_group_id": "c68c5496-9746-4ff0-a19e-93818914ffed",
  "instance_type": "1H100.80S.30V",
  "image": "ubuntu-22.04-cuda-12.4-docker",
  "startup_script_id": "204d154a-7532-4208-86a0-a55bf6608999",
  "hostname": "my-instance-hostname",
  "tags": [
    {
      "key": "environment",
      "value": "production"
    },
    {
      "key": "benchmark"
    }
  ],
  "location_code": "FIN-01",
  "os_volume": {
    "name": "custom-os-volume-name",
    "tags": [
      {
        "key": "environment",
        "value": "production"
      }
    ]
  },
  "coupon": "COUPON-CODE-2026",
  "volumes": [
    {
      "name": "additional-volume-name",
      "size": 1000,
      "type": "NVMe"
    }
  ],
  "existing_volumes": [
    "773f37e6-39c8-42d1-8882-4332293e6069"
  ],
  "contract": "PAY_AS_YOU_GO",
  "pricing": "FIXED_PRICE"
}

Response

Instance ID

Changes

No recorded changes to this operation across all 1 revision of this API.