- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Returns a function with the given name from the requested project.
HTTP request
GET https://cloudfunctions.googleapis.com/v1/{name}
Path parameters
name
string
Required. The name of the function which details should be obtained. It takes the form projects/{project}/locations/{location}/functions/{function}
.
Authorization requires the following IAM
permission on the specified resource name
:
-
cloudfunctions.functions.get
Query parameters
| Parameters | |
|---|---|
versionId
|
Optional. The optional version of the 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. Each deployment creates a config version of the underlying function. GCF may keep historical configs for old versions. This field can be specified to fetch the historical configs. Leave it blank or set to 0 to get the latest version of the function. |
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 .

