List device types
GET
/api/device-types
const url = 'http://localhost:3000/api/device-types?page=1&sort=name&order=asc';const options = {method: 'GET', headers: {cookie: 'session=<session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/device-types?page=1&sort=name&order=asc' \ --cookie session=<session>Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” page
integer
Page number (1-based)
pageSize
integer
Rows per page. Omitted = full table, capped at 10000.
search
string
Case-insensitive substring match across name, slug, model family, ASIC chipset, key features
sort
string
Sort column
order
string
Sort direction
Responses
Section titled “ Responses ”Success
Media type application/json
object
data
required
Array<object>
object
id
required
string format: uuid
name
required
string
slug
string
manufacturerId
string format: uuid
description
string
modelFamily
string
formFactor
string
rackUnits
Numeric(4,1) serialised as string
string
airflow
string
weightKg
Numeric(7,2) serialised as string
string
powerIdleW
integer
powerMaxW
integer
poeBudgetW
integer
keyFeatures
string
typicalDeployment
string
asicChipset
string
defaultPlatformId
string format: uuid
defaultRoleId
string format: uuid
popular
boolean
source
string
status
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
total
required
integer
page
required
integer
pageSize
required
integer
hasMore
required
boolean
Example
{ "data": [ { "source": "vendor", "status": "active" } ]}Invalid filter param
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}Not authenticated
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}