Get a server type

Get a server type by name. You can also get a deprecated type that has a replacement. A deprecated type's availability is unavailable, and replacement names the type to use instead.

GET https://{availability_zone}.betterstackcloud.com/v1/server-types/{name}
name string required

The name of the server type to get, such as AM4.

Authorization string required

Bearer $TOKEN

200 OK
{
  "name": "Example server type",
  "family": "example",
  "vcpu": 1,
  "ram_gb": 1,
  "storage_gb": 1,
  "bandwidth_gbit": 1,
  "availability": "global",
  "replacement": "example"
}

Returns the server type.

id string

The ID of the server type.

name string

The type's name, such as AM4. Send it as server_type when you create a server.

family string

The family the type belongs to, such as AM for shared AMD CPUs, AMS for spot servers or AMD for dedicated AMD CPUs.

vcpu integer

The number of vCPUs.

ram_gb integer

The memory in GiB.

storage_gb integer

The root disk size in GiB. A server rescaled down to this type can keep its larger disk.

bandwidth_gbit integer

The bandwidth limit in gigabits per second. Each network interface of the server gets this limit in each direction.

availability string

Whether you can order the type.
Valid values:
global: You can order the type when the zone has capacity for it.
restricted: You can order the type when the zone has capacity for it, the same as global.
unavailable: The type is deprecated. A create or a rescale to it is refused with type_deprecated and the name of its replacement.

replacement string or null

The name of the type to use in place of this deprecated one, or null for a type we offer.