How to provision an instance using availability data
Instances -> Read and write
permissionbody
with pod
, provider
and optional team
definitions.
pod
pod
object defines the instance’s characteristics:
name
, but the rest of the parameters is copied from the availability offer. Since this offer includes a dataCenterId
and country
, we’re going to pass those values during provisioning, as it indicates that the provider has GPUs with the same cloudId
available in different locations. We also copy the rest of the GPU definition data:
gpuType -> gpuType
socket -> socket
gpuCount -> gpuCount
security -> security
image
. Available values are stored within the images
property of the availability offer. We’re going to select the default ubuntu_22_cuda_12
image.
provider
provider
object is straightforward, we only need to specify the type
, which in our case is hyperstack
.
team
team
, include the team object.
teamId
on your Team’s Profile page200 OK
response with the pod details in the Response Body.
disk
and vcpu
specifications.
vcpu
is included in price (defaultIncludedInPrice
set to true
) the default disk is not, which results in an additional cost of $0.03 when using the default disk size.pod
property when sending the create request. For this example, since the provider supports increments of 10 with a minimum of 50, we’ll set the disk size to 200. This adjustment will affect the total hourly cost as follows:
defaultIncludedInPrice
allows us to use default of 16 vcpus for free, there are 2 options in which we’re going to pay additional amount for vcpus
vcpu
to 20 will increase the cost beyond the base instance price:
vcpu
to 10 can also increase costs compared to the default configuration. This is because some servers use predefined containers, and altering configurations may incur additional fees, making it more economical to use the default setup:
disk
and vcpu
increased our request will look like:
prices -> isVariable
will be set to true
. In this case, it’s recommended to specify a maxPrice
when provisioning the instance to set a cap:
customTemplateId
and set the image
to custom_template
.