Method: projects.locations.functions.get

Returns a function with the given name from the requested project.

HTTP request

GET https://cloudfunctions.googleapis.com/v1/{name}

Path parameters

Parameters
name

string

The name of the function which details should be obtained. It takes the form projects/{project_id}/locations/{location_id}/functions/{function_id}.

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

  • cloudfunctions.functions.get

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of CloudFunction.

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.

Try it!

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Functions