Skip to content

Get device role

GET
/api/device-roles/{id}
curl --request GET \
--url http://localhost:3000/api/device-roles/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--cookie session=<session>
id
required
string format: uuid

Success

Media type application/json
object
data
object
id
required
string format: uuid
name
required
string
slug
string
nullable
color
string
nullable
description
string
nullable
tier
string
nullable
redundancy
string
nullable
complianceBaselines
Array<string>
vmRole
boolean
typicalLocation
string
nullable
responsibilities
string
nullable
popular
boolean
source
string
Allowed values: vendor customer
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{
"data": {
"source": "vendor"
}
}

Not authenticated

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}

DeviceRole not found

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}