Menu
AWS Device Farm
API Reference (API Version 2015-06-23)

CreateRemoteAccessSession

Specifies and starts a remote access session.

Request Syntax

{
   "clientId": "string",
   "configuration": { 
      "billingMethod": "string"
   },
   "deviceArn": "string",
   "name": "string",
   "projectArn": "string",
   "remoteDebugEnabled": boolean,
   "sshPublicKey": "string"
}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

clientId

Unique identifier for the client. If you want access to multiple devices on the same client, you should pass the same clientId value in each call to CreateRemoteAccessSession. This is required only if remoteDebugEnabled is set to true true.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 64.

Required: No

configuration

The configuration information for the remote access session request.

Type: CreateRemoteAccessSessionConfiguration object

Required: No

deviceArn

The Amazon Resource Name (ARN) of the device for which you want to create a remote access session.

Type: String

Length Constraints: Minimum length of 32.

Required: Yes

name

The name of the remote access session that you wish to create.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 256.

Required: No

projectArn

The Amazon Resource Name (ARN) of the project for which you want to create a remote access session.

Type: String

Length Constraints: Minimum length of 32.

Required: Yes

remoteDebugEnabled

Set to true if you want to access devices remotely for debugging in your remote access session.

Type: Boolean

Required: No

sshPublicKey

The public key of the ssh key pair you want to use for connecting to remote devices in your remote debugging session. This is only required if remoteDebugEnabled is set to true.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 8192.

Required: No

Response Syntax

{
   "remoteAccessSession": { 
      "arn": "string",
      "billingMethod": "string",
      "clientId": "string",
      "created": number,
      "device": { 
         "arn": "string",
         "carrier": "string",
         "cpu": { 
            "architecture": "string",
            "clock": number,
            "frequency": "string"
         },
         "fleetName": "string",
         "fleetType": "string",
         "formFactor": "string",
         "heapSize": number,
         "image": "string",
         "manufacturer": "string",
         "memory": number,
         "model": "string",
         "name": "string",
         "os": "string",
         "platform": "string",
         "radio": "string",
         "remoteAccessEnabled": boolean,
         "remoteDebugEnabled": boolean,
         "resolution": { 
            "height": number,
            "width": number
         }
      },
      "deviceMinutes": { 
         "metered": number,
         "total": number,
         "unmetered": number
      },
      "deviceUdid": "string",
      "endpoint": "string",
      "hostAddress": "string",
      "message": "string",
      "name": "string",
      "remoteDebugEnabled": boolean,
      "result": "string",
      "started": number,
      "status": "string",
      "stopped": number
   }
}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

remoteAccessSession

A container that describes the remote access session when the request to create a remote access session is sent.

Type: RemoteAccessSession object

Errors

For information about the errors that are common to all actions, see Common Errors.

ArgumentException

An invalid argument was specified.

HTTP Status Code: 400

LimitExceededException

A limit was exceeded.

HTTP Status Code: 400

NotFoundException

The specified entity was not found.

HTTP Status Code: 400

ServiceAccountException

There was a problem with the service account.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: