---
title: "Get device"
method: GET
path: "/compute/{deviceId}"
tags: ["Compute Devices"]
---

# Get device

`GET /compute/{deviceId}`

## Headers

- `X-Fields` string, mask

## Response `200`

Deployment Found

- BareMetalDevice
  - `appName` string — If device was deployed with as an application, this is the name of the application used.
  - `customIPXEScriptContents` string — Contents of custom iPXE used to provision device
  - `customIPXEScriptURL` string — URL of custom iPXE script used to provision device
  - `deviceId` integer — The unique ID of the device.
  - `hostname` string — The user specified hostname for the device. Note: If the hostname is changed in the portal or on the device itself this value may not reflect the actual hostname on the device.
  - `locationName` string — A facility code. For example `NYC1`.
  - `orderId` integer — The unique ID of the order for this device.
  - `osName` string — The name of the operating system currently installed on this device. Note: If you manually reload your own OS over IPMI this value may not reflect the OS currently on your device.
  - `period` string — This device's service's billing period.
  - `powerStatus` string — ON|OFF
  - `primaryIp` string — The first assigned public IP for accessing this device.
  - `productId` integer — The unique ID of the product associated with this device.
  - `productName` string — The name of the product associated with this device.
  - `publicSshKeyId` integer
  - `script` string — The post-install/cloud-init script used during this device's last provisioning.
  - `serviceId` integer — The unique ID of the service associated with this device.
  - `tags` string[] — User specified values.
  - `vlanId` integer

## Other responses

- `401` — Access to Deployment not Allowed
- `403` — You have not been granted permission to complete this action. Please contact your account manager to grant the proper permission.
- `404` — Deployment Not Found

---

[API](https://skmtc.net/hivelocity/apis/hivelocity-api.md) · [All operations](https://skmtc.net/hivelocity/apis/hivelocity-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hivelocity/hivelocity-api/revisions/ee6b717b5015/schema)
