# Method: projects.agentPools.list

Lists agent pools.

### HTTP request

`GET https://storagetransfer.googleapis.com/v1/projects/{projectId}/agentPools`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `projectId` | `string` Required. The ID of the Google Cloud project that owns the job. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `projectId`: - `storagetransfer.agentpools.list` |

### Query parameters

| Parameters ||
|---|---|
| `filter` | `string` An optional list of query parameters specified as JSON text in the form of: `{"agentPoolNames":["agentpool1","agentpool2",...]}` Since `agentPoolNames` support multiple values, its values must be specified with array notation. When the filter is either empty or not provided, the list returns all agent pools for the project. |
| `pageSize` | `integer` The list page size. The max allowed value is `256`. |
| `pageToken` | `string` The list page token. |

### Request body

The request body must be empty.

### Response body

Response from agentPools.list.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "agentPools": [ { object (`https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools#AgentPool`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `agentPools[]` | ``object (`https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools#AgentPool`)`` A list of agent pools. |
| `nextPageToken` | `string` The list next page token. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).