Terraform provider reference / data sources / server_type
fiberax_server_type (Data Source)
One server type - by ID or by name.
The list of types depends on the project: restricted types are visible only to the projects they are opened to. Set exactly one of id and name.
Example Usage
# A server type by name - so the configuration does not hard-code an ID.
data "fiberax_server_type" "cluster" {
name = "Cluster Server"
}
output "cluster_id" { value = data.fiberax_server_type.cluster.id }
Schema
Optional
id(Number) ID of the server type. This same value goes intoserver_type_idwhen creating a server. Give this instead of the name.name(String) Product name, for exampleCluster Server. Give this instead of the ID; the comparison ignores case.
Read-Only
-
description(String) Description of the type as it appears in the client area. -
gpu(Boolean) True when the type is sold with graphics cards. Two shapes exist, and the pricing mode alone does not tell them apart: afixedtype comes as a GPU package, while asliderstype withgputrue lets you pick the cards yourself. -
pricing_mode(String) How a server of this type is sized: -
sliders- you choosecores,memory_mbanddisk_gb, all three; on a type with graphics cards you also pick the cards ingpusand, optionally, the storage class indisk_type; -
plans- you choose a ready-made plan byplan_id, and the slider fields are refused; -
fixed- a GPU package defines the whole machine: name it ingpu_package, and the size fields are refused.
Read the pricing of the type to see what it offers: plans, gpu_packages or gpu_models.
Generated from the provider schema for version 0.3.0. How to install the provider: Terraform provider.