Returns a function with the given name from the requested project.
HTTP request
GET https://cloudfunctions.googleapis.com/v2/{name}
Path parameters
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
revision
string
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 of Function.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-08 UTC."],[[["This endpoint retrieves details for a specified function using a GET request to the provided URL."],["The function's name, formatted as `projects/{project}/locations/{location}/functions/{function}`, is a mandatory path parameter."],["An optional query parameter, `revision`, allows you to specify a version number for fetching details of a 1st gen function."],["The request body must be empty, and a successful request will return a `Function` resource in the response body."],["Authorization to use this endpoint requires the `cloudfunctions.functions.get` IAM permission and the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],[]]