# Method: projects.locations.functions.get

- [HTTP request](https://docs.cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions/get#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions/get#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions/get#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions/get#body.request_body)
- [Response body](https://docs.cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions/get#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions/get#body.aspect)
- [Try it!](https://docs.cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions/get#try-it)

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

### HTTP request

`GET https://cloudfunctions.googleapis.com/v2beta/{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](https://cloud.google.com/iam/docs/) 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 `https://docs.cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions#Function`.

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).