Skip to main content

Catalog and prices

Locations (Netface region codes)​

GET /locations

Responses​

StatusDescription
200Locations open to the project
401No valid API key
403The key's scope or the organization's subscription does not allow the request (forbidden), or a quota is exhausted (resource_limit_exceeded)
429The key's allowance is used up

Response body​

FieldTypeRequiredDescription
locationsarray of LocationYes

One location​

GET /locations/{id}

Parameters​

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Responses​

StatusDescription
200The location
401No valid API key
404No such resource in this project
429The key's allowance is used up

Response body​

FieldTypeRequiredDescription
locationLocationYes

Server types​

GET /server_types

Parameters​

NameInTypeRequiredDescription
namequerystringNoExact name (maximum length 64)
locationquerystringNoOnly what this location offers, by its id or its name (maximum length 64)

Responses​

StatusDescription
200Server types offered at one location or more
401No valid API key
403The key's scope or the organization's subscription does not allow the request (forbidden), or a quota is exhausted (resource_limit_exceeded)
429The key's allowance is used up

Response body​

FieldTypeRequiredDescription
server_typesarray of ServerTypeYes

One server type​

GET /server_types/{id}

Parameters​

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Responses​

StatusDescription
200The server type
401No valid API key
404No such resource in this project
429The key's allowance is used up

Response body​

FieldTypeRequiredDescription
server_typeServerTypeYes

System images​

GET /images

Parameters​

NameInTypeRequiredDescription
pagequeryintegerNo(minimum 1, default 1)
per_pagequeryintegerNo(minimum 1, maximum 100, default 25)
namequerystringNoExact name (maximum length 64)
locationquerystringNoOnly what this location offers, by its id or its name (maximum length 64)
architecturequeryx86, armNo

Responses​

StatusDescription
200Images the project may start servers from
401No valid API key
403The key's scope or the organization's subscription does not allow the request (forbidden), or a quota is exhausted (resource_limit_exceeded)
422A field is missing or malformed (invalid_input, details.fields) or an Idempotency-Key was reused with a different request (idempotency_key_mismatch)
429The key's allowance is used up

Response body​

FieldTypeRequiredDescription
imagesarray of ImageYes
metaMetaYes

One image​

GET /images/{id}

Parameters​

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Responses​

StatusDescription
200The image
401No valid API key
404No such resource in this project
429The key's allowance is used up

Response body​

FieldTypeRequiredDescription
imageImageYes

Monthly unit prices of volumes, floating IPs and snapshots​

GET /pricing

The prices in force per unit and month (billed per month, prorated per day; taxes excluded) and the organization's billing currency, the one to show prices in (ServerType.prices too). A resource without a price is not offered for creation. With currency the answer holds that currency's prices only and currency_source is requested. TRY prices are derived from the day's USD rate; before any rate is recorded their lists are empty, still a 200.

Parameters​

NameInTypeRequiredDescription
currencyqueryUSD, TRYNoThe currency to answer in; without it the billing currency

Responses​

StatusDescription
200The unit prices
401No valid API key
403The key's scope or the organization's subscription does not allow the request (forbidden), or a quota is exhausted (resource_limit_exceeded)
422A field is missing or malformed (invalid_input, details.fields) or an Idempotency-Key was reused with a different request (idempotency_key_mismatch)
429The key's allowance is used up

Response body​

FieldTypeRequiredDescription
pricingobjectYes
pricing.currencystringYesThe currency asked for, else the billing profile's, or USD when the organization has no profile yet (pattern ^[A-Z]{3}$)
pricing.currency_sourcebilling_profile, canonical, requestedYes
pricing.volumeUnitPricingYes
pricing.floating_ipUnitPricingYes
pricing.snapshotUnitPricingYes

The monthly list price of a server about to be created​

GET /pricing/estimate

The list prices in force multiplied for one server type at one location, its extra volumes and its new floating IPs, in the currency asked for, else the organization's billing currency (GET /pricing). One month's amount (the proration of a part month is the invoice's), never a usage forecast. A line without a price makes the estimate priced: false with no total. A server type the location does not offer is 422 invalid_input not_offered_in_location; an unknown one unknown.

Parameters​

NameInTypeRequiredDescription
server_typequerystring (uuid)Yes
locationquerystringYesThe location's id or name (maximum length 64)
volume_gbqueryarray of integerNoOne extra volume each, in GB; repeat for several (at most 16) (at most items 16)
floating_ipsqueryintegerNoNew floating IPs (minimum 0, maximum 10, default 0)
currencyqueryUSD, TRYNoThe currency to answer in; without it the billing currency

Responses​

StatusDescription
200The estimate
401No valid API key
403The key's scope or the organization's subscription does not allow the request (forbidden), or a quota is exhausted (resource_limit_exceeded)
422A field is missing or malformed (invalid_input, details.fields) or an Idempotency-Key was reused with a different request (idempotency_key_mismatch)
429The key's allowance is used up

Response body​

FieldTypeRequiredDescription
estimatePriceEstimateYes