# Method: projects.locations.functions.list

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

Returns a list of functions that belong to the requested project.

### HTTP request

`GET https://cloudfunctions.googleapis.com/v1/{parent}/functions`

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` The project and location from which the function should be listed, specified in the format `projects/*/locations/*` If you want to list functions in all locations, use "-" in place of a location. When listing functions in all locations, if one or more location(s) are unreachable, the response will contain functions from all reachable locations along with the names of any unreachable locations. It takes the form `projects/{project}/locations/{location}`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `cloudfunctions.functions.list` |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Maximum number of functions to return per call. |
| `pageToken` | `string` The value returned by the last `ListFunctionsResponse`; indicates that this is a continuation of a prior `functions.list` call, and that the system should return the next page of data. |

### Request body

The request body must be empty.

### Response body

Response for the `functions.list` method.

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

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

| Fields ||
|---|---|
| `functions[]` | ``object (`https://docs.cloud.google.com/functions/docs/reference/rest/v1/projects.locations.functions#CloudFunction`)`` The functions that match the request. |
| `nextPageToken` | `string` If not empty, indicates that there may be more functions that match the request; this value should be passed in a new `google.cloud.functions.v1.ListFunctionsRequest` to get more functions. |
| `unreachable[]` | `string` Locations that could not be reached. The response does not include any functions from these locations. |

### Authorization scopes

Requires one of the following OAuth scopes:

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

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