get device.md

Get Device

Fleets API · Devices

GET https://app.mk.io/api/v1/projects/{project_name}/fleet/devices/{name}

Get a device by name. To learn more about devices, read Device Concept.

RBAC Capability Required: fleet.device.get

Authentication

Path parameters

Name Type Required Description
project_name string Yes
name string Yes

Example request

curl -X GET "https://app.mk.io/api/v1/projects/{project_name}/fleet/devices/{name}" \
  -H "Authorization: Bearer <token>"

Responses

200 — A single device

\s/]{1,16}|[a-zA-Z][a-zA-Z0-9_]{1,255})$_ — The name of the interface on the device.
- state · enum · Required — Whether the interface is currently present on the device. If an interface is referenced directly by a source or a destination, it may be continue to be present in the list even if the device no longer reports it.
- Allowed values: NotPresent, Present
- type · enum · Required — The type of the physical or virtual interface on the device (IP, SDI/ASI or RF).
- Allowed values: IP, SDIASI, RF