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

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

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

Gets information about samples, given an AWS Device Farm job ARN.

## Query parameters

- `nextToken` string

## Headers

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

## Request body

- ListSamplesRequest — Represents a request to the list samples operation.
  - `arn` string, required — The Amazon Resource Name (ARN) of the job used to list samples.
  - `nextToken` string — An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

## Response `200`

Success

- ListSamplesResult — Represents the result of a list samples request.
  - `samples` Sample[] — Information about the samples.
    - `arn` string — The sample's ARN.
    - `type` 'CPU' | 'MEMORY' | 'THREADS' | 'RX_RATE' | 'TX_RATE' | 'RX' | 'TX' | 'NATIVE_FRAMES' | 'NATIVE_FPS' | 'NATIVE_MIN_DRAWTIME' | 'NATIVE_AVG_DRAWTIME' | 'NATIVE_MAX_DRAWTIME' | 'OPENGL_FRAMES' | 'OPENGL_FPS' | 'OPENGL_MIN_DRAWTIME' | 'OPENGL_AVG_DRAWTIME' | 'OPENGL_MAX_DRAWTIME' — <p>The sample's type.</p> <p>Must be one of the following values:</p> <ul> <li> <p>CPU: A CPU sample type. This is expressed as the app processing CPU time (including child processes) as reported by process, as a percentage.</p> </li> <li> <p>MEMORY: A memory usage sample type. This is expressed as the total proportional set size of an app process, in kilobytes.</p> </li> <li> <p>NATIVE_AVG_DRAWTIME</p> </li> <li> <p>NATIVE_FPS</p> </li> <li> <p>NATIVE_FRAMES</p> </li> <li> <p>NATIVE_MAX_DRAWTIME</p> </li> <li> <p>NATIVE_MIN_DRAWTIME</p> </li> <li> <p>OPENGL_AVG_DRAWTIME</p> </li> <li> <p>OPENGL_FPS</p> </li> <li> <p>OPENGL_FRAMES</p> </li> <li> <p>OPENGL_MAX_DRAWTIME</p> </li> <li> <p>OPENGL_MIN_DRAWTIME</p> </li> <li> <p>RX</p> </li> <li> <p>RX_RATE: The total number of bytes per second (TCP and UDP) that are sent, by app process.</p> </li> <li> <p>THREADS: A threads sample type. This is expressed as the total number of threads per app process.</p> </li> <li> <p>TX</p> </li> <li> <p>TX_RATE: The total number of bytes per second (TCP and UDP) that are received, by app process.</p> </li> </ul>
    - `url` string — The presigned Amazon S3 URL that can be used with a GET request to download the sample's file.
  - `nextToken` string — If the number of items that are returned is significantly large, this is an identifier that is also returned. It can be used in a subsequent call to this operation to return the next set of items in the list.

## Other responses

- `480` — ArgumentException
- `481` — NotFoundException
- `482` — LimitExceededException
- `483` — ServiceAccountException

---

[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)
