Method: projects.locations.functions.list

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

HTTP request

GET https://cloudfunctions.googleapis.com/v1beta2/{location}/functions

Path parameters

Parameters
location

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. It takes the form projects/{project_id}/locations/{location_id}.

Authorization requires the following Google IAM permission on the specified resource location:

  • cloudfunctions.functions.list

Query parameters

Parameters
pageSize

number

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

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

Response for the functions.list method.

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

object(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.v1beta2.ListFunctionsRequest to get more functions.

Authorization

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 Auth Guide.

Try it!

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Functions