Skip to main content
POST
Preview function 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
required

Project ID

Example:

1

region_id
integer
required

Region ID

Example:

1

Body

application/json
autoscaling
FaasAutoscalingSerializer · object
required

Autoscaling configuration for the function. Keys must be 'min_instances' or 'max_instances', and values must be integers between 0 and 50.

Example:
flavor
string
required

The name of the flavor associated with the function.

Example:

"64m-64MB"

Response

200 - application/json

OK

Response with prices per hour and per month

currency_code
enum<string> | null
required

Currency code (3 letter code per ISO 4217)

Available options:
AZN,
EUR,
USD
discount_percent
number | null
required

Actual discount relative value

Example:

0.16

price_per_hour
number | null
required

Price of the item charged per hour

Example:

1

price_per_month
number | null
required

Price of the item charged per month

Example:

720

price_status
enum<string>
required

Price status for the UI

Available options:
error,
hide,
show
Example:

"show"

price_without_discount_per_month
number | null
required

Total price VAT inclusive per month without discount

Example:

604.8

tax_percent
number
required

Tax rate applied to the subtotal, represented as a percentage

Examples:

0

17

12