price

Print product prices pulled from the pricing service.

{{< price product="product_name"
        [rate="rate_type"]
        [plan="SKU"|sku="SKU"|cluster="SKU1,SKU2,...,SKUN"]
>}}

The product parameter is the only mandatory parameter. Currently supports the product selectors listed in the scripts/new-get-prices.py file.

The rate type is optional. It can be second, hour, or month (the default) for products with unit per time pricing.

The plan type is necessary for products with plans, which include Droplets. The parameter to plan must be the SKU (not the slug or alpha ID).

The cluster type is optional and replaces plan/sku. Use a comma-separated list of SKUs to display the total price. These SKUs can only be from the same product. Used for database clusters.

Examples

Basic

{{< price product="UPTIME_HEALTH_CHECK" >}}

Renders to:

$1.00 per month

With Rate

{{< price product="UPTIME_HEALTH_CHECK" rate="hour" >}}

Renders to:

$0.00149 per hour

With Plan

{{< price product="DROPLET" plan="1-DR-DROPL-00001" >}}

Renders to:

$10.00 per month

With Cluster

A cluster with one 6 vCPU/24 GB General Purpose Droplet and two 3 vCPU/6 GB Basic Droplets
costs {{< price product="dbaas" cluster="1-DB-KAFKP-000K1,1-DB-KAFKP-00K10,1-DB-KAFKP-00K10" >}}.

Renders to:

A cluster with one 6 vCPU/24 GB General Purpose Droplet and two 3 vCPU/6 GB Basic Droplets costs $297 per month.