Skip to main content
POST
/
cloud
/
v2
/
pricing
/
{project_id}
/
{region_id}
/
loadbalancers
Preview load balancer price
curl --request POST \
  --url https://api.gcore.com/cloud/v2/pricing/{project_id}/{region_id}/loadbalancers \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flavor": "<string>",
  "floating_ip": {
    "source": "<string>"
  },
  "vip_ip_family": "ipv4",
  "vip_network_id": "ddc28e44-2acb-499b-985b-831f29432e1c",
  "vip_port_id": "57be69f6-6f6a-4f03-a4ad-8eb86c69ec0a",
  "vip_subnet_id": "2731a56e-a5c9-44be-80c2-02c57c594573"
}
'
{
  "currency_code": "AZN",
  "discount_percent": 0.16,
  "per_hour": {
    "external_ip": 14.4,
    "flavor": 576,
    "floating_ip": 36
  },
  "per_month": {
    "external_ip": 14.4,
    "flavor": 576,
    "floating_ip": 36
  },
  "price_status": "error",
  "price_without_discount_per_month": 123,
  "tax_percent": 123,
  "total_price_per_hour": 123,
  "total_price_per_month": 123
}

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

region_id
integer
required

Region ID

Body

application/json

Price preview loadbalancer schema

flavor
string
required

Load balancer flavor name

floating_ip
New floating IP · object

Allows the instance to have a public IP that can be reached from the internet.

  • New floating IP
  • Existing floating IP
vip_ip_family
enum<string> | null

Which subnet should be selected if not specified: IPv4, IPv6 or use dual stack.

Available options:
dual,
ipv4,
ipv6
Example:

"ipv4"

vip_network_id
string | null

Network ID for load balancer. If not specified, default external network will be used. Mutually exclusive with vip_port_id

Example:

"ddc28e44-2acb-499b-985b-831f29432e1c"

vip_port_id
string | null

Existing Reserved Fixed IP port ID for load balancer. Mutually exclusive with vip_network_id

Example:

"57be69f6-6f6a-4f03-a4ad-8eb86c69ec0a"

vip_subnet_id
string | null

Subnet ID for load balancer. If not specified, any subnet from vip_network_id will be selected. Ignored when vip_network_id is not specified.

Example:

"2731a56e-a5c9-44be-80c2-02c57c594573"

Response

200 - application/json

OK

Billing response preview schema for loadbalancer

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

per_hour
DetailedLoadBalancerPricingSerializer · object
required

Prices per category charged per hour

per_month
DetailedLoadBalancerPricingSerializer · object
required

Prices per category charged per month

price_status
enum<string>
required

Price status for the UI

Available options:
error,
hide,
show
price_without_discount_per_month
number | null
required

Total price VAT inclusive per month without discount

tax_percent
number
required

Tax rate applied to the subtotal, represented as a percentage

total_price_per_hour
number | null
required

Total price VAT inclusive per hour

total_price_per_month
number | null
required

Total price VAT inclusive per month