DeviceFarm.Client.
get_remote_access_session
(**kwargs)¶Returns a link to a currently running remote access session.
See also: AWS API Documentation
Request Syntax
response = client.get_remote_access_session(
arn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the remote access session about which you want to get session information.
{
'remoteAccessSession': {
'arn': 'string',
'name': 'string',
'created': datetime(2015, 1, 1),
'status': 'PENDING'|'PENDING_CONCURRENCY'|'PENDING_DEVICE'|'PROCESSING'|'SCHEDULING'|'PREPARING'|'RUNNING'|'COMPLETED'|'STOPPING',
'result': 'PENDING'|'PASSED'|'WARNED'|'FAILED'|'SKIPPED'|'ERRORED'|'STOPPED',
'message': 'string',
'started': datetime(2015, 1, 1),
'stopped': datetime(2015, 1, 1),
'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'
},
'instanceArn': 'string',
'remoteDebugEnabled': True|False,
'remoteRecordEnabled': True|False,
'remoteRecordAppArn': 'string',
'hostAddress': 'string',
'clientId': 'string',
'billingMethod': 'METERED'|'UNMETERED',
'deviceMinutes': {
'total': 123.0,
'metered': 123.0,
'unmetered': 123.0
},
'endpoint': 'string',
'deviceUdid': 'string',
'interactionMode': 'INTERACTIVE'|'NO_VIDEO'|'VIDEO_ONLY',
'skipAppResign': True|False,
'vpcConfig': {
'securityGroupIds': [
'string',
],
'subnetIds': [
'string',
],
'vpcId': 'string'
}
}
}
Response Structure
Represents the response from the server that lists detailed information about the remote access session.
A container that lists detailed information about the remote access session.
The Amazon Resource Name (ARN) of the remote access session.
The name of the remote access session.
The date and time the remote access session was created.
The status of the remote access session. Can be any of the following:
The result of the remote access session. Can be any of the following:
A message about the remote access session.
The date and time the remote access session was started.
The date and time the remote access session was stopped.
The device (phone or tablet) used in the remote access session.
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.
The ARN of the instance.
This flag is set to true
if remote debugging is enabled for the remote access session.
Remote debugging is no longer supported.
This flag is set to true
if remote recording is enabled for the remote access session.
The ARN for the app to be recorded in the remote access session.
IP address of the EC2 host where you need to connect to remotely debug devices. Only returned if remote debugging is enabled for the remote access session.
Remote debugging is no longer supported.
Unique identifier of your client for the remote access session. Only returned if remote debugging is enabled for the remote access session.
Remote debugging is no longer supported.
The billing method of the remote access session. Possible values include METERED
or UNMETERED
. For more information about metered devices, see AWS Device Farm terminology.
The number of minutes a device is used in a remote access session (including setup and teardown minutes).
When specified, represents the total minutes used by the resource to run tests.
When specified, represents only the sum of metered minutes used by the resource to run tests.
When specified, represents only the sum of unmetered minutes used by the resource to run tests.
The endpoint for the remote access sesssion.
Unique device identifier for the remote device. Only returned if remote debugging is enabled for the remote access session.
Remote debugging is no longer supported.
The interaction mode of the remote access session. Valid values are:
When set to true
, for private devices, Device Farm does not sign your app again. For public devices, Device Farm always signs your apps again.
For more information about how Device Farm re-signs your apps, see Do you modify my app? in the AWS Device Farm FAQs .
The VPC security groups and subnets that are attached to a project.
An array of one or more security groups IDs in your Amazon VPC.
An array of one or more subnet IDs in your Amazon VPC.
The ID of the Amazon VPC.
Exceptions
DeviceFarm.Client.exceptions.ArgumentException
DeviceFarm.Client.exceptions.NotFoundException
DeviceFarm.Client.exceptions.LimitExceededException
DeviceFarm.Client.exceptions.ServiceAccountException
Examples
The following example gets a specific remote access session.
response = client.get_remote_access_session(
# You can get the remote access session ARN by using the list-remote-access-sessions CLI command.
arn='arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456',
)
print(response)
Expected Output:
{
'remoteAccessSession': {
},
'ResponseMetadata': {
'...': '...',
},
}