VPS Pricing

/vps-price-list

GET

Returns list of VPS Price lists

JSON request

No possible request options.

JSON response

Sample

curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/vps-price-list" | python -m json.tool

POST

Creare new VPS Price List.

JSON request

name string Price list name.
prices array

Array of prices in form:

amount float Price value.
currency string Currency in ISO format.
tier string UUID representing VPS Tier instance.

JSON response

Possible errors

Sample

curl \
--request POST \
--user "{{api_username}}:{{api_key}}" \
--data '
    {
        "name": "The Price list",
        "prices": [
            {
                "amount": 10,
                "currency": "EUR",
                "tier": "8ab5599f-aea6-493c-aca9-a070e5cf5257"
            },
            {
                "amount": 15,
                "currency": "EUR",
                "tier": "978ada51-3272-429a-a104-cf06200355dc"
            },
        ]
    }
' \
"{{api_base_url}}/vps-price-list" | python -m json.tool

/vps-price-list/{id}

GET

Returns VPS Price list details.

JSON request

No possible request options.

JSON response

Possible errors

Sample

curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/vps-price-list/17adc96a-e95c-4b3a-bab8-eb95e3144387" | python -m json.tool

PUT

Update existing VPS Price List.

JSON request

name string Price list name.
prices array

Array of prices in form:

amount float Price value.
currency string Currency in ISO format.
tier string UUID representing VPS Tier instance.

JSON response

Possible errors

Sample

curl \
--request POST \
--user "{{api_username}}:{{api_key}}" \
--data '
    {
        "name": "The Price list",
        "prices": [
            {
                "amount": 12,
                "currency": "EUR",
                "tier": "8ab5599f-aea6-493c-aca9-a070e5cf5257"
            },
            {
                "amount": 20,
                "currency": "EUR",
                "tier": "978ada51-3272-429a-a104-cf06200355dc"
            },
        ]
    }
' \
"{{api_base_url}}/vps-price-list/17adc96a-e95c-4b3a-bab8-eb95e3144387" | python -m json.tool

DELETE

Delete VPS Price List

Possible errors

Sample

curl \
--request DELETE \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/vps-price-list/17adc96a-e95c-4b3a-bab8-eb95e3144387" | python -m json.tool

/vps-price

GET

Returns list of prices defined in VPS Price lists

JSON request

No possible request options.

JSON response

array: VPS Price

Sample

curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/vps-price" | python -m json.tool

/vps-price-indication

POST

Get VPS Price for specified VPS Tier.

JSON request

tier string UUID representing VPS Tier instance.

JSON response

object: VPS Price

Possible errors

Sample

curl \
--request POST \
--user "{{api_username}}:{{api_key}}" \
--data '
    {
        "tier": "8ab5599f-aea6-493c-aca9-a070e5cf5257"
    }
' \
"{{api_base_url}}/vps-price-indication" | python -m json.tool