Get Device
Use this method when you already know a device serial and need its current details.
This is useful immediately before creating an allocation or when checking whether a stored serial is still visible to the current credentials.
Before You Begin
Get the serial from List Devices or from your own device configuration.
SDK Method
Java | Node.js |
|---|---|
client.devices().get(serial) | await client.devices().get(serial) |
Parameter
Parameter | Required | Description |
|---|---|---|
serial | Yes | Exact serial returned by List Devices |
The serial is passed as the method argument and encoded by the Node.js SDK before the request is sent. There is no request body. Authentication headers are managed by the SDK client.
Examples
Device device = client.devices().get("R58M123456A");
System.out.println(device.marketName());
System.out.println(device.state());
System.out.println(device.isSimulator());
System.out.println(device.isPublic());Result
Returns one Device.
Field | Type | Nullable | Meaning |
|---|---|---|---|
id | number | Yes | Internal identifier |
serial | string | Yes | Device serial |
marketName | string | Yes | Customer-facing name |
model | string | Yes | Hardware model |
manufacturer | string | Yes | Manufacturer |
platform | string | Yes | Platform value |
platformVersion | string | Yes | Operating-system version |
version | string | Yes | Additional server-provided version |
state | string | Yes | Current Device Park state; see Device State Values |
isSimulator | boolean | Yes | Simulator indicator |
isPublic | boolean | Yes | Public visibility indicator |
{
"id": 19027,
"serial": "7TCASGP78XC6C64X",
"marketName": "Redmi 13T Pro",
"model": "23078PND5G",
"manufacturer": "Xiaomi",
"platform": "android",
"platformVersion": "15",
"version": "1.9",
"state": "HEALTHY",
"isSimulator": false,
"isPublic": false
}isSimulator and isPublic can be null when the server does not provide the value.
A device being visible does not automatically reserve it. Create an allocation before starting a test session.
If the serial does not exist or is not visible to the credentials, the SDK reports the Device Park response as an error.
Continue with Create Allocation.
To inspect installed applications first, continue with List Device Apps.