Get device
GET
/api/devices/{id}
const url = 'http://localhost:3000/api/devices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';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/devices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --cookie session=<session>Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Responses
Section titled “ Responses ”Success
Media type application/json
object
data
object
id
required
string format: uuid
name
required
string
status
required
string
siteId
string format: uuid
locationId
string format: uuid
rackId
string format: uuid
manufacturerId
string format: uuid
deviceRoleId
string format: uuid
deviceTypeId
string format: uuid
platformId
string format: uuid
position
Lowest occupied rack unit
integer
uHeight
Rack units occupied
integer
platform
Legacy free-text platform (prefer platformId)
string
model
Legacy free-text model (prefer deviceTypeId)
string
primaryIp
string
description
string
tags
Array<string>
serialNumber
string
assetTag
string
notes
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{ "data": { "status": "active", "uHeight": 1 }}Not authenticated
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}Device not found
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}