---
title: "POST /#X-Amz-Target=DeviceFarm_20150623.GetTestGridSession"
method: POST
path: "/#X-Amz-Target=DeviceFarm_20150623.GetTestGridSession"
---

# POST /#X-Amz-Target=DeviceFarm_20150623.GetTestGridSession

`POST /#X-Amz-Target=DeviceFarm_20150623.GetTestGridSession`

A session is an instance of a browser created through a `RemoteWebDriver` with the URL from CreateTestGridUrlResult$url. You can use the following to look up sessions:

*   The session ARN (GetTestGridSessionRequest$sessionArn).
    
*   The project ARN and a session ID (GetTestGridSessionRequest$projectArn and GetTestGridSessionRequest$sessionId).

## Headers

- `X-Amz-Target` 'DeviceFarm_20150623.GetTestGridSession', required

## Request body

- GetTestGridSessionRequest
  - `projectArn` string — The ARN for the project that this session belongs to. See <a>CreateTestGridProject</a> and <a>ListTestGridProjects</a>.
  - `sessionId` string — An ID associated with this session.
  - `sessionArn` string — An ARN that uniquely identifies a <a>TestGridSession</a>.

## Response `200`

Success

- GetTestGridSessionResult
  - `testGridSession` object — The <a>TestGridSession</a> that was requested.
    - `arn` string — The ARN of the session.
    - `status` 'ACTIVE' | 'CLOSED' | 'ERRORED' — The state of the session.
    - `created` string, date-time — The time that the session was started.
    - `ended` string, date-time — The time the session ended.
    - `billingMinutes` number, double — The number of billed minutes that were used for this session.
    - `seleniumProperties` string — A JSON object of options and parameters passed to the Selenium WebDriver.

## Other responses

- `480` — NotFoundException
- `481` — ArgumentException
- `482` — InternalServiceException

---

[API](https://skmtc.net/aws/apis/devicefarm.md) · [All operations](https://skmtc.net/aws/apis/devicefarm/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/devicefarm/versions/a20834382f29/schema)
