# Method: projects.locations.runtimes.list

- [HTTP request](https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#body.request_body)
- [Response body](https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#body.ListRuntimesResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#body.aspect)
- [Runtime](https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#Runtime)
  - [JSON representation](https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#Runtime.SCHEMA_REPRESENTATION)
- [RuntimeStage](https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#RuntimeStage)
- [Try it!](https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#try-it)

Returns a list of runtimes that are supported for the requested project.

### HTTP request

`GET https://cloudfunctions.googleapis.com/v2/{parent}/runtimes`

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The project and location from which the runtimes should be listed, specified in the format `projects/*/locations/*` It takes the form `projects/{project}/locations/{location}`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `iam.permissions.none` |

### Query parameters

| Parameters ||
|---|---|
| `filter` | `string` The filter for Runtimes that match the filter expression, following the syntax outlined in <https://google.aip.dev/160>. |

### Request body

The request body must be empty.

### Response body

Response for the `runtimes.list` method.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "runtimes": [ { object (`https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#Runtime`) } ] } ``` |

| Fields ||
|---|---|
| `runtimes[]` | ``object (`https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#Runtime`)`` The runtimes that match the request. |

### 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).

## Runtime

Describes a runtime and any special information (e.g., deprecation status) related to it.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "stage": enum (`https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#RuntimeStage`), "warnings": [ string ], "environment": enum (`https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.functions#Environment`), "deprecationDate": { object (`https://docs.cloud.google.com/functions/docs/reference/rest/Shared.Types/Date`) }, "decommissionDate": { object (`https://docs.cloud.google.com/functions/docs/reference/rest/Shared.Types/Date`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the runtime, e.g., 'go113', 'nodejs12', etc. |
| `displayName` | `string` The user facing name, eg 'Go 1.13', 'Node.js 12', etc. |
| `stage` | ``enum (`https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.runtimes/list#RuntimeStage`)`` The stage of life this runtime is in, e.g., BETA, GA, etc. |
| `warnings[]` | `string` Warning messages, e.g., a deprecation warning. |
| `environment` | ``enum (`https://docs.cloud.google.com/functions/docs/reference/rest/v2/projects.locations.functions#Environment`)`` The environment for the runtime. |
| `deprecationDate` | ``object (`https://docs.cloud.google.com/functions/docs/reference/rest/Shared.Types/Date`)`` Deprecation date for the runtime. |
| `decommissionDate` | ``object (`https://docs.cloud.google.com/functions/docs/reference/rest/Shared.Types/Date`)`` Decommission date for the runtime. |

## RuntimeStage

The various stages that a runtime can be in.

| Enums ||
|---|---|
| `RUNTIME_STAGE_UNSPECIFIED` | Not specified. |
| `DEVELOPMENT` | The runtime is in development. |
| `ALPHA` | The runtime is in the Alpha stage. |
| `BETA` | The runtime is in the Beta stage. |
| `GA` | The runtime is generally available. |
| `DEPRECATED` | The runtime is deprecated. |
| `DECOMMISSIONED` | The runtime is no longer supported. |