Method: projects.locations.functions.list

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

HTTP request

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

Path parameters

Parameters
parent

string

Required. The project and location from which the function should be listed, specified in the formatprojects/*/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 formprojects/{project}/locations/{location}.

Authorization requires the followingIAM permission on the specified resourceparent:

  • cloudfunctions.functions.list

Query parameters

Parameters
pageSize

integer

Maximum number of functions to return per call. The largest allowed pageSize is 1,000, if the pageSize is omitted or specified as greater than 1,000 then it will be replaced as 1,000. The size of the list response can be less than specified when used with filters.

pageToken

string

The value returned by the lastListFunctionsResponse; indicates that this is a continuation of a priorfunctions.list call, and that the system should return the next page of data.

filter

string

The filter for Functions that match the filter expression, following the syntax outlined inhttps://google.aip.dev/160.

orderBy

string

The sorting order of the resources returned. Value should be a comma separated list of fields. The default sorting order is ascending. Seehttps://google.aip.dev/132#ordering.

Request body

The request body must be empty.

Response body

Response for thefunctions.list method.

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

JSON representation
{"functions":[{object (Function)}],"nextPageToken":string,"unreachable":[string]}
Fields
functions[]

object (Function)

The functions that match the request.

nextPageToken

string

A token, which can be sent aspageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

unreachable[]

string

Locations that could not be reached. The response does not include any functions from these locations.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see theAuthentication Overview.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-01 UTC.