---
title: "POST /listFleets"
method: POST
path: "/listFleets"
deprecated: true
---

# POST /listFleets

`POST /listFleets`

> **Deprecated.**

Returns a list of fleets. You can optionally provide filters to retrieve specific fleets.

This API will no longer be supported as of May 2, 2022. Use it to remove resources that were created for Deployment Service.

## Query parameters

- `maxResults` string
- `nextToken` string

## Request body

- object
  - `nextToken` string — <p>If the previous paginated request did not return all of the remaining results, the response object's <code>nextToken</code> parameter value is set to a token. To retrieve the next set of results, call <code>ListFleets</code> again and assign that token to the request object's <code>nextToken</code> parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. </p> <note> <p>This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.</p> </note>
  - `maxResults` integer — When this parameter is used, <code>ListFleets</code> only returns <code>maxResults</code> results in a single page along with a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>ListFleets</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 200. If this parameter is not used, then <code>ListFleets</code> returns up to 200 results and a <code>nextToken</code> value if applicable.
  - `filters` Filter[] — <p>Optional filters to limit results.</p> <p>The filter name <code>name</code> is supported. When filtering, you must use the complete value of the filtered item. You can use up to three filters.</p>
    - `name` string — The name of the filter.
    - `values` Name[] — A list of values.

## Response `200`

Success

- ListFleetsResponse — Support for the AWS RoboMaker application deployment feature has ended. For additional information, see https://docs.aws.amazon.com/robomaker/latest/dg/fleets.html.
  - `fleetDetails` Fleet[] — A list of fleet details meeting the request criteria.
    - `name` string — The name of the fleet.
    - `arn` string — The Amazon Resource Name (ARN) of the fleet.
    - `createdAt` string, date-time — The time, in milliseconds since the epoch, when the fleet was created.
    - `lastDeploymentStatus` 'Pending' | 'Preparing' | 'InProgress' | 'Failed' | 'Succeeded' | 'Canceled' — The status of the last fleet deployment.
    - `lastDeploymentJob` string — The Amazon Resource Name (ARN) of the last deployment job.
    - `lastDeploymentTime` string, date-time — The time of the last deployment.
  - `nextToken` string — If the previous paginated request did not return all of the remaining results, the response object's <code>nextToken</code> parameter value is set to a token. To retrieve the next set of results, call <code>ListFleets</code> again and assign that token to the request object's <code>nextToken</code> parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

## Other responses

- `480` — ResourceNotFoundException
- `481` — InvalidParameterException
- `482` — InternalServerException
- `483` — ThrottlingException

---

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