Method: projects.locations.functions.get Stay organized with collections Save and categorize content based on your preferences.
Returns a function with the given name from the requested project.
HTTP request
GET https://cloudfunctions.googleapis.com/v2alpha/{name}
Path parameters
| Parameters | |
|---|---|
name |
Required. The name of the function which details should be obtained. It takes the form Authorization requires the followingIAM permission on the specified resource
|
Query parameters
| Parameters | |
|---|---|
revision |
Optional. The optional version of the 1st gen function whose details should be obtained. The version of a 1st gen function is an integer that starts from 1 and gets incremented on redeployments. GCF may keep historical configs for old versions of 1st gen function. This field can be specified to fetch the historical configs. This field is valid only for GCF 1st gen function. |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance ofFunction.
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-06-16 UTC.