Skip to main content
POST
Preview instance price

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer<int64>
required

Project ID

Example:

1

region_id
integer<int64>
required

Region ID

Example:

1

Body

application/json

Pricing details for creating instances with version 2 interfaces.

flavor
string
required

The flavor of the instance.

Example:

"g1-standard-1-2"

interfaces
(NewInterfaceExternalSerializerPydantic · object | NewInterfaceSpecificSubnetFipSerializerPydantic · object | NewInterfaceAnySubnetFipSerializerPydantic · object | NewInterfaceReservedFixedIpFipSerializerPydantic · object)[]
required

Subnet IPs and floating IPs

Instance will be attached to default external network

Example:
name_templates
(string | null)[]

A list of instance name templates. Either this or names must be specified.

Example:
names
string[]

A list of instance names. Either this or name_templates must be specified.

Example:
volumes
InstanceVolumePricingRequestSerializer · object[]

A list of volumes to be created or used.

Example:

Response

200 - application/json

OK

Billing response v2 preview schema for server instance.

currency_code
enum<string> | null
required

Currency code (3-letter code per ISO 4217).

Available options:
AZN,
EUR,
USD
Example:

"USD"

discount_details
ResourceDiscountSerializer · object[]
required

Discount details per resource.

Example:
discount_percent
string
required

Actual discount as a relative value.

Examples:

"10.50"

"5.00"

per_gb
DetailedInstancePricingPerGBSerializer · object | null
required

Pricing details per category charged per GB.

Example:
per_hour
DetailedInstancePricingSerializer · object
required

Prices per category charged per hour.

Example:
per_month
DetailedInstancePricingSerializer · object
required

Prices per category charged per month.

Example:
price_status
enum<string>
required

Price status for the UI.

Available options:
error,
hide,
show
Examples:

"show"

"hide"

price_without_discount_per_month
number | null
required

Total price VAT inclusive per month without discount.

Example:

"800.00"

tax_percent
number
required

Tax rate applied to the subtotal, represented as a percentage

Examples:

0

17

12

total_price_per_hour
number | null
required

Total price VAT inclusive per hour.

Example:

"1.02"

total_price_per_month
number | null
required

Total price VAT inclusive per month.

Example:

"734.4"

vm_count
integer
default:1

Number of virtual machine instances being created.

Examples:

1

10