# Method: projects.locations.resourceAllowances.list

- [HTTP request](https://docs.cloud.google.com/batch/docs/reference/rest/v1alpha/projects.locations.resourceAllowances/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/batch/docs/reference/rest/v1alpha/projects.locations.resourceAllowances/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/batch/docs/reference/rest/v1alpha/projects.locations.resourceAllowances/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/batch/docs/reference/rest/v1alpha/projects.locations.resourceAllowances/list#body.request_body)
- [Response body](https://docs.cloud.google.com/batch/docs/reference/rest/v1alpha/projects.locations.resourceAllowances/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/batch/docs/reference/rest/v1alpha/projects.locations.resourceAllowances/list#body.ListResourceAllowancesResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/batch/docs/reference/rest/v1alpha/projects.locations.resourceAllowances/list#body.aspect)
- [Try it!](https://docs.cloud.google.com/batch/docs/reference/rest/v1alpha/projects.locations.resourceAllowances/list#try-it)

List all ResourceAllowances for a project within a region.

### HTTP request

`GET https://batch.googleapis.com/v1alpha/{parent=projects/*/locations/*}/resourceAllowances`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. Parent path. |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Optional. Page size. |
| `pageToken` | `string` Optional. Page token. |

### Request body

The request body must be empty.

### Response body

resourceAllowances.list Response.

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

| JSON representation |
|---|
| ``` { "resourceAllowances": [ { object (`https://docs.cloud.google.com/batch/docs/reference/rest/v1alpha/projects.locations.resourceAllowances#ResourceAllowance`) } ], "nextPageToken": string, "unreachable": [ string ] } ``` |

| Fields ||
|---|---|
| `resourceAllowances[]` | ``object (`https://docs.cloud.google.com/batch/docs/reference/rest/v1alpha/projects.locations.resourceAllowances#ResourceAllowance`)`` ResourceAllowances. |
| `nextPageToken` | `string` Next page token. |
| `unreachable[]` | `string` Locations that could not be reached. |

### 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).