Server Variant
Server variants define different instances of a server, each with its own configuration and capabilities. By default, Metorial picks the best variant automatically, but you can specify a variant if needed.
Server Variant object
Attributes
object
Stringid
StringThe unique identifier for this server variant
status
EnumThe current status of the server variant
identifier
StringA unique string identifier for the server variant
server
Objectcurrent_version
ObjectNullablesource
ObjectThe source type and configuration for this server variant
created_at
DateTimestamp when the server variant was created
{"object": "server.server_variant","status": "active","server": {"object": "server#preview","type": "public"},"current_version": {"object": "server.server_version","oauth": {"status": "disabled"},"source": {"type": "docker","docker": {}},"schema": {},"server": {"object": "server#preview","type": "public"}},"source": {"type": "docker","docker": {}}}
List server variants
Retrieve all variants for a given server
URL Parameters
server_id
StringThe unique identifier for the server
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalcurl -X GET "https://api.metorial.com/servers/ser_Rm4Mnheq2bfEPhBhP7SY/variants" \-H "Authorization: Bearer metorial_sk_..."
Get server variant
Retrieve details for a specific server variant
URL Parameters
server_id
StringThe unique identifier for the server
server_variant_id
StringThe unique identifier for the server_variant
curl -X GET "https://api.metorial.com/servers/ser_Rm4Mnheq2bfEPhBhP7SY/variants/ser_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."