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

Body

application/json
region_id
integer
required

Region ID where the port is created

Example:

1

ip_assignments
IpAssignmentRequestSerializer · object[]

IP addresses to assign. All subnets must belong to the same network. Repeat a subnet to get several addresses from it. Omit the field to get one address from an IPv4 subnet.

Required array length: 1 - 64 elements
Example:
network_id
string<uuid4>

Network to create the port in. When omitted, it is the network of the subnets in ip_assignments, or the region's public network if ip_assignments is omitted. Every subnet in ip_assignments must belong to it.

Example:

"bc688791-f1b0-44eb-97d4-07697294b1e1"

Response

Port price

currency
string | null
required

Currency code. Null when the port has no IPv4 address on the region's public network. Then all prices are 0.

Example:

"USD"

discount_percent
number
required

Discount in percent. 0 when there is no discount.

Example:

10

hourly
number
required

Price per hour after the discount.

Example:

0.0412

monthly
number
required

Price per month after the discount.

Example:

29.66

monthly_before_discount
number
required

Price per month before the discount.

Example:

32.95

tax_percent
number | null
required

Tax in percent. All prices include it. Null when the port has no IPv4 address on the region's public network. Then all prices are 0.

Example:

20