Skip to main content

catalog_formatted_baremetal_servers

Creates, updates, deletes, gets or lists a catalog_formatted_baremetal_servers resource.

Overview​

Namecatalog_formatted_baremetal_servers
TypeResource
Idovh.order.catalog_formatted_baremetal_servers

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
countintegerNumber of servers in this page
displayobjectHow the subsidiary's prices are put forward on the website
paginationarrayList of the available page numbers
serversarrayServers of this page
totalintegerTotal number of servers matching the filters

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectovh_subsidiarycores_max, cores_min, count, cpu_brands, datacenters, freq_max, freq_min, merge_generations, offset, os_available, plan_codes, price_max, price_min, private_bw_max, private_bw_min, public_bw_max, public_bw_min, ram_max, ram_min, ranges, sockets, sort, storage_max, storage_min, storage_raid, storage_types, threads_max, threads_min, use_cases, with_gpuBare-metal dedicated servers of the public catalog for a subsidiary: one product per commercial server (its newest hardware generation by default, mergeGenerations=false lists every generation) with the specs of its default configuration, the ranges of its options and one price per datacenter, with hardware, network, price and range filters, sorting and pagination. Text specs and prices follow the website's typography for the subsidiary.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
ovh_subsidiarystringOVHcloud subsidiary targeted (wire: ovhSubsidiary)
cores_maxintegerMaximum number of CPU cores (wire: coresMax)
cores_minintegerMinimum number of CPU cores (wire: coresMin)
countintegerNumber of results per page. Default to 20
cpu_brandsarrayFilter on CPU brands (e.g. Intel, AMD). Repeat the parameter for multiple values (wire: cpuBrands)
datacentersarrayFilter on datacenters where the server is available. Repeat the parameter for multiple values
freq_maxnumberMaximum CPU frequency, in GHz (wire: freqMax)
freq_minnumberMinimum CPU frequency, in GHz (wire: freqMin)
merge_generationsbooleanFold the hardware generations of a model into one server, the newest one extended with the datacenters only older generations still serve. Default to true; false lists every generation (wire: mergeGenerations)
offsetintegerOffset of the first result returned, used with count for pagination
os_availablearrayFilter on available operating systems. Repeat the parameter for multiple values (wire: osAvailable)
plan_codesstringReturn only the servers with these plan codes, comma-separated (e.g. 25rise01,25adv01), matched case-insensitively (wire: planCodes)
price_maxnumberMaximum monthly price, in the subsidiary currency (e.g. 499.99) (wire: priceMax)
price_minnumberMinimum monthly price, in the subsidiary currency (e.g. 99.99) (wire: priceMin)
private_bw_maxintegerMaximum private bandwidth, in Mbps (wire: privateBwMax)
private_bw_minintegerMinimum private bandwidth, in Mbps (wire: privateBwMin)
public_bw_maxintegerMaximum public bandwidth, in Mbps (wire: publicBwMax)
public_bw_minintegerMinimum public bandwidth, in Mbps (wire: publicBwMin)
ram_maxintegerMaximum RAM size, in GB (wire: ramMax)
ram_minintegerMinimum RAM size, in GB (wire: ramMin)
rangesarrayFilter on commercial ranges. Repeat the parameter for multiple values
socketsarrayFilter on the number of CPU sockets. Repeat the parameter for multiple values
sortstringSort order: price-asc (default), price-desc, name-asc or name-desc. Servers with a promotion always come first
storage_maxnumberMaximum storage size, in GB (wire: storageMax)
storage_minnumberMinimum storage size, in GB (wire: storageMin)
storage_raidarrayFilter on RAID levels of the default storage configuration. Repeat the parameter for multiple values (wire: storageRaid)
storage_typesarrayFilter on storage types. Repeat the parameter for multiple values (wire: storageTypes)
threads_maxintegerMaximum number of CPU threads (wire: threadsMax)
threads_minintegerMinimum number of CPU threads (wire: threadsMin)
use_casesarrayFilter on server use cases. Repeat the parameter for multiple values (wire: useCases)
with_gpubooleanFilter on servers with (true) or without (false) a GPU (wire: withGpu)

SELECT examples​

Bare-metal dedicated servers of the public catalog for a subsidiary: one product per commercial server (its newest hardware generation by default, mergeGenerations=false lists every generation) with the specs of its default configuration, the ranges of its options and one price per datacenter, with hardware, network, price and range filters, sorting and pagination. Text specs and prices follow the website's typography for the subsidiary.

SELECT
count,
display,
pagination,
servers,
total
FROM ovh.order.catalog_formatted_baremetal_servers
WHERE ovh_subsidiary = '{{ ovh_subsidiary }}' -- required
AND cores_max = '{{ cores_max }}'
AND cores_min = '{{ cores_min }}'
AND count = '{{ count }}'
AND cpu_brands = '{{ cpu_brands }}'
AND datacenters = '{{ datacenters }}'
AND freq_max = '{{ freq_max }}'
AND freq_min = '{{ freq_min }}'
AND merge_generations = '{{ merge_generations }}'
AND offset = '{{ offset }}'
AND os_available = '{{ os_available }}'
AND plan_codes = '{{ plan_codes }}'
AND price_max = '{{ price_max }}'
AND price_min = '{{ price_min }}'
AND private_bw_max = '{{ private_bw_max }}'
AND private_bw_min = '{{ private_bw_min }}'
AND public_bw_max = '{{ public_bw_max }}'
AND public_bw_min = '{{ public_bw_min }}'
AND ram_max = '{{ ram_max }}'
AND ram_min = '{{ ram_min }}'
AND ranges = '{{ ranges }}'
AND sockets = '{{ sockets }}'
AND sort = '{{ sort }}'
AND storage_max = '{{ storage_max }}'
AND storage_min = '{{ storage_min }}'
AND storage_raid = '{{ storage_raid }}'
AND storage_types = '{{ storage_types }}'
AND threads_max = '{{ threads_max }}'
AND threads_min = '{{ threads_min }}'
AND use_cases = '{{ use_cases }}'
AND with_gpu = '{{ with_gpu }}'
;