Terraform provider reference / data sources / server_type_pricing

fiberax_server_type_pricing (Data Source)

Prices and limits of one server type.

Rates are per hour; the monthly figure is the same rate over 720 hours, and it is there for comparison, not to work out your bill.

Example Usage

# Prices and limits of a server type.
#
# Rates are hourly; the monthly figure is the same rate over 720 hours, meant for
# comparison rather than for working out a bill.
data "fiberax_server_type_pricing" "cluster" {
  server_type_id = data.fiberax_server_type.cluster.id
}

# backup_gb is a billing multiplier, not a price: backups cost 20% of what the
# server costs. It is left out here. The price of a plan is in plans.
output "hourly_rates" {
  value = {
    for k, v in data.fiberax_server_type_pricing.cluster.metered : k => v.hourly
    if k != "backup_gb"
  }
}

output "slider_limits" { value = data.fiberax_server_type_pricing.cluster.limits }

Schema

Required

Read-Only

Take key and pass it as model inside the server's gpus. (see below for nested schema)

Take key and pass it as the server's gpu_package; the package defines the card, the cores, the memory and the system disk, so the size fields are refused with it. (see below for nested schema)

cores and memory_gb are named after the server's own fields; the API reports the same numbers as cpu and ram_gb. (see below for nested schema)

Not every line is a price. backup_gb is a billing multiplier on every type that lists it, not a price per gigabyte: backups cost 20% of what the server costs, or the package's flat backup_price on a type that sells GPU packages. Leave it out when you add up rates. A package rate can belong to a package that is no longer sold and is absent from gpu_packages: servers already on that package keep paying it. (see below for nested schema)

Take the ID of the plan you want from here and pass it as the server's plan_id. (see below for nested schema)

Read the pricing of the type to see what it offers: plans, gpu_packages or gpu_models.

Nested Schema for gpu_models

Read-Only:

Nested Schema for gpu_packages

Read-Only:

Nested Schema for limits

Read-Only:

Nested Schema for metered

Read-Only:

Nested Schema for plans

Read-Only:

Generated from the provider schema for version 0.11.0. How to install the provider: Terraform provider.