Skip to navigation

Get a cost estimate for a virtual machine

Returns the estimated cost for a VM with the given specs without creating it. Accepts the same body as create.

Authentication

X-API-Client-IDstring
API Client ID
X-API-Client-Secretstring
API Client Secret

Request

This endpoint expects an object.
namestringRequiredformat: "^[a-zA-Z](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$"1-63 characters
VM name. It must be 1 to 63 characters, start with a letter, end with a letter or a digit, and hold only letters, digits and hyphens.
regionstringRequired
Region label
vmPackagestringRequired
VM package label
vmSpecsobjectRequired
VM specifications
imagestringRequired
Image label to use for the VM
subscriptionPeriodenumRequired
Subscription period
Allowed values:
networkstringOptionalformat: "uuid"

UUID of a pre-existing network to attach the VM to. Omit to have an isolated network auto-created for the VM (post-create access is then configured via networkAccess). An auto-created network is deleted with the VM once its last VM is removed; a network you supply is not.

tagslist of stringsOptional
List of tags to add to the VM
keypairslist of stringsOptional

Names of SSH key pairs to use (optional)

userdatastringOptional

Base64-encoded cloud-init userdata script (optional)

networkAccessobjectOptional

Optional network access configuration applied after the VM is created. Only honored when no network is provided (i.e. an isolated network is auto-created). Applies the requested outbound traffic setting and adds port forwarding + firewall rules for the requested inbound ports against the network’s public IP.

Response

Cost estimate for the virtual machine
estimatesobject
Cost estimates for the resource
discount_appliedobjectOptional

Discount applied to the estimate (if any)

billing_notestringOptional
Additional billing information or notes about pricing structure
meteredobjectOptional

The usage rate, for a resource that is billed by usage (object storage only).

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error