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": "lb1-1-2",
  "floating_ip": {
    "existing_floating_id": "c64e5db1-5f1f-43ec-a8d9-5090df85b82d",
    "source": "existing"
  }
}'
{
  "currency_code": "USD",
  "discount_percent": 0.16,
  "per_hour": {
    "external_ip": 0.02,
    "flavor": 0.8,
    "floating_ip": 0.05
  },
  "per_month": {
    "external_ip": 14.4,
    "flavor": 576,
    "floating_ip": 36
  },
  "price_status": "show",
  "price_without_discount_per_month": 604.8,
  "total_price_per_hour": 1.02,
  "total_price_per_month": 734.4
}

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

Examples:

1

region_id
integer
required

Region ID

Examples:

1

Body

application/json

Price preview loadbalancer schema

flavor
string
required

Load balancer flavor name

Examples:

"lb1-1-2"

floating_ip
object

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

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
Examples:

"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

Examples:

"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

Examples:

"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.

Examples:

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

Response

200 - application/json

OK

Billing response preview schema for loadbalancer

discount_percent
number | null
required

Actual discount relative value

Examples:

0.16

per_hour
object
required

Prices per category charged per hour

Examples:
{
"external_ip": 14.4,
"flavor": 576,
"floating_ip": 36
}
per_month
object
required

Prices per category charged per month

Examples:
{
"external_ip": 14.4,
"flavor": 576,
"floating_ip": 36
}
price_status
enum<string>
required

Price status for the UI

Available options:
error,
hide,
show
currency_code
enum<string> | null

Currency code (3 letter code per ISO 4217)

Available options:
AED,
AFN,
ALL,
AMD,
ANG,
AOA,
ARS,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BHD,
BIF,
BMD,
BND,
BOB,
BRL,
BSD,
BTN,
BWP,
BYN,
BZD,
CAD,
CDF,
CHF,
CLP,
CNY,
COP,
CRC,
CUC,
CUP,
CVE,
CZK,
DJF,
DKK,
DOP,
DZD,
EGP,
ERN,
ETB,
EUR,
FJD,
FKP,
GBP,
GEL,
GHS,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HRK,
HTG,
HUF,
IDR,
ILS,
INR,
IQD,
IRR,
ISK,
JMD,
JOD,
JPY,
KES,
KGS,
KHR,
KMF,
KPW,
KRW,
KWD,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
LYD,
MAD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRO,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
NGN,
NIO,
NOK,
NPR,
NZD,
OMR,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SDG,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
SSP,
STD,
SVC,
SYP,
SZL,
THB,
TJS,
TMT,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
USD,
UYU,
UZS,
VEF,
VND,
VUV,
WST,
XAF,
XAG,
XAU,
XBA,
XBB,
XBC,
XBD,
XCD,
XDR,
XOF,
XPD,
XPF,
XPT,
XSU,
XTS,
XUA,
XXX,
YER,
ZAR,
ZMW,
ZWL
price_without_discount_per_month
number | null

Total price VAT inclusive per month without discount

total_price_per_hour
number | null

Total price VAT inclusive per hour

total_price_per_month
number | null

Total price VAT inclusive per month