get_device
(**kwargs)¶Gets information about a unique device type.
See also: AWS API Documentation
Request Syntax
response = client.get_device(
arn='string'
)
[REQUIRED]
The device type's ARN.
{
'device': {
'arn': 'string',
'name': 'string',
'manufacturer': 'string',
'model': 'string',
'modelId': 'string',
'formFactor': 'PHONE'|'TABLET',
'platform': 'ANDROID'|'IOS',
'os': 'string',
'cpu': {
'frequency': 'string',
'architecture': 'string',
'clock': 123.0
},
'resolution': {
'width': 123,
'height': 123
},
'heapSize': 123,
'memory': 123,
'image': 'string',
'carrier': 'string',
'radio': 'string',
'remoteAccessEnabled': True|False,
'remoteDebugEnabled': True|False,
'fleetType': 'string',
'fleetName': 'string',
'instances': [
{
'arn': 'string',
'deviceArn': 'string',
'labels': [
'string',
],
'status': 'IN_USE'|'PREPARING'|'AVAILABLE'|'NOT_AVAILABLE',
'udid': 'string',
'instanceProfile': {
'arn': 'string',
'packageCleanup': True|False,
'excludeAppPackagesFromCleanup': [
'string',
],
'rebootAfterUse': True|False,
'name': 'string',
'description': 'string'
}
},
],
'availability': 'TEMPORARY_NOT_AVAILABLE'|'BUSY'|'AVAILABLE'|'HIGHLY_AVAILABLE'
}
}
Response Structure
Represents the result of a get device request.
An object that contains information about the requested device.
The device's ARN.
The device's display name.
The device's manufacturer name.
The device's model name.
The device's model ID.
The device's form factor.
Allowed values include:
The device's platform.
Allowed values include:
The device's operating system type.
Information about the device's CPU.
The CPU's frequency.
The CPU's architecture (for example, x86 or ARM).
The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.
The resolution of the device.
The screen resolution's width, expressed in pixels.
The screen resolution's height, expressed in pixels.
The device's heap size, expressed in bytes.
The device's total memory size, expressed in bytes.
The device's image name.
The device's carrier.
The device's radio.
Specifies whether remote access has been enabled for the specified device.
This flag is set to true
if remote debugging is enabled for the device.
Remote debugging is no longer supported.
The type of fleet to which this device belongs. Possible values are PRIVATE and PUBLIC.
The name of the fleet to which this device belongs.
The instances that belong to this device.
Represents the device instance.
The Amazon Resource Name (ARN) of the device instance.
The ARN of the device.
An array of strings that describe the device instance.
The status of the device instance. Valid values are listed here.
Unique device identifier for the device instance.
A object that contains information about the instance profile.
The Amazon Resource Name (ARN) of the instance profile.
When set to true
, Device Farm removes app packages after a test run. The default value is false
for private devices.
An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes.
The list of packages is considered only if you set packageCleanup
to true
.
When set to true
, Device Farm reboots the instance after a test run. The default value is true
.
The name of the instance profile.
The description of the instance profile.
Indicates how likely a device is available for a test run. Currently available in the ListDevices and GetDevice API methods.
Exceptions
DeviceFarm.Client.exceptions.ArgumentException
DeviceFarm.Client.exceptions.NotFoundException
DeviceFarm.Client.exceptions.LimitExceededException
DeviceFarm.Client.exceptions.ServiceAccountException
Examples
The following example returns information about a specific device.
response = client.get_device(
arn='arn:aws:devicefarm:us-west-2::device:123EXAMPLE',
)
print(response)
Expected Output:
{
'device': {
'name': 'LG G2 (Sprint)',
'arn': 'arn:aws:devicefarm:us-west-2::device:A0E6E6E1059E45918208DF75B2B7EF6C',
'cpu': {
'architecture': 'armeabi-v7a',
'clock': 2265.6,
'frequency': 'MHz',
},
'formFactor': 'PHONE',
'heapSize': 256000000,
'image': '75B2B7EF6C12345EXAMPLE',
'manufacturer': 'LG',
'memory': 16000000000,
'model': 'G2 (Sprint)',
'os': '4.2.2',
'platform': 'ANDROID',
'resolution': {
'height': 1920,
'width': 1080,
},
},
'ResponseMetadata': {
'...': '...',
},
}